Version Description
- NEW: Static Top Row Option for Responsive Builder.
- FIX: Issue of Some Elements Being Removed from Custom HTML.
- FIX: Row Color Logic is Updated for Responsive Builder.
- IMPROVEMENT: Minor Control Related Updates to Both Functionality And Visuals.
- IMPROVEMENT: Cell Management Operations.
- IMPROVEMENT: Updates to App Security and Performance.
Download this release
Release Info
Developer | imtiazrayhan |
Plugin | WP Table Builder – WordPress Table Plugin |
Version | 1.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.4 to 1.2.5
- inc/admin/base/element-base-object.php +74 -31
- inc/admin/class-admin-menu.php +3 -1
- inc/admin/controls/control-alignment.php +4 -4
- inc/admin/controls/control-color.php +9 -7
- inc/admin/controls/control-media-select.php +57 -0
- inc/admin/controls/control-range.php +5 -2
- inc/admin/controls/control-section-group-collapse.php +10 -1
- inc/admin/controls/control-section-group-tabbed.php +10 -1
- inc/admin/controls/control-select2.php +61 -0
- inc/admin/controls/control-sides.php +80 -0
- inc/admin/controls/control-toggle.php +9 -9
- inc/admin/css/admin.css +151 -3
- inc/admin/element-classes/base/element-base.php +11 -0
- inc/admin/element-classes/element-scripts/custom-html-element.js +14 -15
- inc/admin/element-classes/element-scripts/list-element.js +1 -1
- inc/admin/element-classes/elements/custom-html-element.php +2 -2
- inc/admin/element-classes/elements/list-element.php +1 -1
- inc/admin/element-classes/elements/star-rating-element.php +2 -2
- inc/admin/js/WPTB_Admin_Settings.js +23 -32
- inc/admin/js/WPTB_BuilderControls.js +73 -61
- inc/admin/js/WPTB_Import_Menu.js +40 -49
- inc/admin/js/WPTB_ResponsiveFrontend.js +70 -9
- inc/admin/js/admin.js +144 -13
- inc/admin/js/admin.js.map +1 -1
inc/admin/base/element-base-object.php
CHANGED
@@ -1,13 +1,15 @@
|
|
1 |
<?php
|
|
|
2 |
namespace WP_Table_Builder\Inc\Admin\Base;
|
3 |
-
use WP_Table_Builder\Inc\Admin\Base\Controls_Stack;
|
4 |
|
|
|
5 |
|
6 |
|
7 |
// If this file is called directly, abort.
|
8 |
if ( ! defined( 'WPINC' ) ) {
|
9 |
-
|
10 |
}
|
|
|
11 |
/**
|
12 |
* WP Table Builder element base.
|
13 |
*
|
@@ -19,37 +21,78 @@ if ( ! defined( 'WPINC' ) ) {
|
|
19 |
*/
|
20 |
abstract class Element_Base_Object extends Controls_Stack {
|
21 |
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
<script type="text/javascript">
|
42 |
WPTB_ElementsScriptsLauncher['<?php echo $this->get_name(); ?>'] = function (element) {
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
|
|
50 |
}
|
51 |
</script>
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
}
|
1 |
<?php
|
2 |
+
|
3 |
namespace WP_Table_Builder\Inc\Admin\Base;
|
|
|
4 |
|
5 |
+
use WP_Table_Builder\Inc\Admin\Base\Controls_Stack;
|
6 |
|
7 |
|
8 |
// If this file is called directly, abort.
|
9 |
if ( ! defined( 'WPINC' ) ) {
|
10 |
+
die;
|
11 |
}
|
12 |
+
|
13 |
/**
|
14 |
* WP Table Builder element base.
|
15 |
*
|
21 |
*/
|
22 |
abstract class Element_Base_Object extends Controls_Stack {
|
23 |
|
24 |
+
/**
|
25 |
+
* Include file with js script for element
|
26 |
+
*
|
27 |
+
* @since 1.1.2
|
28 |
+
* @access protected
|
29 |
+
*/
|
30 |
+
public function element_script() {
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Include data to be used with element script.
|
35 |
+
*
|
36 |
+
* Included data will be formatted in JSON format and will follow the naming convention of 'wptb${camelCasedElementName}Data' within element script context.
|
37 |
+
*/
|
38 |
+
public function script_data() {
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Output a js line including script data as a variable to be used within the context of element's script.
|
43 |
+
* Included data will be in JSON format and will follow the naming convention of 'wptb${camelCasedElementName}Data'.
|
44 |
+
*
|
45 |
+
* @private
|
46 |
+
* @param bool $echoToOut whether to echo to output buffer or return the value
|
47 |
+
*
|
48 |
+
* @return string script data if $echoToOut is false
|
49 |
+
*/
|
50 |
+
private function output_script_data( $echoToOut = true ) {
|
51 |
+
$prefix = 'wptb';
|
52 |
+
$postfix = 'data';
|
53 |
+
$splitName = explode( '_', $this->get_name() );
|
54 |
+
|
55 |
+
// turn element name into camelcase format
|
56 |
+
$camelCased = implode( array_map( 'ucfirst', $splitName ) );
|
57 |
+
|
58 |
+
// js variable name
|
59 |
+
$js_const_name = $prefix . $camelCased . ucfirst( $postfix );
|
60 |
+
|
61 |
+
$data_encoded = json_encode( $this->script_data() );
|
62 |
+
|
63 |
+
// prepared js line ready to inject into a js file
|
64 |
+
$js_line = "const {$js_const_name}= JSON.parse('{$data_encoded}');";
|
65 |
+
|
66 |
+
if ( $echoToOut ) {
|
67 |
+
echo $js_line;
|
68 |
+
} else {
|
69 |
+
return $js_line;
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
+
/**
|
74 |
+
* Output element script.
|
75 |
+
*
|
76 |
+
* @since 1.1.2
|
77 |
+
* @access public
|
78 |
+
*/
|
79 |
+
public function output_scripts() {
|
80 |
+
$directory_script = $this->element_script();
|
81 |
+
if ( $directory_script && file_exists( $directory_script ) ) {
|
82 |
+
?>
|
83 |
<script type="text/javascript">
|
84 |
WPTB_ElementsScriptsLauncher['<?php echo $this->get_name(); ?>'] = function (element) {
|
85 |
+
<?php $this->output_script_data(); ?>
|
86 |
+
<?php include $directory_script; ?>
|
87 |
+
<?php
|
88 |
+
$directory_script_pro = apply_filters( 'wp-table-builder/element-scripts-launcher/' . $this->get_name(), '' );
|
89 |
+
if ( $directory_script_pro && file_exists( $directory_script_pro ) ) {
|
90 |
+
include $directory_script_pro;
|
91 |
+
}
|
92 |
+
?>
|
93 |
}
|
94 |
</script>
|
95 |
+
<?php
|
96 |
+
}
|
97 |
+
}
|
98 |
}
|
inc/admin/class-admin-menu.php
CHANGED
@@ -257,7 +257,9 @@ class Admin_Menu {
|
|
257 |
} elseif ( isset( $_GET['page'] ) && sanitize_text_field( $_GET['page'] ) == 'wptb-builder' ) {
|
258 |
|
259 |
// builder controls
|
260 |
-
|
|
|
|
|
261 |
|
262 |
wp_register_script( 'wptb-admin-builder-js', plugin_dir_url( __FILE__ ) . 'js/admin.js', array(
|
263 |
'jquery',
|
257 |
} elseif ( isset( $_GET['page'] ) && sanitize_text_field( $_GET['page'] ) == 'wptb-builder' ) {
|
258 |
|
259 |
// builder controls
|
260 |
+
$builder_path = plugin_dir_path(__FILE__) . 'js/WPTB_BuilderControls.js';
|
261 |
+
|
262 |
+
wp_enqueue_script('wptb-controls-manager-js', plugin_dir_url(__FILE__) . 'js/WPTB_BuilderControls.js' , [], filemtime($builder_path), false);
|
263 |
|
264 |
wp_register_script( 'wptb-admin-builder-js', plugin_dir_url( __FILE__ ) . 'js/admin.js', array(
|
265 |
'jquery',
|
inc/admin/controls/control-alignment.php
CHANGED
@@ -110,16 +110,16 @@ class Control_Alignment extends Base_Control {
|
|
110 |
<p class="wptb-settings-item-title">{{{label}}}</p>
|
111 |
</div>
|
112 |
<div class="wptb-settings-row wptb-settings-middle-xs" style="padding-bottom: 0px; padding-top: 23px;">
|
113 |
-
<ul>
|
114 |
-
<li class="wptb-btn-size-btn wptb-element-property wptb-btn-size-switcher
|
115 |
{{{selected0}}} {{{targetAddClass}}}" data-alignment-value="left" data-element="{{{elemContainer}}}">
|
116 |
<?php echo $left_align_image_svg; ?>
|
117 |
</li>
|
118 |
-
<li class="wptb-btn-size-btn wptb-element-property wptb-btn-size-switcher
|
119 |
{{{selected1}}} {{{targetAddClass}}}" data-alignment-value="center" data-element="{{{elemContainer}}}">
|
120 |
<?php echo $center_align_image_svg; ?>
|
121 |
</li>
|
122 |
-
<li class="wptb-btn-size-btn wptb-element-property wptb-btn-size-switcher
|
123 |
{{{selected2}}} {{{targetAddClass}}}" data-alignment-value="right" data-element="{{{elemContainer}}}">
|
124 |
<?php echo $right_align_image_svg; ?>
|
125 |
</li>
|
110 |
<p class="wptb-settings-item-title">{{{label}}}</p>
|
111 |
</div>
|
112 |
<div class="wptb-settings-row wptb-settings-middle-xs" style="padding-bottom: 0px; padding-top: 23px;">
|
113 |
+
<ul class="wptb-controls-ul-row">
|
114 |
+
<li class="wptb-btn-size-btn wptb-element-property wptb-btn-size-switcher wptb-button-svg-center
|
115 |
{{{selected0}}} {{{targetAddClass}}}" data-alignment-value="left" data-element="{{{elemContainer}}}">
|
116 |
<?php echo $left_align_image_svg; ?>
|
117 |
</li>
|
118 |
+
<li class="wptb-btn-size-btn wptb-element-property wptb-btn-size-switcher wptb-button-svg-center
|
119 |
{{{selected1}}} {{{targetAddClass}}}" data-alignment-value="center" data-element="{{{elemContainer}}}">
|
120 |
<?php echo $center_align_image_svg; ?>
|
121 |
</li>
|
122 |
+
<li class="wptb-btn-size-btn wptb-element-property wptb-btn-size-switcher wptb-button-svg-center
|
123 |
{{{selected2}}} {{{targetAddClass}}}" data-alignment-value="right" data-element="{{{elemContainer}}}">
|
124 |
<?php echo $right_align_image_svg; ?>
|
125 |
</li>
|
inc/admin/controls/control-color.php
CHANGED
@@ -102,13 +102,15 @@ class Control_Color extends Base_Control {
|
|
102 |
targetInputAddClass = data.elementControlTargetUnicClass;
|
103 |
let dataJson = JSON.stringify( data );
|
104 |
#>
|
105 |
-
<div
|
106 |
-
<
|
107 |
-
|
108 |
-
|
109 |
-
<div class=
|
110 |
-
<
|
111 |
-
|
|
|
|
|
112 |
</div>
|
113 |
</div>
|
114 |
|
102 |
targetInputAddClass = data.elementControlTargetUnicClass;
|
103 |
let dataJson = JSON.stringify( data );
|
104 |
#>
|
105 |
+
<div id="{{{targetInputAddClass}}}">
|
106 |
+
<div class='wptb-settings-item-header'>
|
107 |
+
<p class="wptb-settings-item-title">{{{label}}}</p>
|
108 |
+
</div>
|
109 |
+
<div class="wptb-settings-row wptb-settings-middle-xs" style="padding-top: 25px; padding-bottom: 10px;">
|
110 |
+
<div class='wptb-settings-col-xs-8'>
|
111 |
+
<input type="text" class="wptb-element-property wptb-color-picker {{{targetInputAddClass}}}"
|
112 |
+
data-element="{{{elemContainer}}}" data-type="color" value=""/>
|
113 |
+
</div>
|
114 |
</div>
|
115 |
</div>
|
116 |
|
inc/admin/controls/control-media-select.php
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
namespace WP_Table_Builder\Inc\Admin\Controls;
|
3 |
+
|
4 |
+
// if called directly, abort;
|
5 |
+
if(! defined('WPINC')){
|
6 |
+
die;
|
7 |
+
}
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Class Control_Media_Select
|
11 |
+
*
|
12 |
+
* Media selection for elements
|
13 |
+
*
|
14 |
+
* Accepted options
|
15 |
+
* label => label for control element
|
16 |
+
* selectors => selector array to get/set certain values to html elements
|
17 |
+
*
|
18 |
+
* @package WP_Table_Builder\Inc\Admin\Controls
|
19 |
+
*/
|
20 |
+
class Control_Media_Select extends Base_Control{
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Get control type.
|
24 |
+
*
|
25 |
+
* Return the control type.
|
26 |
+
*
|
27 |
+
* @since 1.1.2
|
28 |
+
* @access public
|
29 |
+
*/
|
30 |
+
public function get_type() {
|
31 |
+
return 'media_select';
|
32 |
+
}
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Control content template.
|
36 |
+
*
|
37 |
+
* Used to generate the control HTML in the editor using wp js template
|
38 |
+
*
|
39 |
+
* @since 1.1.2
|
40 |
+
* @access public
|
41 |
+
*/
|
42 |
+
public function content_template() {
|
43 |
+
?>
|
44 |
+
<#
|
45 |
+
const uniqueItemClass = data.elementControlTargetUnicClass;
|
46 |
+
|
47 |
+
WPTB_ControlsManager.setControlData(uniqueItemClass , data);
|
48 |
+
#>
|
49 |
+
<div id="{{{uniqueItemClass}}}">
|
50 |
+
<media-select-control :label="label" :selectors="selectors"></media-select-control>
|
51 |
+
</div>
|
52 |
+
<wptb-template-script>
|
53 |
+
WPTB_ControlsManager.callControlScript('ControlMediaSelect','{{{uniqueItemClass}}}');
|
54 |
+
</wptb-template-script>
|
55 |
+
<?php
|
56 |
+
}
|
57 |
+
}
|
inc/admin/controls/control-range.php
CHANGED
@@ -21,6 +21,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
21 |
* max => maximum value of the slider
|
22 |
* step => step value of the slider
|
23 |
* defaultValue => default value of the slider
|
|
|
24 |
*
|
25 |
* @package WP_Table_Builder\Inc\Admin\Controls
|
26 |
*/
|
@@ -50,11 +51,13 @@ class Control_Range extends Base_Control {
|
|
50 |
?>
|
51 |
<#
|
52 |
const uniqueItemClass = data.elementControlTargetUnicClass;
|
53 |
-
|
54 |
WPTB_ControlsManager.setControlData(uniqueItemClass, data);
|
|
|
55 |
#>
|
56 |
<div id="{{{uniqueItemClass}}}">
|
57 |
-
<range-control :label="label" :selectors="selectors" :min="min" :max="max" :step="step"
|
|
|
|
|
58 |
</div>
|
59 |
<wptb-template-script>
|
60 |
WPTB_ControlsManager.callControlScript('ControlRange', '{{{uniqueItemClass}}}');
|
21 |
* max => maximum value of the slider
|
22 |
* step => step value of the slider
|
23 |
* defaultValue => default value of the slider
|
24 |
+
* suffix => suffix to be added to the end of value
|
25 |
*
|
26 |
* @package WP_Table_Builder\Inc\Admin\Controls
|
27 |
*/
|
51 |
?>
|
52 |
<#
|
53 |
const uniqueItemClass = data.elementControlTargetUnicClass;
|
|
|
54 |
WPTB_ControlsManager.setControlData(uniqueItemClass, data);
|
55 |
+
const elemContainer = data.elemContainer;
|
56 |
#>
|
57 |
<div id="{{{uniqueItemClass}}}">
|
58 |
+
<range-control :label="label" :selectors="selectors" :min="min" :max="max" :step="step"
|
59 |
+
:default-value="defaultValue" unique-id="{{{uniqueItemClass}}}"
|
60 |
+
elem-container="{{{elemContainer}}}"></range-control>
|
61 |
</div>
|
62 |
<wptb-template-script>
|
63 |
WPTB_ControlsManager.callControlScript('ControlRange', '{{{uniqueItemClass}}}');
|
inc/admin/controls/control-section-group-collapse.php
CHANGED
@@ -35,7 +35,16 @@ class Control_Section_Group_Collapse {
|
|
35 |
|
36 |
// add group controls
|
37 |
foreach ( $section_controls as $control_id => $control_args ) {
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
}
|
40 |
|
41 |
// add section end
|
35 |
|
36 |
// add group controls
|
37 |
foreach ( $section_controls as $control_id => $control_args ) {
|
38 |
+
$control_pos = 0;
|
39 |
+
if( is_array( $control_args ) ) {
|
40 |
+
if( array_key_exists( 'control_pos', $control_args ) ) {
|
41 |
+
$control_pos = $control_args['control_pos'];
|
42 |
+
}
|
43 |
+
if( array_key_exists( 'control_args', $control_args ) ) {
|
44 |
+
$control_args = $control_args['control_args'];
|
45 |
+
}
|
46 |
+
}
|
47 |
+
call_user_func( $control_call, $control_id, $control_args, $control_pos );
|
48 |
}
|
49 |
|
50 |
// add section end
|
inc/admin/controls/control-section-group-tabbed.php
CHANGED
@@ -47,7 +47,16 @@ class Control_Section_Group_Tabbed {
|
|
47 |
*/
|
48 |
private static function add_controls( $section_id, $tab_id, $section_controls, $control_call ) {
|
49 |
foreach($section_controls as $control_id => $control_options){
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
}
|
52 |
|
53 |
// end tab content end control
|
47 |
*/
|
48 |
private static function add_controls( $section_id, $tab_id, $section_controls, $control_call ) {
|
49 |
foreach($section_controls as $control_id => $control_options){
|
50 |
+
$control_pos = 0;
|
51 |
+
if( is_array( $control_options ) ) {
|
52 |
+
if( array_key_exists( 'control_pos', $control_options ) ) {
|
53 |
+
$control_pos = $control_options['control_pos'];
|
54 |
+
}
|
55 |
+
if( array_key_exists( 'control_args', $control_options ) ) {
|
56 |
+
$control_options = $control_options['control_args'];
|
57 |
+
}
|
58 |
+
}
|
59 |
+
call_user_func($control_call , $control_id , $control_options, $control_pos);
|
60 |
}
|
61 |
|
62 |
// end tab content end control
|
inc/admin/controls/control-select2.php
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WP_Table_Builder\Inc\Admin\Controls;
|
4 |
+
|
5 |
+
// if called directly, abort
|
6 |
+
if ( ! defined( 'WPINC' ) ) {
|
7 |
+
die;
|
8 |
+
}
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Class Control_Select2
|
12 |
+
*
|
13 |
+
* Selection control for elements
|
14 |
+
*
|
15 |
+
* Accepted options
|
16 |
+
* label => label for control element
|
17 |
+
* selectors => selector array to get/set certain values to html elements
|
18 |
+
* options => options for the select element, values => translated texts
|
19 |
+
* defaultValue => default value for the select control
|
20 |
+
*
|
21 |
+
* @package WP_Table_Builder\Inc\Admin\Controls
|
22 |
+
*/
|
23 |
+
class Control_Select2 extends Base_Control{
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Get control type.
|
27 |
+
*
|
28 |
+
* Return the control type.
|
29 |
+
*
|
30 |
+
* @since 1.1.2
|
31 |
+
* @access public
|
32 |
+
*/
|
33 |
+
public function get_type() {
|
34 |
+
return 'select2';
|
35 |
+
}
|
36 |
+
|
37 |
+
/**
|
38 |
+
* Control content template.
|
39 |
+
*
|
40 |
+
* Used to generate the control HTML in the editor using wp js template
|
41 |
+
*
|
42 |
+
* @since 1.1.2
|
43 |
+
* @access public
|
44 |
+
*/
|
45 |
+
public function content_template() {
|
46 |
+
?>
|
47 |
+
<#
|
48 |
+
const uniqueItemClass = data.elementControlTargetUnicClass;
|
49 |
+
WPTB_ControlsManager.setControlData(uniqueItemClass, data);
|
50 |
+
const elemContainer = data.elemContainer;
|
51 |
+
#>
|
52 |
+
<div id="{{{uniqueItemClass}}}">
|
53 |
+
<select2-control :label="label" :selectors="selectors" :options="options" :default-value="defaultValue" unique-id="{{{uniqueItemClass}}}" elem-container = "{{{elemContainer}}}" ></select2-control>
|
54 |
+
</div>
|
55 |
+
<wptb-template-script>
|
56 |
+
WPTB_ControlsManager.callControlScript('Select2', '{{{uniqueItemClass}}}');
|
57 |
+
</wptb-template-script>
|
58 |
+
<?php
|
59 |
+
}
|
60 |
+
}
|
61 |
+
|
inc/admin/controls/control-sides.php
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WP_Table_Builder\Inc\Admin\Controls;
|
4 |
+
|
5 |
+
use WP_Table_Builder as NS;
|
6 |
+
|
7 |
+
// if called directly, abort
|
8 |
+
if ( ! defined( 'WPINC' ) ) {
|
9 |
+
die;
|
10 |
+
}
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Class Control_Sides.
|
14 |
+
*
|
15 |
+
* Side value assign control with value type selection.
|
16 |
+
*
|
17 |
+
* Accepted options
|
18 |
+
* label => label for control element
|
19 |
+
* selectors => selector array to get/set certain values to html elements
|
20 |
+
* defaultValue => default value of the slider. use full default value for all sides, don't use shorthand definitions. e.g use '10 10 10 10' instead of '10 10'
|
21 |
+
*
|
22 |
+
* @package WP_Table_Builder\Inc\Admin\Controls
|
23 |
+
*/
|
24 |
+
class Control_Sides extends Base_Control {
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Get control type.
|
28 |
+
*
|
29 |
+
* Return the control type.
|
30 |
+
*
|
31 |
+
* @since 1.1.2
|
32 |
+
* @access public
|
33 |
+
*/
|
34 |
+
public function get_type() {
|
35 |
+
return 'sides';
|
36 |
+
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Control content template.
|
40 |
+
*
|
41 |
+
* Used to generate the control HTML in the editor using wp js template
|
42 |
+
*
|
43 |
+
* @since 1.1.2
|
44 |
+
* @access public
|
45 |
+
*/
|
46 |
+
public function content_template() {
|
47 |
+
$strings = [
|
48 |
+
'top' => esc_html__( 'top', 'wp-table-builder' ),
|
49 |
+
'right' => esc_html__( 'right', 'wp-table-builder' ),
|
50 |
+
'bottom' => esc_html__( 'bottom', 'wp-table-builder' ),
|
51 |
+
'left' => esc_html__( 'left', 'wp-table-builder' ),
|
52 |
+
'link' => esc_html__( 'link values', 'wp-table-builder' ),
|
53 |
+
'unlink' => esc_html__( 'unlink values', 'wp-table-builder' ),
|
54 |
+
];
|
55 |
+
|
56 |
+
$control_icons = [
|
57 |
+
'link' => trailingslashit( NS\WP_TABLE_BUILDER_URL ) . 'inc/frontend/views/icons/link.svg',
|
58 |
+
'unlink' => trailingslashit( NS\WP_TABLE_BUILDER_URL ) . 'inc/frontend/views/icons/unlink.svg',
|
59 |
+
];
|
60 |
+
|
61 |
+
$json_strings = json_encode( $strings );
|
62 |
+
$json_icons = json_encode( $control_icons );
|
63 |
+
?>
|
64 |
+
<#
|
65 |
+
const uniqueItemClass = data.elementControlTargetUnicClass;
|
66 |
+
WPTB_ControlsManager.setControlData(uniqueItemClass, data);
|
67 |
+
const elemContainer = data.elemContainer;
|
68 |
+
data.strings = JSON.parse('<?php echo $json_strings; ?>');
|
69 |
+
data.icons = JSON.parse('<?php echo $json_icons; ?>');
|
70 |
+
#>
|
71 |
+
<div id="{{{uniqueItemClass}}}">
|
72 |
+
<sides-control :label="label" :link-icon="icons.link" :unlink-icon="icons.unlink" :strings="strings"
|
73 |
+
:default-value="defaultValue" :selectors="selectors"></sides-control>
|
74 |
+
</div>
|
75 |
+
<wptb-template-script>
|
76 |
+
WPTB_ControlsManager.callControlScript('ControlSides', '{{{uniqueItemClass}}}');
|
77 |
+
</wptb-template-script>
|
78 |
+
<?php
|
79 |
+
}
|
80 |
+
}
|
inc/admin/controls/control-toggle.php
CHANGED
@@ -35,7 +35,7 @@ class Control_Toggle extends Base_Control {
|
|
35 |
* @access public
|
36 |
*/
|
37 |
public function enqueue() {
|
38 |
-
|
39 |
}
|
40 |
|
41 |
/**
|
@@ -60,7 +60,7 @@ class Control_Toggle extends Base_Control {
|
|
60 |
if( data.label ) {
|
61 |
label = data.label;
|
62 |
}
|
63 |
-
|
64 |
let i = 0;
|
65 |
for ( let prop in data.selectors ) {
|
66 |
selectors[i] = [];
|
@@ -68,11 +68,11 @@ class Control_Toggle extends Base_Control {
|
|
68 |
selectors[i][1] = data.selectors[prop];
|
69 |
i++;
|
70 |
}
|
71 |
-
|
72 |
if( selectors && Array.isArray( selectors ) ) {
|
73 |
selectorsJson = JSON.stringify( selectors );
|
74 |
}
|
75 |
-
|
76 |
if( data.elemContainer ) {
|
77 |
elemContainer = data.elemContainer;
|
78 |
}
|
@@ -83,15 +83,15 @@ class Control_Toggle extends Base_Control {
|
|
83 |
|
84 |
targetInputAddClass = data.elementControlTargetUnicClass;
|
85 |
#>
|
86 |
-
|
87 |
-
<div class="wptb-settings-row wptb-settings-middle-xs">
|
88 |
<label class="wptb-toggle">
|
89 |
<span style="font-size: 16px">{{{label}}}</span>
|
90 |
<input class="wptb-element-property {{{targetInputAddClass}}}" type="checkbox" data-element="{{{elemContainer}}}">
|
91 |
<i></i>
|
92 |
-
</label>
|
93 |
</div>
|
94 |
-
|
95 |
<wptb-template-script>
|
96 |
( function() {
|
97 |
let targetInputs = document.getElementsByClassName( '{{{targetInputAddClass}}}' );
|
@@ -270,7 +270,7 @@ class Control_Toggle extends Base_Control {
|
|
270 |
}
|
271 |
} )();
|
272 |
</wptb-template-script>
|
273 |
-
|
274 |
<?php
|
275 |
}
|
276 |
}
|
35 |
* @access public
|
36 |
*/
|
37 |
public function enqueue() {
|
38 |
+
|
39 |
}
|
40 |
|
41 |
/**
|
60 |
if( data.label ) {
|
61 |
label = data.label;
|
62 |
}
|
63 |
+
|
64 |
let i = 0;
|
65 |
for ( let prop in data.selectors ) {
|
66 |
selectors[i] = [];
|
68 |
selectors[i][1] = data.selectors[prop];
|
69 |
i++;
|
70 |
}
|
71 |
+
|
72 |
if( selectors && Array.isArray( selectors ) ) {
|
73 |
selectorsJson = JSON.stringify( selectors );
|
74 |
}
|
75 |
+
|
76 |
if( data.elemContainer ) {
|
77 |
elemContainer = data.elemContainer;
|
78 |
}
|
83 |
|
84 |
targetInputAddClass = data.elementControlTargetUnicClass;
|
85 |
#>
|
86 |
+
|
87 |
+
<div id="{{{targetInputAddClass}}}" class="wptb-settings-row wptb-settings-middle-xs">
|
88 |
<label class="wptb-toggle">
|
89 |
<span style="font-size: 16px">{{{label}}}</span>
|
90 |
<input class="wptb-element-property {{{targetInputAddClass}}}" type="checkbox" data-element="{{{elemContainer}}}">
|
91 |
<i></i>
|
92 |
+
</label>
|
93 |
</div>
|
94 |
+
|
95 |
<wptb-template-script>
|
96 |
( function() {
|
97 |
let targetInputs = document.getElementsByClassName( '{{{targetInputAddClass}}}' );
|
270 |
}
|
271 |
} )();
|
272 |
</wptb-template-script>
|
273 |
+
|
274 |
<?php
|
275 |
}
|
276 |
}
|
inc/admin/css/admin.css
CHANGED
@@ -708,6 +708,14 @@ body > img {
|
|
708 |
/*margin-bottom: -10px;*/
|
709 |
}
|
710 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
711 |
.wptb-settings-row {
|
712 |
box-sizing: border-box !important;
|
713 |
display: flex;
|
@@ -1964,7 +1972,7 @@ br[data-mce-bogus="1"] {
|
|
1964 |
}
|
1965 |
|
1966 |
.wptb-list-container ul li > div > p::before {
|
1967 |
-
margin-left: -20px;
|
1968 |
}
|
1969 |
|
1970 |
.wptb-list-container ul li > div > p.wptb-list-style-type-disc::before {
|
@@ -3426,6 +3434,14 @@ wptb_shortcode_container_element {
|
|
3426 |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
3427 |
}
|
3428 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3429 |
.wptb-plugin-box-shadow-up-md {
|
3430 |
box-shadow: 0 -5px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
3431 |
}
|
@@ -3577,7 +3593,6 @@ wptb_shortcode_container_element {
|
|
3577 |
flex-direction: column;
|
3578 |
justify-content: center;
|
3579 |
align-items: center;
|
3580 |
-
/*margin: 20px 0;*/
|
3581 |
}
|
3582 |
|
3583 |
.wptb-html-control-wrapper > div {
|
@@ -3588,6 +3603,18 @@ wptb_shortcode_container_element {
|
|
3588 |
/*margin-bottom: 40px;*/
|
3589 |
}
|
3590 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3591 |
.wptb-builder-responsive {
|
3592 |
position: absolute;
|
3593 |
top: 0;
|
@@ -3894,7 +3921,7 @@ wptb_shortcode_container_element {
|
|
3894 |
width: 100%;
|
3895 |
height: 100%;
|
3896 |
background-color: rgba(0, 0, 0, 0.5);
|
3897 |
-
z-index:
|
3898 |
display: flex;
|
3899 |
justify-content: center;
|
3900 |
align-items: center;
|
@@ -4012,3 +4039,124 @@ wptb_shortcode_container_element {
|
|
4012 |
opacity: 1 !important;
|
4013 |
}
|
4014 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
708 |
/*margin-bottom: -10px;*/
|
709 |
}
|
710 |
|
711 |
+
.wptb-settings-item-header-include-right {
|
712 |
+
font-size: 14px;
|
713 |
+
line-height: 14px;
|
714 |
+
padding: 14px 10px 14px 10px;
|
715 |
+
position: relative;
|
716 |
+
background: var(--wptb-plugin-gray-100);
|
717 |
+
}
|
718 |
+
|
719 |
.wptb-settings-row {
|
720 |
box-sizing: border-box !important;
|
721 |
display: flex;
|
1972 |
}
|
1973 |
|
1974 |
.wptb-list-container ul li > div > p::before {
|
1975 |
+
margin-left: -20px;
|
1976 |
}
|
1977 |
|
1978 |
.wptb-list-container ul li > div > p.wptb-list-style-type-disc::before {
|
3434 |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
3435 |
}
|
3436 |
|
3437 |
+
.wptb-plugin-filter-box-shadow-md {
|
3438 |
+
filter: drop-shadow(4px 6px 2px rgba(0, 0, 0, 0.1))
|
3439 |
+
}
|
3440 |
+
|
3441 |
+
.wptb-plugin-filter-box-shadow-md-close {
|
3442 |
+
filter: drop-shadow(4px 1px 2px rgba(0, 0, 0, 0.1))
|
3443 |
+
}
|
3444 |
+
|
3445 |
.wptb-plugin-box-shadow-up-md {
|
3446 |
box-shadow: 0 -5px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
3447 |
}
|
3593 |
flex-direction: column;
|
3594 |
justify-content: center;
|
3595 |
align-items: center;
|
|
|
3596 |
}
|
3597 |
|
3598 |
.wptb-html-control-wrapper > div {
|
3603 |
/*margin-bottom: 40px;*/
|
3604 |
}
|
3605 |
|
3606 |
+
.wptb-help-support-section-wrapper {
|
3607 |
+
display: flex;
|
3608 |
+
flex-direction: column;
|
3609 |
+
justify-content: center;
|
3610 |
+
align-items: center;
|
3611 |
+
padding: 20px 0;
|
3612 |
+
}
|
3613 |
+
|
3614 |
+
.wptb-help-support-section-wrapper div {
|
3615 |
+
margin: 5px 0;
|
3616 |
+
}
|
3617 |
+
|
3618 |
.wptb-builder-responsive {
|
3619 |
position: absolute;
|
3620 |
top: 0;
|
3921 |
width: 100%;
|
3922 |
height: 100%;
|
3923 |
background-color: rgba(0, 0, 0, 0.5);
|
3924 |
+
z-index: 600000;
|
3925 |
display: flex;
|
3926 |
justify-content: center;
|
3927 |
align-items: center;
|
4039 |
opacity: 1 !important;
|
4040 |
}
|
4041 |
|
4042 |
+
.wptb-cell-related-drop-handle {
|
4043 |
+
position: fixed;
|
4044 |
+
display: none;
|
4045 |
+
background-color: #e2e8f0c7;
|
4046 |
+
z-index: 300000;
|
4047 |
+
pointer-events: none;
|
4048 |
+
transition: all 0.2s ease-out;
|
4049 |
+
animation: wptb-basic-appear 0.2s ease-out;
|
4050 |
+
align-items: center;
|
4051 |
+
justify-content: center;
|
4052 |
+
font-size: 1.5rem;
|
4053 |
+
font-weight: bold;
|
4054 |
+
text-transform: uppercase;
|
4055 |
+
color: #4a5568;
|
4056 |
+
}
|
4057 |
+
|
4058 |
+
.wptb-control-media-select-button {
|
4059 |
+
width: 100px;
|
4060 |
+
height: 50px;
|
4061 |
+
border: 1px solid var(--wptb-plugin-gray-400);
|
4062 |
+
background-position: center center;
|
4063 |
+
background-size: contain;
|
4064 |
+
background-repeat: no-repeat;
|
4065 |
+
cursor: pointer;
|
4066 |
+
}
|
4067 |
+
|
4068 |
+
.wptb-control-media-button-wrapper {
|
4069 |
+
position: relative;
|
4070 |
+
}
|
4071 |
+
|
4072 |
+
.wptb-control-media-clear-button {
|
4073 |
+
position: absolute;
|
4074 |
+
width: 20px;
|
4075 |
+
height: 20px;
|
4076 |
+
top: -5px;
|
4077 |
+
right: -10px;
|
4078 |
+
color: red;
|
4079 |
+
cursor: pointer;
|
4080 |
+
}
|
4081 |
+
|
4082 |
+
.wptb-control-media-clear-button span {
|
4083 |
+
transform: scale(1.8);
|
4084 |
+
}
|
4085 |
+
|
4086 |
+
.wptb-controls-ul-row {
|
4087 |
+
display: flex;
|
4088 |
+
}
|
4089 |
+
|
4090 |
+
.wptb-button-svg-center {
|
4091 |
+
display: flex !important;
|
4092 |
+
justify-content: center;
|
4093 |
+
align-items: center;
|
4094 |
+
}
|
4095 |
+
|
4096 |
+
|
4097 |
+
/*region sides control*/
|
4098 |
+
.wptb-sides-link-icon-wrapper {
|
4099 |
+
width: 16px;
|
4100 |
+
height: 16px;
|
4101 |
+
cursor: pointer;
|
4102 |
+
transition: transform 0.1s ease-out;
|
4103 |
+
filter: opacity(0.7);
|
4104 |
+
}
|
4105 |
+
|
4106 |
+
.wptb-sides-link-icon-wrapper:active {
|
4107 |
+
transform: scale(0.9);
|
4108 |
+
}
|
4109 |
+
|
4110 |
+
.wptb-sides-controls-wrapper {
|
4111 |
+
display: grid;
|
4112 |
+
grid-template-columns: repeat(5, 1fr);
|
4113 |
+
}
|
4114 |
+
|
4115 |
+
.wptb-side-control-header {
|
4116 |
+
color: var(--wptb-plugin-gray-500);
|
4117 |
+
text-align: center;
|
4118 |
+
margin: 5px 0;
|
4119 |
+
}
|
4120 |
+
|
4121 |
+
.wptb-side-control-main-input {
|
4122 |
+
width: 100%;
|
4123 |
+
height: 30px !important;
|
4124 |
+
border: 1.5px solid var(--wptb-plugin-gray-300) !important;
|
4125 |
+
border-radius: 0 !important;
|
4126 |
+
text-align: center;
|
4127 |
+
}
|
4128 |
+
|
4129 |
+
.wptb-side-control-number-input {
|
4130 |
+
transition: all 0.3s ease-out;
|
4131 |
+
margin-left: 5px;
|
4132 |
+
}
|
4133 |
+
|
4134 |
+
.wptb-side-values-linked .wptb-side-control-number-input {
|
4135 |
+
margin-left: 0;
|
4136 |
+
}
|
4137 |
+
|
4138 |
+
.wptb-side-control-main-input:active, .wptb-side-control-main-input:focus {
|
4139 |
+
outline: none !important;
|
4140 |
+
box-shadow: none !important;
|
4141 |
+
}
|
4142 |
+
|
4143 |
+
.wptb-side-control-input-wrapper:first-of-type .wptb-side-control-main-input {
|
4144 |
+
border-left-width: 3px !important;
|
4145 |
+
border-radius: 5px 0 0 5px !important;
|
4146 |
+
}
|
4147 |
+
|
4148 |
+
.wptb-side-control-input-wrapper:last-of-type .wptb-side-control-main-input {
|
4149 |
+
border-right-width: 3px !important;
|
4150 |
+
border-radius: 0 5px 5px 0 !important;
|
4151 |
+
}
|
4152 |
+
|
4153 |
+
.wptb-side-control-dropdown-wrapper {
|
4154 |
+
align-self: end;
|
4155 |
+
}
|
4156 |
+
|
4157 |
+
.wptb-side-control-dropdown {
|
4158 |
+
background-color: var(--wptb-plugin-gray-400) !important;
|
4159 |
+
}
|
4160 |
+
|
4161 |
+
/*endregion*/
|
4162 |
+
|
inc/admin/element-classes/base/element-base.php
CHANGED
@@ -121,4 +121,15 @@ abstract class Element_Base extends Element_Base_Object {
|
|
121 |
public function get_type() {
|
122 |
return Elements_Manager::BASIC;
|
123 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
}
|
121 |
public function get_type() {
|
122 |
return Elements_Manager::BASIC;
|
123 |
}
|
124 |
+
|
125 |
+
|
126 |
+
/**
|
127 |
+
* Get relative of element
|
128 |
+
* This function will be used to determine the positioning of elements on drop events
|
129 |
+
*
|
130 |
+
* @return string position relative
|
131 |
+
*/
|
132 |
+
public function position_relative( ) {
|
133 |
+
return Elements_Manager::ELEMENT_RELATIVE;
|
134 |
+
}
|
135 |
}
|
inc/admin/element-classes/element-scripts/custom-html-element.js
CHANGED
@@ -2,6 +2,18 @@ const infArr = element.className.match(/wptb-element-((.+-)\d+)/i);
|
|
2 |
const controlKey = 'textarea';
|
3 |
const elementControlTargetUnicClass = `wptb-el-${infArr[1]}-${controlKey}`;
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
const tinyMceInitStart = function () {
|
6 |
tinyMCE.init({
|
7 |
target: element.childNodes[0],
|
@@ -15,21 +27,8 @@ const tinyMceInitStart = function () {
|
|
15 |
forced_root_block: '',
|
16 |
paste_as_text: false,
|
17 |
toolbar: false,
|
18 |
-
|
19 |
-
|
20 |
-
mask[*],path[*],line[*],marker[*],rect[*],circle[*],\n\
|
21 |
-
ellipse[*],polygon[*],polyline[*],linearGradient[*],\n\
|
22 |
-
radialGradient[*],stop[*],image[*],view[*],text[*],\n\
|
23 |
-
textPath[*],title[*],tspan[*],glyph[*],symbol[*],switch[*],use[*]',
|
24 |
-
valid_children:
|
25 |
-
'div[div|a|p|ul|li|ol|span|#text],' +
|
26 |
-
'a[div|a|p|ul|li|ol|span|#text],' +
|
27 |
-
'p[div|a|p|ul|li|ol|span|#text],' +
|
28 |
-
'ul[div|a|p|ul|li|ol|span|#text],' +
|
29 |
-
'li[div|a|p|ul|li|ol|span|#text],' +
|
30 |
-
'ol[div|a|p|ul|li|ol|span|#text],' +
|
31 |
-
'span[div|a|p|ul|li|ol|span|#text]' +
|
32 |
-
'',
|
33 |
allow_script_urls: true,
|
34 |
verify_html: false,
|
35 |
setup(ed) {
|
2 |
const controlKey = 'textarea';
|
3 |
const elementControlTargetUnicClass = `wptb-el-${infArr[1]}-${controlKey}`;
|
4 |
|
5 |
+
const allowedChildrenTags = ['div', 'a', 'p', 'ul', 'li', 'ol', 'span', 'h1', 'h2', 'h3', 'h4', 'h5', 'center'];
|
6 |
+
|
7 |
+
const innerChildTextArray = Array.from(allowedChildrenTags);
|
8 |
+
innerChildTextArray.push('#text');
|
9 |
+
const innerChildText = innerChildTextArray.join('|');
|
10 |
+
|
11 |
+
const greatTextWallOfValidChildren = allowedChildrenTags.reduce((p, c) => {
|
12 |
+
const formedValidChildren = `${c}[${innerChildText}]`;
|
13 |
+
p.push(formedValidChildren);
|
14 |
+
return p;
|
15 |
+
}, []);
|
16 |
+
|
17 |
const tinyMceInitStart = function () {
|
18 |
tinyMCE.init({
|
19 |
target: element.childNodes[0],
|
27 |
forced_root_block: '',
|
28 |
paste_as_text: false,
|
29 |
toolbar: false,
|
30 |
+
valid_elements: '*[*]',
|
31 |
+
valid_children: greatTextWallOfValidChildren.join(','),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
allow_script_urls: true,
|
33 |
verify_html: false,
|
34 |
setup(ed) {
|
inc/admin/element-classes/element-scripts/list-element.js
CHANGED
@@ -58,7 +58,7 @@ function listItemsTinyMceInit( listItem ) {
|
|
58 |
}
|
59 |
|
60 |
applyGenericItemSettings( duplicate );
|
61 |
-
e.target.querySelector( 'p' ).innerHTML = '
|
62 |
article.parentNode.insertBefore( elementCopy, article );
|
63 |
elementCopy.classList.remove( 'wptb-directlyhovered' );
|
64 |
article.classList.remove( 'wptb-directlyhovered' );
|
58 |
}
|
59 |
|
60 |
applyGenericItemSettings( duplicate );
|
61 |
+
e.target.querySelector( 'p' ).innerHTML = 'New List Item';
|
62 |
article.parentNode.insertBefore( elementCopy, article );
|
63 |
elementCopy.classList.remove( 'wptb-directlyhovered' );
|
64 |
article.classList.remove( 'wptb-directlyhovered' );
|
inc/admin/element-classes/elements/custom-html-element.php
CHANGED
@@ -51,7 +51,7 @@ class Custom_Html_Element extends Element_Base {
|
|
51 |
* @return string directory Element icon.
|
52 |
*/
|
53 |
public function get_directory_icon() {
|
54 |
-
return NS\WP_TABLE_BUILDER_DIR . 'inc/admin/views/builder/icons/
|
55 |
}
|
56 |
|
57 |
/**
|
@@ -65,7 +65,7 @@ class Custom_Html_Element extends Element_Base {
|
|
65 |
* @return string Url Element icon.
|
66 |
*/
|
67 |
public function get_url_icon() {
|
68 |
-
return wp_normalize_path ( NS\WP_TABLE_BUILDER_URL . 'inc/admin/views/builder/icons/
|
69 |
}
|
70 |
|
71 |
/**
|
51 |
* @return string directory Element icon.
|
52 |
*/
|
53 |
public function get_directory_icon() {
|
54 |
+
return NS\WP_TABLE_BUILDER_DIR . 'inc/admin/views/builder/icons/html.svg'; ;
|
55 |
}
|
56 |
|
57 |
/**
|
65 |
* @return string Url Element icon.
|
66 |
*/
|
67 |
public function get_url_icon() {
|
68 |
+
return wp_normalize_path ( NS\WP_TABLE_BUILDER_URL . 'inc/admin/views/builder/icons/html.svg' );
|
69 |
}
|
70 |
|
71 |
/**
|
inc/admin/element-classes/elements/list-element.php
CHANGED
@@ -51,7 +51,7 @@ class List_Element extends Element_Base {
|
|
51 |
* @return string Directory Element icon.
|
52 |
*/
|
53 |
public function get_directory_icon() {
|
54 |
-
return NS\WP_TABLE_BUILDER_DIR . 'inc/admin/views/builder/icons/list.svg';
|
55 |
}
|
56 |
|
57 |
/**
|
51 |
* @return string Directory Element icon.
|
52 |
*/
|
53 |
public function get_directory_icon() {
|
54 |
+
return NS\WP_TABLE_BUILDER_DIR . 'inc/admin/views/builder/icons/list.svg';
|
55 |
}
|
56 |
|
57 |
/**
|
inc/admin/element-classes/elements/star-rating-element.php
CHANGED
@@ -51,7 +51,7 @@ class Star_Rating_Element extends Element_Base {
|
|
51 |
* @return string Directory Element icon.
|
52 |
*/
|
53 |
public function get_directory_icon() {
|
54 |
-
return NS\WP_TABLE_BUILDER_DIR . 'inc/admin/views/builder/icons/
|
55 |
}
|
56 |
|
57 |
/**
|
@@ -65,7 +65,7 @@ class Star_Rating_Element extends Element_Base {
|
|
65 |
* @return string Url Element icon.
|
66 |
*/
|
67 |
public function get_url_icon() {
|
68 |
-
return wp_normalize_path ( NS\WP_TABLE_BUILDER_URL . 'inc/admin/views/builder/icons/
|
69 |
}
|
70 |
|
71 |
/**
|
51 |
* @return string Directory Element icon.
|
52 |
*/
|
53 |
public function get_directory_icon() {
|
54 |
+
return NS\WP_TABLE_BUILDER_DIR . 'inc/admin/views/builder/icons/star_rating.svg'; ;
|
55 |
}
|
56 |
|
57 |
/**
|
65 |
* @return string Url Element icon.
|
66 |
*/
|
67 |
public function get_url_icon() {
|
68 |
+
return wp_normalize_path ( NS\WP_TABLE_BUILDER_URL . 'inc/admin/views/builder/icons/star_rating.svg' );
|
69 |
}
|
70 |
|
71 |
/**
|
inc/admin/js/WPTB_Admin_Settings.js
CHANGED
@@ -5,50 +5,41 @@ var e=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),export
|
|
5 |
"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function t(t){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?e(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var o=t({},wptbAdminSettingsData.options),n=t({},wptbAdminSettingsData.options),c={data:function(){return{store:o,rawStore:n}},methods:{revertStore:function(){var e=this;Object.keys(this.store).map(function(t){Object.prototype.hasOwnProperty.call(e.store,t)&&(e.store[t]=e.rawStore[t])})}}},i=c;exports.default=i;
|
6 |
},{}],"wm3G":[function(require,module,exports) {
|
7 |
"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function t(t){for(var s=1;s<arguments.length;s++){var a=null!=arguments[s]?arguments[s]:{};s%2?e(Object(a),!0).forEach(function(e){r(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var s={withMessageData:{busy:!1,show:!1,message:"",type:"ok",intervalId:-1,intervalTime:5e3}},a=t({},s.withMessageData),i={data:function(){return s},methods:{isBusy:function(){return this.withMessageData.busy},setMessage:function(e){var r=this,s=t({},a,{},e);this.withMessageData.message=s.message,this.withMessageData.type=s.type,this.withMessageData.show=!0,clearInterval(this.withMessageData.intervalId),this.withMessageData.intervalId=setInterval(function(){r.withMessageData.show=!1},s.intervalTime)},setBusy:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.withMessageData.busy=e}}},n=i;exports.default=n;
|
8 |
-
},{}],"aJOh":[function(require,module,exports) {
|
9 |
-
var e,n,o=Object.create(null);"undefined"!=typeof window&&(window.__VUE_HOT_MAP__=o);var t=!1,r=!1,i="beforeCreate";function s(e,n){if(n.functional){var t=n.render;n.render=function(n,r){var i=o[e].instances;return r&&i.indexOf(r.parent)<0&&i.push(r.parent),t(n,r)}}else c(n,i,function(){var n=o[e];n.Ctor||(n.Ctor=this.constructor),n.instances.push(this)}),c(n,"beforeDestroy",function(){var n=o[e].instances;n.splice(n.indexOf(this),1)})}function c(e,n,o){var t=e[n];e[n]=t?Array.isArray(t)?t.concat(o):[t,o]:[o]}function a(e){return function(n,o){try{e(n,o)}catch(t){console.error(t),console.warn("Something went wrong during Vue component hot-reload. Full reload required.")}}}function f(e,n){for(var o in e)o in n||delete e[o];for(var t in n)e[t]=n[t]}function u(e){if(e._u){var n=e._u;return e._u=function(e){try{return n(e,!0)}catch(o){return n(e,null,!0)}},function(){e._u=n}}}exports.install=function(o,s){t||(t=!0,e=o.__esModule?o.default:o,n=e.version.split(".").map(Number),r=s,e.config._lifecycleHooks.indexOf("init")>-1&&(i="init"),exports.compatible=n[0]>=2,exports.compatible||console.warn("[HMR] You are using a version of vue-hot-reload-api that is only compatible with Vue.js core ^2.0.0."))},exports.createRecord=function(e,n){if(!o[e]){var t=null;"function"==typeof n&&(n=(t=n).options),s(e,n),o[e]={Ctor:t,options:n,instances:[]}}},exports.isRecorded=function(e){return void 0!==o[e]},exports.rerender=a(function(e,n){var t=o[e];if(n){if("function"==typeof n&&(n=n.options),t.Ctor)t.Ctor.options.render=n.render,t.Ctor.options.staticRenderFns=n.staticRenderFns,t.instances.slice().forEach(function(e){e.$options.render=n.render,e.$options.staticRenderFns=n.staticRenderFns,e._staticTrees&&(e._staticTrees=[]),Array.isArray(t.Ctor.options.cached)&&(t.Ctor.options.cached=[]),Array.isArray(e.$options.cached)&&(e.$options.cached=[]);var o=u(e);e.$forceUpdate(),e.$nextTick(o)});else if(t.options.render=n.render,t.options.staticRenderFns=n.staticRenderFns,t.options.functional){if(Object.keys(n).length>2)f(t.options,n);else{var r=t.options._injectStyles;if(r){var i=n.render;t.options.render=function(e,n){return r.call(n),i(e,n)}}}t.options._Ctor=null,Array.isArray(t.options.cached)&&(t.options.cached=[]),t.instances.slice().forEach(function(e){e.$forceUpdate()})}}else t.instances.slice().forEach(function(e){e.$forceUpdate()})}),exports.reload=a(function(e,t){var r=o[e];if(t)if("function"==typeof t&&(t=t.options),s(e,t),r.Ctor){n[1]<2&&(r.Ctor.extendOptions=t);var i=r.Ctor.super.extend(t);i.options._Ctor=r.options._Ctor,r.Ctor.options=i.options,r.Ctor.cid=i.cid,r.Ctor.prototype=i.prototype,i.release&&i.release()}else f(r.options,t);r.instances.slice().forEach(function(e){e.$vnode&&e.$vnode.context?e.$vnode.context.$forceUpdate():console.warn("Root or manually mounted instance modified. Full reload required.")})});
|
10 |
},{}],"vi91":[function(require,module,exports) {
|
11 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:["logoSrc","logoAlt","pluginName"]};exports.default=e;
|
12 |
-
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,
|
13 |
-
},{
|
14 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:["name","current"],methods:{activePosition:function(){void 0!==this.current&&this.current!==this.name||this.$emit("activeSectionElement",this.$refs.sectionItem)}},computed:{isActive:function(){return this.activePosition(),void 0===this.current||this.current===this.name}}};exports.default=t;
|
15 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{ref:"sectionItem",staticClass:"wptb-settings-section-item",class:{disabled:!e.isActive},on:{click:function(t){return e.$emit("sectionchange",e.name,t.target)}}},[e._v(" "+e._s(e.name)+"\n")])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
16 |
-
},{
|
17 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:["activeItem","relativeParent"],methods:{toPx:function(t){return"".concat(t,"px")}},computed:{styleCalculations:function(){if(this.activeItem){var t=this.activeItem.getBoundingClientRect(),e=this.relativeParent.getBoundingClientRect(),i=Math.abs(t.left-e.left);return{width:this.toPx(t.width),height:"2px",bottom:0,left:this.toPx(i)}}return{}}}};exports.default=t;
|
18 |
-
(function(){var
|
19 |
-
},{
|
20 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("./SectionItem")),t=n(require("./ActiveSectionIndicator"));function n(e){return e&&e.__esModule?e:{default:e}}var i={model:{prop:"currentSection",event:"updateSection"},props:{child:{type:Boolean,default:!1},items:Array,currentSection:String},components:{SectionItem:e.default,ActiveSectionIndicator:t.default},data:function(){return{innerCurrentSection:"",activeSectionElement:null}},mounted:function(){this.innerCurrentSection=this.currentSection||this.items[0]},watch:{innerCurrentSection:function(e){this.$emit("updateSection",e)}},methods:{handleSectionChange:function(e){this.innerCurrentSection=e},handleActiveSectionElement:function(e){this.activeSectionElement=e}}};exports.default=i;
|
21 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{ref:"wrapper",staticClass:"wptb-settings-sections-wrapper",class:{child:e.child}},[e._l(e.items,function(t){return n("section-item",{key:t,attrs:{name:t,current:e.innerCurrentSection},on:{sectionchange:e.handleSectionChange,activeSectionElement:e.handleActiveSectionElement}})}),e._v(" "),n("active-section-indicator",{attrs:{"relative-parent":e.$refs.wrapper,"active-item":e.activeSectionElement}})],2),e._v(" "),e._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
22 |
-
},{"./SectionItem":"bosS","./ActiveSectionIndicator":"jLHe"
|
23 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{center:{type:Boolean,default:!1}}};exports.default=e;
|
24 |
-
(function(){var
|
25 |
-
},{
|
26 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:["title"]};exports.default=e;
|
27 |
-
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement,
|
28 |
-
},{
|
29 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:["fieldData","modelBind"],methods:{isType:function(e){return this.fieldData.type===e}}};exports.default=e;
|
30 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,i=e.$createElement,d=e._self._c||i;return d("div",[e.isType("multiCheckbox")?d("div",e._l(e.fieldData.options,function(i,a){return d("div",{key:i,staticClass:"wptb-setting-control-row"},[d("input",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[e.fieldData.id],expression:"modelBind[fieldData.id]"}],attrs:{id:e.fieldData.id,type:"checkbox"},domProps:{value:a,checked:Array.isArray(e.modelBind[e.fieldData.id])?e._i(e.modelBind[e.fieldData.id],a)>-1:e.modelBind[e.fieldData.id]},on:{change:function(i){var d=e.modelBind[e.fieldData.id],t=i.target,l=!!t.checked;if(Array.isArray(d)){var o=a,n=e._i(d,o);t.checked?n<0&&e.$set(e.modelBind,e.fieldData.id,d.concat([o])):n>-1&&e.$set(e.modelBind,e.fieldData.id,d.slice(0,n).concat(d.slice(n+1)))}else e.$set(e.modelBind,e.fieldData.id,l)}}}),e._v(" "),d("label",{attrs:{for:e.fieldData.id}},[e._v(e._s(i))])])}),0):e.isType("checkbox")?d("div",[d("div",{staticClass:"wptb-setting-control-row"},[d("input",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[e.fieldData.id],expression:"modelBind[fieldData.id]"}],attrs:{id:e.fieldData.id,type:"checkbox"},domProps:{checked:Array.isArray(e.modelBind[e.fieldData.id])?e._i(e.modelBind[e.fieldData.id],null)>-1:e.modelBind[e.fieldData.id]},on:{change:function(i){var d=e.modelBind[e.fieldData.id],a=i.target,t=!!a.checked;if(Array.isArray(d)){var l=e._i(d,null);a.checked?l<0&&e.$set(e.modelBind,e.fieldData.id,d.concat([null])):l>-1&&e.$set(e.modelBind,e.fieldData.id,d.slice(0,l).concat(d.slice(l+1)))}else e.$set(e.modelBind,e.fieldData.id,t)}}}),e._v(" "),d("label",{attrs:{for:e.fieldData.id}},[e._v(e._s(e.fieldData.label))])])]):e.isType("dropdown")?d("div",[d("div",{staticClass:"wptb-setting-control-row"},[d("select",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[e.fieldData.id],expression:"modelBind[fieldData.id]"}],attrs:{id:e.fieldData.id},on:{change:function(i){var d=Array.prototype.filter.call(i.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.$set(e.modelBind,e.fieldData.id,i.target.multiple?d:d[0])}}},e._l(e.fieldData.options,function(i){return d("option",{key:i.label,domProps:{value:i.value}},[e._v(" "+e._s(i.label)+" ")])}),0),e._v(" "),d("label",{attrs:{for:e.fieldData.id}},[e._v(e._s(e.fieldData.label))]),e._v(" "),e._t("default")],2)]):e._e()])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
31 |
-
},{
|
32 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../mixins/withMessage"));function t(e){return e&&e.__esModule?e:{default:e}}var r={mixins:[e.default]};exports.default=r;
|
33 |
-
(function(){var
|
34 |
-
},{"../mixins/withMessage":"wm3G"
|
35 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{disabled:Boolean,type:{type:String,default:"primary"},size:{type:String,default:"normal"}},methods:{handleClick:function(){this.disabled||this.$emit("click")}}};exports.default=e;
|
36 |
-
(function(){var
|
37 |
-
},{
|
38 |
-
var t=null;function e(){return t||(t=n()),t}function n(){try{throw new Error}catch(e){var t=(""+e.stack).match(/(https?|file|ftp|chrome-extension|moz-extension):\/\/[^)\n]+/g);if(t)return r(t[0])}return"/"}function r(t){return(""+t).replace(/^((?:https?|file|ftp|chrome-extension|moz-extension):\/\/.+)\/[^\/]+$/,"$1")+"/"}exports.getBundleURL=e,exports.getBaseURL=r;
|
39 |
-
},{}],"uNEb":[function(require,module,exports) {
|
40 |
-
var e=require("./bundle-url");function n(e){var n=e.cloneNode();n.onload=function(){e.remove()},n.href=e.href.split("?")[0]+"?"+Date.now(),e.parentNode.insertBefore(n,e.nextSibling)}var l=null;function r(){l||(l=setTimeout(function(){for(var r=document.querySelectorAll('link[rel="stylesheet"]'),t=0;t<r.length;t++)e.getBaseURL(r[t].href)===e.getBundleURL()&&n(r[t]);l=null},50))}module.exports=r;
|
41 |
-
},{"./bundle-url":"y8Jx"}],"nwtb":[function(require,module,exports) {
|
42 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("./MessageDisplay.vue")),s=t(require("./MenuButton"));function t(e){return e&&e.__esModule?e:{default:e}}var u={props:["messageType","messageShow","messageBody","messageBusy"],components:{MessageDisplay:e.default,MenuButton:s.default}};exports.default=u;
|
43 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"wptb-settings-footer"},[s("message-display",{attrs:{busy:e.messageBusy,message:e.messageBody,show:e.messageShow,type:e.messageType}}),e._v(" "),s("div",{staticClass:"wptb-settings-button-container"},[s("menu-button",{staticStyle:{visibility:"hidden"}},[e._v("dummy")]),e._v(" "),e._t("default")],2)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
44 |
-
},{"./MessageDisplay.vue":"P9T4","./MenuButton":"ksMR"
|
45 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=c(require("../mixins/withStore.js")),t=c(require("../mixins/withMessage")),r=c(require("../components/MenuHeader.vue")),n=c(require("../components/Sections.vue")),i=c(require("../components/MenuContent.vue")),o=c(require("../components/SettingCard.vue")),s=c(require("../components/ControlItem.vue")),u=c(require("../components/MenuFooter.vue")),a=c(require("../components/MenuButton.vue"));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){return m(e)||h(e,t)||p(e,t)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var s,u=e[Symbol.iterator]();!(n=(s=u.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(a){i=!0,o=a}finally{try{n||null==u.return||u.return()}finally{if(i)throw o}}return r}}function m(e){if(Array.isArray(e))return e}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v={props:["fieldsData","settings","pluginInfo"],components:{MenuButton:a.default,MenuHeader:r.default,Sections:n.default,MenuContent:i.default,SettingCard:o.default,ControlItem:s.default,MenuFooter:u.default},mixins:[e.default,t.default],data:function(){return{sections:[],currentSection:"",parsedFields:{},resetActive:!1,canSubmit:!1,fetching:!1}},watch:{store:{handler:function(){this.resetActive?(this.canSubmit=!1,this.resetActive=!1):this.canSubmit=!0},deep:!0},fetching:function(e){this.setBusy(e)}},beforeMount:function(){var e=this;Object.keys(this.fieldsData).map(function(t){if(Object.prototype.hasOwnProperty.call(e.fieldsData,t)){var r=e.fieldsData[t].section;void 0===e.parsedFields[r]&&(e.parsedFields[r]=[]),e.parsedFields[r].push(y({},e.fieldsData[t],{id:t})),e.sections.push(r)}return null});var t=f(Object.keys(this.parsedFields).map(function(t){if(Object.prototype.hasOwnProperty.call(e.parsedFields,t))return t}),1);this.currentSection=t[0],this.sections=Array.from(new Set(this.sections))},computed:{currentFields:function(){return this.parsedFields[this.currentSection]}},methods:{resetStore:function(){this.canSubmit&&(this.revertStore(),this.resetActive=!0,this.setMessage({message:this.strings.revertMessage}))},submitSettings:function(){var e=this;if(this.canSubmit){var t=new FormData;t.append("nonce",this.settings.nonce),t.append("action",this.settings.action),t.append("options",JSON.stringify(this.store)),this.canSubmit=!1,this.fetching=!0,fetch(this.settings.ajaxUrl,{method:"POST",body:t}).then(function(e){if(e.ok)return e.json()}).then(function(t){if(t.error)throw new Error(t.error);e.setMessage({message:t.message})}).catch(function(t){console.error(t),e.setMessage({type:"error",message:t})}).finally(function(){e.fetching=!1})}}}};exports.default=v;
|
46 |
-
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wptb-settings-wrapper"},[n("menu-header",{attrs:{"logo-src":t.pluginInfo.logo,"logo-alt":t.strings.logoAlt,"plugin-name":t.pluginInfo.pluginName}},[n("a",{attrs:{href:t.pluginInfo.pluginHomepage}},[t._v(t._s(t.strings.homepage))])]),t._v(" "),n("sections",{attrs:{items:t.sections},model:{value:t.currentSection,callback:function(e){t.currentSection=e},expression:"currentSection"}}),t._v(" "),n("menu-content",t._l(t.currentFields,function(e){return n("setting-card",{key:e.id,attrs:{title:e.label}},[n("control-item",{attrs:{"field-data":e,modelBind:t.store}})],1)}),1),t._v(" "),n("menu-footer",[n("menu-button",{attrs:{type:"danger",disabled:!t.canSubmit},on:{click:t.resetStore}},[t._v(t._s(t.strings.revert))]),t._v(" "),n("menu-button",{attrs:{type:"primary",disabled:!t.canSubmit},on:{click:t.submitSettings}},[t._v(t._s(t.strings.submit))])],1)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
47 |
-
},{"../mixins/withStore.js":"D1kn","../mixins/withMessage":"wm3G","../components/MenuHeader.vue":"vi91","../components/Sections.vue":"yPIx","../components/MenuContent.vue":"vTRD","../components/SettingCard.vue":"Bhde","../components/ControlItem.vue":"yXWm","../components/MenuFooter.vue":"nwtb","../components/MenuButton.vue":"ksMR"
|
48 |
"use strict";function t(t,e){t.mixin({data:function(){return{strings:e.strings}}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={install:t};exports.default=e;
|
49 |
},{}],"uD0a":[function(require,module,exports) {
|
50 |
"use strict";var e=n(require("vue")),t=n(require("./containers/SettingsApp.vue")),r=n(require("./plugins/strings.js"));function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=o({},wptbAdminSettingsData);wptbAdminSettingsData=void 0,e.default.config.productionTip=!1,e.default.use(r.default,{strings:a.strings}),new e.default({components:{SettingsApp:t.default},data:{fieldsData:a.fields,settings:a.data,pluginInfo:a.pluginInfo}}).$mount(a.data.mountId);
|
51 |
-
},{"vue":"HYXJ","./containers/SettingsApp.vue":"pZ9N","./plugins/strings.js":"yEip"}],"
|
52 |
-
var global = arguments[3];
|
53 |
-
var e,t,o=arguments[3],a="__parcel__error__overlay__",r=module.bundle.Module;function n(e){r.call(this,e),this.hot={data:module.bundle.hotData,_acceptCallbacks:[],_disposeCallbacks:[],accept:function(e){this._acceptCallbacks.push(e||function(){})},dispose:function(e){this._disposeCallbacks.push(e)}},module.bundle.hotData=null}module.bundle.Module=n;var c=module.bundle.parent;if(!(c&&c.isParcelRequire||"undefined"==typeof WebSocket)){var i=location.hostname,l="https:"===location.protocol?"wss":"ws",s=new WebSocket(l+"://"+i+":3488/");s.onmessage=function(a){e={},t=[];var r=JSON.parse(a.data);if("update"===r.type){var n=!1;r.assets.forEach(function(e){e.isNew||h(o.parcelRequire,e.id)&&(n=!0)}),(n=n||r.assets.every(function(e){return"css"===e.type&&e.generated.js}))?(console.clear(),r.assets.forEach(function(e){f(o.parcelRequire,e)}),t.forEach(function(e){m(e[0],e[1])})):location.reload&&location.reload()}if("reload"===r.type&&(s.close(),s.onclose=function(){location.reload()}),"error-resolved"===r.type&&(console.log("[parcel] ✨ Error resolved"),p()),"error"===r.type){console.error("[parcel] 🚨 "+r.error.message+"\n"+r.error.stack),p();var c=d(r);document.body.appendChild(c)}}}function p(){var e=document.getElementById(a);e&&e.remove()}function d(e){var t=document.createElement("div");t.id=a;var o=document.createElement("div"),r=document.createElement("pre");return o.innerText=e.error.message,r.innerText=e.error.stack,t.innerHTML='<div style="background: black; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; opacity: 0.85; font-family: Menlo, Consolas, monospace; z-index: 9999;"><span style="background: red; padding: 2px 4px; border-radius: 2px;">ERROR</span><span style="top: 2px; margin-left: 5px; position: relative;">🚨</span><div style="font-size: 18px; font-weight: bold; margin-top: 20px;">'+o.innerHTML+"</div><pre>"+r.innerHTML+"</pre></div>",t}function u(e,t){var o=e.modules;if(!o)return[];var a,r,n,c=[];for(a in o)for(r in o[a][1])((n=o[a][1][r])===t||Array.isArray(n)&&n[n.length-1]===t)&&c.push(a);return e.parent&&(c=c.concat(u(e.parent,t))),c}function f(e,t){var o=e.modules;if(o)if(o[t.id]||!e.parent){var a=new Function("require","module","exports",t.generated.js);t.isNew=!o[t.id],o[t.id]=[a,t.deps]}else e.parent&&f(e.parent,t)}function h(a,r){var n=a.modules;if(n){if(!n[r]&&a.parent)return h(a.parent,r);if(!e[r]){e[r]=!0;var c=a.cache[r];return t.push([a,r]),!!(c&&c.hot&&c.hot._acceptCallbacks.length)||u(o.parcelRequire,r).some(function(e){return h(o.parcelRequire,e)})}}}function m(e,t){var o=e.cache[t];if(e.hotData={},o&&(o.hot.data=e.hotData),o&&o.hot&&o.hot._disposeCallbacks.length&&o.hot._disposeCallbacks.forEach(function(t){t(e.hotData)}),delete e.cache[t],e(t),(o=e.cache[t])&&o.hot&&o.hot._acceptCallbacks.length)return o.hot._acceptCallbacks.forEach(function(e){e()}),!0}
|
54 |
-
},{}]},{},["PMBU","uD0a"], null)
|
5 |
"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function t(t){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?e(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var o=t({},wptbAdminSettingsData.options),n=t({},wptbAdminSettingsData.options),c={data:function(){return{store:o,rawStore:n}},methods:{revertStore:function(){var e=this;Object.keys(this.store).map(function(t){Object.prototype.hasOwnProperty.call(e.store,t)&&(e.store[t]=e.rawStore[t])})}}},i=c;exports.default=i;
|
6 |
},{}],"wm3G":[function(require,module,exports) {
|
7 |
"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function t(t){for(var s=1;s<arguments.length;s++){var a=null!=arguments[s]?arguments[s]:{};s%2?e(Object(a),!0).forEach(function(e){r(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var s={withMessageData:{busy:!1,show:!1,message:"",type:"ok",intervalId:-1,intervalTime:5e3}},a=t({},s.withMessageData),i={data:function(){return s},methods:{isBusy:function(){return this.withMessageData.busy},setMessage:function(e){var r=this,s=t({},a,{},e);this.withMessageData.message=s.message,this.withMessageData.type=s.type,this.withMessageData.show=!0,clearInterval(this.withMessageData.intervalId),this.withMessageData.intervalId=setInterval(function(){r.withMessageData.show=!1},s.intervalTime)},setBusy:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.withMessageData.busy=e}}},n=i;exports.default=n;
|
|
|
|
|
8 |
},{}],"vi91":[function(require,module,exports) {
|
9 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:["logoSrc","logoAlt","pluginName"]};exports.default=e;
|
10 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"wptb-settings-header"},[e("div",{staticClass:"wptb-settings-brand"},[e("img",{attrs:{src:t.logoSrc,alt:t.logoAlt}}),t._v(" "),e("span",{staticClass:"wptb-settings-header-name"},[t._v(" "+t._s(t.pluginName)+" ")])]),t._v(" "),e("div",{staticClass:"wptb-settings-links"},[t._t("default")],2)])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
11 |
+
},{}],"bosS":[function(require,module,exports) {
|
12 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:["name","current"],methods:{activePosition:function(){void 0!==this.current&&this.current!==this.name||this.$emit("activeSectionElement",this.$refs.sectionItem)}},computed:{isActive:function(){return this.activePosition(),void 0===this.current||this.current===this.name}}};exports.default=t;
|
13 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{ref:"sectionItem",staticClass:"wptb-settings-section-item",class:{disabled:!e.isActive},on:{click:function(t){return e.$emit("sectionchange",e.name,t.target)}}},[e._v(" "+e._s(e.name)+"\n")])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
14 |
+
},{}],"jLHe":[function(require,module,exports) {
|
15 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:["activeItem","relativeParent"],methods:{toPx:function(t){return"".concat(t,"px")}},computed:{styleCalculations:function(){if(this.activeItem){var t=this.activeItem.getBoundingClientRect(),e=this.relativeParent.getBoundingClientRect(),i=Math.abs(t.left-e.left);return{width:this.toPx(t.width),height:"2px",bottom:0,left:this.toPx(i)}}return{}}}};exports.default=t;
|
16 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"wptb-menu-active-section-indicator",style:this.styleCalculations})},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
17 |
+
},{}],"yPIx":[function(require,module,exports) {
|
18 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("./SectionItem")),t=n(require("./ActiveSectionIndicator"));function n(e){return e&&e.__esModule?e:{default:e}}var i={model:{prop:"currentSection",event:"updateSection"},props:{child:{type:Boolean,default:!1},items:Array,currentSection:String},components:{SectionItem:e.default,ActiveSectionIndicator:t.default},data:function(){return{innerCurrentSection:"",activeSectionElement:null}},mounted:function(){this.innerCurrentSection=this.currentSection||this.items[0]},watch:{innerCurrentSection:function(e){this.$emit("updateSection",e)}},methods:{handleSectionChange:function(e){this.innerCurrentSection=e},handleActiveSectionElement:function(e){this.activeSectionElement=e}}};exports.default=i;
|
19 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{ref:"wrapper",staticClass:"wptb-settings-sections-wrapper",class:{child:e.child}},[e._l(e.items,function(t){return n("section-item",{key:t,attrs:{name:t,current:e.innerCurrentSection},on:{sectionchange:e.handleSectionChange,activeSectionElement:e.handleActiveSectionElement}})}),e._v(" "),n("active-section-indicator",{attrs:{"relative-parent":e.$refs.wrapper,"active-item":e.activeSectionElement}})],2),e._v(" "),e._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
20 |
+
},{"./SectionItem":"bosS","./ActiveSectionIndicator":"jLHe"}],"vTRD":[function(require,module,exports) {
|
21 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{center:{type:Boolean,default:!1}}};exports.default=e;
|
22 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"wptb-settings-controls-wrapper",class:[this.center?"center":"grid"]},[e("transition",{attrs:{name:"wptb-fade",mode:"out-in"}},[this._t("default")],2)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
23 |
+
},{}],"Bhde":[function(require,module,exports) {
|
24 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:["title"]};exports.default=e;
|
25 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"wptb-setting-control"},[this.title?s("div",{staticClass:"title"},[this._v(this._s(this.title))]):this._e(),this._v(" "),this._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
26 |
+
},{}],"yXWm":[function(require,module,exports) {
|
27 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:["fieldData","modelBind"],methods:{isType:function(e){return this.fieldData.type===e}}};exports.default=e;
|
28 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,i=e.$createElement,d=e._self._c||i;return d("div",[e.isType("multiCheckbox")?d("div",e._l(e.fieldData.options,function(i,a){return d("div",{key:i,staticClass:"wptb-setting-control-row"},[d("input",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[e.fieldData.id],expression:"modelBind[fieldData.id]"}],attrs:{id:e.fieldData.id,type:"checkbox"},domProps:{value:a,checked:Array.isArray(e.modelBind[e.fieldData.id])?e._i(e.modelBind[e.fieldData.id],a)>-1:e.modelBind[e.fieldData.id]},on:{change:function(i){var d=e.modelBind[e.fieldData.id],t=i.target,l=!!t.checked;if(Array.isArray(d)){var o=a,n=e._i(d,o);t.checked?n<0&&e.$set(e.modelBind,e.fieldData.id,d.concat([o])):n>-1&&e.$set(e.modelBind,e.fieldData.id,d.slice(0,n).concat(d.slice(n+1)))}else e.$set(e.modelBind,e.fieldData.id,l)}}}),e._v(" "),d("label",{attrs:{for:e.fieldData.id}},[e._v(e._s(i))])])}),0):e.isType("checkbox")?d("div",[d("div",{staticClass:"wptb-setting-control-row"},[d("input",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[e.fieldData.id],expression:"modelBind[fieldData.id]"}],attrs:{id:e.fieldData.id,type:"checkbox"},domProps:{checked:Array.isArray(e.modelBind[e.fieldData.id])?e._i(e.modelBind[e.fieldData.id],null)>-1:e.modelBind[e.fieldData.id]},on:{change:function(i){var d=e.modelBind[e.fieldData.id],a=i.target,t=!!a.checked;if(Array.isArray(d)){var l=e._i(d,null);a.checked?l<0&&e.$set(e.modelBind,e.fieldData.id,d.concat([null])):l>-1&&e.$set(e.modelBind,e.fieldData.id,d.slice(0,l).concat(d.slice(l+1)))}else e.$set(e.modelBind,e.fieldData.id,t)}}}),e._v(" "),d("label",{attrs:{for:e.fieldData.id}},[e._v(e._s(e.fieldData.label))])])]):e.isType("dropdown")?d("div",[d("div",{staticClass:"wptb-setting-control-row"},[d("select",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[e.fieldData.id],expression:"modelBind[fieldData.id]"}],attrs:{id:e.fieldData.id},on:{change:function(i){var d=Array.prototype.filter.call(i.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.$set(e.modelBind,e.fieldData.id,i.target.multiple?d:d[0])}}},e._l(e.fieldData.options,function(i){return d("option",{key:i.label,domProps:{value:i.value}},[e._v(" "+e._s(i.label)+" ")])}),0),e._v(" "),d("label",{attrs:{for:e.fieldData.id}},[e._v(e._s(e.fieldData.label))]),e._v(" "),e._t("default")],2)]):e._e()])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
29 |
+
},{}],"P9T4":[function(require,module,exports) {
|
30 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../mixins/withMessage"));function t(e){return e&&e.__esModule?e:{default:e}}var r={mixins:[e.default]};exports.default=r;
|
31 |
+
(function(){var s=exports.default||module.exports;"function"==typeof s&&(s=s.options),Object.assign(s,{render:function(){var s=this,t=s.$createElement,e=s._self._c||t;return e("div",{staticClass:"wptb-settings-messages"},[s.withMessageData.busy?e("span",{staticClass:"dashicons dashicons-image-rotate wptb-settings-fetching"}):s._e(),s._v(" "),e("transition",{attrs:{name:"wptb-fade"}},[s.withMessageData.show?e("span",{staticClass:"wptb-settings-message",class:[s.withMessageData.type]},[s._v(s._s(s.withMessageData.message))]):s._e()])],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
32 |
+
},{"../mixins/withMessage":"wm3G"}],"ksMR":[function(require,module,exports) {
|
33 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{disabled:Boolean,type:{type:String,default:"primary"},size:{type:String,default:"normal"}},methods:{handleClick:function(){this.disabled||this.$emit("click")}}};exports.default=e;
|
34 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"wptb-settings-button",class:[{disabled:this.disabled},this.type,this.size],on:{click:this.handleClick}},[this._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
35 |
+
},{}],"nwtb":[function(require,module,exports) {
|
|
|
|
|
|
|
|
|
36 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("./MessageDisplay.vue")),s=t(require("./MenuButton"));function t(e){return e&&e.__esModule?e:{default:e}}var u={props:["messageType","messageShow","messageBody","messageBusy"],components:{MessageDisplay:e.default,MenuButton:s.default}};exports.default=u;
|
37 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"wptb-settings-footer"},[s("message-display",{attrs:{busy:e.messageBusy,message:e.messageBody,show:e.messageShow,type:e.messageType}}),e._v(" "),s("div",{staticClass:"wptb-settings-button-container"},[s("menu-button",{staticStyle:{visibility:"hidden"}},[e._v("dummy")]),e._v(" "),e._t("default")],2)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
38 |
+
},{"./MessageDisplay.vue":"P9T4","./MenuButton":"ksMR"}],"pZ9N":[function(require,module,exports) {
|
39 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=c(require("../mixins/withStore.js")),t=c(require("../mixins/withMessage")),r=c(require("../components/MenuHeader.vue")),n=c(require("../components/Sections.vue")),i=c(require("../components/MenuContent.vue")),o=c(require("../components/SettingCard.vue")),s=c(require("../components/ControlItem.vue")),u=c(require("../components/MenuFooter.vue")),a=c(require("../components/MenuButton.vue"));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){return m(e)||h(e,t)||p(e,t)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var s,u=e[Symbol.iterator]();!(n=(s=u.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(a){i=!0,o=a}finally{try{n||null==u.return||u.return()}finally{if(i)throw o}}return r}}function m(e){if(Array.isArray(e))return e}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v={props:["fieldsData","settings","pluginInfo"],components:{MenuButton:a.default,MenuHeader:r.default,Sections:n.default,MenuContent:i.default,SettingCard:o.default,ControlItem:s.default,MenuFooter:u.default},mixins:[e.default,t.default],data:function(){return{sections:[],currentSection:"",parsedFields:{},resetActive:!1,canSubmit:!1,fetching:!1}},watch:{store:{handler:function(){this.resetActive?(this.canSubmit=!1,this.resetActive=!1):this.canSubmit=!0},deep:!0},fetching:function(e){this.setBusy(e)}},beforeMount:function(){var e=this;Object.keys(this.fieldsData).map(function(t){if(Object.prototype.hasOwnProperty.call(e.fieldsData,t)){var r=e.fieldsData[t].section;void 0===e.parsedFields[r]&&(e.parsedFields[r]=[]),e.parsedFields[r].push(y({},e.fieldsData[t],{id:t})),e.sections.push(r)}return null});var t=f(Object.keys(this.parsedFields).map(function(t){if(Object.prototype.hasOwnProperty.call(e.parsedFields,t))return t}),1);this.currentSection=t[0],this.sections=Array.from(new Set(this.sections))},computed:{currentFields:function(){return this.parsedFields[this.currentSection]}},methods:{resetStore:function(){this.canSubmit&&(this.revertStore(),this.resetActive=!0,this.setMessage({message:this.strings.revertMessage}))},submitSettings:function(){var e=this;if(this.canSubmit){var t=new FormData;t.append("nonce",this.settings.nonce),t.append("action",this.settings.action),t.append("options",JSON.stringify(this.store)),this.canSubmit=!1,this.fetching=!0,fetch(this.settings.ajaxUrl,{method:"POST",body:t}).then(function(e){if(e.ok)return e.json()}).then(function(t){if(t.error)throw new Error(t.error);e.setMessage({message:t.message})}).catch(function(t){console.error(t),e.setMessage({type:"error",message:t})}).finally(function(){e.fetching=!1})}}}};exports.default=v;
|
40 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wptb-settings-wrapper"},[n("menu-header",{attrs:{"logo-src":t.pluginInfo.logo,"logo-alt":t.strings.logoAlt,"plugin-name":t.pluginInfo.pluginName}},[n("a",{attrs:{href:t.pluginInfo.pluginHomepage}},[t._v(t._s(t.strings.homepage))])]),t._v(" "),n("sections",{attrs:{items:t.sections},model:{value:t.currentSection,callback:function(e){t.currentSection=e},expression:"currentSection"}}),t._v(" "),n("menu-content",t._l(t.currentFields,function(e){return n("setting-card",{key:e.id,attrs:{title:e.label}},[n("control-item",{attrs:{"field-data":e,modelBind:t.store}})],1)}),1),t._v(" "),n("menu-footer",[n("menu-button",{attrs:{type:"danger",disabled:!t.canSubmit},on:{click:t.resetStore}},[t._v(t._s(t.strings.revert))]),t._v(" "),n("menu-button",{attrs:{type:"primary",disabled:!t.canSubmit},on:{click:t.submitSettings}},[t._v(t._s(t.strings.submit))])],1)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
41 |
+
},{"../mixins/withStore.js":"D1kn","../mixins/withMessage":"wm3G","../components/MenuHeader.vue":"vi91","../components/Sections.vue":"yPIx","../components/MenuContent.vue":"vTRD","../components/SettingCard.vue":"Bhde","../components/ControlItem.vue":"yXWm","../components/MenuFooter.vue":"nwtb","../components/MenuButton.vue":"ksMR"}],"yEip":[function(require,module,exports) {
|
42 |
"use strict";function t(t,e){t.mixin({data:function(){return{strings:e.strings}}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={install:t};exports.default=e;
|
43 |
},{}],"uD0a":[function(require,module,exports) {
|
44 |
"use strict";var e=n(require("vue")),t=n(require("./containers/SettingsApp.vue")),r=n(require("./plugins/strings.js"));function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=o({},wptbAdminSettingsData);wptbAdminSettingsData=void 0,e.default.config.productionTip=!1,e.default.use(r.default,{strings:a.strings}),new e.default({components:{SettingsApp:t.default},data:{fieldsData:a.fields,settings:a.data,pluginInfo:a.pluginInfo}}).$mount(a.data.mountId);
|
45 |
+
},{"vue":"HYXJ","./containers/SettingsApp.vue":"pZ9N","./plugins/strings.js":"yEip"}]},{},["uD0a"], null)
|
|
|
|
|
|
inc/admin/js/WPTB_BuilderControls.js
CHANGED
@@ -3,103 +3,115 @@ var global = arguments[3];
|
|
3 |
var e=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=Object.freeze({});function n(e){return null==e}function r(e){return null!=e}function i(e){return!0===e}function o(e){return!1===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}var c=Object.prototype.toString;function u(e){return c.call(e).slice(8,-1)}function l(e){return"[object Object]"===c.call(e)}function f(e){return"[object RegExp]"===c.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return r(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var y=m("slot,component",!0),g=m("key,ref,slot,slot-scope,is");function _(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function $(e,t){return b.call(e,t)}function w(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var x=/-(\w)/g,C=w(function(e){return e.replace(x,function(e,t){return t?t.toUpperCase():""})}),A=w(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),k=/\B([A-Z])/g,O=w(function(e){return e.replace(k,"-$1").toLowerCase()});function S(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function T(e,t){return e.bind(t)}var N=Function.prototype.bind?T:S;function j(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function E(e,t){for(var n in t)e[n]=t[n];return e}function M(e){for(var t={},n=0;n<e.length;n++)e[n]&&E(t,e[n]);return t}function D(e,t,n){}var L=function(e,t,n){return!1},I=function(e){return e};function F(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}function P(e,t){if(e===t)return!0;var n=s(e),r=s(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every(function(e,n){return P(e,t[n])});if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),c=Object.keys(t);return a.length===c.length&&a.every(function(n){return P(e[n],t[n])})}catch(u){return!1}}function R(e,t){for(var n=0;n<e.length;n++)if(P(e[n],t))return n;return-1}function H(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var B="data-server-rendered",U=["component","directive","filter"],z=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],V={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:L,isReservedAttr:L,isUnknownElement:L,getTagNamespace:D,parsePlatformTagName:I,mustUseProp:L,async:!0,_lifecycleHooks:z},J=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function K(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function q(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var W=new RegExp("[^"+J.source+".$_\\d]");function Z(e){if(!W.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var G,X="__proto__"in{},Y="undefined"!=typeof window,Q="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,ee=Q&&WXEnvironment.platform.toLowerCase(),te=Y&&window.navigator.userAgent.toLowerCase(),ne=te&&/msie|trident/.test(te),re=te&&te.indexOf("msie 9.0")>0,ie=te&&te.indexOf("edge/")>0,oe=te&&te.indexOf("android")>0||"android"===ee,ae=te&&/iphone|ipad|ipod|ios/.test(te)||"ios"===ee,se=te&&/chrome\/\d+/.test(te)&&!ie,ce=te&&/phantomjs/.test(te),ue=te&&te.match(/firefox\/(\d+)/),le={}.watch,fe=!1;if(Y)try{var pe={};Object.defineProperty(pe,"passive",{get:function(){fe=!0}}),window.addEventListener("test-passive",null,pe)}catch(Xl){}var de=function(){return void 0===G&&(G=!Y&&!Q&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),G},ve=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function he(e){return"function"==typeof e&&/native code/.test(e.toString())}var me,ye="undefined"!=typeof Symbol&&he(Symbol)&&"undefined"!=typeof Reflect&&he(Reflect.ownKeys);me="undefined"!=typeof Set&&he(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ge,_e,be,$e,we=D,xe=D,Ce=D,Ae=D,ke=0,Oe=function(){this.id=ke++,this.subs=[]};Oe.prototype.addSub=function(e){this.subs.push(e)},Oe.prototype.removeSub=function(e){_(this.subs,e)},Oe.prototype.depend=function(){Oe.target&&Oe.target.addDep(this)},Oe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},Oe.target=null;var Se=[];function Te(e){Se.push(e),Oe.target=e}function Ne(){Se.pop(),Oe.target=Se[Se.length-1]}var je=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Ee={child:{configurable:!0}};Ee.child.get=function(){return this.componentInstance},Object.defineProperties(je.prototype,Ee);var Me=function(e){void 0===e&&(e="");var t=new je;return t.text=e,t.isComment=!0,t};function De(e){return new je(void 0,void 0,void 0,String(e))}function Le(e){var t=new je(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Ie=Array.prototype,Fe=Object.create(Ie),Pe=["push","pop","shift","unshift","splice","sort","reverse"];Pe.forEach(function(e){var t=Ie[e];q(Fe,e,function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o})});var Re=Object.getOwnPropertyNames(Fe),He=!0;function Be(e){He=e}var Ue=function(e){this.value=e,this.dep=new Oe,this.vmCount=0,q(e,"__ob__",this),Array.isArray(e)?(X?ze(e,Fe):Ve(e,Fe,Re),this.observeArray(e)):this.walk(e)};function ze(e,t){e.__proto__=t}function Ve(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];q(e,o,t[o])}}function Je(e,t){var n;if(s(e)&&!(e instanceof je))return $(e,"__ob__")&&e.__ob__ instanceof Ue?n=e.__ob__:He&&!de()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Ue(e)),t&&n&&n.vmCount++,n}function Ke(e,t,n,r,i){var o=new Oe,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var u=!i&&Je(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return Oe.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(t)&&Ze(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!=t&&r!=r||s&&!c||(c?c.call(e,t):n=t,u=!i&&Je(t),o.notify())}})}}function qe(e,t,n){if(Array.isArray(e)&&p(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Ke(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function We(e,t){if(Array.isArray(e)&&p(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||$(e,t)&&(delete e[t],n&&n.dep.notify())}}function Ze(e){for(var t=void 0,n=0,r=e.length;n<r;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Ze(t)}Ue.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Ke(e,t[n])},Ue.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Je(e[t])};var Ge=V.optionMergeStrategies;function Xe(e,t){if(!t)return e;for(var n,r,i,o=ye?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=e[n],i=t[n],$(e,n)?r!==i&&l(r)&&l(i)&&Xe(r,i):qe(e,n,i));return e}function Ye(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?Xe(r,i):i}:t?e?function(){return Xe("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Qe(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?et(n):n}function et(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function tt(e,t,n,r){var i=Object.create(e||null);return t?E(i,t):i}Ge.data=function(e,t,n){return n?Ye(e,t,n):t&&"function"!=typeof t?e:Ye(e,t)},z.forEach(function(e){Ge[e]=Qe}),U.forEach(function(e){Ge[e+"s"]=tt}),Ge.watch=function(e,t,n,r){if(e===le&&(e=void 0),t===le&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in E(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Ge.props=Ge.methods=Ge.inject=Ge.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return E(i,e),t&&E(i,t),i},Ge.provide=Ye;var nt=function(e,t){return void 0===t?e:t};function rt(e){for(var t in e.components)it(t)}function it(e){new RegExp("^[a-zA-Z][\\-\\.0-9_"+J.source+"]*$").test(e)||we('Invalid component name: "'+e+'". Component names should conform to valid custom element name in html5 specification.'),(y(e)||V.isReservedTag(e))&&we("Do not use built-in or reserved HTML elements as component id: "+e)}function ot(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[C(i)]={type:null});else if(l(n))for(var a in n)i=n[a],o[C(a)]=l(i)?i:{type:i};else 0;e.props=o}}function at(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(l(n))for(var o in n){var a=n[o];r[o]=l(a)?E({from:o},a):{from:a}}else 0}}function st(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}function ct(e,t,n){l(t)||we('Invalid value for option "'+e+'": expected an Object, but got '+u(t)+".",n)}function ut(e,t,n){if("function"==typeof t&&(t=t.options),ot(t,n),at(t,n),st(t),!t._base&&(t.extends&&(e=ut(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=ut(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)$(e,o)||s(o);function s(r){var i=Ge[r]||nt;a[r]=i(e[r],t[r],n,r)}return a}function lt(e,t,n,r){if("string"==typeof n){var i=e[t];if($(i,n))return i[n];var o=C(n);if($(i,o))return i[o];var a=A(o);if($(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function ft(e,t,n,r){var i=t[e],o=!$(n,e),a=n[e],s=gt(Boolean,i.type);if(s>-1)if(o&&!$(i,"default"))a=!1;else if(""===a||a===O(e)){var c=gt(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=pt(r,i,e);var u=He;Be(!0),Je(a),Be(u)}return a}function pt(e,t,n){if($(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"==typeof r&&"Function"!==mt(t.type)?r.call(e):r}}function dt(e,t,n,r,i){if(e.required&&i)we('Missing required prop: "'+t+'"',r);else if(null!=n||e.required){var o=e.type,a=!o||!0===o,s=[];if(o){Array.isArray(o)||(o=[o]);for(var c=0;c<o.length&&!a;c++){var u=ht(n,o[c]);s.push(u.expectedType||""),a=u.valid}}if(a){var l=e.validator;l&&(l(n)||we('Invalid prop: custom validator check failed for prop "'+t+'".',r))}else we(_t(t,n,s),r)}}var vt=/^(String|Number|Boolean|Function|Symbol)$/;function ht(e,t){var n,r=mt(t);if(vt.test(r)){var i=typeof e;(n=i===r.toLowerCase())||"object"!==i||(n=e instanceof t)}else n="Object"===r?l(e):"Array"===r?Array.isArray(e):e instanceof t;return{valid:n,expectedType:r}}function mt(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function yt(e,t){return mt(e)===mt(t)}function gt(e,t){if(!Array.isArray(t))return yt(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(yt(t[n],e))return n;return-1}function _t(e,t,n){var r='Invalid prop: type check failed for prop "'+e+'". Expected '+n.map(A).join(", "),i=n[0],o=u(t),a=bt(t,i),s=bt(t,o);return 1===n.length&&$t(i)&&!wt(i,o)&&(r+=" with value "+a),r+=", got "+o+" ",$t(o)&&(r+="with value "+s+"."),r}function bt(e,t){return"String"===t?'"'+e+'"':"Number"===t?""+Number(e):""+e}function $t(e){return["string","number","boolean"].some(function(t){return e.toLowerCase()===t})}function wt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.some(function(e){return"boolean"===e.toLowerCase()})}function xt(e,t,n){Te();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(Xl){At(Xl,r,"errorCaptured hook")}}At(e,t,n)}finally{Ne()}}function Ct(e,t,n,r,i){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&d(o)&&!o._handled&&(o.catch(function(e){return xt(e,r,i+" (Promise/async)")}),o._handled=!0)}catch(Xl){xt(Xl,r,i)}return o}function At(e,t,n){if(V.errorHandler)try{return V.errorHandler.call(null,e,t,n)}catch(Xl){Xl!==e&&kt(Xl,null,"config.errorHandler")}kt(e,t,n)}function kt(e,t,n){if(!Y&&!Q||"undefined"==typeof console)throw e;console.error(e)}var Ot,St,Tt,Nt,jt,Et,Mt,Dt,Lt,It,Ft,Pt,Rt=!1,Ht=[],Bt=!1;function Ut(){Bt=!1;var e=Ht.slice(0);Ht.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&he(Promise)){var zt=Promise.resolve();Ot=function(){zt.then(Ut),ae&&setTimeout(D)},Rt=!0}else if(ne||"undefined"==typeof MutationObserver||!he(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ot="undefined"!=typeof setImmediate&&he(setImmediate)?function(){setImmediate(Ut)}:function(){setTimeout(Ut,0)};else{var Vt=1,Jt=new MutationObserver(Ut),Kt=document.createTextNode(String(Vt));Jt.observe(Kt,{characterData:!0}),Ot=function(){Vt=(Vt+1)%2,Kt.data=String(Vt)},Rt=!0}function qt(e,t){var n;if(Ht.push(function(){if(e)try{e.call(t)}catch(Xl){xt(Xl,t,"nextTick")}else n&&n(t)}),Bt||(Bt=!0,Ot()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var Wt=new me;function Zt(e){Gt(e,Wt),Wt.clear()}function Gt(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!s(e)||Object.isFrozen(e)||e instanceof je)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i)for(n=e.length;n--;)Gt(e[n],t);else for(n=(r=Object.keys(e)).length;n--;)Gt(e[r[n]],t)}}var Xt=w(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}});function Yt(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return Ct(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)Ct(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function Qt(e,t,r,o,a,s){var c,u,l,f;for(c in e)u=e[c],l=t[c],f=Xt(c),n(u)||(n(l)?(n(u.fns)&&(u=e[c]=Yt(u,s)),i(f.once)&&(u=e[c]=a(f.name,u,f.capture)),r(f.name,u,f.capture,f.passive,f.params)):u!==l&&(l.fns=u,e[c]=l));for(c in t)n(e[c])&&o((f=Xt(c)).name,t[c],f.capture)}function en(e,t,o){var a;e instanceof je&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function c(){o.apply(this,arguments),_(a.fns,c)}n(s)?a=Yt([c]):r(s.fns)&&i(s.merged)?(a=s).fns.push(c):a=Yt([s,c]),a.merged=!0,e[t]=a}function tn(e,t,i){var o=t.options.props;if(!n(o)){var a={},s=e.attrs,c=e.props;if(r(s)||r(c))for(var u in o){var l=O(u);nn(a,c,u,l,!0)||nn(a,s,u,l,!1)}return a}}function nn(e,t,n,i,o){if(r(t)){if($(t,n))return e[n]=t[n],o||delete t[n],!0;if($(t,i))return e[n]=t[i],o||delete t[i],!0}return!1}function rn(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function on(e){return a(e)?[De(e)]:Array.isArray(e)?sn(e):void 0}function an(e){return r(e)&&r(e.text)&&o(e.isComment)}function sn(e,t){var o,s,c,u,l=[];for(o=0;o<e.length;o++)n(s=e[o])||"boolean"==typeof s||(u=l[c=l.length-1],Array.isArray(s)?s.length>0&&(an((s=sn(s,(t||"")+"_"+o))[0])&&an(u)&&(l[c]=De(u.text+s[0].text),s.shift()),l.push.apply(l,s)):a(s)?an(u)?l[c]=De(u.text+s):""!==s&&l.push(De(s)):an(s)&&an(u)?l[c]=De(u.text+s.text):(i(e._isVList)&&r(s.tag)&&n(s.key)&&r(t)&&(s.key="__vlist"+t+"_"+o+"__"),l.push(s)));return l}function cn(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}function un(e){var t=ln(e.$options.inject,e);t&&(Be(!1),Object.keys(t).forEach(function(n){Ke(e,n,t[n])}),Be(!0))}function ln(e,t){if(e){for(var n=Object.create(null),r=ye?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=e[o].from,s=t;s;){if(s._provided&&$(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[o]){var c=e[o].default;n[o]="function"==typeof c?c.call(t):c}else 0}}return n}}function fn(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(pn)&&delete n[u];return n}function pn(e){return e.isComment&&!e.asyncFactory||" "===e.text}function dn(e,n,r){var i,o=Object.keys(n).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==t&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=vn(n,c,e[c]))}else i={};for(var u in n)u in i||(i[u]=hn(n,u));return e&&Object.isExtensible(e)&&(e._normalized=i),q(i,"$stable",a),q(i,"$key",s),q(i,"$hasNormal",o),i}function vn(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:on(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function hn(e,t){return function(){return e[t]}}function mn(e,t){var n,i,o,a,c;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),i=0,o=e.length;i<o;i++)n[i]=t(e[i],i);else if("number"==typeof e)for(n=new Array(e),i=0;i<e;i++)n[i]=t(i+1,i);else if(s(e))if(ye&&e[Symbol.iterator]){n=[];for(var u=e[Symbol.iterator](),l=u.next();!l.done;)n.push(t(l.value,n.length)),l=u.next()}else for(a=Object.keys(e),n=new Array(a.length),i=0,o=a.length;i<o;i++)c=a[i],n[i]=t(e[c],c,i);return r(n)||(n=[]),n._isVList=!0,n}function yn(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=E(E({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function gn(e){return lt(this.$options,"filters",e,!0)||I}function _n(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function bn(e,t,n,r,i){var o=V.keyCodes[t]||n;return i&&r&&!V.keyCodes[t]?_n(i,r):o?_n(o,e):r?O(r)!==t:void 0}function $n(e,t,n,r,i){if(n)if(s(n)){var o;Array.isArray(n)&&(n=M(n));var a=function(a){if("class"===a||"style"===a||g(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||V.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=C(a),u=O(a);c in o||u in o||(o[a]=n[a],i&&((e.on||(e.on={}))["update:"+a]=function(e){n[a]=e}))};for(var c in n)a(c)}else;return e}function wn(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t?r:(Cn(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r)}function xn(e,t,n){return Cn(e,"__once__"+t+(n?"_"+n:""),!0),e}function Cn(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&An(e[r],t+"_"+r,n);else An(e,t,n)}function An(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function kn(e,t){if(t)if(l(t)){var n=e.on=e.on?E({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function On(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?On(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Sn(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Tn(e,t){return"string"==typeof e?t+e:e}function Nn(e){e._o=xn,e._n=h,e._s=v,e._l=mn,e._t=yn,e._q=P,e._i=R,e._m=wn,e._f=gn,e._k=bn,e._b=$n,e._v=De,e._e=Me,e._u=On,e._g=kn,e._d=Sn,e._p=Tn}function jn(e,n,r,o,a){var s,c=this,u=a.options;$(o,"_uid")?(s=Object.create(o))._original=o:(s=o,o=o._original);var l=i(u._compiled),f=!l;this.data=e,this.props=n,this.children=r,this.parent=o,this.listeners=e.on||t,this.injections=ln(u.inject,o),this.slots=function(){return c.$slots||dn(e.scopedSlots,c.$slots=fn(r,o)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return dn(e.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=dn(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var i=Vn(s,e,t,n,r,f);return i&&!Array.isArray(i)&&(i.fnScopeId=u._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return Vn(s,e,t,n,r,f)}}function En(e,n,i,o,a){var s=e.options,c={},u=s.props;if(r(u))for(var l in u)c[l]=ft(l,u,n||t);else r(i.attrs)&&Dn(c,i.attrs),r(i.props)&&Dn(c,i.props);var f=new jn(i,c,a,o,e),p=s.render.call(null,f._c,f);if(p instanceof je)return Mn(p,i,f.parent,s,f);if(Array.isArray(p)){for(var d=on(p)||[],v=new Array(d.length),h=0;h<d.length;h++)v[h]=Mn(d[h],i,f.parent,s,f);return v}}function Mn(e,t,n,r,i){var o=Le(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function Dn(e,t){for(var n in t)e[C(n)]=t[n]}Nn(jn.prototype);var Ln={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Ln.prepatch(n,n)}else{(e.componentInstance=Pn(e,ur)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;hr(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,_r(n,"mounted")),e.data.keepAlive&&(t._isMounted?Dr(n):yr(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?gr(t,!0):t.$destroy())}},In=Object.keys(Ln);function Fn(e,t,o,a,c){if(!n(e)){var u=o.$options._base;if(s(e)&&(e=u.extend(e)),"function"==typeof e){var l;if(n(e.cid)&&void 0===(e=er(l=e,u)))return Qn(l,t,o,a,c);t=t||{},ri(e),r(t.model)&&Bn(e.options,t);var f=tn(t,e,c);if(i(e.options.functional))return En(e,f,t,o,a);var p=t.on;if(t.on=t.nativeOn,i(e.options.abstract)){var d=t.slot;t={},d&&(t.slot=d)}Rn(t);var v=e.options.name||c;return new je("vue-component-"+e.cid+(v?"-"+v:""),t,void 0,void 0,void 0,o,{Ctor:e,propsData:f,listeners:p,tag:c,children:a},l)}}}function Pn(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;return r(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new e.componentOptions.Ctor(n)}function Rn(e){for(var t=e.hook||(e.hook={}),n=0;n<In.length;n++){var r=In[n],i=t[r],o=Ln[r];i===o||i&&i._merged||(t[r]=i?Hn(o,i):o)}}function Hn(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Bn(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),a=o[i],s=t.model.callback;r(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[i]=[s].concat(a)):o[i]=s}var Un=1,zn=2;function Vn(e,t,n,r,o,s){return(Array.isArray(n)||a(n))&&(o=r,r=n,n=void 0),i(s)&&(o=zn),Jn(e,t,n,r,o)}function Jn(e,t,n,i,o){if(r(n)&&r(n.__ob__))return Me();if(r(n)&&r(n.is)&&(t=n.is),!t)return Me();var a,s,c;(Array.isArray(i)&&"function"==typeof i[0]&&((n=n||{}).scopedSlots={default:i[0]},i.length=0),o===zn?i=on(i):o===Un&&(i=rn(i)),"string"==typeof t)?(s=e.$vnode&&e.$vnode.ns||V.getTagNamespace(t),a=V.isReservedTag(t)?new je(V.parsePlatformTagName(t),n,i,void 0,void 0,e):n&&n.pre||!r(c=lt(e.$options,"components",t))?new je(t,n,i,void 0,void 0,e):Fn(c,n,e,i,t)):a=Fn(t,n,e,i);return Array.isArray(a)?a:r(a)?(r(s)&&Kn(a,s),r(n)&&qn(n),a):Me()}function Kn(e,t,o){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,o=!0),r(e.children))for(var a=0,s=e.children.length;a<s;a++){var c=e.children[a];r(c.tag)&&(n(c.ns)||i(o)&&"svg"!==c.tag)&&Kn(c,t,o)}}function qn(e){s(e.style)&&Zt(e.style),s(e.class)&&Zt(e.class)}function Wn(e){e._vnode=null,e._staticTrees=null;var n=e.$options,r=e.$vnode=n._parentVnode,i=r&&r.context;e.$slots=fn(n._renderChildren,i),e.$scopedSlots=t,e._c=function(t,n,r,i){return Vn(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Vn(e,t,n,r,i,!0)};var o=r&&r.data;Ke(e,"$attrs",o&&o.attrs||t,null,!0),Ke(e,"$listeners",n._parentListeners||t,null,!0)}var Zn,Gn=null;function Xn(e){Nn(e.prototype),e.prototype.$nextTick=function(e){return qt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=dn(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Gn=t,e=r.call(t._renderProxy,t.$createElement)}catch(Xl){xt(Xl,t,"render"),e=t._vnode}finally{Gn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof je||(e=Me()),e.parent=i,e}}function Yn(e,t){return(e.__esModule||ye&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function Qn(e,t,n,r,i){var o=Me();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function er(e,t){if(i(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;var o=Gn;if(o&&r(e.owners)&&-1===e.owners.indexOf(o)&&e.owners.push(o),i(e.loading)&&r(e.loadingComp))return e.loadingComp;if(o&&!r(e.owners)){var a=e.owners=[o],c=!0,u=null,l=null;o.$on("hook:destroyed",function(){return _(a,o)});var f=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==l&&(clearTimeout(l),l=null))},p=H(function(n){e.resolved=Yn(n,t),c?a.length=0:f(!0)}),v=H(function(t){r(e.errorComp)&&(e.error=!0,f(!0))}),h=e(p,v);return s(h)&&(d(h)?n(e.resolved)&&h.then(p,v):d(h.component)&&(h.component.then(p,v),r(h.error)&&(e.errorComp=Yn(h.error,t)),r(h.loading)&&(e.loadingComp=Yn(h.loading,t),0===h.delay?e.loading=!0:u=setTimeout(function(){u=null,n(e.resolved)&&n(e.error)&&(e.loading=!0,f(!1))},h.delay||200)),r(h.timeout)&&(l=setTimeout(function(){l=null,n(e.resolved)&&v(null)},h.timeout)))),c=!1,e.loading?e.loadingComp:e.resolved}}function tr(e){return e.isComment&&e.asyncFactory}function nr(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&(r(n.componentOptions)||tr(n)))return n}}function rr(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&sr(e,t)}function ir(e,t){Zn.$on(e,t)}function or(e,t){Zn.$off(e,t)}function ar(e,t){var n=Zn;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function sr(e,t,n){Zn=e,Qt(t,n||{},ir,or,ar,e),Zn=void 0}function cr(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;for(var s=a.length;s--;)if((o=a[s])===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?j(n):n;for(var r=j(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;o<a;o++)Ct(n[o],t,r,t,i)}return t}}var ur=null,lr=!1;function fr(e){var t=ur;return ur=e,function(){ur=t}}function pr(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function dr(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=fr(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){_r(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||_(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),_r(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function vr(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=Me),_r(e,"beforeMount"),r=function(){e._update(e._render(),n)},new Pr(e,r,D,{before:function(){e._isMounted&&!e._isDestroyed&&_r(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,_r(e,"mounted")),e}function hr(e,n,r,i,o){var a=i.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==t&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),u=!!(o||e.$options._renderChildren||c);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o,e.$attrs=i.data.attrs||t,e.$listeners=r||t,n&&e.$options.props){Be(!1);for(var l=e._props,f=e.$options._propKeys||[],p=0;p<f.length;p++){var d=f[p],v=e.$options.props;l[d]=ft(d,v,n,e)}Be(!0),e.$options.propsData=n}r=r||t;var h=e.$options._parentListeners;e.$options._parentListeners=r,sr(e,r,h),u&&(e.$slots=fn(o,i.context),e.$forceUpdate())}function mr(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function yr(e,t){if(t){if(e._directInactive=!1,mr(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)yr(e.$children[n]);_r(e,"activated")}}function gr(e,t){if(!(t&&(e._directInactive=!0,mr(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)gr(e.$children[n]);_r(e,"deactivated")}}function _r(e,t){Te();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Ct(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),Ne()}var br=100,$r=[],wr=[],xr={},Cr={},Ar=!1,kr=!1,Or=0;function Sr(){Or=$r.length=wr.length=0,xr={},Ar=kr=!1}var Tr=0,Nr=Date.now;if(Y&&!ne){var jr=window.performance;jr&&"function"==typeof jr.now&&Nr()>document.createEvent("Event").timeStamp&&(Nr=function(){return jr.now()})}function Er(){var e,t;for(Tr=Nr(),kr=!0,$r.sort(function(e,t){return e.id-t.id}),Or=0;Or<$r.length;Or++)(e=$r[Or]).before&&e.before(),t=e.id,xr[t]=null,e.run();var n=wr.slice(),r=$r.slice();Sr(),Lr(n),Mr(r),ve&&V.devtools&&ve.emit("flush")}function Mr(e){for(var t=e.length;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&_r(r,"updated")}}function Dr(e){e._inactive=!1,wr.push(e)}function Lr(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,yr(e[t],!0)}function Ir(e){var t=e.id;if(null==xr[t]){if(xr[t]=!0,kr){for(var n=$r.length-1;n>Or&&$r[n].id>e.id;)n--;$r.splice(n+1,0,e)}else $r.push(e);Ar||(Ar=!0,qt(Er))}}var Fr=0,Pr=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Fr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new me,this.newDepIds=new me,this.expression="","function"==typeof t?this.getter=t:(this.getter=Z(t),this.getter||(this.getter=D)),this.value=this.lazy?void 0:this.get()};Pr.prototype.get=function(){var e;Te(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Xl){if(!this.user)throw Xl;xt(Xl,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Zt(e),Ne(),this.cleanupDeps()}return e},Pr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Pr.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Pr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Ir(this)},Pr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Xl){xt(Xl,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Pr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Pr.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Pr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||_(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Rr={enumerable:!0,configurable:!0,get:D,set:D};function Hr(e,t,n){Rr.get=function(){return this[t][n]},Rr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Rr)}function Br(e){e._watchers=[];var t=e.$options;t.props&&Ur(e,t.props),t.methods&&Gr(e,t.methods),t.data?zr(e):Je(e._data={},!0),t.computed&&Kr(e,t.computed),t.watch&&t.watch!==le&&Xr(e,t.watch)}function Ur(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||Be(!1);var a=function(o){i.push(o);var a=ft(o,t,n,e);Ke(r,o,a),o in e||Hr(e,"_props",o)};for(var s in t)a(s);Be(!0)}function zr(e){var t=e.$options.data;l(t=e._data="function"==typeof t?Vr(t,e):t||{})||(t={});for(var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);i--;){var o=n[i];0,r&&$(r,o)||K(o)||Hr(e,"_data",o)}Je(t,!0)}function Vr(e,t){Te();try{return e.call(t,t)}catch(Xl){return xt(Xl,t,"data()"),{}}finally{Ne()}}var Jr={lazy:!0};function Kr(e,t){var n=e._computedWatchers=Object.create(null),r=de();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new Pr(e,a||D,D,Jr)),i in e||qr(e,i,o)}}function qr(e,t,n){var r=!de();"function"==typeof n?(Rr.get=r?Wr(t):Zr(n),Rr.set=D):(Rr.get=n.get?r&&!1!==n.cache?Wr(t):Zr(n.get):D,Rr.set=n.set||D),Object.defineProperty(e,t,Rr)}function Wr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Oe.target&&t.depend(),t.value}}function Zr(e){return function(){return e.call(this,this)}}function Gr(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?D:N(t[n],e)}function Xr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Yr(e,n,r[i]);else Yr(e,n,r)}}function Yr(e,t,n,r){return l(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function Qr(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=qe,e.prototype.$delete=We,e.prototype.$watch=function(e,t,n){if(l(t))return Yr(this,e,t,n);(n=n||{}).user=!0;var r=new Pr(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(i){xt(i,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}var ei=0;function ti(e){e.prototype._init=function(e){var t=this;t._uid=ei++,t._isVue=!0,e&&e._isComponent?ni(t,e):t.$options=ut(ri(t.constructor),e||{},t),t._renderProxy=t,t._self=t,pr(t),rr(t),Wn(t),_r(t,"beforeCreate"),un(t),Br(t),cn(t),_r(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function ni(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function ri(e){var t=e.options;if(e.super){var n=ri(e.super);if(n!==e.superOptions){e.superOptions=n;var r=ii(e);r&&E(e.extendOptions,r),(t=e.options=ut(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function ii(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function oi(e){this._init(e)}function ai(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=j(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}function si(e){e.mixin=function(e){return this.options=ut(this.options,e),this}}function ci(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=ut(n.options,e),a.super=n,a.options.props&&ui(a),a.options.computed&&li(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,U.forEach(function(e){a[e]=n[e]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=E({},a.options),i[r]=a,a}}function ui(e){var t=e.options.props;for(var n in t)Hr(e.prototype,"_props",n)}function li(e){var t=e.options.computed;for(var n in t)qr(e.prototype,n,t[n])}function fi(e){U.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function pi(e){return e&&(e.Ctor.options.name||e.tag)}function di(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function vi(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=pi(a.componentOptions);s&&!t(s)&&hi(n,o,r,i)}}}function hi(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,_(n,t)}ti(oi),Qr(oi),cr(oi),dr(oi),Xn(oi);var mi=[String,RegExp,Array],yi={name:"keep-alive",abstract:!0,props:{include:mi,exclude:mi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)hi(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",function(t){vi(e,function(e){return di(t,e)})}),this.$watch("exclude",function(t){vi(e,function(e){return!di(t,e)})})},render:function(){var e=this.$slots.default,t=nr(e),n=t&&t.componentOptions;if(n){var r=pi(n),i=this.include,o=this.exclude;if(i&&(!r||!di(i,r))||o&&r&&di(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,_(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&hi(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},gi={KeepAlive:yi};function _i(e){var t={get:function(){return V}};Object.defineProperty(e,"config",t),e.util={warn:we,extend:E,mergeOptions:ut,defineReactive:Ke},e.set=qe,e.delete=We,e.nextTick=qt,e.observable=function(e){return Je(e),e},e.options=Object.create(null),U.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,E(e.options.components,gi),ai(e),si(e),ci(e),fi(e)}_i(oi),Object.defineProperty(oi.prototype,"$isServer",{get:de}),Object.defineProperty(oi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(oi,"FunctionalRenderContext",{value:jn}),oi.version="2.6.11";var bi=m("style,class"),$i=m("input,textarea,option,select,progress"),wi=function(e,t,n){return"value"===n&&$i(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},xi=m("contenteditable,draggable,spellcheck"),Ci=m("events,caret,typing,plaintext-only"),Ai=function(e,t){return Ni(t)||"false"===t?"false":"contenteditable"===e&&Ci(t)?t:"true"},ki=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Oi="http://www.w3.org/1999/xlink",Si=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ti=function(e){return Si(e)?e.slice(6,e.length):""},Ni=function(e){return null==e||!1===e};function ji(e){for(var t=e.data,n=e,i=e;r(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=Ei(i.data,t));for(;r(n=n.parent);)n&&n.data&&(t=Ei(t,n.data));return Mi(t.staticClass,t.class)}function Ei(e,t){return{staticClass:Di(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Mi(e,t){return r(e)||r(t)?Di(e,Li(t)):""}function Di(e,t){return e?t?e+" "+t:e:t||""}function Li(e){return Array.isArray(e)?Ii(e):s(e)?Fi(e):"string"==typeof e?e:""}function Ii(e){for(var t,n="",i=0,o=e.length;i<o;i++)r(t=Li(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function Fi(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var Pi={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Ri=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Hi=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Bi=function(e){return"pre"===e},Ui=function(e){return Ri(e)||Hi(e)};function zi(e){return Hi(e)?"svg":"math"===e?"math":void 0}var Vi=Object.create(null);function Ji(e){if(!Y)return!0;if(Ui(e))return!1;if(e=e.toLowerCase(),null!=Vi[e])return Vi[e];var t=document.createElement(e);return e.indexOf("-")>-1?Vi[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Vi[e]=/HTMLUnknownElement/.test(t.toString())}var Ki=m("text,number,password,search,email,tel,url");function qi(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function Wi(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Zi(e,t){return document.createElementNS(Pi[e],t)}function Gi(e){return document.createTextNode(e)}function Xi(e){return document.createComment(e)}function Yi(e,t,n){e.insertBefore(t,n)}function Qi(e,t){e.removeChild(t)}function eo(e,t){e.appendChild(t)}function to(e){return e.parentNode}function no(e){return e.nextSibling}function ro(e){return e.tagName}function io(e,t){e.textContent=t}function oo(e,t){e.setAttribute(t,"")}var ao=Object.freeze({createElement:Wi,createElementNS:Zi,createTextNode:Gi,createComment:Xi,insertBefore:Yi,removeChild:Qi,appendChild:eo,parentNode:to,nextSibling:no,tagName:ro,setTextContent:io,setStyleScope:oo}),so={create:function(e,t){co(t)},update:function(e,t){e.data.ref!==t.data.ref&&(co(e,!0),co(t))},destroy:function(e){co(e,!0)}};function co(e,t){var n=e.data.ref;if(r(n)){var i=e.context,o=e.componentInstance||e.elm,a=i.$refs;t?Array.isArray(a[n])?_(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var uo=new je("",{},[]),lo=["create","activate","update","remove","destroy"];function fo(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&po(e,t)||i(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&n(t.asyncFactory.error))}function po(e,t){if("input"!==e.tag)return!0;var n,i=r(n=e.data)&&r(n=n.attrs)&&n.type,o=r(n=t.data)&&r(n=n.attrs)&&n.type;return i===o||Ki(i)&&Ki(o)}function vo(e,t,n){var i,o,a={};for(i=t;i<=n;++i)r(o=e[i].key)&&(a[o]=i);return a}function ho(e){var t,o,s={},c=e.modules,u=e.nodeOps;for(t=0;t<lo.length;++t)for(s[lo[t]]=[],o=0;o<c.length;++o)r(c[o][lo[t]])&&s[lo[t]].push(c[o][lo[t]]);function l(e){var t=u.parentNode(e);r(t)&&u.removeChild(t,e)}function f(e,t,n,o,a,c,l){if(r(e.elm)&&r(c)&&(e=c[l]=Le(e)),e.isRootInsert=!a,!function(e,t,n,o){var a=e.data;if(r(a)){var c=r(e.componentInstance)&&a.keepAlive;if(r(a=a.hook)&&r(a=a.init)&&a(e,!1),r(e.componentInstance))return p(e,t),d(n,e.elm,o),i(c)&&function(e,t,n,i){var o,a=e;for(;a.componentInstance;)if(a=a.componentInstance._vnode,r(o=a.data)&&r(o=o.transition)){for(o=0;o<s.activate.length;++o)s.activate[o](uo,a);t.push(a);break}d(n,e.elm,i)}(e,t,n,o),!0}}(e,t,n,o)){var f=e.data,h=e.children,m=e.tag;r(m)?(e.elm=e.ns?u.createElementNS(e.ns,m):u.createElement(m,e),g(e),v(e,h,t),r(f)&&y(e,t),d(n,e.elm,o)):i(e.isComment)?(e.elm=u.createComment(e.text),d(n,e.elm,o)):(e.elm=u.createTextNode(e.text),d(n,e.elm,o))}}function p(e,t){r(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,h(e)?(y(e,t),g(e)):(co(e),t.push(e))}function d(e,t,n){r(e)&&(r(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function v(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)f(t[r],n,e.elm,null,!0,t,r)}else a(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function h(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return r(e.tag)}function y(e,n){for(var i=0;i<s.create.length;++i)s.create[i](uo,e);r(t=e.data.hook)&&(r(t.create)&&t.create(uo,e),r(t.insert)&&n.push(e))}function g(e){var t;if(r(t=e.fnScopeId))u.setStyleScope(e.elm,t);else for(var n=e;n;)r(t=n.context)&&r(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent;r(t=ur)&&t!==e.context&&t!==e.fnContext&&r(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function _(e,t,n,r,i,o){for(;r<=i;++r)f(n[r],o,e,t,!1,n,r)}function b(e){var t,n,i=e.data;if(r(i))for(r(t=i.hook)&&r(t=t.destroy)&&t(e),t=0;t<s.destroy.length;++t)s.destroy[t](e);if(r(t=e.children))for(n=0;n<e.children.length;++n)b(e.children[n])}function $(e,t,n){for(;t<=n;++t){var i=e[t];r(i)&&(r(i.tag)?(w(i),b(i)):l(i.elm))}}function w(e,t){if(r(t)||r(e.data)){var n,i=s.remove.length+1;for(r(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&l(e)}return n.listeners=t,n}(e.elm,i),r(n=e.componentInstance)&&r(n=n._vnode)&&r(n.data)&&w(n,t),n=0;n<s.remove.length;++n)s.remove[n](e,t);r(n=e.data.hook)&&r(n=n.remove)?n(e,t):t()}else l(e.elm)}function x(e,t,n,i){for(var o=n;o<i;o++){var a=t[o];if(r(a)&&fo(e,a))return o}}function C(e,t,o,a,c,l){if(e!==t){r(t.elm)&&r(a)&&(t=a[c]=Le(t));var p=t.elm=e.elm;if(i(e.isAsyncPlaceholder))r(t.asyncFactory.resolved)?O(e.elm,t,o):t.isAsyncPlaceholder=!0;else if(i(t.isStatic)&&i(e.isStatic)&&t.key===e.key&&(i(t.isCloned)||i(t.isOnce)))t.componentInstance=e.componentInstance;else{var d,v=t.data;r(v)&&r(d=v.hook)&&r(d=d.prepatch)&&d(e,t);var m=e.children,y=t.children;if(r(v)&&h(t)){for(d=0;d<s.update.length;++d)s.update[d](e,t);r(d=v.hook)&&r(d=d.update)&&d(e,t)}n(t.text)?r(m)&&r(y)?m!==y&&function(e,t,i,o,a){var s,c,l,p=0,d=0,v=t.length-1,h=t[0],m=t[v],y=i.length-1,g=i[0],b=i[y],w=!a;for(;p<=v&&d<=y;)n(h)?h=t[++p]:n(m)?m=t[--v]:fo(h,g)?(C(h,g,o,i,d),h=t[++p],g=i[++d]):fo(m,b)?(C(m,b,o,i,y),m=t[--v],b=i[--y]):fo(h,b)?(C(h,b,o,i,y),w&&u.insertBefore(e,h.elm,u.nextSibling(m.elm)),h=t[++p],b=i[--y]):fo(m,g)?(C(m,g,o,i,d),w&&u.insertBefore(e,m.elm,h.elm),m=t[--v],g=i[++d]):(n(s)&&(s=vo(t,p,v)),n(c=r(g.key)?s[g.key]:x(g,t,p,v))?f(g,o,e,h.elm,!1,i,d):fo(l=t[c],g)?(C(l,g,o,i,d),t[c]=void 0,w&&u.insertBefore(e,l.elm,h.elm)):f(g,o,e,h.elm,!1,i,d),g=i[++d]);p>v?_(e,n(i[y+1])?null:i[y+1].elm,i,d,y,o):d>y&&$(t,p,v)}(p,m,y,o,l):r(y)?(r(e.text)&&u.setTextContent(p,""),_(p,null,y,0,y.length-1,o)):r(m)?$(m,0,m.length-1):r(e.text)&&u.setTextContent(p,""):e.text!==t.text&&u.setTextContent(p,t.text),r(v)&&r(d=v.hook)&&r(d=d.postpatch)&&d(e,t)}}}function A(e,t,n){if(i(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var o=0;o<t.length;++o)t[o].data.hook.insert(t[o])}var k=m("attrs,class,staticClass,staticStyle,key");function O(e,t,n,o){var a,s=t.tag,c=t.data,u=t.children;if(o=o||c&&c.pre,t.elm=e,i(t.isComment)&&r(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(r(c)&&(r(a=c.hook)&&r(a=a.init)&&a(t,!0),r(a=t.componentInstance)))return p(t,n),!0;if(r(s)){if(r(u))if(e.hasChildNodes())if(r(a=c)&&r(a=a.domProps)&&r(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var l=!0,f=e.firstChild,d=0;d<u.length;d++){if(!f||!O(f,u[d],n,o)){l=!1;break}f=f.nextSibling}if(!l||f)return!1}else v(t,u,n);if(r(c)){var h=!1;for(var m in c)if(!k(m)){h=!0,y(t,n);break}!h&&c.class&&Zt(c.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,o,a){if(!n(t)){var c,l=!1,p=[];if(n(e))l=!0,f(t,p);else{var d=r(e.nodeType);if(!d&&fo(e,t))C(e,t,p,null,null,a);else{if(d){if(1===e.nodeType&&e.hasAttribute(B)&&(e.removeAttribute(B),o=!0),i(o)&&O(e,t,p))return A(t,p,!0),e;c=e,e=new je(u.tagName(c).toLowerCase(),{},[],void 0,c)}var v=e.elm,m=u.parentNode(v);if(f(t,p,v._leaveCb?null:m,u.nextSibling(v)),r(t.parent))for(var y=t.parent,g=h(t);y;){for(var _=0;_<s.destroy.length;++_)s.destroy[_](y);if(y.elm=t.elm,g){for(var w=0;w<s.create.length;++w)s.create[w](uo,y);var x=y.data.hook.insert;if(x.merged)for(var k=1;k<x.fns.length;k++)x.fns[k]()}else co(y);y=y.parent}r(m)?$([e],0,0):r(e.tag)&&b(e)}}return A(t,p,l),t.elm}r(e)&&b(e)}}var mo={create:yo,update:yo,destroy:function(e){yo(e,uo)}};function yo(e,t){(e.data.directives||t.data.directives)&&go(e,t)}function go(e,t){var n,r,i,o=e===uo,a=t===uo,s=bo(e.data.directives,e.context),c=bo(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,wo(i,"update",t,e),i.def&&i.def.componentUpdated&&l.push(i)):(wo(i,"bind",t,e),i.def&&i.def.inserted&&u.push(i));if(u.length){var f=function(){for(var n=0;n<u.length;n++)wo(u[n],"inserted",t,e)};o?en(t,"insert",f):f()}if(l.length&&en(t,"postpatch",function(){for(var n=0;n<l.length;n++)wo(l[n],"componentUpdated",t,e)}),!o)for(n in s)c[n]||wo(s[n],"unbind",e,e,a)}var _o=Object.create(null);function bo(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=_o),i[$o(r)]=r,r.def=lt(t.$options,"directives",r.name,!0);return i}function $o(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function wo(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(Xl){xt(Xl,n.context,"directive "+e.name+" "+t+" hook")}}var xo=[so,mo];function Co(e,t){var i=t.componentOptions;if(!(r(i)&&!1===i.Ctor.options.inheritAttrs||n(e.data.attrs)&&n(t.data.attrs))){var o,a,s=t.elm,c=e.data.attrs||{},u=t.data.attrs||{};for(o in r(u.__ob__)&&(u=t.data.attrs=E({},u)),u)a=u[o],c[o]!==a&&Ao(s,o,a);for(o in(ne||ie)&&u.value!==c.value&&Ao(s,"value",u.value),c)n(u[o])&&(Si(o)?s.removeAttributeNS(Oi,Ti(o)):xi(o)||s.removeAttribute(o))}}function Ao(e,t,n){e.tagName.indexOf("-")>-1?ko(e,t,n):ki(t)?Ni(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):xi(t)?e.setAttribute(t,Ai(t,n)):Si(t)?Ni(n)?e.removeAttributeNS(Oi,Ti(t)):e.setAttributeNS(Oi,t,n):ko(e,t,n)}function ko(e,t,n){if(Ni(n))e.removeAttribute(t);else{if(ne&&!re&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Oo={create:Co,update:Co};function So(e,t){var i=t.elm,o=t.data,a=e.data;if(!(n(o.staticClass)&&n(o.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=ji(t),c=i._transitionClasses;r(c)&&(s=Di(s,Li(c))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}var To,No,jo,Eo,Mo,Do,Lo,Io={create:So,update:So},Fo=/[\w).+\-_$\]]/;function Po(e){var t,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,p=0,d=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(c)96===t&&92!==n&&(c=!1);else if(u)47===t&&92!==n&&(u=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||l||f||p){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:l++;break;case 125:l--}if(47===t){for(var v=r-1,h=void 0;v>=0&&" "===(h=e.charAt(v));v--);h&&Fo.test(h)||(u=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r<o.length;r++)i=Ro(i,o[r]);return i}function Ro(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function Ho(e,t){console.error("[Vue compiler]: "+e)}function Bo(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Uo(e,t,n,r,i){(e.props||(e.props=[])).push(Yo({name:t,value:n,dynamic:i},r)),e.plain=!1}function zo(e,t,n,r,i){(i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Yo({name:t,value:n,dynamic:i},r)),e.plain=!1}function Vo(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Yo({name:t,value:n},r))}function Jo(e,t,n,r,i,o,a,s){(e.directives||(e.directives=[])).push(Yo({name:t,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),e.plain=!1}function Ko(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function qo(e,n,r,i,o,a,s,c){var u;(i=i||t).right?c?n="("+n+")==='click'?'contextmenu':("+n+")":"click"===n&&(n="contextmenu",delete i.right):i.middle&&(c?n="("+n+")==='click'?'mouseup':("+n+")":"click"===n&&(n="mouseup")),i.capture&&(delete i.capture,n=Ko("!",n,c)),i.once&&(delete i.once,n=Ko("~",n,c)),i.passive&&(delete i.passive,n=Ko("&",n,c)),i.native?(delete i.native,u=e.nativeEvents||(e.nativeEvents={})):u=e.events||(e.events={});var l=Yo({value:r.trim(),dynamic:c},s);i!==t&&(l.modifiers=i);var f=u[n];Array.isArray(f)?o?f.unshift(l):f.push(l):u[n]=f?o?[l,f]:[f,l]:l,e.plain=!1}function Wo(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}function Zo(e,t,n){var r=Go(e,":"+t)||Go(e,"v-bind:"+t);if(null!=r)return Po(r);if(!1!==n){var i=Go(e,t);if(null!=i)return JSON.stringify(i)}}function Go(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===t){i.splice(o,1);break}return n&&delete e.attrsMap[t],r}function Xo(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(t.test(o.name))return n.splice(r,1),o}}function Yo(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Qo(e,t,n){var r=n||{},i=r.number,o="$$v";r.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(o="_n("+o+")");var a=ea(t,o);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+a+"}"}}function ea(e,t){var n=ta(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function ta(e){if(e=e.trim(),To=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<To-1)return(Eo=e.lastIndexOf("."))>-1?{exp:e.slice(0,Eo),key:'"'+e.slice(Eo+1)+'"'}:{exp:e,key:null};for(No=e,Eo=Mo=Do=0;!ra();)ia(jo=na())?aa(jo):91===jo&&oa(jo);return{exp:e.slice(0,Mo),key:e.slice(Mo+1,Do)}}function na(){return No.charCodeAt(++Eo)}function ra(){return Eo>=To}function ia(e){return 34===e||39===e}function oa(e){var t=1;for(Mo=Eo;!ra();)if(ia(e=na()))aa(e);else if(91===e&&t++,93===e&&t--,0===t){Do=Eo;break}}function aa(e){for(var t=e;!ra()&&(e=na())!==t;);}var sa,ca="__r",ua="__c";function la(e,t,n){Lo=n;var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type;if(e.component)return Qo(e,r,i),!1;if("select"===o)da(e,r,i);else if("input"===o&&"checkbox"===a)fa(e,r,i);else if("input"===o&&"radio"===a)pa(e,r,i);else if("input"===o||"textarea"===o)va(e,r,i);else{if(!V.isReservedTag(o))return Qo(e,r,i),!1}return!0}function fa(e,t,n){var r=n&&n.number,i=Zo(e,"value")||"null",o=Zo(e,"true-value")||"true",a=Zo(e,"false-value")||"false";Uo(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),qo(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+ea(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+ea(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+ea(t,"$$c")+"}",null,!0)}function pa(e,t,n){var r=n&&n.number,i=Zo(e,"value")||"null";Uo(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),qo(e,"change",ea(t,i),null,!0)}function da(e,t,n){var r="var $$selectedVal = "+('Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"})")+";";qo(e,"change",r=r+" "+ea(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}function va(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?ca:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=ea(t,l);c&&(f="if($event.target.composing)return;"+f),Uo(e,"value","("+t+")"),qo(e,u,f,null,!0),(s||a)&&qo(e,"blur","$forceUpdate()")}function ha(e){if(r(e[ca])){var t=ne?"change":"input";e[t]=[].concat(e[ca],e[t]||[]),delete e[ca]}r(e[ua])&&(e.change=[].concat(e[ua],e.change||[]),delete e[ua])}function ma(e,t,n){var r=sa;return function i(){null!==t.apply(null,arguments)&&_a(e,i,n,r)}}var ya=Rt&&!(ue&&Number(ue[1])<=53);function ga(e,t,n,r){if(ya){var i=Tr,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}sa.addEventListener(e,t,fe?{capture:n,passive:r}:n)}function _a(e,t,n,r){(r||sa).removeEventListener(e,t._wrapper||t,n)}function ba(e,t){if(!n(e.data.on)||!n(t.data.on)){var r=t.data.on||{},i=e.data.on||{};sa=t.elm,ha(r),Qt(r,i,ga,_a,ma,t.context),sa=void 0}}var $a,wa={create:ba,update:ba};function xa(e,t){if(!n(e.data.domProps)||!n(t.data.domProps)){var i,o,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(i in r(c.__ob__)&&(c=t.data.domProps=E({},c)),s)i in c||(a[i]="");for(i in c){if(o=c[i],"textContent"===i||"innerHTML"===i){if(t.children&&(t.children.length=0),o===s[i])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===i&&"PROGRESS"!==a.tagName){a._value=o;var u=n(o)?"":String(o);Ca(a,u)&&(a.value=u)}else if("innerHTML"===i&&Hi(a.tagName)&&n(a.innerHTML)){($a=$a||document.createElement("div")).innerHTML="<svg>"+o+"</svg>";for(var l=$a.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(o!==s[i])try{a[i]=o}catch(Xl){}}}}function Ca(e,t){return!e.composing&&("OPTION"===e.tagName||Aa(e,t)||ka(e,t))}function Aa(e,t){var n=!0;try{n=document.activeElement!==e}catch(Xl){}return n&&e.value!==t}function ka(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.number)return h(n)!==h(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var Oa={create:xa,update:xa},Sa=w(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function Ta(e){var t=Na(e.style);return e.staticStyle?E(e.staticStyle,t):t}function Na(e){return Array.isArray(e)?M(e):"string"==typeof e?Sa(e):e}function ja(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Ta(i.data))&&E(r,n);(n=Ta(e.data))&&E(r,n);for(var o=e;o=o.parent;)o.data&&(n=Ta(o.data))&&E(r,n);return r}var Ea,Ma=/^--/,Da=/\s*!important$/,La=function(e,t,n){if(Ma.test(t))e.style.setProperty(t,n);else if(Da.test(n))e.style.setProperty(O(t),n.replace(Da,""),"important");else{var r=Fa(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},Ia=["Webkit","Moz","ms"],Fa=w(function(e){if(Ea=Ea||document.createElement("div").style,"filter"!==(e=C(e))&&e in Ea)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Ia.length;n++){var r=Ia[n]+t;if(r in Ea)return r}});function Pa(e,t){var i=t.data,o=e.data;if(!(n(i.staticStyle)&&n(i.style)&&n(o.staticStyle)&&n(o.style))){var a,s,c=t.elm,u=o.staticStyle,l=o.normalizedStyle||o.style||{},f=u||l,p=Na(t.data.style)||{};t.data.normalizedStyle=r(p.__ob__)?E({},p):p;var d=ja(t,!0);for(s in f)n(d[s])&&La(c,s,"");for(s in d)(a=d[s])!==f[s]&&La(c,s,null==a?"":a)}}var Ra={create:Pa,update:Pa},Ha=/\s+/;function Ba(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Ha).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Ua(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Ha).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function za(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&E(t,Va(e.name||"v")),E(t,e),t}return"string"==typeof e?Va(e):void 0}}var Va=w(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),Ja=Y&&!re,Ka="transition",qa="animation",Wa="transition",Za="transitionend",Ga="animation",Xa="animationend";Ja&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Wa="WebkitTransition",Za="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ga="WebkitAnimation",Xa="webkitAnimationEnd"));var Ya=Y?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Qa(e){Ya(function(){Ya(e)})}function es(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Ba(e,t))}function ts(e,t){e._transitionClasses&&_(e._transitionClasses,t),Ua(e,t)}function ns(e,t,n){var r=is(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ka?Za:Xa,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c<a&&u()},o+1),e.addEventListener(s,l)}var rs=/\b(transform|all)(,|$)/;function is(e,t){var n,r=window.getComputedStyle(e),i=(r[Wa+"Delay"]||"").split(", "),o=(r[Wa+"Duration"]||"").split(", "),a=os(i,o),s=(r[Ga+"Delay"]||"").split(", "),c=(r[Ga+"Duration"]||"").split(", "),u=os(s,c),l=0,f=0;return t===Ka?a>0&&(n=Ka,l=a,f=o.length):t===qa?u>0&&(n=qa,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Ka:qa:null)?n===Ka?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Ka&&rs.test(r[Wa+"Property"])}}function os(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(function(t,n){return as(t)+as(e[n])}))}function as(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ss(e,t){var i=e.elm;r(i._leaveCb)&&(i._leaveCb.cancelled=!0,i._leaveCb());var o=za(e.data.transition);if(!n(o)&&!r(i._enterCb)&&1===i.nodeType){for(var a=o.css,c=o.type,u=o.enterClass,l=o.enterToClass,f=o.enterActiveClass,p=o.appearClass,d=o.appearToClass,v=o.appearActiveClass,m=o.beforeEnter,y=o.enter,g=o.afterEnter,_=o.enterCancelled,b=o.beforeAppear,$=o.appear,w=o.afterAppear,x=o.appearCancelled,C=o.duration,A=ur,k=ur.$vnode;k&&k.parent;)A=k.context,k=k.parent;var O=!A._isMounted||!e.isRootInsert;if(!O||$||""===$){var S=O&&p?p:u,T=O&&v?v:f,N=O&&d?d:l,j=O&&b||m,E=O&&"function"==typeof $?$:y,M=O&&w||g,D=O&&x||_,L=h(s(C)?C.enter:C);0;var I=!1!==a&&!re,F=fs(E),P=i._enterCb=H(function(){I&&(ts(i,N),ts(i,T)),P.cancelled?(I&&ts(i,S),D&&D(i)):M&&M(i),i._enterCb=null});e.data.show||en(e,"insert",function(){var t=i.parentNode,n=t&&t._pending&&t._pending[e.key];n&&n.tag===e.tag&&n.elm._leaveCb&&n.elm._leaveCb(),E&&E(i,P)}),j&&j(i),I&&(es(i,S),es(i,T),Qa(function(){ts(i,S),P.cancelled||(es(i,N),F||(ls(L)?setTimeout(P,L):ns(i,c,P)))})),e.data.show&&(t&&t(),E&&E(i,P)),I||F||P()}}}function cs(e,t){var i=e.elm;r(i._enterCb)&&(i._enterCb.cancelled=!0,i._enterCb());var o=za(e.data.transition);if(n(o)||1!==i.nodeType)return t();if(!r(i._leaveCb)){var a=o.css,c=o.type,u=o.leaveClass,l=o.leaveToClass,f=o.leaveActiveClass,p=o.beforeLeave,d=o.leave,v=o.afterLeave,m=o.leaveCancelled,y=o.delayLeave,g=o.duration,_=!1!==a&&!re,b=fs(d),$=h(s(g)?g.leave:g);0;var w=i._leaveCb=H(function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[e.key]=null),_&&(ts(i,l),ts(i,f)),w.cancelled?(_&&ts(i,u),m&&m(i)):(t(),v&&v(i)),i._leaveCb=null});y?y(x):x()}function x(){w.cancelled||(!e.data.show&&i.parentNode&&((i.parentNode._pending||(i.parentNode._pending={}))[e.key]=e),p&&p(i),_&&(es(i,u),es(i,f),Qa(function(){ts(i,u),w.cancelled||(es(i,l),b||(ls($)?setTimeout(w,$):ns(i,c,w)))})),d&&d(i,w),_||b||w())}}function us(e,t,n){"number"!=typeof e?we("<transition> explicit "+t+" duration is not a valid number - got "+JSON.stringify(e)+".",n.context):isNaN(e)&&we("<transition> explicit "+t+" duration is NaN - the duration expression might be incorrect.",n.context)}function ls(e){return"number"==typeof e&&!isNaN(e)}function fs(e){if(n(e))return!1;var t=e.fns;return r(t)?fs(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function ps(e,t){!0!==t.data.show&&ss(t)}var ds=Y?{create:ps,activate:ps,remove:function(e,t){!0!==e.data.show?cs(e,t):t()}}:{},vs=[Oo,Io,wa,Oa,Ra,ds],hs=vs.concat(xo),ms=ho({nodeOps:ao,modules:hs});re&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Cs(e,"input")});var ys={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?en(n,"postpatch",function(){ys.componentUpdated(e,t,n)}):gs(e,t,n.context),e._vOptions=[].map.call(e.options,$s)):("textarea"===n.tag||Ki(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ws),e.addEventListener("compositionend",xs),e.addEventListener("change",xs),re&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){gs(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,$s);if(i.some(function(e,t){return!P(e,r[t])}))(e.multiple?t.value.some(function(e){return bs(e,i)}):t.value!==t.oldValue&&bs(t.value,i))&&Cs(e,"change")}}};function gs(e,t,n){_s(e,t,n),(ne||ie)&&setTimeout(function(){_s(e,t,n)},0)}function _s(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=R(r,$s(a))>-1,a.selected!==o&&(a.selected=o);else if(P($s(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function bs(e,t){return t.every(function(t){return!P(t,e)})}function $s(e){return"_value"in e?e._value:e.value}function ws(e){e.target.composing=!0}function xs(e){e.target.composing&&(e.target.composing=!1,Cs(e.target,"input"))}function Cs(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function As(e){return!e.componentInstance||e.data&&e.data.transition?e:As(e.componentInstance._vnode)}var ks={bind:function(e,t,n){var r=t.value,i=(n=As(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,ss(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=As(n)).data&&n.data.transition?(n.data.show=!0,r?ss(n,function(){e.style.display=e.__vOriginalDisplay}):cs(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Os={model:ys,show:ks},Ss={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ts(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ts(nr(t.children)):e}function Ns(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[C(o)]=i[o];return t}function js(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Es(e){for(;e=e.parent;)if(e.data.transition)return!0}function Ms(e,t){return t.key===e.key&&t.tag===e.tag}var Ds=function(e){return e.tag||tr(e)},Ls=function(e){return"show"===e.name},Is={name:"transition",props:Ss,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Ds)).length){0;var r=this.mode;0;var i=n[0];if(Es(this.$vnode))return i;var o=Ts(i);if(!o)return i;if(this._leaving)return js(e,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=Ns(this),u=this._vnode,l=Ts(u);if(o.data.directives&&o.data.directives.some(Ls)&&(o.data.show=!0),l&&l.data&&!Ms(o,l)&&!tr(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=E({},c);if("out-in"===r)return this._leaving=!0,en(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),js(e,i);if("in-out"===r){if(tr(o))return u;var p,d=function(){p()};en(c,"afterEnter",d),en(c,"enterCancelled",d),en(f,"delayLeave",function(e){p=e})}}return i}}},Fs=E({tag:String,moveClass:String},Ss);delete Fs.mode;var Ps={props:Fs,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=fr(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ns(this),s=0;s<i.length;s++){var c=i[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(r){for(var u=[],l=[],f=0;f<r.length;f++){var p=r[f];p.data.transition=a,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?u.push(p):l.push(p)}this.kept=e(t,null,u),this.removed=l}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Rs),e.forEach(Hs),e.forEach(Bs),this._reflow=document.body.offsetHeight,e.forEach(function(e){if(e.data.moved){var n=e.elm,r=n.style;es(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Za,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Za,e),n._moveCb=null,ts(n,t))})}}))},methods:{hasMove:function(e,t){if(!Ja)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){Ua(n,e)}),Ba(n,t),n.style.display="none",this.$el.appendChild(n);var r=is(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function Rs(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Hs(e){e.data.newPos=e.elm.getBoundingClientRect()}function Bs(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var Us={Transition:Is,TransitionGroup:Ps};oi.config.mustUseProp=wi,oi.config.isReservedTag=Ui,oi.config.isReservedAttr=bi,oi.config.getTagNamespace=zi,oi.config.isUnknownElement=Ji,E(oi.options.directives,Os),E(oi.options.components,Us),oi.prototype.__patch__=Y?ms:D,oi.prototype.$mount=function(e,t){return vr(this,e=e&&Y?qi(e):void 0,t)},Y&&setTimeout(function(){V.devtools&&ve&&ve.emit("init",oi)},0);var zs=/\{\{((?:.|\r?\n)+?)\}\}/g,Vs=/[-.*+?^${}()|[\]\/\\]/g,Js=w(function(e){var t=e[0].replace(Vs,"\\$&"),n=e[1].replace(Vs,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Ks(e,t){var n=t?Js(t):zs;if(n.test(e)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){(i=r.index)>c&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=Po(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c<e.length&&(s.push(o=e.slice(c)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}function qs(e,t){t.warn;var n=Go(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Zo(e,"class",!1);r&&(e.classBinding=r)}function Ws(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}var Zs={staticKeys:["staticClass"],transformNode:qs,genData:Ws};function Gs(e,t){t.warn;var n=Go(e,"style");n&&(e.staticStyle=JSON.stringify(Sa(n)));var r=Zo(e,"style",!1);r&&(e.styleBinding=r)}function Xs(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}var Ys,Qs={staticKeys:["staticStyle"],transformNode:Gs,genData:Xs},ec={decode:function(e){return(Ys=Ys||document.createElement("div")).innerHTML=e,Ys.textContent}},tc=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),nc=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),rc=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ic=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,oc=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ac="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+J.source+"]*",sc="((?:"+ac+"\\:)?"+ac+")",cc=new RegExp("^<"+sc),uc=/^\s*(\/?)>/,lc=new RegExp("^<\\/"+sc+"[^>]*>"),fc=/^<!DOCTYPE [^>]+>/i,pc=/^<!\--/,dc=/^<!\[/,vc=m("script,style,textarea",!0),hc={},mc={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},yc=/&(?:lt|gt|quot|amp|#39);/g,gc=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,_c=m("pre,textarea",!0),bc=function(e,t){return e&&_c(e)&&"\n"===t[0]};function $c(e,t){var n=t?gc:yc;return e.replace(n,function(e){return mc[e]})}function wc(e,t){for(var n,r,i=[],o=t.expectHTML,a=t.isUnaryTag||L,s=t.canBeLeftOpenTag||L,c=0;e;){if(n=e,r&&vc(r)){var u=0,l=r.toLowerCase(),f=hc[l]||(hc[l]=new RegExp("([\\s\\S]*?)(</"+l+"[^>]*>)","i")),p=e.replace(f,function(e,n,r){return u=r.length,vc(l)||"noscript"===l||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),bc(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-p.length,e=p,k(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(pc.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v),c,c+v+3),x(v+3);continue}}if(dc.test(e)){var h=e.indexOf("]>");if(h>=0){x(h+2);continue}}var m=e.match(fc);if(m){x(m[0].length);continue}var y=e.match(lc);if(y){var g=c;x(y[0].length),k(y[1],g,c);continue}var _=C();if(_){A(_),bc(_.tagName,e)&&x(1);continue}}var b=void 0,$=void 0,w=void 0;if(d>=0){for($=e.slice(d);!(lc.test($)||cc.test($)||pc.test($)||dc.test($)||(w=$.indexOf("<",1))<0);)d+=w,$=e.slice(d);b=e.substring(0,d)}d<0&&(b=e),b&&x(b.length),t.chars&&b&&t.chars(b,c-b.length,c)}if(e===n){t.chars&&t.chars(e);break}}function x(t){c+=t,e=e.substring(t)}function C(){var t=e.match(cc);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(x(t[0].length);!(n=e.match(uc))&&(r=e.match(oc)||e.match(ic));)r.start=c,x(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],x(n[0].length),i.end=c,i}}function A(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&rc(n)&&k(r),s(n)&&r===n&&k(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p<l;p++){var d=e.attrs[p],v=d[3]||d[4]||d[5]||"",h="a"===n&&"href"===d[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;f[p]={name:d[1],value:$c(v,h)}}u||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:f,start:e.start,end:e.end}),r=n),t.start&&t.start(n,f,u,e.start,e.end)}function k(e,n,o){var a,s;if(null==n&&(n=c),null==o&&(o=c),e)for(s=e.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}k()}var xc,Cc,Ac,kc,Oc,Sc,Tc,Nc,jc,Ec=/^@|^v-on:/,Mc=/^v-|^@|^:|^#/,Dc=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Lc=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ic=/^\(|\)$/g,Fc=/^\[.*\]$/,Pc=/:(.*)$/,Rc=/^:|^\.|^v-bind:/,Hc=/\.[^.\]]+(?=[^\]]*$)/g,Bc=/^v-slot(:|$)|^#/,Uc=/[\r\n]/,zc=/\s+/g,Vc=/[\s"'<>\/=]/,Jc=w(ec.decode),Kc="_empty_";function qc(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:vu(t),rawAttrsMap:{},parent:n,children:[]}}function Wc(e,t){xc=t.warn||Ho,Sc=t.isPreTag||L,Tc=t.mustUseProp||L,Nc=t.getTagNamespace||L;var n=t.isReservedTag||L;jc=function(e){return!!e.component||!n(e.tag)},Ac=Bo(t.modules,"transformNode"),kc=Bo(t.modules,"preTransformNode"),Oc=Bo(t.modules,"postTransformNode"),Cc=t.delimiters;var r,i,o=[],a=!1!==t.preserveWhitespace,s=t.whitespace,c=!1,u=!1;function l(e){if(f(e),c||e.processed||(e=Xc(e,t)),o.length||e===r||r.if&&(e.elseif||e.else)&&ou(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)ru(e,i);else{if(e.slotScope){var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}e.children=e.children.filter(function(e){return!e.slotScope}),f(e),e.pre&&(c=!1),Sc(e.tag)&&(u=!1);for(var a=0;a<Oc.length;a++)Oc[a](e,t)}function f(e){if(!u)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return wc(e,{warn:xc,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,a,s,f){var p=i&&i.ns||Nc(e);ne&&"svg"===p&&(n=_u(n));var d=qc(e,n,i);p&&(d.ns=p),mu(d)&&!de()&&(d.forbidden=!0);for(var v=0;v<kc.length;v++)d=kc[v](d,t)||d;c||(Zc(d),d.pre&&(c=!0)),Sc(d.tag)&&(u=!0),c?Gc(d):d.processed||(eu(d),nu(d),au(d)),r||(r=d),a?l(d):(i=d,o.push(d))},end:function(e,t,n){var r=o[o.length-1];o.length-=1,i=o[o.length-1],l(r)},chars:function(e,t,n){if(i&&(!ne||"textarea"!==i.tag||i.attrsMap.placeholder!==e)){var r,o,l=i.children;if(e=u||e.trim()?hu(i)?e:Jc(e):l.length?s?"condense"===s&&Uc.test(e)?"":" ":a?" ":"":"")u||"condense"!==s||(e=e.replace(zc," ")),!c&&" "!==e&&(r=Ks(e,Cc))?o={type:2,expression:r.expression,tokens:r.tokens,text:e}:" "===e&&l.length&&" "===l[l.length-1].text||(o={type:3,text:e}),o&&l.push(o)}},comment:function(e,t,n){if(i){var r={type:3,text:e,isComment:!0};0,i.children.push(r)}}}),r}function Zc(e){null!=Go(e,"v-pre")&&(e.pre=!0)}function Gc(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(e.plain=!0)}function Xc(e,t){Yc(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,Qc(e),su(e),uu(e),lu(e);for(var n=0;n<Ac.length;n++)e=Ac[n](e,t)||e;return fu(e),e}function Yc(e){var t=Zo(e,"key");t&&(e.key=t)}function Qc(e){var t=Zo(e,"ref");t&&(e.ref=t,e.refInFor=pu(e))}function eu(e){var t;if(t=Go(e,"v-for")){var n=tu(t);n&&E(e,n)}}function tu(e){var t=e.match(Dc);if(t){var n={};n.for=t[2].trim();var r=t[1].trim().replace(Ic,""),i=r.match(Lc);return i?(n.alias=r.replace(Lc,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r,n}}function nu(e){var t=Go(e,"v-if");if(t)e.if=t,ou(e,{exp:t,block:e});else{null!=Go(e,"v-else")&&(e.else=!0);var n=Go(e,"v-else-if");n&&(e.elseif=n)}}function ru(e,t){var n=iu(t.children);n&&n.if&&ou(n,{exp:e.elseif,block:e})}function iu(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}function ou(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function au(e){null!=Go(e,"v-once")&&(e.once=!0)}function su(e){var t;"template"===e.tag?(t=Go(e,"scope"),e.slotScope=t||Go(e,"slot-scope")):(t=Go(e,"slot-scope"))&&(e.slotScope=t);var n=Zo(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||zo(e,"slot",n,Wo(e,"slot"))),"template"===e.tag){var r=Xo(e,Bc);if(r){0;var i=cu(r),o=i.name,a=i.dynamic;e.slotTarget=o,e.slotTargetDynamic=a,e.slotScope=r.value||Kc}}else{var s=Xo(e,Bc);if(s){0;var c=e.scopedSlots||(e.scopedSlots={}),u=cu(s),l=u.name,f=u.dynamic,p=c[l]=qc("template",[],e);p.slotTarget=l,p.slotTargetDynamic=f,p.children=e.children.filter(function(e){if(!e.slotScope)return e.parent=p,!0}),p.slotScope=s.value||Kc,e.children=[],e.plain=!1}}}function cu(e){var t=e.name.replace(Bc,"");return t||"#"!==e.name[0]&&(t="default"),Fc.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function uu(e){"slot"===e.tag&&(e.slotName=Zo(e,"name"))}function lu(e){var t;(t=Zo(e,"is"))&&(e.component=t),null!=Go(e,"inline-template")&&(e.inlineTemplate=!0)}function fu(e){var t,n,r,i,o,a,s,c,u=e.attrsList;for(t=0,n=u.length;t<n;t++){if(r=i=u[t].name,o=u[t].value,Mc.test(r))if(e.hasBindings=!0,(a=du(r.replace(Mc,"")))&&(r=r.replace(Hc,"")),Rc.test(r))r=r.replace(Rc,""),o=Po(o),(c=Fc.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!c&&"innerHtml"===(r=C(r))&&(r="innerHTML"),a.camel&&!c&&(r=C(r)),a.sync&&(s=ea(o,"$event"),c?qo(e,'"update:"+('+r+")",s,null,!1,xc,u[t],!0):(qo(e,"update:"+C(r),s,null,!1,xc,u[t]),O(r)!==C(r)&&qo(e,"update:"+O(r),s,null,!1,xc,u[t])))),a&&a.prop||!e.component&&Tc(e.tag,e.attrsMap.type,r)?Uo(e,r,o,u[t],c):zo(e,r,o,u[t],c);else if(Ec.test(r))r=r.replace(Ec,""),(c=Fc.test(r))&&(r=r.slice(1,-1)),qo(e,r,o,a,!1,xc,u[t],c);else{var l=(r=r.replace(Mc,"")).match(Pc),f=l&&l[1];c=!1,f&&(r=r.slice(0,-(f.length+1)),Fc.test(f)&&(f=f.slice(1,-1),c=!0)),Jo(e,r,i,o,f,c,a,u[t])}else zo(e,r,JSON.stringify(o),u[t]),!e.component&&"muted"===r&&Tc(e.tag,e.attrsMap.type,r)&&Uo(e,r,"true",u[t])}}function pu(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}function du(e){var t=e.match(Hc);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}function vu(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}function hu(e){return"script"===e.tag||"style"===e.tag}function mu(e){return"style"===e.tag||"script"===e.tag&&(!e.attrsMap.type||"text/javascript"===e.attrsMap.type)}var yu=/^xmlns:NS\d+/,gu=/^NS\d+:/;function _u(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];yu.test(r.name)||(r.name=r.name.replace(gu,""),t.push(r))}return t}function bu(e,t){for(var n=e;n;)n.for&&n.alias===t&&xc("<"+e.tag+' v-model="'+t+'">: You are binding v-model directly to a v-for iteration alias. This will not be able to modify the v-for source array because writing to the alias is like modifying a function local variable. Consider using an array of objects and use v-model on an object property instead.',e.rawAttrsMap["v-model"]),n=n.parent}function $u(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Zo(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=Go(e,"v-if",!0),o=i?"&&("+i+")":"",a=null!=Go(e,"v-else",!0),s=Go(e,"v-else-if",!0),c=wu(e);eu(c),Vo(c,"type","checkbox"),Xc(c,t),c.processed=!0,c.if="("+n+")==='checkbox'"+o,ou(c,{exp:c.if,block:c});var u=wu(e);Go(u,"v-for",!0),Vo(u,"type","radio"),Xc(u,t),ou(c,{exp:"("+n+")==='radio'"+o,block:u});var l=wu(e);return Go(l,"v-for",!0),Vo(l,":type",n),Xc(l,t),ou(c,{exp:i,block:l}),a?c.else=!0:s&&(c.elseif=s),c}}}function wu(e){return qc(e.tag,e.attrsList.slice(),e.parent)}var xu={preTransformNode:$u},Cu=[Zs,Qs,xu];function Au(e,t){t.value&&Uo(e,"textContent","_s("+t.value+")",t)}function ku(e,t){t.value&&Uo(e,"innerHTML","_s("+t.value+")",t)}var Ou,Su,Tu={model:la,text:Au,html:ku},Nu={expectHTML:!0,modules:Cu,directives:Tu,isPreTag:Bi,isUnaryTag:tc,mustUseProp:wi,canBeLeftOpenTag:nc,isReservedTag:Ui,getTagNamespace:zi,staticKeys:F(Cu)},ju=w(Mu);function Eu(e,t){e&&(Ou=ju(t.staticKeys||""),Su=t.isReservedTag||L,Du(e),Lu(e,!1))}function Mu(e){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}function Du(e){if(e.static=Iu(e),1===e.type){if(!Su(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t<n;t++){var r=e.children[t];Du(r),r.static||(e.static=!1)}if(e.ifConditions)for(var i=1,o=e.ifConditions.length;i<o;i++){var a=e.ifConditions[i].block;Du(a),a.static||(e.static=!1)}}}function Lu(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,r=e.children.length;n<r;n++)Lu(e.children[n],t||!!e.for);if(e.ifConditions)for(var i=1,o=e.ifConditions.length;i<o;i++)Lu(e.ifConditions[i].block,t)}}function Iu(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||y(e.tag)||!Su(e.tag)||Fu(e)||!Object.keys(e).every(Ou))))}function Fu(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}var Pu=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Ru=/\([^)]*?\);*$/,Hu=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Bu={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Uu={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},zu=function(e){return"if("+e+")return null;"},Vu={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:zu("$event.target !== $event.currentTarget"),ctrl:zu("!$event.ctrlKey"),shift:zu("!$event.shiftKey"),alt:zu("!$event.altKey"),meta:zu("!$event.metaKey"),left:zu("'button' in $event && $event.button !== 0"),middle:zu("'button' in $event && $event.button !== 1"),right:zu("'button' in $event && $event.button !== 2")};function Ju(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=Ku(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Ku(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return Ku(e)}).join(",")+"]";var t=Hu.test(e.value),n=Pu.test(e.value),r=Hu.test(e.value.replace(Ru,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(Vu[s])o+=Vu[s],Bu[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=zu(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=qu(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function qu(e){return"if(!$event.type.indexOf('key')&&"+e.map(Wu).join("&&")+")return null;"}function Wu(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Bu[e],r=Uu[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}function Zu(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}}function Gu(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}}var Xu={on:Zu,bind:Gu,cloak:D},Yu=function(e){this.options=e,this.warn=e.warn||Ho,this.transforms=Bo(e.modules,"transformCode"),this.dataGenFns=Bo(e.modules,"genData"),this.directives=E(E({},Xu),e.directives);var t=e.isReservedTag||L;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Qu(e,t){var n=new Yu(t);return{render:"with(this){return "+(e?el(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function el(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return tl(e,t);if(e.once&&!e.onceProcessed)return nl(e,t);if(e.for&&!e.forProcessed)return ol(e,t);if(e.if&&!e.ifProcessed)return rl(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return _l(e,t);var n;if(e.component)n=bl(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=al(e,t));var i=e.inlineTemplate?null:dl(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<t.transforms.length;o++)n=t.transforms[o](e,n);return n}return dl(e,t)||"void 0"}function tl(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+el(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function nl(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return rl(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+el(e,t)+","+t.onceId+++","+n+")":el(e,t)}return tl(e,t)}function rl(e,t,n,r){return e.ifProcessed=!0,il(e.ifConditions.slice(),t,n,r)}function il(e,t,n,r){if(!e.length)return r||"_e()";var i=e.shift();return i.exp?"("+i.exp+")?"+o(i.block)+":"+il(e,t,n,r):""+o(i.block);function o(e){return n?n(e,t):e.once?nl(e,t):el(e,t)}}function ol(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||el)(e,t)+"})"}function al(e,t){var n="{",r=sl(e,t);r&&(n+=r+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);if(e.attrs&&(n+="attrs:"+$l(e.attrs)+","),e.props&&(n+="domProps:"+$l(e.props)+","),e.events&&(n+=Ju(e.events,!1)+","),e.nativeEvents&&(n+=Ju(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=ul(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=cl(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+$l(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function sl(e,t){var n=e.directives;if(n){var r,i,o,a,s="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var u=t.directives[o.name];u&&(a=!!u(e,o,t.warn)),a&&(c=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return c?s.slice(0,-1)+"]":void 0}}function cl(e,t){var n=e.children[0];if(n&&1===n.type){var r=Qu(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}function ul(e,t,n){var r=e.for||Object.keys(t).some(function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||fl(n)}),i=!!e.if;if(!r)for(var o=e.parent;o;){if(o.slotScope&&o.slotScope!==Kc||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}var a=Object.keys(t).map(function(e){return pl(t[e],n)}).join(",");return"scopedSlots:_u(["+a+"]"+(r?",null,true":"")+(!r&&i?",null,false,"+ll(a):"")+")"}function ll(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}function fl(e){return 1===e.type&&("slot"===e.tag||e.children.some(fl))}function pl(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return rl(e,t,pl,"null");if(e.for&&!e.forProcessed)return ol(e,t,pl);var r=e.slotScope===Kc?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(dl(e,t)||"undefined")+":undefined":dl(e,t)||"undefined":el(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function dl(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||el)(a,t)+s}var c=n?vl(o,t.maybeComponent):0,u=i||ml;return"["+o.map(function(e){return u(e,t)}).join(",")+"]"+(c?","+c:"")}}function vl(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(hl(i)||i.ifConditions&&i.ifConditions.some(function(e){return hl(e.block)})){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some(function(e){return t(e.block)}))&&(n=1)}}return n}function hl(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function ml(e,t){return 1===e.type?el(e,t):3===e.type&&e.isComment?gl(e):yl(e)}function yl(e){return"_v("+(2===e.type?e.expression:wl(JSON.stringify(e.text)))+")"}function gl(e){return"_e("+JSON.stringify(e.text)+")"}function _l(e,t){var n=e.slotName||'"default"',r=dl(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?$l((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:C(e.name),value:e.value,dynamic:e.dynamic}})):null,a=e.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=","+o),a&&(i+=(o?"":",null")+","+a),i+")"}function bl(e,t,n){var r=t.inlineTemplate?null:dl(t,n,!0);return"_c("+e+","+al(t,n)+(r?","+r:"")+")"}function $l(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],o=wl(i.value);i.dynamic?n+=i.name+","+o+",":t+='"'+i.name+'":'+o+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function wl(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}var xl=new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),Cl=new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),Al=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function kl(e,t){e&&Ol(e,t)}function Ol(e,t){if(1===e.type){for(var n in e.attrsMap)if(Mc.test(n)){var r=e.attrsMap[n];if(r){var i=e.rawAttrsMap[n];"v-for"===n?Tl(e,'v-for="'+r+'"',t,i):"v-slot"===n||"#"===n[0]?El(r,n+'="'+r+'"',t,i):Ec.test(n)?Sl(r,n+'="'+r+'"',t,i):jl(r,n+'="'+r+'"',t,i)}}if(e.children)for(var o=0;o<e.children.length;o++)Ol(e.children[o],t)}else 2===e.type&&jl(e.expression,e.text,t,e)}function Sl(e,t,n,r){var i=e.replace(Al,""),o=i.match(Cl);o&&"$"!==i.charAt(o.index-1)&&n('avoid using JavaScript unary operator as property name: "'+o[0]+'" in expression '+t.trim(),r),jl(e,t,n,r)}function Tl(e,t,n,r){jl(e.for||"",t,n,r),Nl(e.alias,"v-for alias",t,n,r),Nl(e.iterator1,"v-for iterator",t,n,r),Nl(e.iterator2,"v-for iterator",t,n,r)}function Nl(e,t,n,r,i){if("string"==typeof e)try{new Function("var "+e+"=_")}catch(Xl){r("invalid "+t+' "'+e+'" in expression: '+n.trim(),i)}}function jl(e,t,n,r){try{new Function("return "+e)}catch(Xl){var i=e.replace(Al,"").match(xl);n(i?'avoid using JavaScript keyword as property name: "'+i[0]+'"\n Raw expression: '+t.trim():"invalid expression: "+Xl.message+" in\n\n "+e+"\n\n Raw expression: "+t.trim()+"\n",r)}}function El(e,t,n,r){try{new Function(e,"")}catch(Xl){n("invalid function parameter expression: "+Xl.message+" in\n\n "+e+"\n\n Raw expression: "+t.trim()+"\n",r)}}var Ml=2;function Dl(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var r=e.split(/\r?\n/),i=0,o=[],a=0;a<r.length;a++)if((i+=r[a].length+1)>=t){for(var s=a-Ml;s<=a+Ml||n>i;s++)if(!(s<0||s>=r.length)){o.push(""+(s+1)+Ll(" ",3-String(s+1).length)+"| "+r[s]);var c=r[s].length;if(s===a){var u=t-(i-c)+1,l=n>i?c-u:n-t;o.push(" | "+Ll(" ",u)+Ll("^",l))}else if(s>a){if(n>i){var f=Math.min(n-i,c);o.push(" | "+Ll("^",f))}i+=c+1}}break}return o.join("\n")}function Ll(e,t){var n="";if(t>0)for(;1&t&&(n+=e),!((t>>>=1)<=0);)e+=e;return n}function Il(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),D}}function Fl(e){var t=Object.create(null);return function(n,r,i){(r=E({},r)).warn;delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(t[o])return t[o];var a=e(n,r);var s={},c=[];return s.render=Il(a.render,c),s.staticRenderFns=a.staticRenderFns.map(function(e){return Il(e,c)}),t[o]=s}}function Pl(e){return function(t){function n(n,r){var i=Object.create(t),o=[],a=[],s=function(e,t,n){(n?a:o).push(e)};if(r)for(var c in r.modules&&(i.modules=(t.modules||[]).concat(r.modules)),r.directives&&(i.directives=E(Object.create(t.directives||null),r.directives)),r)"modules"!==c&&"directives"!==c&&(i[c]=r[c]);i.warn=s;var u=e(n.trim(),i);return u.errors=o,u.tips=a,u}return{compile:n,compileToFunctions:Fl(n)}}}var Rl,Hl=Pl(function(e,t){var n=Wc(e.trim(),t);!1!==t.optimize&&Eu(n,t);var r=Qu(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}}),Bl=Hl(Nu),Ul=Bl.compile,zl=Bl.compileToFunctions;function Vl(e){return(Rl=Rl||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Rl.innerHTML.indexOf(" ")>0}var Jl=!!Y&&Vl(!1),Kl=!!Y&&Vl(!0),ql=w(function(e){var t=qi(e);return t&&t.innerHTML}),Wl=oi.prototype.$mount;function Zl(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}oi.prototype.$mount=function(e,t){if((e=e&&qi(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ql(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=Zl(e));if(r){0;var i=zl(r,{outputSourceRange:!1,shouldDecodeNewlines:Jl,shouldDecodeNewlinesForHref:Kl,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Wl.call(this,e,t)},oi.compile=zl;var Gl=oi;exports.default=Gl;
|
4 |
},{}],"WZJa":[function(require,module,exports) {
|
5 |
"use strict";function t(){var t={},o={};return{addControlScript:function(o,r){t[o]=r},callControlScript:function(o,r){if(!t[o])throw new Error("Called control element not found: [".concat(o,"]"));t[o](r)},setControlData:function(t,r){o[t]=r},getControlData:function(t){if(!o[t])throw new Error("Control data for [".concat(t,"] not found."));return o[t]}}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var o=t();exports.default=o;
|
6 |
-
},{}],"aJOh":[function(require,module,exports) {
|
7 |
-
var e,n,o=Object.create(null);"undefined"!=typeof window&&(window.__VUE_HOT_MAP__=o);var t=!1,r=!1,i="beforeCreate";function s(e,n){if(n.functional){var t=n.render;n.render=function(n,r){var i=o[e].instances;return r&&i.indexOf(r.parent)<0&&i.push(r.parent),t(n,r)}}else c(n,i,function(){var n=o[e];n.Ctor||(n.Ctor=this.constructor),n.instances.push(this)}),c(n,"beforeDestroy",function(){var n=o[e].instances;n.splice(n.indexOf(this),1)})}function c(e,n,o){var t=e[n];e[n]=t?Array.isArray(t)?t.concat(o):[t,o]:[o]}function a(e){return function(n,o){try{e(n,o)}catch(t){console.error(t),console.warn("Something went wrong during Vue component hot-reload. Full reload required.")}}}function f(e,n){for(var o in e)o in n||delete e[o];for(var t in n)e[t]=n[t]}function u(e){if(e._u){var n=e._u;return e._u=function(e){try{return n(e,!0)}catch(o){return n(e,null,!0)}},function(){e._u=n}}}exports.install=function(o,s){t||(t=!0,e=o.__esModule?o.default:o,n=e.version.split(".").map(Number),r=s,e.config._lifecycleHooks.indexOf("init")>-1&&(i="init"),exports.compatible=n[0]>=2,exports.compatible||console.warn("[HMR] You are using a version of vue-hot-reload-api that is only compatible with Vue.js core ^2.0.0."))},exports.createRecord=function(e,n){if(!o[e]){var t=null;"function"==typeof n&&(n=(t=n).options),s(e,n),o[e]={Ctor:t,options:n,instances:[]}}},exports.isRecorded=function(e){return void 0!==o[e]},exports.rerender=a(function(e,n){var t=o[e];if(n){if("function"==typeof n&&(n=n.options),t.Ctor)t.Ctor.options.render=n.render,t.Ctor.options.staticRenderFns=n.staticRenderFns,t.instances.slice().forEach(function(e){e.$options.render=n.render,e.$options.staticRenderFns=n.staticRenderFns,e._staticTrees&&(e._staticTrees=[]),Array.isArray(t.Ctor.options.cached)&&(t.Ctor.options.cached=[]),Array.isArray(e.$options.cached)&&(e.$options.cached=[]);var o=u(e);e.$forceUpdate(),e.$nextTick(o)});else if(t.options.render=n.render,t.options.staticRenderFns=n.staticRenderFns,t.options.functional){if(Object.keys(n).length>2)f(t.options,n);else{var r=t.options._injectStyles;if(r){var i=n.render;t.options.render=function(e,n){return r.call(n),i(e,n)}}}t.options._Ctor=null,Array.isArray(t.options.cached)&&(t.options.cached=[]),t.instances.slice().forEach(function(e){e.$forceUpdate()})}}else t.instances.slice().forEach(function(e){e.$forceUpdate()})}),exports.reload=a(function(e,t){var r=o[e];if(t)if("function"==typeof t&&(t=t.options),s(e,t),r.Ctor){n[1]<2&&(r.Ctor.extendOptions=t);var i=r.Ctor.super.extend(t);i.options._Ctor=r.options._Ctor,r.Ctor.options=i.options,r.Ctor.cid=i.cid,r.Ctor.prototype=i.prototype,i.release&&i.release()}else f(r.options,t);r.instances.slice().forEach(function(e){e.$vnode&&e.$vnode.context?e.$vnode.context.$forceUpdate():console.warn("Root or manually mounted instance modified. Full reload required.")})});
|
8 |
},{}],"WV0h":[function(require,module,exports) {
|
9 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:["relativeElement","forceHide"],data:function(){return{listening:!1}},watch:{relativeElement:function(){this.relativeElement&&!this.listening&&(this.relativeElement.addEventListener("scroll",this.handleScroll),this.handleScroll(),this.listening=!0)}},methods:{handleScroll:function(){if(!this.forceHide){var e=this.relativeElement.scrollTop,t=this.$refs.observerElement.offsetTop;e+this.relativeElement.clientHeight>=t&&this.$emit("visible")}}}};exports.default=e;
|
10 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"observerElement"},[this._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
11 |
-
},{
|
12 |
-
"use strict";function e(e,t){var u=null;switch(t){case"dataset":default:
|
13 |
},{}],"LTB1":[function(require,module,exports) {
|
14 |
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../functions/selector"));function t(e){return e&&e.__esModule?e:{default:e}}var a={props:{label:String,selectors:{type:Array,required:!1,default:function(){return[]}}},data:function(){return{startupValue:null,targetElements:[],elementMainValue:"",mountedDataUpdate:!1}},mounted:function(){if(this.selectors.length>0){var t=e.default.getAllValues(this.selectors);this.targetElements=t.elements,this.startupValue=t.startupValue}},methods:{assignDefaultValue:function(){this.startupValue&&(this.mountedDataUpdate=!0,this.elementMainValue=this.startupValue)},setTargetValue:function(t,a){e.default.setTargetValue(t,a)},setAllValues:function(t){e.default.setAllValues(this.targetElements,t)},setTableDirty:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.mountedDataUpdate||(new WPTB_TableStateSaveManager).tableStateSet(),this.mountedDataUpdate=!1}}},u=a;exports.default=u;
|
15 |
},{"../functions/selector":"wvh1"}],"DTps":[function(require,module,exports) {
|
16 |
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("../components/IntersectionObserver")),t=n(require("../mixins/ControlBase"));function n(e){return e&&e.__esModule?e:{default:e}}var r={props:{label:String,icons:Object,perPage:{type:Number,default:20}},mixins:[t.default],components:{IntersectionObserver:e.default},data:function(){return{selectedIcon:{url:null,name:null},openDrawer:!1,innerDrawerRef:null,paginationIndex:1,observerHide:!1,debunkedFilterText:"",debunkId:-1,filterText:"",drawerPosition:{left:0}}},mounted:function(){var e=this;document.addEventListener("keyup",function(t){"Escape"===t.code&&e.openDrawer&&e.setDrawerState(!1)});var t=this.startupValue;this.selectedIcon.name=""===t?null:t,this.selectedIcon.url=""===t?null:this.icons[t]},watch:{debunkedFilterText:function(e){var t=this;clearTimeout(this.debunkId),this.debunkId=setTimeout(function(){t.filterText=e},500)},selectedIcon:{handler:function(){var e=this,t=this.targetElements[0].
|
17 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"wptb-settings-row wptb-settings-middle-xs"},[i("div",{staticClass:"wptb-settings-space-between"},[i("p",{staticClass:"wptb-settings-item-title"},[e._v(e._s(e.label))]),e._v(" "),i("div",{staticClass:"wptb-icon-select-wrapper"},[i("div",{staticClass:"wptb-icon-select-display"},[i("div",{ref:"iconSelectButton",staticClass:"wptb-icon-select-preview",on:{click:e.toggleIconDrawer}},[i("img",{attrs:{src:e.selectedIcon.url}})]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.openDrawer,expression:"openDrawer"}],staticClass:"wptb-icon-select-drawer wptb-plugin-box-shadow-md",style:e.drawerPosition},[i("div",{staticClass:"wptb-icon-search-wrapper"},[i("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.debunkedFilterText,expression:"debunkedFilterText",modifiers:{trim:!0}}],attrs:{type:"text",placeholder:"Search for icons..."},domProps:{value:e.debunkedFilterText},on:{input:function(t){t.target.composing||(e.debunkedFilterText=t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}})]),e._v(" "),i("div",{ref:"drawerRefElement",staticClass:"wptb-icon-previews"},[i("div",{staticClass:"wptb-icon-select-drawer-preview wptb-icon-reset",on:{click:function(t){return e.setIcon("","")}}}),e._v(" "),e._l(e.fullIconList(),function(t,s){return i("div",{key:s,staticClass:"wptb-icon-select-drawer-preview",class:{"wptb-icon-preview-active":e.selectedIcon.name===s}},[i("img",{attrs:{src:t,title:s,draggable:!1},on:{click:function(i){return e.setIcon(s,t)}}})])}),e._v(" "),i("intersection-observer",{attrs:{"relative-element":e.innerDrawerRef,"force-hide":e.observerHide},on:{visible:e.observerVisible}},[i("div",{staticClass:"wptb-icon-select-drawer-end"})])],2)])])])])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
18 |
-
},{"../components/IntersectionObserver":"WV0h","../mixins/ControlBase":"LTB1"
|
19 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("vue")),t=n(require("../functions/WPTB_ControlsManager")),o=n(require("../containers/IconSelectControl"));function n(e){return e&&e.__esModule?e:{default:e}}var r={name:"ControlIconSelect",handler:function(n){var r=t.default.getControlData(n);new e.default({data:r,components:{IconSelectControl:o.default}}).$mount("#".concat(n))}};exports.default=r;
|
20 |
},{"vue":"HYXJ","../functions/WPTB_ControlsManager":"WZJa","../containers/IconSelectControl":"DTps"}],"W4BN":[function(require,module,exports) {
|
21 |
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../mixins/ControlBase"));function t(e){return e&&e.__esModule?e:{default:e}}var u={props:{min:{type:Number,default:1,required:!1},max:{type:Number,default:10,required:!1},step:{type:Number,default:1,required:!1},defaultValue:{type:Number,default:1,required:!1}},mixins:[e.default],
|
22 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"wptb-settings-item-header"},[e._v(e._s(e.label))]),e._v(" "),a("div",{staticClass:"wptb-settings-row wptb-settings-middle-xs"},[a("div",{staticClass:"wptb-settings-col-xs-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.elementMainValue,expression:"elementMainValue"}],staticClass:"wptb-element-property wptb-size-slider",attrs:{type:"range",min:e.min,max:e.max,step:e.step},domProps:{value:e.elementMainValue},on:{__r:function(t){e.elementMainValue=t.target.value}}})]),e._v(" "),a("div",{staticClass:"wptb-settings-col-xs-4"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.elementMainValue,expression:"elementMainValue"}],staticClass:"wptb-size-number wptb-number-input wptb-element-property",attrs:{type:"number",min:e.min,max:e.max,step:e.step},domProps:{value:e.elementMainValue},on:{input:function(t){t.target.composing||(e.elementMainValue=t.target.value)}}})])])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
23 |
-
},{"../mixins/ControlBase":"LTB1"
|
24 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=o(require("vue")),t=o(require("../containers/RangeControl")),n=o(require("../functions/WPTB_ControlsManager"));function o(e){return e&&e.__esModule?e:{default:e}}var r={name:"ControlRange",handler:function(o){var r=n.default.getControlData(o);new e.default({data:r,components:{RangeControl:t.default}}).$mount("#".concat(o))}};exports.default=r;
|
25 |
-
},{"vue":"HYXJ","../containers/RangeControl":"W4BN","../functions/WPTB_ControlsManager":"WZJa"}],"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
"use strict";function e(){var e={};return function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3;Object.keys(e).includes(t)&&clearTimeout(e[t]),e[t]=setTimeout(r,o)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e();exports.default=t;
|
27 |
},{}],"cW6v":[function(require,module,exports) {
|
28 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../functions/DeBouncer"));function t(e){return e&&e.__esModule?e:{default:e}}var i={props:{clone:{type:Boolean,default:!1,required:!1},cloneQuery:{type:String,required:!0},tableDirectives:{type:String,default:""},tableStyle:{type:Object,default:function(){}}},inheritAttrs:!1,data:function(){return{cloneInner:!1,clonedTable:null,mainTable:null,tableDirectiveDatasetId:"wptbResponsiveDirectives",tableHaveDirectives:!1}},mounted:function(){this.cloneInner=this.clone},watch:{clone:function(e){this.cloneInner=e},cloneInner:function(e){e&&(this.startClone(),this.cloneInner=!1)},tableDirectives:function(e){e&&this.addDirectivesToTable(e)},"appOptions.identifyCells":{handler:function(e){e&&(this.showCellIdentification(),this.appOptions.identifyCells=!1)}},"directives.responsiveEnabled":{handler:function(e){e&&(this.mainTable.dataset.wptbAdaptiveTable=0)}}},methods:{startClone:function(){if(this.mainTable=document.querySelector(this.cloneQuery),!this.mainTable)throw new Error("no clone target is found with a query value of ".concat(this.cloneQuery));this.appOptions.hasLegacyResponsive="1"===this.mainTable.dataset.wptbAdaptiveTable,this.clonedTable=this.mainTable.cloneNode(!0),this.clonedTable.classList.add("wptb-plugin-box-shadow-xl"),this.$refs.tableClone.appendChild(this.clonedTable);var e=this.mainTable.dataset[this.tableDirectiveDatasetId];this.tableDirectives&&this.addDirectivesToTable(this.tableDirectives),this.tableHaveDirectives=void 0!==e,this.setupCellIdentification(this.clonedTable),this.$emit("tableCloned",e)},addDirectivesToTable:function(e){this.clonedTable&&this.mainTable&&(this.clonedTable.dataset[this.tableDirectiveDatasetId]=e,this.mainTable.dataset[this.tableDirectiveDatasetId]=e,this.$emit("directivesCopied",this.tableHaveDirectives),this.tableHaveDirectives=!1)},setupCellIdentification:function(e){Array.from(e.querySelectorAll("td")).map(function(e,t){"relative"!==getComputedStyle(e).position&&(e.style.position="relative");var i=document.createRange();i.setStart(e,0);var a="background-color: hsla(211, 25%, ".concat(t%2==0?70:90,"%, 80%)"),n='<div class="wptb-responsive-cell-identifier" style="'.concat(a,'">').concat(t+1,"</div>"),l=i.createContextualFragment(n);e.appendChild(l.childNodes[0])})},showCellIdentification:function(){var t=this;this.clonedTable.classList.add("wptb-responsive-show-cell-identifier"),(0,e.default)("cellIdentification",function(){t.clonedTable.classList.remove("wptb-responsive-show-cell-identifier")},2e3)}}};exports.default=i;
|
29 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"wptb-responsive-clone-wrapper"},[t("div",{staticClass:"wptb-responsive-clone-inner-wrapper"},[t("div",{ref:"tableClone",style:this.tableStyle})])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
30 |
-
},{"../functions/DeBouncer":"qsi5"
|
31 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={inheritAttrs:!1,props:{postFix:{type:String,default:""},value:{type:null,default:0},enableDynamicWidth:{type:Boolean,default:!1},dynamicWidthPadding:{type:Number,default:3},onlyEnter:{type:Boolean,default:!1},min:{type:Number,default:0},max:{type:Number,default:1e3},enableLimit:{type:Boolean,default:!1}},model:{prop:"value",event:"valueChanged"},watch:{value:function(t){this.innerValue=t}},data:function(){return{innerValue:0}},mounted:function(){this.innerValue=this.value},computed:{postFixIt:function(){return"".concat(this.innerValue).concat(this.postFix)},dynamicWidth:function(){return this.enableDynamicWidth?{width:"calc(".concat(this.innerValue.toString().length+this.postFix.length+this.dynamicWidthPadding,"ch) !important")}:{}}},methods:{getValue:function(t){var e=Number.parseInt(t,10);return e=isNaN(e)?0:e,this.enableLimit?this.limitValue(e):e},limitValue:function(t){return t<this.min?this.min:t>this.max?this.max:t},handleOnInput:function(t){this.onlyEnter||this.$emit("valueChanged",this.getValue(t.target.value))},handleEnterInput:function(t){this.onlyEnter&&this.$emit("valueChanged",this.getValue(t.target.value))},handleKeyPress:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"up",e=this.getValue(this.innerValue);switch(t){case"up":e+=1;break;case"down":e-=1;break;default:e+=1}e=this.getValue(e),this.$emit("valueChanged",e)}}};exports.default=t;
|
32 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,
|
33 |
-
},{
|
34 |
-
var t=null;function e(){return t||(t=n()),t}function n(){try{throw new Error}catch(e){var t=(""+e.stack).match(/(https?|file|ftp|chrome-extension|moz-extension):\/\/[^)\n]+/g);if(t)return r(t[0])}return"/"}function r(t){return(""+t).replace(/^((?:https?|file|ftp|chrome-extension|moz-extension):\/\/.+)\/[^\/]+$/,"$1")+"/"}exports.getBundleURL=e,exports.getBaseURL=r;
|
35 |
-
},{}],"uNEb":[function(require,module,exports) {
|
36 |
-
var e=require("./bundle-url");function n(e){var n=e.cloneNode();n.onload=function(){e.remove()},n.href=e.href.split("?")[0]+"?"+Date.now(),e.parentNode.insertBefore(n,e.nextSibling)}var l=null;function r(){l||(l=setTimeout(function(){for(var r=document.querySelectorAll('link[rel="stylesheet"]'),t=0;t<r.length;t++)e.getBaseURL(r[t].href)===e.getBundleURL()&&n(r[t]);l=null},50))}module.exports=r;
|
37 |
-
},{"./bundle-url":"y8Jx"}],"xi3E":[function(require,module,exports) {
|
38 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("./NumberPostfixInput"));function e(t){return t&&t.__esModule?t:{default:t}}var a={props:{value:{type:Number,default:0},rawValue:{type:Number,default:0},active:{type:Boolean,default:!1},stopId:String,enableBreakpointCustomization:{type:Boolean,default:!1}},components:{NumberPostfixInput:t.default},data:function(){return{wrapperStyle:{left:0,top:0},innerRawValue:this.rawValue}},watch:{rawValue:function(t){this.innerRawValue=t},value:function(){this.calculateStyle()},innerRawValue:function(t){this.$emit("breakpointChange",t,this.stopId)}},mounted:function(){var t=this;this.$nextTick(function(){t.calculateStyle()})},methods:{clickEvent:function(){this.$emit("click",this.rawValue)},calculateStyle:function(){var t=this.$refs.wrapper,e=this.$refs.knob;if(t){var a=t.getBoundingClientRect().width;this.wrapperStyle.left="calc(".concat(this.value,"% - ").concat(a/2,"px)")}if(e){var n=e.getBoundingClientRect().height;this.wrapperStyle.top="-".concat(n/2,"px")}}}};exports.default=a;
|
39 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,
|
40 |
-
},{"./NumberPostfixInput":"h0P7"
|
41 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:{amount:{type:Number,default:0}},computed:{calculateStyle:function(){return{width:"".concat(this.amount,"%")}}}};exports.default=t;
|
42 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"wptb-screen-size-slider-fill",style:this.calculateStyle})},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
43 |
-
},{
|
44 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{positionPercentage:{type:Number,default:0}},data:function(){return{style:{left:0}}},watch:{positionPercentage:{handler:function(){this.calculateStyle()},deep:!0}},mounted:function(){this.calculateStyle()},methods:{calculateStyle:function(){var e=this.$refs.arrowWrapper.getBoundingClientRect().width;this.style.left="calc(".concat(this.positionPercentage,"% - ").concat(e/2,"px)")},handleDrag:function(e){var t=e.screenX,a=e.screenY;0===t&&0===a||this.$emit("arrowDrag",e)}}};exports.default=e;
|
45 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{ref:"arrowWrapper",staticClass:"wptb-screen-size-slider-arrow",style:e.style,attrs:{draggable:"true"},on:{drag:function(t){return t.preventDefault(),e.handleDrag(t)},dragover:function(e){e.preventDefault()},dragend:function(t){return t.preventDefault(),e.$emit("arrowDragEnd")},drop:function(e){e.preventDefault()},dragexit:function(e){e.preventDefault()},dragleave:function(e){e.preventDefault()}}},[r("svg",{attrs:{width:"17",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M8.5 16L0 0h17L8.5 16z",fill:"var(--wptb-plugin-logo-color)"}})])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
46 |
-
},{
|
47 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=n(require("./SliderStop")),e=n(require("./SliderFill")),i=n(require("./SliderArrow"));function n(t){return t&&t.__esModule?t:{default:t}}var r={props:{stops:Object,endPadding:{type:Number,default:0},modelVal:{type:Number,default:0},enableBreakpointCustomization:{type:Boolean,default:!1}},components:{SliderStop:t.default,SliderFill:e.default,SliderArrow:i.default},data:function(){return{min:0,max:100,currentVal:0,isDragging:!1,minSizeBetweenBreakpoints:100,repaintId:0}},beforeMount:function(){this.calculateMinMax()},watch:{currentVal:function(){this.$emit("slide",this.currentVal)},modelVal:function(t){this.currentVal=Math.floor(t)}},methods:{handleBreakpointChange:function(t,e){var i=this.directives.breakpoints;if(!i[e])throw new Error("no breakpoint found with the given ID: [".concat(e,"]"));var n=Object.keys(i).sort(function(t,e){return i[t].width-i[e].width}),r=n.indexOf(e),a=n[r-1],s=n[r+1];a&&i[a].width>=t&&(t=i[a].width+this.minSizeBetweenBreakpoints),s&&i[s].width<=t&&(t=i[s].width-this.minSizeBetweenBreakpoints),i[e].width=t,this.calculateMinMax(),this.repaintId+=1},calculateMinMax:function(){var t=Object.values(this.stops).sort(function(t,e){return-1*(e.width-t.width)});this.min=t[0].width-this.endPadding,this.max=t[t.length-1].width+this.endPadding,this.currentVal=t[t.length-1].width},translateIntoPercent:function(t){var e=this.max-this.min;return 100*(t-this.min)/e},slide:function(t){this.currentVal=t},handleArrowDrag:function(t){this.isDragging=!0;var e=this.$refs.sliderWrapper.getBoundingClientRect(),i=e.left,n=e.width,r=(t.clientX-i)*(this.max-this.min)/n;this.currentVal=this.limitToRange(this.min+r)},limitToRange:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t;return t<this.min&&(i=this.min),t>this.max&&(i=this.max),e&&(i=Math.floor(i)),i},isStopActive:function(t){var e=this;return this.currentVal>=t&&Object.values(this.stops).filter(function(t){return t<=e.currentVal}).every(function(e){return e<=t})}}};exports.default=r;
|
48 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{key:e.repaintId,ref:"sliderWrapper",staticClass:"wptb-screen-size-slider-wrapper",class:{"wptb-drag-active":e.isDragging}},[r("div",{staticClass:"wptb-screen-size-slider-empty"},[r("slider-arrow",{attrs:{"position-percentage":e.translateIntoPercent(e.limitToRange(e.currentVal))},on:{arrowDrag:e.handleArrowDrag,arrowDragEnd:function(t){e.isDragging=!1}}}),e._v(" "),r("slider-fill",{attrs:{amount:e.translateIntoPercent(e.limitToRange(e.currentVal))}}),e._v(" "),e._l(e.stops,function(t,a){var n=t.name,i=t.width;return r("slider-stop",{key:a,attrs:{active:e.isStopActive(i),value:e.translateIntoPercent(i),"raw-value":i,"stop-id":a,enableBreakpointCustomization:e.enableBreakpointCustomization},on:{click:e.slide,breakpointChange:e.handleBreakpointChange}},[e._v(e._s(n))])})],2)])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
49 |
-
},{"./SliderStop":"xi3E","./SliderFill":"ooD9","./SliderArrow":"q8F8"
|
50 |
|
51 |
var t,e,n=module.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function u(t){if(e===clearTimeout)return clearTimeout(t);if((e===o||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{return e(t)}catch(n){try{return e.call(null,t)}catch(n){return e.call(this,t)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(n){t=r}try{e="function"==typeof clearTimeout?clearTimeout:o}catch(n){e=o}}();var c,s=[],l=!1,a=-1;function f(){l&&c&&(l=!1,c.length?s=c.concat(s):a=-1,s.length&&h())}function h(){if(!l){var t=i(f);l=!0;for(var e=s.length;e;){for(c=s,s=[];++a<e;)c&&c[a].run();a=-1,e=s.length}c=null,l=!1,u(t)}}function m(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new m(t,e)),1!==s.length||l||i(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0};
|
52 |
},{}],"Q6f0":[function(require,module,exports) {
|
53 |
var global = arguments[3];
|
54 |
var process = require("process");
|
55 |
-
var e=arguments[3],t=require("process");function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,t,n){"object"===("undefined"==typeof exports?"undefined":a(exports))&&"undefined"!=typeof module?module.exports=n():t[e]=n()}("WPTB_ResponsiveFrontend",self||e,function(){function e(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]}function t(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.element=e,this.referenceObject=n,this.mergedRenderStatus=!0,this.mergedCells={row:[],column:[]},this.getMergedRenderStatus=function(){return t.mergedRenderStatus},this.setMergedRenderStatus=function(e){t.mergedRenderStatus=e},this.addToMergedCells=function(e,n){t.mergedCells[e].push(n)},this.isReference=function(){return null!==t.referenceObject},this.isReference()&&(this.element=e.cloneNode(!0)),this.modifications={},this.spans={row:1,col:1},this.remainingSpans={row:0,col:0},this.cacheSpanValues=function(){Object.keys(t.spans).map(function(e){if(Object.prototype.hasOwnProperty.call(t.spans,e)){var n=t.spans[e];t.spans[e]=t.element.getAttribute("".concat(e,"Span"))||n}})},this.cacheSpanValues(),this.getSpan=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t.getElement().getAttribute("".concat(e,"Span")):t.spans[e];if(n)return n;throw new Error("no span value found with the given type of [".concat(e,"]"))},this.getRemainingSpans=function(e){return t.remainingSpans[e]},this.setRemainingSpans=function(e,n){t.remainingSpans[e]=n},this.getElement=function(){return t.element},this.createCellElement=function(){return document.createElement("td")},e||(this.element=this.createCellElement()),this.setAttribute=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",",s=t.getElement()[e];"function"!=typeof s&&"object"!==a(s)||(s=t.getElement().getAttribute(e)),t.modifications[e]&&(s=t.modifications[e].default);var i=s;r?i+="".concat(i).concat(o).concat(n):i=n,t.modifications[e]={value:i,default:s},t.getElement()[e]=i},this.setSpan=function(e,n){if(!t.isReference()){var r=t.getSpan(e)-n<0?t.getSpan(e):n;t.setAttribute("".concat(e,"Span"),r),t.setRemainingSpans(e,t.getSpan(e)-r);for(var o=0;o<r-1;o+=1)t.mergedCells[e][o].setMergedRenderStatus(!1);return!0}if(!t.getMergedRenderStatus())return!1;var a=t.referenceObject.getRemainingSpans(e);if(0===a)return!1;var s=a-n<0?a:n,i=a-s;if(t.referenceObject.setRemainingSpans(e,i),t.setAttribute("".concat(e,"Span"),s),0!==i)for(var l=t.referenceObject.mergedCells[e].length-a+1,d=l+s-1,u=l;u<d;u+=1)t.mergedCells[e][u].setMergedRenderStatus(!1);return!0},this.resetAttribute=function(e){t.modifications[e]&&(t.getElement()[e]=t.modifications[e].default,t.modifications[e]=void 0)},this.resetAllAttributes=function(){Object.keys(t.modifications).map(function(e){Object.prototype.hasOwnProperty.call(t.modifications,e)&&t.resetAttribute(e)})},{getElement:this.getElement,el:this.element,setAttribute:this.setAttribute,resetAllAttributes:this.resetAllAttributes,getSpan:this.getSpan,setSpan:this.setSpan,getRemainingSpans:this.getRemainingSpans,setRemainingSpans:this.setRemainingSpans,isReference:this.isReference,addToMergedCells:this.addToMergedCells,mergedCells:this.mergedCells,setMergedRenderStatus:this.setMergedRenderStatus,getMergedRenderStatus:this.getMergedRenderStatus}}function n(n){var r=this;return this.tableElement=n,this.parsedTable=[],this.rowCache=[],this.originals={rows:[]},this.rowColors={header:null,even:null,odd:null},this.addToParsed=function(e,t,n){r.parsedTable[e]||(r.parsedTable[e]=[]),r.parsedTable[e][t]=n},this.parseTable=function(){var e=Array.from(r.tableElement.querySelectorAll("tr"));e.map(function(e,n){r.originals.rows.push(e),Array.from(e.querySelectorAll("td")).map(function(e,o){var a=new t(e);r.addToParsed(n,o,a);var s=a.getSpan(t.spanTypes.row),i=a.getSpan(t.spanTypes.column);if(s>1)for(var l=1;l<s;l+=1){var d=new t(e,a);a.addToMergedCells("row",d),r.addToParsed(n+l,o,d)}if(i>1)for(var u=1;u<i;u+=1){var c=new t(e,a);a.addToMergedCells("column",c),r.addToParsed(n,o+u,c)}})}),r.parseRowColors(e)},this.parseRowColors=function(t){(!t||t.length<=0)&&e("no rows are found to parse their colors","error"),r.rowColors.header=""===t[0].style.backgroundColor?null:t[0].style.backgroundColor;for(var n=t.length/3>=1?0:1===t.length?2:(t.length-1)%2,o=0;o<n;o+=1){var a=document.createElement("tr");r.tableElement.querySelector("tbody").appendChild(a),t.push(a)}r.rowColors.even=getComputedStyle(t[1]).backgroundColor,r.rowColors.odd=getComputedStyle(t[2]).backgroundColor;for(var s=0;s<n;s+=1)t[t.length-(s+1)].remove()},this.addRow=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Array.isArray(e)||(e=[e]);var o,a=r.tableElement.querySelector("tbody");if(t)o=r.originals.rows[n];else{var s=document.createRange();s.setStart(a,0),o=s.createContextualFragment('<tr class="'.concat(e.join(" "),'"></tr>')).childNodes[0]}return a.appendChild(o),r.rowCache.push(o),{el:o,id:r.rowCache.length-1}},this.clearTable=function(){r.rowCache=[],r.tableElement.querySelector("tbody").innerHTML=""},this.getRow=function(t){return r.rowCache[t]?r.rowCache[t]:(e("no row with id [".concat(t,"] found in the cache."),"warn"),null)},this.maxRows=function(){return r.parsedTable.length},this.maxColumns=function(){return r.parsedTable.reduce(function(e,t){return t.length>e&&(e=t.length),e},0)},this.getCell=function(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{if(r.parsedTable[t][n])return o?r.parsedTable[t][n]:r.parsedTable[t][n].el}catch(a){return e("no cell found at the given address of [".concat(t,"-").concat(n,"]"),"warn"),null}return e("no cell found at the given address of [".concat(t,"-").concat(n,"]"),"warn"),null},this.getCellsAtRow=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],o=0;o<r.maxColumns();o+=1){var a=r.getCell(e,o,t);a&&n.push(a)}return n},this.appendToRow=function(e,t,n){var o=r.getRow(n),a=r.getCell(e,t,!0);return a&&o&&o.appendChild(a.getElement()),a},this.appendElementToRow=function(e,t){var n=r.getRow(t);e&&n&&n.appendChild(e)},this.appendObjectToRow=function(e,t){var n=r.getRow(t);e&&n&&n.appendChild(e.getElement())},this.parseTable(),{maxRows:this.maxRows,maxColumns:this.maxColumns,addRow:this.addRow,clearTable:this.clearTable,getCell:this.getCell,appendToRow:this.appendToRow,appendElementToRow:this.appendElementToRow,appendObjectToRow:this.appendObjectToRow,getCellsAtRow:this.getCellsAtRow,el:this.tableElement,rowColors:this.rowColors}}t.spanTypes={row:"row",column:"col"};var o={query:".wptb-preview-table",defaultClasses:["wptb-plugin-responsive-base"],bindToResize:!1};return function(){var e=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options=r({},o,{},a),this.elements=Array.from(document.querySelectorAll(this.options.query)),this.elementObjects=this.elements.map(function(e){return{el:e,tableObject:new n(e)}}),this.bindRebuildToResize=function(){window.addEventListener("resize",function(t){e.rebuildTables(t.target.innerWidth)})},this.getDirective=function(e){var t=e.dataset.wptbResponsiveDirectives;return t?JSON.parse(atob(t)):null},this.addDefaultClasses=function(t){t.classList.add(e.options.defaultClasses)},this.removeDefaultClasses=function(t){t.classList.remove(e.options.defaultClasses)},this.autoBuild=function(t,n,r,o){var a=r.cellStackDirection[n],s=r.topRowAsHeader[n],i=r.cellsPerRow[n];o.clearTable(),"desktop"===n?(e.buildDefault(o),e.removeDefaultClasses(t)):(e.autoDirectionBuild(o,a,s,i),e.addDefaultClasses(t))},this.autoDirectionBuild=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=t.maxRows(),s=t.maxColumns(),i="row"===n;if(r)e.headerBuild(t,n,o);else if(i)!function(){for(var e=[],n=0;n<a;n+=1)t.getCellsAtRow(n,!0).forEach(function(t){return e.push(t)});for(var r=e.length,s=0,i=0;s<r;s+=o,i+=1){var l=t.addRow("wptb-row");l.el.style.backgroundColor=t.rowColors[i%2==0?"odd":"even"];for(var d=0;d<o;d+=1){var u=e[s+d];u&&(t.appendElementToRow(u.getElement(),l.id),u.resetAllAttributes(),u.setAttribute("style","width: 100% !important",!0,";"),u.setAttribute("colSpan",1),u.setAttribute("rowSpan",1))}}}();else{for(var l=[],d=0;d<s;d+=1)for(var u=0;u<a;u+=1){var c=t.getCell(u,d,!0);c&&l.push(c)}for(var p=l.length,f=0,h=0;f<p;f+=o,h+=1){var g=t.addRow("wptb-row");g.el.style.backgroundColor=t.rowColors[h%2==0?"odd":"even"];for(var b=0;b<o;b+=1){var m=l[f+b];m&&(t.appendElementToRow(m.getElement(),g.id),m.resetAllAttributes(),m.setAttribute("style","width: 100% !important",!0,";"),m.setAttribute("colSpan",1),m.setAttribute("rowSpan",1))}}}},this.headerBuild=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=e.getCellsAtRow(0,!0).map(function(t){return t.setAttribute("style","background-color: ".concat(e.rowColors.header),!0,";"),t}),a="column"===n,s=e.maxRows(),i=e.maxColumns();if(a)for(var l=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.addRow("wptb-row");t&&(n.el.style.borderTop="3px solid gray"),o.map(function(t){e.appendElementToRow(t.el.cloneNode(!0),n.id)})},d=Math.ceil((s-1)/r),u=1,c=0;c<d;c+=1){l(c>0);for(var p=0;p<r&&!(u>=s);p+=1){var f=e.addRow("wptb-row");f.el.style.backgroundColor=e.rowColors[p%2==0?"even":"odd"];for(var h=0;h<i;h+=1){var g=e.getCell(u,h,!0);if(g){g.resetAllAttributes();var b=!0,m=g.getSpan(t.spanTypes.row);if(g.getSpan(t.spanTypes.column),m>1){var w=r-p,v=Math.min(m,w);b=g.setSpan(t.spanTypes.row,v),g.setMergedRenderStatus(!0)}b&&e.appendObjectToRow(g,f.id)}}u+=1}}else for(var R=Math.ceil((s-1)/r),C=1,y=0;y<R;y+=1){for(var S=0;S<i;S+=1){var T=e.addRow("wptb-row");T.el.style.backgroundColor="none",y>0&&0===S&&(T.el.style.borderTop="3px solid gray");var A=o[S].el.cloneNode(!0);A.style.backgroundColor="".concat(e.rowColors.header," !important"),e.appendElementToRow(A,T.id);for(var O=0;O<r&&!(C+O>=s);O+=1){var E=e.getCell(C+O,S,!0);if(E){E.resetAllAttributes();var j=!0,M=E.getSpan(t.spanTypes.row);if(E.getSpan(t.spanTypes.column),M>1){var x=r-O,k=Math.min(M,x);j=E.setSpan(t.spanTypes.row,k);var P=E.el.getAttribute("rowSpan"),D=E.el.getAttribute("colSpan");E.setAttribute("rowSpan",D),E.setAttribute("colSpan",P),E.setMergedRenderStatus(!0)}if(j){var q=(C+O+y)%2==0?"even":"odd";1===r&&(q=C%2==0?"even":"odd"),E.setAttribute("style","background-color: ".concat(e.rowColors[q]),!0,";"),e.appendObjectToRow(E,T.id)}}}}C+=r}},this.buildDefault=function(e){for(var t=e.maxRows(),n=e.maxColumns(),r=0;r<t;r+=1)for(var o=e.addRow("",!0,r).id,a=0;a<n;a+=1){var s=e.getCell(r,a,!0);s&&!s.isReference()&&(s.resetAllAttributes(),e.appendElementToRow(s.getElement(),o))}},this.calculateRangeId=function(e,t){var n=Object.keys(t).sort(function(e,n){return t[e].width-t[n].width}),r=n[0];return n.map(function(n){e>=t[n].width&&(r=n)}),r},this.rebuildTable=function(t,n,r){var o=e.getDirective(t);if(o){if(!o.responsiveEnabled)return;var a=o.responsiveMode,s=e["".concat(a,"Build")];n||(n=t.getBoundingClientRect().width);var i=e.calculateRangeId(n,o.breakpoints);if(!s)throw new Error("No build mode named as [".concat(a,"] found."));var l=o.modeOptions[a];s.call(e,t,i,l,r)}},this.rebuildTables=function(t){t||(t=window.innerWidth),e.elementObjects.map(function(n){e.rebuildTable(n.el,t,n.tableObject)})},this.options.bindToResize&&this.bindRebuildToResize(),{rebuildTables:this.rebuildTables}}});
|
56 |
},{"process":"phKF"}],"ATQh":[function(require,module,exports) {
|
57 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:{click:{type:Function,default:function(){console.log("Material button clicked")}},size:{type:String,default:"fit-content"}},computed:{buttonClass:function(){return["wptb-plugin-button-material-".concat(this.size)]}}};exports.default=t;
|
58 |
-
(function(){var
|
59 |
-
},{
|
60 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("./MaterialButton"));function t(e){return e&&e.__esModule?e:{default:e}}var o={props:{message:{type:String,default:"This is a default message for modal window."},visible:{type:Boolean,default:!1},relativeRef:{type:HTMLElement,required:!0},callback:{type:Function,default:function(){console.log("modal button clicked")}}},components:{MaterialButton:e.default},mounted:function(){this.relativeRef.appendChild(this.$refs.mainWrapper)},beforeDestroy:function(){this.$refs.mainWrapper.remove()}};exports.default=o;
|
61 |
-
(function(){var
|
62 |
-
},{"./MaterialButton":"ATQh"
|
63 |
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=c(require("../components/TableClone")),t=c(require("../components/ScreenSizeSlider")),i=c(require("../../../WPTB_ResponsiveFrontend")),n=c(require("../functions/DeBouncer")),r=c(require("../components/ModalWindow")),o=c(require("../components/MaterialButton")),s=c(require("../components/NumberPostfixInput"));function c(e){return e&&e.__esModule?e:{default:e}}function u(e
|
64 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("transition",{attrs:{name:"wptb-fade"}},[e.isVisible?i("div",{ref:"builderResponsive",staticClass:"wptb-builder-responsive"},[i("div",{staticClass:"wptb-responsive-menu-tools"},[i("screen-size-slider",{attrs:{"end-padding":e.sliderPadding,stops:e.directives.breakpoints,"model-val":e.appOptions.currentSize,"enable-breakpoint-customization":!1},on:{slide:e.handleSizeSlideChange}})],1),e._v(" "),i("div",{staticClass:"wptb-responsive-builder-main wptb-checkerboard-pattern wptb-plugin-inset-shadow-md"},[i("div",{staticClass:"wptb-responsive-builder-toolbox-float"},[i("number-postfix-input",{staticClass:"wptb-size-input wptb-plugin-box-shadow-xl",attrs:{"post-fix":"px","only-enter":!0},model:{value:e.appOptions.currentSize,callback:function(t){e.$set(e.appOptions,"currentSize",t)},expression:"appOptions.currentSize"}}),e._v(" "),i("material-button",{staticClass:"wptb-plugin-box-shadow-xl",attrs:{size:"fit-content",click:e.showCellIdentifications}},[e._v(e._s(e._f("cap")(e.strings.identifyCells))+" ")])],1),e._v(" "),i("table-clone",{ref:"tableClone",attrs:{clone:e.isVisible,"clone-query":e.cloneQuery,"table-directives":e.currentDirectives,"table-style":e.tableStyle},on:{tableCloned:e.tableCloned,directivesCopied:e.directivesCopied}}),e._v(" "),i("transition",{attrs:{name:"wptb-fade"}},[e.directives.responsiveEnabled?e._e():i("div",{staticClass:"wptb-responsive-disabled-table-overlay"})]),e._v(" "),i("transition",{attrs:{name:"wptb-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.rebuilding,expression:"rebuilding"}],staticClass:"wptb-responsive-wait-overlay"},[e._v(e._s(e.strings.rebuilding))])]),e._v(" "),i("modal-window",{attrs:{visible:e.appOptions.hasLegacyResponsive,message:e.strings.legacyResponsiveWarning,"relative-ref":e.modalRelative,callback:function(){e.appOptions.hasLegacyResponsive=!1}}})],1)]):e._e()])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
65 |
-
},{"../components/TableClone":"cW6v","../components/ScreenSizeSlider":"V4gv","../../../WPTB_ResponsiveFrontend":"Q6f0","../functions/DeBouncer":"qsi5","../components/ModalWindow":"vCKs","../components/MaterialButton":"ATQh","../components/NumberPostfixInput":"h0P7"
|
66 |
|
67 |
-
(function(){var
|
68 |
-
},{
|
69 |
"use strict";function e(e,t){e.filter("cap",function(e){return e.split(" ").map(function(e){return e[0].toUpperCase()+e.slice(1)}).join(" ")})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={install:e};exports.default=t;
|
70 |
},{}],"yEip":[function(require,module,exports) {
|
71 |
"use strict";function t(t,e){t.mixin({data:function(){return{strings:e.strings}}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={install:t};exports.default=e;
|
72 |
},{}],"CDb8":[function(require,module,exports) {
|
73 |
"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(n){e(t,n,r[n])})}return t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Plugin=exports.SSR=exports.Fragment=exports.default=void 0;var n=function(e,t,n){Object.defineProperty(e,t,{configurable:!0,get:function(){return n},set:function(e){console.warn("tried to set frozen property ".concat(t," with ").concat(e))}})},r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n})},o={abstract:!0,name:"Fragment",props:{name:{type:String,default:function(){return Math.floor(Date.now()*Math.random()).toString(16)}}},mounted:function(){var e=this.$el,t=e.parentNode,o=document.createComment("fragment#".concat(this.name,"#head")),i=document.createComment("fragment#".concat(this.name,"#tail"));t.insertBefore(o,e),t.insertBefore(i,e),e.appendChild=function(r){t.insertBefore(r,i),n(r,"parentNode",e)},e.insertBefore=function(r,o){t.insertBefore(r,o),n(r,"parentNode",e)},e.removeChild=function(e){t.removeChild(e),r(e,"parentNode")},Array.from(e.childNodes).forEach(function(t){return e.appendChild(t)}),t.removeChild(e),n(e,"parentNode",t),n(e,"nextSibling",i.nextSibling);var a=t.insertBefore;t.insertBefore=function(n,r){a.call(t,n,r!==e?r:o)};var c=t.removeChild;t.removeChild=function(n){if(n===e){for(;o.nextSibling!==i;)e.removeChild(o.nextSibling);t.removeChild(o),t.removeChild(i),r(e,"parentNode"),t.insertBefore=a,t.removeChild=c}else c.call(t,n)}},render:function(e){var n=this,r=this.$slots.default;return r&&r.length&&r.forEach(function(e){return e.data=t({},e.data,{attrs:t({fragment:n.name},(e.data||{}).attrs)})}),e("div",{attrs:{fragment:this.name}},r)}};function i(e,t){}var a=o,c=i,f={install:function(e){e.component("fragment",o)}},l={Fragment:o,Plugin:f,SSR:i};exports.Plugin=f,exports.SSR=c,exports.Fragment=a;var u=l;exports.default=u;
|
74 |
},{}],"vpWQ":[function(require,module,exports) {
|
75 |
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{label:String,value:{type:null},disabled:{type:Boolean,default:!1}},data:function(){return{innerValue:""}},model:{prop:"value",event:"valueChanged"},watch:{value:function(e){this.innerValue=e},innerValue:function(e){this.$emit("valueChanged",e)}},mounted:function(){this.innerValue=this.value}},
|
76 |
},{}],"osOD":[function(require,module,exports) {
|
77 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../mixins/PanelControlBase"));function t(e){return e&&e.__esModule?e:{default:e}}var r={mixins:[e.default]};exports.default=r;
|
78 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,
|
79 |
-
},{"../mixins/PanelControlBase":"vpWQ"
|
80 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../mixins/PanelControlBase"));function t(e){return e&&e.__esModule?e:{default:e}}var o={props:{options:{type:Object,default:function(){}}},mixins:[e.default]};exports.default=o;
|
81 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,
|
82 |
-
},{"../mixins/PanelControlBase":"vpWQ"
|
83 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("vue-fragment"),r=t(require("./PanelToggleControl")),o=t(require("./PanelDropdownControl"));function t(e){return e&&e.__esModule?e:{default:e}}var n={components:{PanelToggleControl:r.default,PanelDropdownControl:o.default,Fragment:e.Fragment}};exports.default=n;
|
84 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,
|
85 |
-
},{"vue-fragment":"CDb8","./PanelToggleControl":"osOD","./PanelDropdownControl":"fI53"
|
86 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{header:{type:String,default:"Tab Header"},tabs:{type:Object,default:function(){return{default:"Default"}}},currentTab:{type:String,default:"default"}},methods:{isActiveTab:function(e){return this.currentTab===e},handleTabClick:function(e){this.$emit("tabClicked",e)}}};exports.default=e;
|
87 |
-
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,
|
88 |
-
},{
|
89 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("../mixins/PanelControlBase")),t=r(require("./NumberPostfixInput"));function r(e){return e&&e.__esModule?e:{default:e}}var u={components:{NumberPostfixInput:t.default},mixins:[e.default]};exports.default=u;
|
90 |
-
(function(){var
|
91 |
-
},{"../mixins/PanelControlBase":"vpWQ","./NumberPostfixInput":"h0P7"
|
92 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("vue-fragment"),t=n(require("./PanelToggleControl")),r=n(require("./PanelDropdownControl")),o=n(require("./PanelInputControl"));function n(e){return e&&e.__esModule?e:{default:e}}var i={components:{Fragment:e.Fragment,PanelToggleControl:t.default,PanelDropdownControl:r.default,PanelInputControl:o.default},methods:{isDisabled:function(){return"desktop"===this.appOptions.currentBreakpoint||!this.directives.responsiveEnabled}},computed:{perLabelString:function(){return this.directives.modeOptions.auto.topRowAsHeader[this.appOptions.currentBreakpoint]?this.strings.itemsPerHeader:this.strings.cellsPerRow}}};exports.default=i;
|
93 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("fragment",[o("panel-toggle-control",{attrs:{label:e._f("cap")(e.strings.topRowHeader),disabled:e.isDisabled()},model:{value:e.directives.modeOptions.auto.topRowAsHeader[e.appOptions.currentBreakpoint],callback:function(t){e.$set(e.directives.modeOptions.auto.topRowAsHeader,e.appOptions.currentBreakpoint,t)},expression:"directives.modeOptions.auto.topRowAsHeader[appOptions.currentBreakpoint]"}}),e._v(" "),o("panel-dropdown-control",{attrs:{label:e._f("cap")(e.strings.stackDirection),options:{row:e.strings.row,column:e.strings.column},disabled:e.isDisabled()},model:{value:e.directives.modeOptions.auto.cellStackDirection[e.appOptions.currentBreakpoint],callback:function(t){e.$set(e.directives.modeOptions.auto.cellStackDirection,e.appOptions.currentBreakpoint,t)},expression:"directives.modeOptions.auto.cellStackDirection[appOptions.currentBreakpoint]"}}),e._v(" "),o("panel-input-control",{attrs:{label:e._f("cap")(e.perLabelString),disabled:e.isDisabled()},model:{value:e.directives.modeOptions.auto.cellsPerRow[e.appOptions.currentBreakpoint],callback:function(t){e.$set(e.directives.modeOptions.auto.cellsPerRow,e.appOptions.currentBreakpoint,t)},expression:"directives.modeOptions.auto.cellsPerRow[appOptions.currentBreakpoint]"}})],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
94 |
-
},{"vue-fragment":"CDb8","./PanelToggleControl":"osOD","./PanelDropdownControl":"fI53","./PanelInputControl":"bOKu"
|
95 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("./PanelSectionGroupTabbed")),t=r(require("./AutoModePanelControls"));function r(e){return e&&e.__esModule?e:{default:e}}var o={components:{PanelSectionGroupTabbed:e.default,AutoModePanelControls:t.default},computed:{breakpointsObject:function(){var e=this;return Object.keys(this.directives.breakpoints).sort(function(t,r){return e.directives.breakpoints[t].width-e.directives.breakpoints[r].width}).reduce(function(t,r){return Object.prototype.hasOwnProperty.call(e.directives.breakpoints,r)&&(t[r]=e.directives.breakpoints[r].name),t},{})},currentPanelControls:function(){return"".concat(this.directives.responsiveMode[0].toUpperCase()+this.directives.responsiveMode.slice(1),"ModePanelControls")}},methods:{handleTabChange:function(e){this.appOptions.currentBreakpoint=e,this.appOptions.currentSize=this.directives.breakpoints[e].width}}};exports.default=o;
|
96 |
-
(function(){var
|
97 |
-
},{"./PanelSectionGroupTabbed":"UchZ","./AutoModePanelControls":"rfRR"
|
98 |
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=l(require("vue")),
|
99 |
-
},{"vue":"HYXJ","../containers/ResponsiveApp":"waBm","../components/ResponsiveControlsRow":"TuCQ","../functions/WPTB_ControlsManager":"WZJa","../plugins/filters":"GZC0","../plugins/strings":"yEip","../components/ResponsivePanelGeneralControls":"DmVJ","../components/ResponsivePanelModeControls":"BxO6"}],"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
-
"use strict";var e=
|
102 |
-
},{"vue":"HYXJ","./mountPoints/WPTB_IconSelectControl":"Pn7d","./mountPoints/WPTB_RangeControl":"YVYX","./functions/WPTB_ControlsManager":"WZJa","./mountPoints/WPTB_ResponsiveTable":"Ub7O"}],"
|
103 |
-
var global = arguments[3];
|
104 |
-
var e,t,o=arguments[3],a="__parcel__error__overlay__",r=module.bundle.Module;function n(e){r.call(this,e),this.hot={data:module.bundle.hotData,_acceptCallbacks:[],_disposeCallbacks:[],accept:function(e){this._acceptCallbacks.push(e||function(){})},dispose:function(e){this._disposeCallbacks.push(e)}},module.bundle.hotData=null}module.bundle.Module=n;var c=module.bundle.parent;if(!(c&&c.isParcelRequire||"undefined"==typeof WebSocket)){var i=location.hostname,l="https:"===location.protocol?"wss":"ws",s=new WebSocket(l+"://"+i+":3488/");s.onmessage=function(a){e={},t=[];var r=JSON.parse(a.data);if("update"===r.type){var n=!1;r.assets.forEach(function(e){e.isNew||h(o.parcelRequire,e.id)&&(n=!0)}),(n=n||r.assets.every(function(e){return"css"===e.type&&e.generated.js}))?(console.clear(),r.assets.forEach(function(e){f(o.parcelRequire,e)}),t.forEach(function(e){m(e[0],e[1])})):location.reload&&location.reload()}if("reload"===r.type&&(s.close(),s.onclose=function(){location.reload()}),"error-resolved"===r.type&&(console.log("[parcel] ✨ Error resolved"),p()),"error"===r.type){console.error("[parcel] 🚨 "+r.error.message+"\n"+r.error.stack),p();var c=d(r);document.body.appendChild(c)}}}function p(){var e=document.getElementById(a);e&&e.remove()}function d(e){var t=document.createElement("div");t.id=a;var o=document.createElement("div"),r=document.createElement("pre");return o.innerText=e.error.message,r.innerText=e.error.stack,t.innerHTML='<div style="background: black; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; opacity: 0.85; font-family: Menlo, Consolas, monospace; z-index: 9999;"><span style="background: red; padding: 2px 4px; border-radius: 2px;">ERROR</span><span style="top: 2px; margin-left: 5px; position: relative;">🚨</span><div style="font-size: 18px; font-weight: bold; margin-top: 20px;">'+o.innerHTML+"</div><pre>"+r.innerHTML+"</pre></div>",t}function u(e,t){var o=e.modules;if(!o)return[];var a,r,n,c=[];for(a in o)for(r in o[a][1])((n=o[a][1][r])===t||Array.isArray(n)&&n[n.length-1]===t)&&c.push(a);return e.parent&&(c=c.concat(u(e.parent,t))),c}function f(e,t){var o=e.modules;if(o)if(o[t.id]||!e.parent){var a=new Function("require","module","exports",t.generated.js);t.isNew=!o[t.id],o[t.id]=[a,t.deps]}else e.parent&&f(e.parent,t)}function h(a,r){var n=a.modules;if(n){if(!n[r]&&a.parent)return h(a.parent,r);if(!e[r]){e[r]=!0;var c=a.cache[r];return t.push([a,r]),!!(c&&c.hot&&c.hot._acceptCallbacks.length)||u(o.parcelRequire,r).some(function(e){return h(o.parcelRequire,e)})}}}function m(e,t){var o=e.cache[t];if(e.hotData={},o&&(o.hot.data=e.hotData),o&&o.hot&&o.hot._disposeCallbacks.length&&o.hot._disposeCallbacks.forEach(function(t){t(e.hotData)}),delete e.cache[t],e(t),(o=e.cache[t])&&o.hot&&o.hot._acceptCallbacks.length)return o.hot._acceptCallbacks.forEach(function(e){e()}),!0}
|
105 |
-
},{}]},{},["PMBU","Zn1h"], null)
|
3 |
var e=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=Object.freeze({});function n(e){return null==e}function r(e){return null!=e}function i(e){return!0===e}function o(e){return!1===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}var c=Object.prototype.toString;function u(e){return c.call(e).slice(8,-1)}function l(e){return"[object Object]"===c.call(e)}function f(e){return"[object RegExp]"===c.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return r(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var y=m("slot,component",!0),g=m("key,ref,slot,slot-scope,is");function _(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function $(e,t){return b.call(e,t)}function w(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var x=/-(\w)/g,C=w(function(e){return e.replace(x,function(e,t){return t?t.toUpperCase():""})}),A=w(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),k=/\B([A-Z])/g,O=w(function(e){return e.replace(k,"-$1").toLowerCase()});function S(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function T(e,t){return e.bind(t)}var N=Function.prototype.bind?T:S;function j(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function E(e,t){for(var n in t)e[n]=t[n];return e}function M(e){for(var t={},n=0;n<e.length;n++)e[n]&&E(t,e[n]);return t}function D(e,t,n){}var L=function(e,t,n){return!1},I=function(e){return e};function F(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}function P(e,t){if(e===t)return!0;var n=s(e),r=s(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every(function(e,n){return P(e,t[n])});if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),c=Object.keys(t);return a.length===c.length&&a.every(function(n){return P(e[n],t[n])})}catch(u){return!1}}function R(e,t){for(var n=0;n<e.length;n++)if(P(e[n],t))return n;return-1}function H(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var B="data-server-rendered",U=["component","directive","filter"],z=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],V={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:L,isReservedAttr:L,isUnknownElement:L,getTagNamespace:D,parsePlatformTagName:I,mustUseProp:L,async:!0,_lifecycleHooks:z},J=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function K(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function q(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var W=new RegExp("[^"+J.source+".$_\\d]");function Z(e){if(!W.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var G,X="__proto__"in{},Y="undefined"!=typeof window,Q="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,ee=Q&&WXEnvironment.platform.toLowerCase(),te=Y&&window.navigator.userAgent.toLowerCase(),ne=te&&/msie|trident/.test(te),re=te&&te.indexOf("msie 9.0")>0,ie=te&&te.indexOf("edge/")>0,oe=te&&te.indexOf("android")>0||"android"===ee,ae=te&&/iphone|ipad|ipod|ios/.test(te)||"ios"===ee,se=te&&/chrome\/\d+/.test(te)&&!ie,ce=te&&/phantomjs/.test(te),ue=te&&te.match(/firefox\/(\d+)/),le={}.watch,fe=!1;if(Y)try{var pe={};Object.defineProperty(pe,"passive",{get:function(){fe=!0}}),window.addEventListener("test-passive",null,pe)}catch(Xl){}var de=function(){return void 0===G&&(G=!Y&&!Q&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),G},ve=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function he(e){return"function"==typeof e&&/native code/.test(e.toString())}var me,ye="undefined"!=typeof Symbol&&he(Symbol)&&"undefined"!=typeof Reflect&&he(Reflect.ownKeys);me="undefined"!=typeof Set&&he(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ge,_e,be,$e,we=D,xe=D,Ce=D,Ae=D,ke=0,Oe=function(){this.id=ke++,this.subs=[]};Oe.prototype.addSub=function(e){this.subs.push(e)},Oe.prototype.removeSub=function(e){_(this.subs,e)},Oe.prototype.depend=function(){Oe.target&&Oe.target.addDep(this)},Oe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},Oe.target=null;var Se=[];function Te(e){Se.push(e),Oe.target=e}function Ne(){Se.pop(),Oe.target=Se[Se.length-1]}var je=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Ee={child:{configurable:!0}};Ee.child.get=function(){return this.componentInstance},Object.defineProperties(je.prototype,Ee);var Me=function(e){void 0===e&&(e="");var t=new je;return t.text=e,t.isComment=!0,t};function De(e){return new je(void 0,void 0,void 0,String(e))}function Le(e){var t=new je(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Ie=Array.prototype,Fe=Object.create(Ie),Pe=["push","pop","shift","unshift","splice","sort","reverse"];Pe.forEach(function(e){var t=Ie[e];q(Fe,e,function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o})});var Re=Object.getOwnPropertyNames(Fe),He=!0;function Be(e){He=e}var Ue=function(e){this.value=e,this.dep=new Oe,this.vmCount=0,q(e,"__ob__",this),Array.isArray(e)?(X?ze(e,Fe):Ve(e,Fe,Re),this.observeArray(e)):this.walk(e)};function ze(e,t){e.__proto__=t}function Ve(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];q(e,o,t[o])}}function Je(e,t){var n;if(s(e)&&!(e instanceof je))return $(e,"__ob__")&&e.__ob__ instanceof Ue?n=e.__ob__:He&&!de()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Ue(e)),t&&n&&n.vmCount++,n}function Ke(e,t,n,r,i){var o=new Oe,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var u=!i&&Je(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return Oe.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(t)&&Ze(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!=t&&r!=r||s&&!c||(c?c.call(e,t):n=t,u=!i&&Je(t),o.notify())}})}}function qe(e,t,n){if(Array.isArray(e)&&p(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Ke(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function We(e,t){if(Array.isArray(e)&&p(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||$(e,t)&&(delete e[t],n&&n.dep.notify())}}function Ze(e){for(var t=void 0,n=0,r=e.length;n<r;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Ze(t)}Ue.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Ke(e,t[n])},Ue.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Je(e[t])};var Ge=V.optionMergeStrategies;function Xe(e,t){if(!t)return e;for(var n,r,i,o=ye?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=e[n],i=t[n],$(e,n)?r!==i&&l(r)&&l(i)&&Xe(r,i):qe(e,n,i));return e}function Ye(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?Xe(r,i):i}:t?e?function(){return Xe("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Qe(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?et(n):n}function et(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function tt(e,t,n,r){var i=Object.create(e||null);return t?E(i,t):i}Ge.data=function(e,t,n){return n?Ye(e,t,n):t&&"function"!=typeof t?e:Ye(e,t)},z.forEach(function(e){Ge[e]=Qe}),U.forEach(function(e){Ge[e+"s"]=tt}),Ge.watch=function(e,t,n,r){if(e===le&&(e=void 0),t===le&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in E(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Ge.props=Ge.methods=Ge.inject=Ge.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return E(i,e),t&&E(i,t),i},Ge.provide=Ye;var nt=function(e,t){return void 0===t?e:t};function rt(e){for(var t in e.components)it(t)}function it(e){new RegExp("^[a-zA-Z][\\-\\.0-9_"+J.source+"]*$").test(e)||we('Invalid component name: "'+e+'". Component names should conform to valid custom element name in html5 specification.'),(y(e)||V.isReservedTag(e))&&we("Do not use built-in or reserved HTML elements as component id: "+e)}function ot(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[C(i)]={type:null});else if(l(n))for(var a in n)i=n[a],o[C(a)]=l(i)?i:{type:i};else 0;e.props=o}}function at(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(l(n))for(var o in n){var a=n[o];r[o]=l(a)?E({from:o},a):{from:a}}else 0}}function st(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}function ct(e,t,n){l(t)||we('Invalid value for option "'+e+'": expected an Object, but got '+u(t)+".",n)}function ut(e,t,n){if("function"==typeof t&&(t=t.options),ot(t,n),at(t,n),st(t),!t._base&&(t.extends&&(e=ut(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=ut(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)$(e,o)||s(o);function s(r){var i=Ge[r]||nt;a[r]=i(e[r],t[r],n,r)}return a}function lt(e,t,n,r){if("string"==typeof n){var i=e[t];if($(i,n))return i[n];var o=C(n);if($(i,o))return i[o];var a=A(o);if($(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function ft(e,t,n,r){var i=t[e],o=!$(n,e),a=n[e],s=gt(Boolean,i.type);if(s>-1)if(o&&!$(i,"default"))a=!1;else if(""===a||a===O(e)){var c=gt(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=pt(r,i,e);var u=He;Be(!0),Je(a),Be(u)}return a}function pt(e,t,n){if($(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"==typeof r&&"Function"!==mt(t.type)?r.call(e):r}}function dt(e,t,n,r,i){if(e.required&&i)we('Missing required prop: "'+t+'"',r);else if(null!=n||e.required){var o=e.type,a=!o||!0===o,s=[];if(o){Array.isArray(o)||(o=[o]);for(var c=0;c<o.length&&!a;c++){var u=ht(n,o[c]);s.push(u.expectedType||""),a=u.valid}}if(a){var l=e.validator;l&&(l(n)||we('Invalid prop: custom validator check failed for prop "'+t+'".',r))}else we(_t(t,n,s),r)}}var vt=/^(String|Number|Boolean|Function|Symbol)$/;function ht(e,t){var n,r=mt(t);if(vt.test(r)){var i=typeof e;(n=i===r.toLowerCase())||"object"!==i||(n=e instanceof t)}else n="Object"===r?l(e):"Array"===r?Array.isArray(e):e instanceof t;return{valid:n,expectedType:r}}function mt(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function yt(e,t){return mt(e)===mt(t)}function gt(e,t){if(!Array.isArray(t))return yt(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(yt(t[n],e))return n;return-1}function _t(e,t,n){var r='Invalid prop: type check failed for prop "'+e+'". Expected '+n.map(A).join(", "),i=n[0],o=u(t),a=bt(t,i),s=bt(t,o);return 1===n.length&&$t(i)&&!wt(i,o)&&(r+=" with value "+a),r+=", got "+o+" ",$t(o)&&(r+="with value "+s+"."),r}function bt(e,t){return"String"===t?'"'+e+'"':"Number"===t?""+Number(e):""+e}function $t(e){return["string","number","boolean"].some(function(t){return e.toLowerCase()===t})}function wt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.some(function(e){return"boolean"===e.toLowerCase()})}function xt(e,t,n){Te();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(Xl){At(Xl,r,"errorCaptured hook")}}At(e,t,n)}finally{Ne()}}function Ct(e,t,n,r,i){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&d(o)&&!o._handled&&(o.catch(function(e){return xt(e,r,i+" (Promise/async)")}),o._handled=!0)}catch(Xl){xt(Xl,r,i)}return o}function At(e,t,n){if(V.errorHandler)try{return V.errorHandler.call(null,e,t,n)}catch(Xl){Xl!==e&&kt(Xl,null,"config.errorHandler")}kt(e,t,n)}function kt(e,t,n){if(!Y&&!Q||"undefined"==typeof console)throw e;console.error(e)}var Ot,St,Tt,Nt,jt,Et,Mt,Dt,Lt,It,Ft,Pt,Rt=!1,Ht=[],Bt=!1;function Ut(){Bt=!1;var e=Ht.slice(0);Ht.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&he(Promise)){var zt=Promise.resolve();Ot=function(){zt.then(Ut),ae&&setTimeout(D)},Rt=!0}else if(ne||"undefined"==typeof MutationObserver||!he(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ot="undefined"!=typeof setImmediate&&he(setImmediate)?function(){setImmediate(Ut)}:function(){setTimeout(Ut,0)};else{var Vt=1,Jt=new MutationObserver(Ut),Kt=document.createTextNode(String(Vt));Jt.observe(Kt,{characterData:!0}),Ot=function(){Vt=(Vt+1)%2,Kt.data=String(Vt)},Rt=!0}function qt(e,t){var n;if(Ht.push(function(){if(e)try{e.call(t)}catch(Xl){xt(Xl,t,"nextTick")}else n&&n(t)}),Bt||(Bt=!0,Ot()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var Wt=new me;function Zt(e){Gt(e,Wt),Wt.clear()}function Gt(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!s(e)||Object.isFrozen(e)||e instanceof je)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i)for(n=e.length;n--;)Gt(e[n],t);else for(n=(r=Object.keys(e)).length;n--;)Gt(e[r[n]],t)}}var Xt=w(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}});function Yt(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return Ct(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)Ct(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function Qt(e,t,r,o,a,s){var c,u,l,f;for(c in e)u=e[c],l=t[c],f=Xt(c),n(u)||(n(l)?(n(u.fns)&&(u=e[c]=Yt(u,s)),i(f.once)&&(u=e[c]=a(f.name,u,f.capture)),r(f.name,u,f.capture,f.passive,f.params)):u!==l&&(l.fns=u,e[c]=l));for(c in t)n(e[c])&&o((f=Xt(c)).name,t[c],f.capture)}function en(e,t,o){var a;e instanceof je&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function c(){o.apply(this,arguments),_(a.fns,c)}n(s)?a=Yt([c]):r(s.fns)&&i(s.merged)?(a=s).fns.push(c):a=Yt([s,c]),a.merged=!0,e[t]=a}function tn(e,t,i){var o=t.options.props;if(!n(o)){var a={},s=e.attrs,c=e.props;if(r(s)||r(c))for(var u in o){var l=O(u);nn(a,c,u,l,!0)||nn(a,s,u,l,!1)}return a}}function nn(e,t,n,i,o){if(r(t)){if($(t,n))return e[n]=t[n],o||delete t[n],!0;if($(t,i))return e[n]=t[i],o||delete t[i],!0}return!1}function rn(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function on(e){return a(e)?[De(e)]:Array.isArray(e)?sn(e):void 0}function an(e){return r(e)&&r(e.text)&&o(e.isComment)}function sn(e,t){var o,s,c,u,l=[];for(o=0;o<e.length;o++)n(s=e[o])||"boolean"==typeof s||(u=l[c=l.length-1],Array.isArray(s)?s.length>0&&(an((s=sn(s,(t||"")+"_"+o))[0])&&an(u)&&(l[c]=De(u.text+s[0].text),s.shift()),l.push.apply(l,s)):a(s)?an(u)?l[c]=De(u.text+s):""!==s&&l.push(De(s)):an(s)&&an(u)?l[c]=De(u.text+s.text):(i(e._isVList)&&r(s.tag)&&n(s.key)&&r(t)&&(s.key="__vlist"+t+"_"+o+"__"),l.push(s)));return l}function cn(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}function un(e){var t=ln(e.$options.inject,e);t&&(Be(!1),Object.keys(t).forEach(function(n){Ke(e,n,t[n])}),Be(!0))}function ln(e,t){if(e){for(var n=Object.create(null),r=ye?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=e[o].from,s=t;s;){if(s._provided&&$(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[o]){var c=e[o].default;n[o]="function"==typeof c?c.call(t):c}else 0}}return n}}function fn(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(pn)&&delete n[u];return n}function pn(e){return e.isComment&&!e.asyncFactory||" "===e.text}function dn(e,n,r){var i,o=Object.keys(n).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==t&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=vn(n,c,e[c]))}else i={};for(var u in n)u in i||(i[u]=hn(n,u));return e&&Object.isExtensible(e)&&(e._normalized=i),q(i,"$stable",a),q(i,"$key",s),q(i,"$hasNormal",o),i}function vn(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:on(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function hn(e,t){return function(){return e[t]}}function mn(e,t){var n,i,o,a,c;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),i=0,o=e.length;i<o;i++)n[i]=t(e[i],i);else if("number"==typeof e)for(n=new Array(e),i=0;i<e;i++)n[i]=t(i+1,i);else if(s(e))if(ye&&e[Symbol.iterator]){n=[];for(var u=e[Symbol.iterator](),l=u.next();!l.done;)n.push(t(l.value,n.length)),l=u.next()}else for(a=Object.keys(e),n=new Array(a.length),i=0,o=a.length;i<o;i++)c=a[i],n[i]=t(e[c],c,i);return r(n)||(n=[]),n._isVList=!0,n}function yn(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=E(E({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function gn(e){return lt(this.$options,"filters",e,!0)||I}function _n(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function bn(e,t,n,r,i){var o=V.keyCodes[t]||n;return i&&r&&!V.keyCodes[t]?_n(i,r):o?_n(o,e):r?O(r)!==t:void 0}function $n(e,t,n,r,i){if(n)if(s(n)){var o;Array.isArray(n)&&(n=M(n));var a=function(a){if("class"===a||"style"===a||g(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||V.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=C(a),u=O(a);c in o||u in o||(o[a]=n[a],i&&((e.on||(e.on={}))["update:"+a]=function(e){n[a]=e}))};for(var c in n)a(c)}else;return e}function wn(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t?r:(Cn(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r)}function xn(e,t,n){return Cn(e,"__once__"+t+(n?"_"+n:""),!0),e}function Cn(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&An(e[r],t+"_"+r,n);else An(e,t,n)}function An(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function kn(e,t){if(t)if(l(t)){var n=e.on=e.on?E({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function On(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?On(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Sn(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Tn(e,t){return"string"==typeof e?t+e:e}function Nn(e){e._o=xn,e._n=h,e._s=v,e._l=mn,e._t=yn,e._q=P,e._i=R,e._m=wn,e._f=gn,e._k=bn,e._b=$n,e._v=De,e._e=Me,e._u=On,e._g=kn,e._d=Sn,e._p=Tn}function jn(e,n,r,o,a){var s,c=this,u=a.options;$(o,"_uid")?(s=Object.create(o))._original=o:(s=o,o=o._original);var l=i(u._compiled),f=!l;this.data=e,this.props=n,this.children=r,this.parent=o,this.listeners=e.on||t,this.injections=ln(u.inject,o),this.slots=function(){return c.$slots||dn(e.scopedSlots,c.$slots=fn(r,o)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return dn(e.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=dn(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var i=Vn(s,e,t,n,r,f);return i&&!Array.isArray(i)&&(i.fnScopeId=u._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return Vn(s,e,t,n,r,f)}}function En(e,n,i,o,a){var s=e.options,c={},u=s.props;if(r(u))for(var l in u)c[l]=ft(l,u,n||t);else r(i.attrs)&&Dn(c,i.attrs),r(i.props)&&Dn(c,i.props);var f=new jn(i,c,a,o,e),p=s.render.call(null,f._c,f);if(p instanceof je)return Mn(p,i,f.parent,s,f);if(Array.isArray(p)){for(var d=on(p)||[],v=new Array(d.length),h=0;h<d.length;h++)v[h]=Mn(d[h],i,f.parent,s,f);return v}}function Mn(e,t,n,r,i){var o=Le(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function Dn(e,t){for(var n in t)e[C(n)]=t[n]}Nn(jn.prototype);var Ln={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Ln.prepatch(n,n)}else{(e.componentInstance=Pn(e,ur)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;hr(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,_r(n,"mounted")),e.data.keepAlive&&(t._isMounted?Dr(n):yr(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?gr(t,!0):t.$destroy())}},In=Object.keys(Ln);function Fn(e,t,o,a,c){if(!n(e)){var u=o.$options._base;if(s(e)&&(e=u.extend(e)),"function"==typeof e){var l;if(n(e.cid)&&void 0===(e=er(l=e,u)))return Qn(l,t,o,a,c);t=t||{},ri(e),r(t.model)&&Bn(e.options,t);var f=tn(t,e,c);if(i(e.options.functional))return En(e,f,t,o,a);var p=t.on;if(t.on=t.nativeOn,i(e.options.abstract)){var d=t.slot;t={},d&&(t.slot=d)}Rn(t);var v=e.options.name||c;return new je("vue-component-"+e.cid+(v?"-"+v:""),t,void 0,void 0,void 0,o,{Ctor:e,propsData:f,listeners:p,tag:c,children:a},l)}}}function Pn(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;return r(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new e.componentOptions.Ctor(n)}function Rn(e){for(var t=e.hook||(e.hook={}),n=0;n<In.length;n++){var r=In[n],i=t[r],o=Ln[r];i===o||i&&i._merged||(t[r]=i?Hn(o,i):o)}}function Hn(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Bn(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),a=o[i],s=t.model.callback;r(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[i]=[s].concat(a)):o[i]=s}var Un=1,zn=2;function Vn(e,t,n,r,o,s){return(Array.isArray(n)||a(n))&&(o=r,r=n,n=void 0),i(s)&&(o=zn),Jn(e,t,n,r,o)}function Jn(e,t,n,i,o){if(r(n)&&r(n.__ob__))return Me();if(r(n)&&r(n.is)&&(t=n.is),!t)return Me();var a,s,c;(Array.isArray(i)&&"function"==typeof i[0]&&((n=n||{}).scopedSlots={default:i[0]},i.length=0),o===zn?i=on(i):o===Un&&(i=rn(i)),"string"==typeof t)?(s=e.$vnode&&e.$vnode.ns||V.getTagNamespace(t),a=V.isReservedTag(t)?new je(V.parsePlatformTagName(t),n,i,void 0,void 0,e):n&&n.pre||!r(c=lt(e.$options,"components",t))?new je(t,n,i,void 0,void 0,e):Fn(c,n,e,i,t)):a=Fn(t,n,e,i);return Array.isArray(a)?a:r(a)?(r(s)&&Kn(a,s),r(n)&&qn(n),a):Me()}function Kn(e,t,o){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,o=!0),r(e.children))for(var a=0,s=e.children.length;a<s;a++){var c=e.children[a];r(c.tag)&&(n(c.ns)||i(o)&&"svg"!==c.tag)&&Kn(c,t,o)}}function qn(e){s(e.style)&&Zt(e.style),s(e.class)&&Zt(e.class)}function Wn(e){e._vnode=null,e._staticTrees=null;var n=e.$options,r=e.$vnode=n._parentVnode,i=r&&r.context;e.$slots=fn(n._renderChildren,i),e.$scopedSlots=t,e._c=function(t,n,r,i){return Vn(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Vn(e,t,n,r,i,!0)};var o=r&&r.data;Ke(e,"$attrs",o&&o.attrs||t,null,!0),Ke(e,"$listeners",n._parentListeners||t,null,!0)}var Zn,Gn=null;function Xn(e){Nn(e.prototype),e.prototype.$nextTick=function(e){return qt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=dn(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Gn=t,e=r.call(t._renderProxy,t.$createElement)}catch(Xl){xt(Xl,t,"render"),e=t._vnode}finally{Gn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof je||(e=Me()),e.parent=i,e}}function Yn(e,t){return(e.__esModule||ye&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function Qn(e,t,n,r,i){var o=Me();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function er(e,t){if(i(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;var o=Gn;if(o&&r(e.owners)&&-1===e.owners.indexOf(o)&&e.owners.push(o),i(e.loading)&&r(e.loadingComp))return e.loadingComp;if(o&&!r(e.owners)){var a=e.owners=[o],c=!0,u=null,l=null;o.$on("hook:destroyed",function(){return _(a,o)});var f=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==l&&(clearTimeout(l),l=null))},p=H(function(n){e.resolved=Yn(n,t),c?a.length=0:f(!0)}),v=H(function(t){r(e.errorComp)&&(e.error=!0,f(!0))}),h=e(p,v);return s(h)&&(d(h)?n(e.resolved)&&h.then(p,v):d(h.component)&&(h.component.then(p,v),r(h.error)&&(e.errorComp=Yn(h.error,t)),r(h.loading)&&(e.loadingComp=Yn(h.loading,t),0===h.delay?e.loading=!0:u=setTimeout(function(){u=null,n(e.resolved)&&n(e.error)&&(e.loading=!0,f(!1))},h.delay||200)),r(h.timeout)&&(l=setTimeout(function(){l=null,n(e.resolved)&&v(null)},h.timeout)))),c=!1,e.loading?e.loadingComp:e.resolved}}function tr(e){return e.isComment&&e.asyncFactory}function nr(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&(r(n.componentOptions)||tr(n)))return n}}function rr(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&sr(e,t)}function ir(e,t){Zn.$on(e,t)}function or(e,t){Zn.$off(e,t)}function ar(e,t){var n=Zn;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function sr(e,t,n){Zn=e,Qt(t,n||{},ir,or,ar,e),Zn=void 0}function cr(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;for(var s=a.length;s--;)if((o=a[s])===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?j(n):n;for(var r=j(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;o<a;o++)Ct(n[o],t,r,t,i)}return t}}var ur=null,lr=!1;function fr(e){var t=ur;return ur=e,function(){ur=t}}function pr(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function dr(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=fr(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){_r(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||_(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),_r(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function vr(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=Me),_r(e,"beforeMount"),r=function(){e._update(e._render(),n)},new Pr(e,r,D,{before:function(){e._isMounted&&!e._isDestroyed&&_r(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,_r(e,"mounted")),e}function hr(e,n,r,i,o){var a=i.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==t&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),u=!!(o||e.$options._renderChildren||c);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o,e.$attrs=i.data.attrs||t,e.$listeners=r||t,n&&e.$options.props){Be(!1);for(var l=e._props,f=e.$options._propKeys||[],p=0;p<f.length;p++){var d=f[p],v=e.$options.props;l[d]=ft(d,v,n,e)}Be(!0),e.$options.propsData=n}r=r||t;var h=e.$options._parentListeners;e.$options._parentListeners=r,sr(e,r,h),u&&(e.$slots=fn(o,i.context),e.$forceUpdate())}function mr(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function yr(e,t){if(t){if(e._directInactive=!1,mr(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)yr(e.$children[n]);_r(e,"activated")}}function gr(e,t){if(!(t&&(e._directInactive=!0,mr(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)gr(e.$children[n]);_r(e,"deactivated")}}function _r(e,t){Te();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Ct(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),Ne()}var br=100,$r=[],wr=[],xr={},Cr={},Ar=!1,kr=!1,Or=0;function Sr(){Or=$r.length=wr.length=0,xr={},Ar=kr=!1}var Tr=0,Nr=Date.now;if(Y&&!ne){var jr=window.performance;jr&&"function"==typeof jr.now&&Nr()>document.createEvent("Event").timeStamp&&(Nr=function(){return jr.now()})}function Er(){var e,t;for(Tr=Nr(),kr=!0,$r.sort(function(e,t){return e.id-t.id}),Or=0;Or<$r.length;Or++)(e=$r[Or]).before&&e.before(),t=e.id,xr[t]=null,e.run();var n=wr.slice(),r=$r.slice();Sr(),Lr(n),Mr(r),ve&&V.devtools&&ve.emit("flush")}function Mr(e){for(var t=e.length;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&_r(r,"updated")}}function Dr(e){e._inactive=!1,wr.push(e)}function Lr(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,yr(e[t],!0)}function Ir(e){var t=e.id;if(null==xr[t]){if(xr[t]=!0,kr){for(var n=$r.length-1;n>Or&&$r[n].id>e.id;)n--;$r.splice(n+1,0,e)}else $r.push(e);Ar||(Ar=!0,qt(Er))}}var Fr=0,Pr=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Fr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new me,this.newDepIds=new me,this.expression="","function"==typeof t?this.getter=t:(this.getter=Z(t),this.getter||(this.getter=D)),this.value=this.lazy?void 0:this.get()};Pr.prototype.get=function(){var e;Te(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Xl){if(!this.user)throw Xl;xt(Xl,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Zt(e),Ne(),this.cleanupDeps()}return e},Pr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Pr.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Pr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Ir(this)},Pr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Xl){xt(Xl,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Pr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Pr.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Pr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||_(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Rr={enumerable:!0,configurable:!0,get:D,set:D};function Hr(e,t,n){Rr.get=function(){return this[t][n]},Rr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Rr)}function Br(e){e._watchers=[];var t=e.$options;t.props&&Ur(e,t.props),t.methods&&Gr(e,t.methods),t.data?zr(e):Je(e._data={},!0),t.computed&&Kr(e,t.computed),t.watch&&t.watch!==le&&Xr(e,t.watch)}function Ur(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||Be(!1);var a=function(o){i.push(o);var a=ft(o,t,n,e);Ke(r,o,a),o in e||Hr(e,"_props",o)};for(var s in t)a(s);Be(!0)}function zr(e){var t=e.$options.data;l(t=e._data="function"==typeof t?Vr(t,e):t||{})||(t={});for(var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);i--;){var o=n[i];0,r&&$(r,o)||K(o)||Hr(e,"_data",o)}Je(t,!0)}function Vr(e,t){Te();try{return e.call(t,t)}catch(Xl){return xt(Xl,t,"data()"),{}}finally{Ne()}}var Jr={lazy:!0};function Kr(e,t){var n=e._computedWatchers=Object.create(null),r=de();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new Pr(e,a||D,D,Jr)),i in e||qr(e,i,o)}}function qr(e,t,n){var r=!de();"function"==typeof n?(Rr.get=r?Wr(t):Zr(n),Rr.set=D):(Rr.get=n.get?r&&!1!==n.cache?Wr(t):Zr(n.get):D,Rr.set=n.set||D),Object.defineProperty(e,t,Rr)}function Wr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Oe.target&&t.depend(),t.value}}function Zr(e){return function(){return e.call(this,this)}}function Gr(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?D:N(t[n],e)}function Xr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Yr(e,n,r[i]);else Yr(e,n,r)}}function Yr(e,t,n,r){return l(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function Qr(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=qe,e.prototype.$delete=We,e.prototype.$watch=function(e,t,n){if(l(t))return Yr(this,e,t,n);(n=n||{}).user=!0;var r=new Pr(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(i){xt(i,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}var ei=0;function ti(e){e.prototype._init=function(e){var t=this;t._uid=ei++,t._isVue=!0,e&&e._isComponent?ni(t,e):t.$options=ut(ri(t.constructor),e||{},t),t._renderProxy=t,t._self=t,pr(t),rr(t),Wn(t),_r(t,"beforeCreate"),un(t),Br(t),cn(t),_r(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function ni(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function ri(e){var t=e.options;if(e.super){var n=ri(e.super);if(n!==e.superOptions){e.superOptions=n;var r=ii(e);r&&E(e.extendOptions,r),(t=e.options=ut(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function ii(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function oi(e){this._init(e)}function ai(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=j(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}function si(e){e.mixin=function(e){return this.options=ut(this.options,e),this}}function ci(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=ut(n.options,e),a.super=n,a.options.props&&ui(a),a.options.computed&&li(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,U.forEach(function(e){a[e]=n[e]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=E({},a.options),i[r]=a,a}}function ui(e){var t=e.options.props;for(var n in t)Hr(e.prototype,"_props",n)}function li(e){var t=e.options.computed;for(var n in t)qr(e.prototype,n,t[n])}function fi(e){U.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function pi(e){return e&&(e.Ctor.options.name||e.tag)}function di(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function vi(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=pi(a.componentOptions);s&&!t(s)&&hi(n,o,r,i)}}}function hi(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,_(n,t)}ti(oi),Qr(oi),cr(oi),dr(oi),Xn(oi);var mi=[String,RegExp,Array],yi={name:"keep-alive",abstract:!0,props:{include:mi,exclude:mi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)hi(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",function(t){vi(e,function(e){return di(t,e)})}),this.$watch("exclude",function(t){vi(e,function(e){return!di(t,e)})})},render:function(){var e=this.$slots.default,t=nr(e),n=t&&t.componentOptions;if(n){var r=pi(n),i=this.include,o=this.exclude;if(i&&(!r||!di(i,r))||o&&r&&di(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,_(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&hi(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},gi={KeepAlive:yi};function _i(e){var t={get:function(){return V}};Object.defineProperty(e,"config",t),e.util={warn:we,extend:E,mergeOptions:ut,defineReactive:Ke},e.set=qe,e.delete=We,e.nextTick=qt,e.observable=function(e){return Je(e),e},e.options=Object.create(null),U.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,E(e.options.components,gi),ai(e),si(e),ci(e),fi(e)}_i(oi),Object.defineProperty(oi.prototype,"$isServer",{get:de}),Object.defineProperty(oi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(oi,"FunctionalRenderContext",{value:jn}),oi.version="2.6.11";var bi=m("style,class"),$i=m("input,textarea,option,select,progress"),wi=function(e,t,n){return"value"===n&&$i(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},xi=m("contenteditable,draggable,spellcheck"),Ci=m("events,caret,typing,plaintext-only"),Ai=function(e,t){return Ni(t)||"false"===t?"false":"contenteditable"===e&&Ci(t)?t:"true"},ki=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Oi="http://www.w3.org/1999/xlink",Si=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ti=function(e){return Si(e)?e.slice(6,e.length):""},Ni=function(e){return null==e||!1===e};function ji(e){for(var t=e.data,n=e,i=e;r(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=Ei(i.data,t));for(;r(n=n.parent);)n&&n.data&&(t=Ei(t,n.data));return Mi(t.staticClass,t.class)}function Ei(e,t){return{staticClass:Di(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Mi(e,t){return r(e)||r(t)?Di(e,Li(t)):""}function Di(e,t){return e?t?e+" "+t:e:t||""}function Li(e){return Array.isArray(e)?Ii(e):s(e)?Fi(e):"string"==typeof e?e:""}function Ii(e){for(var t,n="",i=0,o=e.length;i<o;i++)r(t=Li(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function Fi(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var Pi={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Ri=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Hi=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Bi=function(e){return"pre"===e},Ui=function(e){return Ri(e)||Hi(e)};function zi(e){return Hi(e)?"svg":"math"===e?"math":void 0}var Vi=Object.create(null);function Ji(e){if(!Y)return!0;if(Ui(e))return!1;if(e=e.toLowerCase(),null!=Vi[e])return Vi[e];var t=document.createElement(e);return e.indexOf("-")>-1?Vi[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Vi[e]=/HTMLUnknownElement/.test(t.toString())}var Ki=m("text,number,password,search,email,tel,url");function qi(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function Wi(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Zi(e,t){return document.createElementNS(Pi[e],t)}function Gi(e){return document.createTextNode(e)}function Xi(e){return document.createComment(e)}function Yi(e,t,n){e.insertBefore(t,n)}function Qi(e,t){e.removeChild(t)}function eo(e,t){e.appendChild(t)}function to(e){return e.parentNode}function no(e){return e.nextSibling}function ro(e){return e.tagName}function io(e,t){e.textContent=t}function oo(e,t){e.setAttribute(t,"")}var ao=Object.freeze({createElement:Wi,createElementNS:Zi,createTextNode:Gi,createComment:Xi,insertBefore:Yi,removeChild:Qi,appendChild:eo,parentNode:to,nextSibling:no,tagName:ro,setTextContent:io,setStyleScope:oo}),so={create:function(e,t){co(t)},update:function(e,t){e.data.ref!==t.data.ref&&(co(e,!0),co(t))},destroy:function(e){co(e,!0)}};function co(e,t){var n=e.data.ref;if(r(n)){var i=e.context,o=e.componentInstance||e.elm,a=i.$refs;t?Array.isArray(a[n])?_(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var uo=new je("",{},[]),lo=["create","activate","update","remove","destroy"];function fo(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&po(e,t)||i(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&n(t.asyncFactory.error))}function po(e,t){if("input"!==e.tag)return!0;var n,i=r(n=e.data)&&r(n=n.attrs)&&n.type,o=r(n=t.data)&&r(n=n.attrs)&&n.type;return i===o||Ki(i)&&Ki(o)}function vo(e,t,n){var i,o,a={};for(i=t;i<=n;++i)r(o=e[i].key)&&(a[o]=i);return a}function ho(e){var t,o,s={},c=e.modules,u=e.nodeOps;for(t=0;t<lo.length;++t)for(s[lo[t]]=[],o=0;o<c.length;++o)r(c[o][lo[t]])&&s[lo[t]].push(c[o][lo[t]]);function l(e){var t=u.parentNode(e);r(t)&&u.removeChild(t,e)}function f(e,t,n,o,a,c,l){if(r(e.elm)&&r(c)&&(e=c[l]=Le(e)),e.isRootInsert=!a,!function(e,t,n,o){var a=e.data;if(r(a)){var c=r(e.componentInstance)&&a.keepAlive;if(r(a=a.hook)&&r(a=a.init)&&a(e,!1),r(e.componentInstance))return p(e,t),d(n,e.elm,o),i(c)&&function(e,t,n,i){var o,a=e;for(;a.componentInstance;)if(a=a.componentInstance._vnode,r(o=a.data)&&r(o=o.transition)){for(o=0;o<s.activate.length;++o)s.activate[o](uo,a);t.push(a);break}d(n,e.elm,i)}(e,t,n,o),!0}}(e,t,n,o)){var f=e.data,h=e.children,m=e.tag;r(m)?(e.elm=e.ns?u.createElementNS(e.ns,m):u.createElement(m,e),g(e),v(e,h,t),r(f)&&y(e,t),d(n,e.elm,o)):i(e.isComment)?(e.elm=u.createComment(e.text),d(n,e.elm,o)):(e.elm=u.createTextNode(e.text),d(n,e.elm,o))}}function p(e,t){r(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,h(e)?(y(e,t),g(e)):(co(e),t.push(e))}function d(e,t,n){r(e)&&(r(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function v(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)f(t[r],n,e.elm,null,!0,t,r)}else a(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function h(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return r(e.tag)}function y(e,n){for(var i=0;i<s.create.length;++i)s.create[i](uo,e);r(t=e.data.hook)&&(r(t.create)&&t.create(uo,e),r(t.insert)&&n.push(e))}function g(e){var t;if(r(t=e.fnScopeId))u.setStyleScope(e.elm,t);else for(var n=e;n;)r(t=n.context)&&r(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent;r(t=ur)&&t!==e.context&&t!==e.fnContext&&r(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function _(e,t,n,r,i,o){for(;r<=i;++r)f(n[r],o,e,t,!1,n,r)}function b(e){var t,n,i=e.data;if(r(i))for(r(t=i.hook)&&r(t=t.destroy)&&t(e),t=0;t<s.destroy.length;++t)s.destroy[t](e);if(r(t=e.children))for(n=0;n<e.children.length;++n)b(e.children[n])}function $(e,t,n){for(;t<=n;++t){var i=e[t];r(i)&&(r(i.tag)?(w(i),b(i)):l(i.elm))}}function w(e,t){if(r(t)||r(e.data)){var n,i=s.remove.length+1;for(r(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&l(e)}return n.listeners=t,n}(e.elm,i),r(n=e.componentInstance)&&r(n=n._vnode)&&r(n.data)&&w(n,t),n=0;n<s.remove.length;++n)s.remove[n](e,t);r(n=e.data.hook)&&r(n=n.remove)?n(e,t):t()}else l(e.elm)}function x(e,t,n,i){for(var o=n;o<i;o++){var a=t[o];if(r(a)&&fo(e,a))return o}}function C(e,t,o,a,c,l){if(e!==t){r(t.elm)&&r(a)&&(t=a[c]=Le(t));var p=t.elm=e.elm;if(i(e.isAsyncPlaceholder))r(t.asyncFactory.resolved)?O(e.elm,t,o):t.isAsyncPlaceholder=!0;else if(i(t.isStatic)&&i(e.isStatic)&&t.key===e.key&&(i(t.isCloned)||i(t.isOnce)))t.componentInstance=e.componentInstance;else{var d,v=t.data;r(v)&&r(d=v.hook)&&r(d=d.prepatch)&&d(e,t);var m=e.children,y=t.children;if(r(v)&&h(t)){for(d=0;d<s.update.length;++d)s.update[d](e,t);r(d=v.hook)&&r(d=d.update)&&d(e,t)}n(t.text)?r(m)&&r(y)?m!==y&&function(e,t,i,o,a){var s,c,l,p=0,d=0,v=t.length-1,h=t[0],m=t[v],y=i.length-1,g=i[0],b=i[y],w=!a;for(;p<=v&&d<=y;)n(h)?h=t[++p]:n(m)?m=t[--v]:fo(h,g)?(C(h,g,o,i,d),h=t[++p],g=i[++d]):fo(m,b)?(C(m,b,o,i,y),m=t[--v],b=i[--y]):fo(h,b)?(C(h,b,o,i,y),w&&u.insertBefore(e,h.elm,u.nextSibling(m.elm)),h=t[++p],b=i[--y]):fo(m,g)?(C(m,g,o,i,d),w&&u.insertBefore(e,m.elm,h.elm),m=t[--v],g=i[++d]):(n(s)&&(s=vo(t,p,v)),n(c=r(g.key)?s[g.key]:x(g,t,p,v))?f(g,o,e,h.elm,!1,i,d):fo(l=t[c],g)?(C(l,g,o,i,d),t[c]=void 0,w&&u.insertBefore(e,l.elm,h.elm)):f(g,o,e,h.elm,!1,i,d),g=i[++d]);p>v?_(e,n(i[y+1])?null:i[y+1].elm,i,d,y,o):d>y&&$(t,p,v)}(p,m,y,o,l):r(y)?(r(e.text)&&u.setTextContent(p,""),_(p,null,y,0,y.length-1,o)):r(m)?$(m,0,m.length-1):r(e.text)&&u.setTextContent(p,""):e.text!==t.text&&u.setTextContent(p,t.text),r(v)&&r(d=v.hook)&&r(d=d.postpatch)&&d(e,t)}}}function A(e,t,n){if(i(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var o=0;o<t.length;++o)t[o].data.hook.insert(t[o])}var k=m("attrs,class,staticClass,staticStyle,key");function O(e,t,n,o){var a,s=t.tag,c=t.data,u=t.children;if(o=o||c&&c.pre,t.elm=e,i(t.isComment)&&r(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(r(c)&&(r(a=c.hook)&&r(a=a.init)&&a(t,!0),r(a=t.componentInstance)))return p(t,n),!0;if(r(s)){if(r(u))if(e.hasChildNodes())if(r(a=c)&&r(a=a.domProps)&&r(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var l=!0,f=e.firstChild,d=0;d<u.length;d++){if(!f||!O(f,u[d],n,o)){l=!1;break}f=f.nextSibling}if(!l||f)return!1}else v(t,u,n);if(r(c)){var h=!1;for(var m in c)if(!k(m)){h=!0,y(t,n);break}!h&&c.class&&Zt(c.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,o,a){if(!n(t)){var c,l=!1,p=[];if(n(e))l=!0,f(t,p);else{var d=r(e.nodeType);if(!d&&fo(e,t))C(e,t,p,null,null,a);else{if(d){if(1===e.nodeType&&e.hasAttribute(B)&&(e.removeAttribute(B),o=!0),i(o)&&O(e,t,p))return A(t,p,!0),e;c=e,e=new je(u.tagName(c).toLowerCase(),{},[],void 0,c)}var v=e.elm,m=u.parentNode(v);if(f(t,p,v._leaveCb?null:m,u.nextSibling(v)),r(t.parent))for(var y=t.parent,g=h(t);y;){for(var _=0;_<s.destroy.length;++_)s.destroy[_](y);if(y.elm=t.elm,g){for(var w=0;w<s.create.length;++w)s.create[w](uo,y);var x=y.data.hook.insert;if(x.merged)for(var k=1;k<x.fns.length;k++)x.fns[k]()}else co(y);y=y.parent}r(m)?$([e],0,0):r(e.tag)&&b(e)}}return A(t,p,l),t.elm}r(e)&&b(e)}}var mo={create:yo,update:yo,destroy:function(e){yo(e,uo)}};function yo(e,t){(e.data.directives||t.data.directives)&&go(e,t)}function go(e,t){var n,r,i,o=e===uo,a=t===uo,s=bo(e.data.directives,e.context),c=bo(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,wo(i,"update",t,e),i.def&&i.def.componentUpdated&&l.push(i)):(wo(i,"bind",t,e),i.def&&i.def.inserted&&u.push(i));if(u.length){var f=function(){for(var n=0;n<u.length;n++)wo(u[n],"inserted",t,e)};o?en(t,"insert",f):f()}if(l.length&&en(t,"postpatch",function(){for(var n=0;n<l.length;n++)wo(l[n],"componentUpdated",t,e)}),!o)for(n in s)c[n]||wo(s[n],"unbind",e,e,a)}var _o=Object.create(null);function bo(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=_o),i[$o(r)]=r,r.def=lt(t.$options,"directives",r.name,!0);return i}function $o(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function wo(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(Xl){xt(Xl,n.context,"directive "+e.name+" "+t+" hook")}}var xo=[so,mo];function Co(e,t){var i=t.componentOptions;if(!(r(i)&&!1===i.Ctor.options.inheritAttrs||n(e.data.attrs)&&n(t.data.attrs))){var o,a,s=t.elm,c=e.data.attrs||{},u=t.data.attrs||{};for(o in r(u.__ob__)&&(u=t.data.attrs=E({},u)),u)a=u[o],c[o]!==a&&Ao(s,o,a);for(o in(ne||ie)&&u.value!==c.value&&Ao(s,"value",u.value),c)n(u[o])&&(Si(o)?s.removeAttributeNS(Oi,Ti(o)):xi(o)||s.removeAttribute(o))}}function Ao(e,t,n){e.tagName.indexOf("-")>-1?ko(e,t,n):ki(t)?Ni(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):xi(t)?e.setAttribute(t,Ai(t,n)):Si(t)?Ni(n)?e.removeAttributeNS(Oi,Ti(t)):e.setAttributeNS(Oi,t,n):ko(e,t,n)}function ko(e,t,n){if(Ni(n))e.removeAttribute(t);else{if(ne&&!re&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Oo={create:Co,update:Co};function So(e,t){var i=t.elm,o=t.data,a=e.data;if(!(n(o.staticClass)&&n(o.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=ji(t),c=i._transitionClasses;r(c)&&(s=Di(s,Li(c))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}var To,No,jo,Eo,Mo,Do,Lo,Io={create:So,update:So},Fo=/[\w).+\-_$\]]/;function Po(e){var t,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,p=0,d=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(c)96===t&&92!==n&&(c=!1);else if(u)47===t&&92!==n&&(u=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||l||f||p){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:l++;break;case 125:l--}if(47===t){for(var v=r-1,h=void 0;v>=0&&" "===(h=e.charAt(v));v--);h&&Fo.test(h)||(u=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r<o.length;r++)i=Ro(i,o[r]);return i}function Ro(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function Ho(e,t){console.error("[Vue compiler]: "+e)}function Bo(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Uo(e,t,n,r,i){(e.props||(e.props=[])).push(Yo({name:t,value:n,dynamic:i},r)),e.plain=!1}function zo(e,t,n,r,i){(i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Yo({name:t,value:n,dynamic:i},r)),e.plain=!1}function Vo(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Yo({name:t,value:n},r))}function Jo(e,t,n,r,i,o,a,s){(e.directives||(e.directives=[])).push(Yo({name:t,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),e.plain=!1}function Ko(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function qo(e,n,r,i,o,a,s,c){var u;(i=i||t).right?c?n="("+n+")==='click'?'contextmenu':("+n+")":"click"===n&&(n="contextmenu",delete i.right):i.middle&&(c?n="("+n+")==='click'?'mouseup':("+n+")":"click"===n&&(n="mouseup")),i.capture&&(delete i.capture,n=Ko("!",n,c)),i.once&&(delete i.once,n=Ko("~",n,c)),i.passive&&(delete i.passive,n=Ko("&",n,c)),i.native?(delete i.native,u=e.nativeEvents||(e.nativeEvents={})):u=e.events||(e.events={});var l=Yo({value:r.trim(),dynamic:c},s);i!==t&&(l.modifiers=i);var f=u[n];Array.isArray(f)?o?f.unshift(l):f.push(l):u[n]=f?o?[l,f]:[f,l]:l,e.plain=!1}function Wo(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}function Zo(e,t,n){var r=Go(e,":"+t)||Go(e,"v-bind:"+t);if(null!=r)return Po(r);if(!1!==n){var i=Go(e,t);if(null!=i)return JSON.stringify(i)}}function Go(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===t){i.splice(o,1);break}return n&&delete e.attrsMap[t],r}function Xo(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(t.test(o.name))return n.splice(r,1),o}}function Yo(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Qo(e,t,n){var r=n||{},i=r.number,o="$$v";r.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(o="_n("+o+")");var a=ea(t,o);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+a+"}"}}function ea(e,t){var n=ta(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function ta(e){if(e=e.trim(),To=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<To-1)return(Eo=e.lastIndexOf("."))>-1?{exp:e.slice(0,Eo),key:'"'+e.slice(Eo+1)+'"'}:{exp:e,key:null};for(No=e,Eo=Mo=Do=0;!ra();)ia(jo=na())?aa(jo):91===jo&&oa(jo);return{exp:e.slice(0,Mo),key:e.slice(Mo+1,Do)}}function na(){return No.charCodeAt(++Eo)}function ra(){return Eo>=To}function ia(e){return 34===e||39===e}function oa(e){var t=1;for(Mo=Eo;!ra();)if(ia(e=na()))aa(e);else if(91===e&&t++,93===e&&t--,0===t){Do=Eo;break}}function aa(e){for(var t=e;!ra()&&(e=na())!==t;);}var sa,ca="__r",ua="__c";function la(e,t,n){Lo=n;var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type;if(e.component)return Qo(e,r,i),!1;if("select"===o)da(e,r,i);else if("input"===o&&"checkbox"===a)fa(e,r,i);else if("input"===o&&"radio"===a)pa(e,r,i);else if("input"===o||"textarea"===o)va(e,r,i);else{if(!V.isReservedTag(o))return Qo(e,r,i),!1}return!0}function fa(e,t,n){var r=n&&n.number,i=Zo(e,"value")||"null",o=Zo(e,"true-value")||"true",a=Zo(e,"false-value")||"false";Uo(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),qo(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+ea(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+ea(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+ea(t,"$$c")+"}",null,!0)}function pa(e,t,n){var r=n&&n.number,i=Zo(e,"value")||"null";Uo(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),qo(e,"change",ea(t,i),null,!0)}function da(e,t,n){var r="var $$selectedVal = "+('Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"})")+";";qo(e,"change",r=r+" "+ea(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}function va(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?ca:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=ea(t,l);c&&(f="if($event.target.composing)return;"+f),Uo(e,"value","("+t+")"),qo(e,u,f,null,!0),(s||a)&&qo(e,"blur","$forceUpdate()")}function ha(e){if(r(e[ca])){var t=ne?"change":"input";e[t]=[].concat(e[ca],e[t]||[]),delete e[ca]}r(e[ua])&&(e.change=[].concat(e[ua],e.change||[]),delete e[ua])}function ma(e,t,n){var r=sa;return function i(){null!==t.apply(null,arguments)&&_a(e,i,n,r)}}var ya=Rt&&!(ue&&Number(ue[1])<=53);function ga(e,t,n,r){if(ya){var i=Tr,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}sa.addEventListener(e,t,fe?{capture:n,passive:r}:n)}function _a(e,t,n,r){(r||sa).removeEventListener(e,t._wrapper||t,n)}function ba(e,t){if(!n(e.data.on)||!n(t.data.on)){var r=t.data.on||{},i=e.data.on||{};sa=t.elm,ha(r),Qt(r,i,ga,_a,ma,t.context),sa=void 0}}var $a,wa={create:ba,update:ba};function xa(e,t){if(!n(e.data.domProps)||!n(t.data.domProps)){var i,o,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(i in r(c.__ob__)&&(c=t.data.domProps=E({},c)),s)i in c||(a[i]="");for(i in c){if(o=c[i],"textContent"===i||"innerHTML"===i){if(t.children&&(t.children.length=0),o===s[i])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===i&&"PROGRESS"!==a.tagName){a._value=o;var u=n(o)?"":String(o);Ca(a,u)&&(a.value=u)}else if("innerHTML"===i&&Hi(a.tagName)&&n(a.innerHTML)){($a=$a||document.createElement("div")).innerHTML="<svg>"+o+"</svg>";for(var l=$a.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(o!==s[i])try{a[i]=o}catch(Xl){}}}}function Ca(e,t){return!e.composing&&("OPTION"===e.tagName||Aa(e,t)||ka(e,t))}function Aa(e,t){var n=!0;try{n=document.activeElement!==e}catch(Xl){}return n&&e.value!==t}function ka(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.number)return h(n)!==h(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var Oa={create:xa,update:xa},Sa=w(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function Ta(e){var t=Na(e.style);return e.staticStyle?E(e.staticStyle,t):t}function Na(e){return Array.isArray(e)?M(e):"string"==typeof e?Sa(e):e}function ja(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Ta(i.data))&&E(r,n);(n=Ta(e.data))&&E(r,n);for(var o=e;o=o.parent;)o.data&&(n=Ta(o.data))&&E(r,n);return r}var Ea,Ma=/^--/,Da=/\s*!important$/,La=function(e,t,n){if(Ma.test(t))e.style.setProperty(t,n);else if(Da.test(n))e.style.setProperty(O(t),n.replace(Da,""),"important");else{var r=Fa(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},Ia=["Webkit","Moz","ms"],Fa=w(function(e){if(Ea=Ea||document.createElement("div").style,"filter"!==(e=C(e))&&e in Ea)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Ia.length;n++){var r=Ia[n]+t;if(r in Ea)return r}});function Pa(e,t){var i=t.data,o=e.data;if(!(n(i.staticStyle)&&n(i.style)&&n(o.staticStyle)&&n(o.style))){var a,s,c=t.elm,u=o.staticStyle,l=o.normalizedStyle||o.style||{},f=u||l,p=Na(t.data.style)||{};t.data.normalizedStyle=r(p.__ob__)?E({},p):p;var d=ja(t,!0);for(s in f)n(d[s])&&La(c,s,"");for(s in d)(a=d[s])!==f[s]&&La(c,s,null==a?"":a)}}var Ra={create:Pa,update:Pa},Ha=/\s+/;function Ba(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Ha).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Ua(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Ha).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function za(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&E(t,Va(e.name||"v")),E(t,e),t}return"string"==typeof e?Va(e):void 0}}var Va=w(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),Ja=Y&&!re,Ka="transition",qa="animation",Wa="transition",Za="transitionend",Ga="animation",Xa="animationend";Ja&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Wa="WebkitTransition",Za="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ga="WebkitAnimation",Xa="webkitAnimationEnd"));var Ya=Y?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Qa(e){Ya(function(){Ya(e)})}function es(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Ba(e,t))}function ts(e,t){e._transitionClasses&&_(e._transitionClasses,t),Ua(e,t)}function ns(e,t,n){var r=is(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ka?Za:Xa,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c<a&&u()},o+1),e.addEventListener(s,l)}var rs=/\b(transform|all)(,|$)/;function is(e,t){var n,r=window.getComputedStyle(e),i=(r[Wa+"Delay"]||"").split(", "),o=(r[Wa+"Duration"]||"").split(", "),a=os(i,o),s=(r[Ga+"Delay"]||"").split(", "),c=(r[Ga+"Duration"]||"").split(", "),u=os(s,c),l=0,f=0;return t===Ka?a>0&&(n=Ka,l=a,f=o.length):t===qa?u>0&&(n=qa,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Ka:qa:null)?n===Ka?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Ka&&rs.test(r[Wa+"Property"])}}function os(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(function(t,n){return as(t)+as(e[n])}))}function as(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ss(e,t){var i=e.elm;r(i._leaveCb)&&(i._leaveCb.cancelled=!0,i._leaveCb());var o=za(e.data.transition);if(!n(o)&&!r(i._enterCb)&&1===i.nodeType){for(var a=o.css,c=o.type,u=o.enterClass,l=o.enterToClass,f=o.enterActiveClass,p=o.appearClass,d=o.appearToClass,v=o.appearActiveClass,m=o.beforeEnter,y=o.enter,g=o.afterEnter,_=o.enterCancelled,b=o.beforeAppear,$=o.appear,w=o.afterAppear,x=o.appearCancelled,C=o.duration,A=ur,k=ur.$vnode;k&&k.parent;)A=k.context,k=k.parent;var O=!A._isMounted||!e.isRootInsert;if(!O||$||""===$){var S=O&&p?p:u,T=O&&v?v:f,N=O&&d?d:l,j=O&&b||m,E=O&&"function"==typeof $?$:y,M=O&&w||g,D=O&&x||_,L=h(s(C)?C.enter:C);0;var I=!1!==a&&!re,F=fs(E),P=i._enterCb=H(function(){I&&(ts(i,N),ts(i,T)),P.cancelled?(I&&ts(i,S),D&&D(i)):M&&M(i),i._enterCb=null});e.data.show||en(e,"insert",function(){var t=i.parentNode,n=t&&t._pending&&t._pending[e.key];n&&n.tag===e.tag&&n.elm._leaveCb&&n.elm._leaveCb(),E&&E(i,P)}),j&&j(i),I&&(es(i,S),es(i,T),Qa(function(){ts(i,S),P.cancelled||(es(i,N),F||(ls(L)?setTimeout(P,L):ns(i,c,P)))})),e.data.show&&(t&&t(),E&&E(i,P)),I||F||P()}}}function cs(e,t){var i=e.elm;r(i._enterCb)&&(i._enterCb.cancelled=!0,i._enterCb());var o=za(e.data.transition);if(n(o)||1!==i.nodeType)return t();if(!r(i._leaveCb)){var a=o.css,c=o.type,u=o.leaveClass,l=o.leaveToClass,f=o.leaveActiveClass,p=o.beforeLeave,d=o.leave,v=o.afterLeave,m=o.leaveCancelled,y=o.delayLeave,g=o.duration,_=!1!==a&&!re,b=fs(d),$=h(s(g)?g.leave:g);0;var w=i._leaveCb=H(function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[e.key]=null),_&&(ts(i,l),ts(i,f)),w.cancelled?(_&&ts(i,u),m&&m(i)):(t(),v&&v(i)),i._leaveCb=null});y?y(x):x()}function x(){w.cancelled||(!e.data.show&&i.parentNode&&((i.parentNode._pending||(i.parentNode._pending={}))[e.key]=e),p&&p(i),_&&(es(i,u),es(i,f),Qa(function(){ts(i,u),w.cancelled||(es(i,l),b||(ls($)?setTimeout(w,$):ns(i,c,w)))})),d&&d(i,w),_||b||w())}}function us(e,t,n){"number"!=typeof e?we("<transition> explicit "+t+" duration is not a valid number - got "+JSON.stringify(e)+".",n.context):isNaN(e)&&we("<transition> explicit "+t+" duration is NaN - the duration expression might be incorrect.",n.context)}function ls(e){return"number"==typeof e&&!isNaN(e)}function fs(e){if(n(e))return!1;var t=e.fns;return r(t)?fs(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function ps(e,t){!0!==t.data.show&&ss(t)}var ds=Y?{create:ps,activate:ps,remove:function(e,t){!0!==e.data.show?cs(e,t):t()}}:{},vs=[Oo,Io,wa,Oa,Ra,ds],hs=vs.concat(xo),ms=ho({nodeOps:ao,modules:hs});re&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Cs(e,"input")});var ys={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?en(n,"postpatch",function(){ys.componentUpdated(e,t,n)}):gs(e,t,n.context),e._vOptions=[].map.call(e.options,$s)):("textarea"===n.tag||Ki(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ws),e.addEventListener("compositionend",xs),e.addEventListener("change",xs),re&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){gs(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,$s);if(i.some(function(e,t){return!P(e,r[t])}))(e.multiple?t.value.some(function(e){return bs(e,i)}):t.value!==t.oldValue&&bs(t.value,i))&&Cs(e,"change")}}};function gs(e,t,n){_s(e,t,n),(ne||ie)&&setTimeout(function(){_s(e,t,n)},0)}function _s(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=R(r,$s(a))>-1,a.selected!==o&&(a.selected=o);else if(P($s(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function bs(e,t){return t.every(function(t){return!P(t,e)})}function $s(e){return"_value"in e?e._value:e.value}function ws(e){e.target.composing=!0}function xs(e){e.target.composing&&(e.target.composing=!1,Cs(e.target,"input"))}function Cs(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function As(e){return!e.componentInstance||e.data&&e.data.transition?e:As(e.componentInstance._vnode)}var ks={bind:function(e,t,n){var r=t.value,i=(n=As(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,ss(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=As(n)).data&&n.data.transition?(n.data.show=!0,r?ss(n,function(){e.style.display=e.__vOriginalDisplay}):cs(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Os={model:ys,show:ks},Ss={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ts(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ts(nr(t.children)):e}function Ns(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[C(o)]=i[o];return t}function js(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Es(e){for(;e=e.parent;)if(e.data.transition)return!0}function Ms(e,t){return t.key===e.key&&t.tag===e.tag}var Ds=function(e){return e.tag||tr(e)},Ls=function(e){return"show"===e.name},Is={name:"transition",props:Ss,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Ds)).length){0;var r=this.mode;0;var i=n[0];if(Es(this.$vnode))return i;var o=Ts(i);if(!o)return i;if(this._leaving)return js(e,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=Ns(this),u=this._vnode,l=Ts(u);if(o.data.directives&&o.data.directives.some(Ls)&&(o.data.show=!0),l&&l.data&&!Ms(o,l)&&!tr(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=E({},c);if("out-in"===r)return this._leaving=!0,en(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),js(e,i);if("in-out"===r){if(tr(o))return u;var p,d=function(){p()};en(c,"afterEnter",d),en(c,"enterCancelled",d),en(f,"delayLeave",function(e){p=e})}}return i}}},Fs=E({tag:String,moveClass:String},Ss);delete Fs.mode;var Ps={props:Fs,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=fr(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ns(this),s=0;s<i.length;s++){var c=i[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(r){for(var u=[],l=[],f=0;f<r.length;f++){var p=r[f];p.data.transition=a,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?u.push(p):l.push(p)}this.kept=e(t,null,u),this.removed=l}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Rs),e.forEach(Hs),e.forEach(Bs),this._reflow=document.body.offsetHeight,e.forEach(function(e){if(e.data.moved){var n=e.elm,r=n.style;es(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Za,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Za,e),n._moveCb=null,ts(n,t))})}}))},methods:{hasMove:function(e,t){if(!Ja)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){Ua(n,e)}),Ba(n,t),n.style.display="none",this.$el.appendChild(n);var r=is(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function Rs(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Hs(e){e.data.newPos=e.elm.getBoundingClientRect()}function Bs(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var Us={Transition:Is,TransitionGroup:Ps};oi.config.mustUseProp=wi,oi.config.isReservedTag=Ui,oi.config.isReservedAttr=bi,oi.config.getTagNamespace=zi,oi.config.isUnknownElement=Ji,E(oi.options.directives,Os),E(oi.options.components,Us),oi.prototype.__patch__=Y?ms:D,oi.prototype.$mount=function(e,t){return vr(this,e=e&&Y?qi(e):void 0,t)},Y&&setTimeout(function(){V.devtools&&ve&&ve.emit("init",oi)},0);var zs=/\{\{((?:.|\r?\n)+?)\}\}/g,Vs=/[-.*+?^${}()|[\]\/\\]/g,Js=w(function(e){var t=e[0].replace(Vs,"\\$&"),n=e[1].replace(Vs,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Ks(e,t){var n=t?Js(t):zs;if(n.test(e)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){(i=r.index)>c&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=Po(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c<e.length&&(s.push(o=e.slice(c)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}function qs(e,t){t.warn;var n=Go(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Zo(e,"class",!1);r&&(e.classBinding=r)}function Ws(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}var Zs={staticKeys:["staticClass"],transformNode:qs,genData:Ws};function Gs(e,t){t.warn;var n=Go(e,"style");n&&(e.staticStyle=JSON.stringify(Sa(n)));var r=Zo(e,"style",!1);r&&(e.styleBinding=r)}function Xs(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}var Ys,Qs={staticKeys:["staticStyle"],transformNode:Gs,genData:Xs},ec={decode:function(e){return(Ys=Ys||document.createElement("div")).innerHTML=e,Ys.textContent}},tc=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),nc=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),rc=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ic=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,oc=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ac="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+J.source+"]*",sc="((?:"+ac+"\\:)?"+ac+")",cc=new RegExp("^<"+sc),uc=/^\s*(\/?)>/,lc=new RegExp("^<\\/"+sc+"[^>]*>"),fc=/^<!DOCTYPE [^>]+>/i,pc=/^<!\--/,dc=/^<!\[/,vc=m("script,style,textarea",!0),hc={},mc={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},yc=/&(?:lt|gt|quot|amp|#39);/g,gc=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,_c=m("pre,textarea",!0),bc=function(e,t){return e&&_c(e)&&"\n"===t[0]};function $c(e,t){var n=t?gc:yc;return e.replace(n,function(e){return mc[e]})}function wc(e,t){for(var n,r,i=[],o=t.expectHTML,a=t.isUnaryTag||L,s=t.canBeLeftOpenTag||L,c=0;e;){if(n=e,r&&vc(r)){var u=0,l=r.toLowerCase(),f=hc[l]||(hc[l]=new RegExp("([\\s\\S]*?)(</"+l+"[^>]*>)","i")),p=e.replace(f,function(e,n,r){return u=r.length,vc(l)||"noscript"===l||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),bc(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-p.length,e=p,k(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(pc.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v),c,c+v+3),x(v+3);continue}}if(dc.test(e)){var h=e.indexOf("]>");if(h>=0){x(h+2);continue}}var m=e.match(fc);if(m){x(m[0].length);continue}var y=e.match(lc);if(y){var g=c;x(y[0].length),k(y[1],g,c);continue}var _=C();if(_){A(_),bc(_.tagName,e)&&x(1);continue}}var b=void 0,$=void 0,w=void 0;if(d>=0){for($=e.slice(d);!(lc.test($)||cc.test($)||pc.test($)||dc.test($)||(w=$.indexOf("<",1))<0);)d+=w,$=e.slice(d);b=e.substring(0,d)}d<0&&(b=e),b&&x(b.length),t.chars&&b&&t.chars(b,c-b.length,c)}if(e===n){t.chars&&t.chars(e);break}}function x(t){c+=t,e=e.substring(t)}function C(){var t=e.match(cc);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(x(t[0].length);!(n=e.match(uc))&&(r=e.match(oc)||e.match(ic));)r.start=c,x(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],x(n[0].length),i.end=c,i}}function A(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&rc(n)&&k(r),s(n)&&r===n&&k(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p<l;p++){var d=e.attrs[p],v=d[3]||d[4]||d[5]||"",h="a"===n&&"href"===d[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;f[p]={name:d[1],value:$c(v,h)}}u||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:f,start:e.start,end:e.end}),r=n),t.start&&t.start(n,f,u,e.start,e.end)}function k(e,n,o){var a,s;if(null==n&&(n=c),null==o&&(o=c),e)for(s=e.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}k()}var xc,Cc,Ac,kc,Oc,Sc,Tc,Nc,jc,Ec=/^@|^v-on:/,Mc=/^v-|^@|^:|^#/,Dc=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Lc=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ic=/^\(|\)$/g,Fc=/^\[.*\]$/,Pc=/:(.*)$/,Rc=/^:|^\.|^v-bind:/,Hc=/\.[^.\]]+(?=[^\]]*$)/g,Bc=/^v-slot(:|$)|^#/,Uc=/[\r\n]/,zc=/\s+/g,Vc=/[\s"'<>\/=]/,Jc=w(ec.decode),Kc="_empty_";function qc(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:vu(t),rawAttrsMap:{},parent:n,children:[]}}function Wc(e,t){xc=t.warn||Ho,Sc=t.isPreTag||L,Tc=t.mustUseProp||L,Nc=t.getTagNamespace||L;var n=t.isReservedTag||L;jc=function(e){return!!e.component||!n(e.tag)},Ac=Bo(t.modules,"transformNode"),kc=Bo(t.modules,"preTransformNode"),Oc=Bo(t.modules,"postTransformNode"),Cc=t.delimiters;var r,i,o=[],a=!1!==t.preserveWhitespace,s=t.whitespace,c=!1,u=!1;function l(e){if(f(e),c||e.processed||(e=Xc(e,t)),o.length||e===r||r.if&&(e.elseif||e.else)&&ou(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)ru(e,i);else{if(e.slotScope){var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}e.children=e.children.filter(function(e){return!e.slotScope}),f(e),e.pre&&(c=!1),Sc(e.tag)&&(u=!1);for(var a=0;a<Oc.length;a++)Oc[a](e,t)}function f(e){if(!u)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return wc(e,{warn:xc,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,a,s,f){var p=i&&i.ns||Nc(e);ne&&"svg"===p&&(n=_u(n));var d=qc(e,n,i);p&&(d.ns=p),mu(d)&&!de()&&(d.forbidden=!0);for(var v=0;v<kc.length;v++)d=kc[v](d,t)||d;c||(Zc(d),d.pre&&(c=!0)),Sc(d.tag)&&(u=!0),c?Gc(d):d.processed||(eu(d),nu(d),au(d)),r||(r=d),a?l(d):(i=d,o.push(d))},end:function(e,t,n){var r=o[o.length-1];o.length-=1,i=o[o.length-1],l(r)},chars:function(e,t,n){if(i&&(!ne||"textarea"!==i.tag||i.attrsMap.placeholder!==e)){var r,o,l=i.children;if(e=u||e.trim()?hu(i)?e:Jc(e):l.length?s?"condense"===s&&Uc.test(e)?"":" ":a?" ":"":"")u||"condense"!==s||(e=e.replace(zc," ")),!c&&" "!==e&&(r=Ks(e,Cc))?o={type:2,expression:r.expression,tokens:r.tokens,text:e}:" "===e&&l.length&&" "===l[l.length-1].text||(o={type:3,text:e}),o&&l.push(o)}},comment:function(e,t,n){if(i){var r={type:3,text:e,isComment:!0};0,i.children.push(r)}}}),r}function Zc(e){null!=Go(e,"v-pre")&&(e.pre=!0)}function Gc(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(e.plain=!0)}function Xc(e,t){Yc(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,Qc(e),su(e),uu(e),lu(e);for(var n=0;n<Ac.length;n++)e=Ac[n](e,t)||e;return fu(e),e}function Yc(e){var t=Zo(e,"key");t&&(e.key=t)}function Qc(e){var t=Zo(e,"ref");t&&(e.ref=t,e.refInFor=pu(e))}function eu(e){var t;if(t=Go(e,"v-for")){var n=tu(t);n&&E(e,n)}}function tu(e){var t=e.match(Dc);if(t){var n={};n.for=t[2].trim();var r=t[1].trim().replace(Ic,""),i=r.match(Lc);return i?(n.alias=r.replace(Lc,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r,n}}function nu(e){var t=Go(e,"v-if");if(t)e.if=t,ou(e,{exp:t,block:e});else{null!=Go(e,"v-else")&&(e.else=!0);var n=Go(e,"v-else-if");n&&(e.elseif=n)}}function ru(e,t){var n=iu(t.children);n&&n.if&&ou(n,{exp:e.elseif,block:e})}function iu(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}function ou(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function au(e){null!=Go(e,"v-once")&&(e.once=!0)}function su(e){var t;"template"===e.tag?(t=Go(e,"scope"),e.slotScope=t||Go(e,"slot-scope")):(t=Go(e,"slot-scope"))&&(e.slotScope=t);var n=Zo(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||zo(e,"slot",n,Wo(e,"slot"))),"template"===e.tag){var r=Xo(e,Bc);if(r){0;var i=cu(r),o=i.name,a=i.dynamic;e.slotTarget=o,e.slotTargetDynamic=a,e.slotScope=r.value||Kc}}else{var s=Xo(e,Bc);if(s){0;var c=e.scopedSlots||(e.scopedSlots={}),u=cu(s),l=u.name,f=u.dynamic,p=c[l]=qc("template",[],e);p.slotTarget=l,p.slotTargetDynamic=f,p.children=e.children.filter(function(e){if(!e.slotScope)return e.parent=p,!0}),p.slotScope=s.value||Kc,e.children=[],e.plain=!1}}}function cu(e){var t=e.name.replace(Bc,"");return t||"#"!==e.name[0]&&(t="default"),Fc.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function uu(e){"slot"===e.tag&&(e.slotName=Zo(e,"name"))}function lu(e){var t;(t=Zo(e,"is"))&&(e.component=t),null!=Go(e,"inline-template")&&(e.inlineTemplate=!0)}function fu(e){var t,n,r,i,o,a,s,c,u=e.attrsList;for(t=0,n=u.length;t<n;t++){if(r=i=u[t].name,o=u[t].value,Mc.test(r))if(e.hasBindings=!0,(a=du(r.replace(Mc,"")))&&(r=r.replace(Hc,"")),Rc.test(r))r=r.replace(Rc,""),o=Po(o),(c=Fc.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!c&&"innerHtml"===(r=C(r))&&(r="innerHTML"),a.camel&&!c&&(r=C(r)),a.sync&&(s=ea(o,"$event"),c?qo(e,'"update:"+('+r+")",s,null,!1,xc,u[t],!0):(qo(e,"update:"+C(r),s,null,!1,xc,u[t]),O(r)!==C(r)&&qo(e,"update:"+O(r),s,null,!1,xc,u[t])))),a&&a.prop||!e.component&&Tc(e.tag,e.attrsMap.type,r)?Uo(e,r,o,u[t],c):zo(e,r,o,u[t],c);else if(Ec.test(r))r=r.replace(Ec,""),(c=Fc.test(r))&&(r=r.slice(1,-1)),qo(e,r,o,a,!1,xc,u[t],c);else{var l=(r=r.replace(Mc,"")).match(Pc),f=l&&l[1];c=!1,f&&(r=r.slice(0,-(f.length+1)),Fc.test(f)&&(f=f.slice(1,-1),c=!0)),Jo(e,r,i,o,f,c,a,u[t])}else zo(e,r,JSON.stringify(o),u[t]),!e.component&&"muted"===r&&Tc(e.tag,e.attrsMap.type,r)&&Uo(e,r,"true",u[t])}}function pu(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}function du(e){var t=e.match(Hc);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}function vu(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}function hu(e){return"script"===e.tag||"style"===e.tag}function mu(e){return"style"===e.tag||"script"===e.tag&&(!e.attrsMap.type||"text/javascript"===e.attrsMap.type)}var yu=/^xmlns:NS\d+/,gu=/^NS\d+:/;function _u(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];yu.test(r.name)||(r.name=r.name.replace(gu,""),t.push(r))}return t}function bu(e,t){for(var n=e;n;)n.for&&n.alias===t&&xc("<"+e.tag+' v-model="'+t+'">: You are binding v-model directly to a v-for iteration alias. This will not be able to modify the v-for source array because writing to the alias is like modifying a function local variable. Consider using an array of objects and use v-model on an object property instead.',e.rawAttrsMap["v-model"]),n=n.parent}function $u(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Zo(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=Go(e,"v-if",!0),o=i?"&&("+i+")":"",a=null!=Go(e,"v-else",!0),s=Go(e,"v-else-if",!0),c=wu(e);eu(c),Vo(c,"type","checkbox"),Xc(c,t),c.processed=!0,c.if="("+n+")==='checkbox'"+o,ou(c,{exp:c.if,block:c});var u=wu(e);Go(u,"v-for",!0),Vo(u,"type","radio"),Xc(u,t),ou(c,{exp:"("+n+")==='radio'"+o,block:u});var l=wu(e);return Go(l,"v-for",!0),Vo(l,":type",n),Xc(l,t),ou(c,{exp:i,block:l}),a?c.else=!0:s&&(c.elseif=s),c}}}function wu(e){return qc(e.tag,e.attrsList.slice(),e.parent)}var xu={preTransformNode:$u},Cu=[Zs,Qs,xu];function Au(e,t){t.value&&Uo(e,"textContent","_s("+t.value+")",t)}function ku(e,t){t.value&&Uo(e,"innerHTML","_s("+t.value+")",t)}var Ou,Su,Tu={model:la,text:Au,html:ku},Nu={expectHTML:!0,modules:Cu,directives:Tu,isPreTag:Bi,isUnaryTag:tc,mustUseProp:wi,canBeLeftOpenTag:nc,isReservedTag:Ui,getTagNamespace:zi,staticKeys:F(Cu)},ju=w(Mu);function Eu(e,t){e&&(Ou=ju(t.staticKeys||""),Su=t.isReservedTag||L,Du(e),Lu(e,!1))}function Mu(e){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}function Du(e){if(e.static=Iu(e),1===e.type){if(!Su(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t<n;t++){var r=e.children[t];Du(r),r.static||(e.static=!1)}if(e.ifConditions)for(var i=1,o=e.ifConditions.length;i<o;i++){var a=e.ifConditions[i].block;Du(a),a.static||(e.static=!1)}}}function Lu(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,r=e.children.length;n<r;n++)Lu(e.children[n],t||!!e.for);if(e.ifConditions)for(var i=1,o=e.ifConditions.length;i<o;i++)Lu(e.ifConditions[i].block,t)}}function Iu(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||y(e.tag)||!Su(e.tag)||Fu(e)||!Object.keys(e).every(Ou))))}function Fu(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}var Pu=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Ru=/\([^)]*?\);*$/,Hu=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Bu={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Uu={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},zu=function(e){return"if("+e+")return null;"},Vu={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:zu("$event.target !== $event.currentTarget"),ctrl:zu("!$event.ctrlKey"),shift:zu("!$event.shiftKey"),alt:zu("!$event.altKey"),meta:zu("!$event.metaKey"),left:zu("'button' in $event && $event.button !== 0"),middle:zu("'button' in $event && $event.button !== 1"),right:zu("'button' in $event && $event.button !== 2")};function Ju(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=Ku(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Ku(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return Ku(e)}).join(",")+"]";var t=Hu.test(e.value),n=Pu.test(e.value),r=Hu.test(e.value.replace(Ru,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(Vu[s])o+=Vu[s],Bu[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=zu(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=qu(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function qu(e){return"if(!$event.type.indexOf('key')&&"+e.map(Wu).join("&&")+")return null;"}function Wu(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Bu[e],r=Uu[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}function Zu(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}}function Gu(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}}var Xu={on:Zu,bind:Gu,cloak:D},Yu=function(e){this.options=e,this.warn=e.warn||Ho,this.transforms=Bo(e.modules,"transformCode"),this.dataGenFns=Bo(e.modules,"genData"),this.directives=E(E({},Xu),e.directives);var t=e.isReservedTag||L;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Qu(e,t){var n=new Yu(t);return{render:"with(this){return "+(e?el(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function el(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return tl(e,t);if(e.once&&!e.onceProcessed)return nl(e,t);if(e.for&&!e.forProcessed)return ol(e,t);if(e.if&&!e.ifProcessed)return rl(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return _l(e,t);var n;if(e.component)n=bl(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=al(e,t));var i=e.inlineTemplate?null:dl(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<t.transforms.length;o++)n=t.transforms[o](e,n);return n}return dl(e,t)||"void 0"}function tl(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+el(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function nl(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return rl(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+el(e,t)+","+t.onceId+++","+n+")":el(e,t)}return tl(e,t)}function rl(e,t,n,r){return e.ifProcessed=!0,il(e.ifConditions.slice(),t,n,r)}function il(e,t,n,r){if(!e.length)return r||"_e()";var i=e.shift();return i.exp?"("+i.exp+")?"+o(i.block)+":"+il(e,t,n,r):""+o(i.block);function o(e){return n?n(e,t):e.once?nl(e,t):el(e,t)}}function ol(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||el)(e,t)+"})"}function al(e,t){var n="{",r=sl(e,t);r&&(n+=r+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);if(e.attrs&&(n+="attrs:"+$l(e.attrs)+","),e.props&&(n+="domProps:"+$l(e.props)+","),e.events&&(n+=Ju(e.events,!1)+","),e.nativeEvents&&(n+=Ju(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=ul(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=cl(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+$l(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function sl(e,t){var n=e.directives;if(n){var r,i,o,a,s="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var u=t.directives[o.name];u&&(a=!!u(e,o,t.warn)),a&&(c=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return c?s.slice(0,-1)+"]":void 0}}function cl(e,t){var n=e.children[0];if(n&&1===n.type){var r=Qu(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}function ul(e,t,n){var r=e.for||Object.keys(t).some(function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||fl(n)}),i=!!e.if;if(!r)for(var o=e.parent;o;){if(o.slotScope&&o.slotScope!==Kc||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}var a=Object.keys(t).map(function(e){return pl(t[e],n)}).join(",");return"scopedSlots:_u(["+a+"]"+(r?",null,true":"")+(!r&&i?",null,false,"+ll(a):"")+")"}function ll(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}function fl(e){return 1===e.type&&("slot"===e.tag||e.children.some(fl))}function pl(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return rl(e,t,pl,"null");if(e.for&&!e.forProcessed)return ol(e,t,pl);var r=e.slotScope===Kc?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(dl(e,t)||"undefined")+":undefined":dl(e,t)||"undefined":el(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function dl(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||el)(a,t)+s}var c=n?vl(o,t.maybeComponent):0,u=i||ml;return"["+o.map(function(e){return u(e,t)}).join(",")+"]"+(c?","+c:"")}}function vl(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(hl(i)||i.ifConditions&&i.ifConditions.some(function(e){return hl(e.block)})){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some(function(e){return t(e.block)}))&&(n=1)}}return n}function hl(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function ml(e,t){return 1===e.type?el(e,t):3===e.type&&e.isComment?gl(e):yl(e)}function yl(e){return"_v("+(2===e.type?e.expression:wl(JSON.stringify(e.text)))+")"}function gl(e){return"_e("+JSON.stringify(e.text)+")"}function _l(e,t){var n=e.slotName||'"default"',r=dl(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?$l((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:C(e.name),value:e.value,dynamic:e.dynamic}})):null,a=e.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=","+o),a&&(i+=(o?"":",null")+","+a),i+")"}function bl(e,t,n){var r=t.inlineTemplate?null:dl(t,n,!0);return"_c("+e+","+al(t,n)+(r?","+r:"")+")"}function $l(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],o=wl(i.value);i.dynamic?n+=i.name+","+o+",":t+='"'+i.name+'":'+o+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function wl(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}var xl=new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),Cl=new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),Al=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function kl(e,t){e&&Ol(e,t)}function Ol(e,t){if(1===e.type){for(var n in e.attrsMap)if(Mc.test(n)){var r=e.attrsMap[n];if(r){var i=e.rawAttrsMap[n];"v-for"===n?Tl(e,'v-for="'+r+'"',t,i):"v-slot"===n||"#"===n[0]?El(r,n+'="'+r+'"',t,i):Ec.test(n)?Sl(r,n+'="'+r+'"',t,i):jl(r,n+'="'+r+'"',t,i)}}if(e.children)for(var o=0;o<e.children.length;o++)Ol(e.children[o],t)}else 2===e.type&&jl(e.expression,e.text,t,e)}function Sl(e,t,n,r){var i=e.replace(Al,""),o=i.match(Cl);o&&"$"!==i.charAt(o.index-1)&&n('avoid using JavaScript unary operator as property name: "'+o[0]+'" in expression '+t.trim(),r),jl(e,t,n,r)}function Tl(e,t,n,r){jl(e.for||"",t,n,r),Nl(e.alias,"v-for alias",t,n,r),Nl(e.iterator1,"v-for iterator",t,n,r),Nl(e.iterator2,"v-for iterator",t,n,r)}function Nl(e,t,n,r,i){if("string"==typeof e)try{new Function("var "+e+"=_")}catch(Xl){r("invalid "+t+' "'+e+'" in expression: '+n.trim(),i)}}function jl(e,t,n,r){try{new Function("return "+e)}catch(Xl){var i=e.replace(Al,"").match(xl);n(i?'avoid using JavaScript keyword as property name: "'+i[0]+'"\n Raw expression: '+t.trim():"invalid expression: "+Xl.message+" in\n\n "+e+"\n\n Raw expression: "+t.trim()+"\n",r)}}function El(e,t,n,r){try{new Function(e,"")}catch(Xl){n("invalid function parameter expression: "+Xl.message+" in\n\n "+e+"\n\n Raw expression: "+t.trim()+"\n",r)}}var Ml=2;function Dl(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var r=e.split(/\r?\n/),i=0,o=[],a=0;a<r.length;a++)if((i+=r[a].length+1)>=t){for(var s=a-Ml;s<=a+Ml||n>i;s++)if(!(s<0||s>=r.length)){o.push(""+(s+1)+Ll(" ",3-String(s+1).length)+"| "+r[s]);var c=r[s].length;if(s===a){var u=t-(i-c)+1,l=n>i?c-u:n-t;o.push(" | "+Ll(" ",u)+Ll("^",l))}else if(s>a){if(n>i){var f=Math.min(n-i,c);o.push(" | "+Ll("^",f))}i+=c+1}}break}return o.join("\n")}function Ll(e,t){var n="";if(t>0)for(;1&t&&(n+=e),!((t>>>=1)<=0);)e+=e;return n}function Il(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),D}}function Fl(e){var t=Object.create(null);return function(n,r,i){(r=E({},r)).warn;delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(t[o])return t[o];var a=e(n,r);var s={},c=[];return s.render=Il(a.render,c),s.staticRenderFns=a.staticRenderFns.map(function(e){return Il(e,c)}),t[o]=s}}function Pl(e){return function(t){function n(n,r){var i=Object.create(t),o=[],a=[],s=function(e,t,n){(n?a:o).push(e)};if(r)for(var c in r.modules&&(i.modules=(t.modules||[]).concat(r.modules)),r.directives&&(i.directives=E(Object.create(t.directives||null),r.directives)),r)"modules"!==c&&"directives"!==c&&(i[c]=r[c]);i.warn=s;var u=e(n.trim(),i);return u.errors=o,u.tips=a,u}return{compile:n,compileToFunctions:Fl(n)}}}var Rl,Hl=Pl(function(e,t){var n=Wc(e.trim(),t);!1!==t.optimize&&Eu(n,t);var r=Qu(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}}),Bl=Hl(Nu),Ul=Bl.compile,zl=Bl.compileToFunctions;function Vl(e){return(Rl=Rl||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Rl.innerHTML.indexOf(" ")>0}var Jl=!!Y&&Vl(!1),Kl=!!Y&&Vl(!0),ql=w(function(e){var t=qi(e);return t&&t.innerHTML}),Wl=oi.prototype.$mount;function Zl(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}oi.prototype.$mount=function(e,t){if((e=e&&qi(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ql(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=Zl(e));if(r){0;var i=zl(r,{outputSourceRange:!1,shouldDecodeNewlines:Jl,shouldDecodeNewlinesForHref:Kl,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Wl.call(this,e,t)},oi.compile=zl;var Gl=oi;exports.default=Gl;
|
4 |
},{}],"WZJa":[function(require,module,exports) {
|
5 |
"use strict";function t(){var t={},o={};return{addControlScript:function(o,r){t[o]=r},callControlScript:function(o,r){if(!t[o])throw new Error("Called control element not found: [".concat(o,"]"));t[o](r)},setControlData:function(t,r){o[t]=r},getControlData:function(t){if(!o[t])throw new Error("Control data for [".concat(t,"] not found."));return o[t]}}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var o=t();exports.default=o;
|
|
|
|
|
6 |
},{}],"WV0h":[function(require,module,exports) {
|
7 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:["relativeElement","forceHide"],data:function(){return{listening:!1}},watch:{relativeElement:function(){this.relativeElement&&!this.listening&&(this.relativeElement.addEventListener("scroll",this.handleScroll),this.handleScroll(),this.listening=!0)}},methods:{handleScroll:function(){if(!this.forceHide){var e=this.relativeElement.scrollTop,t=this.$refs.observerElement.offsetTop;e+this.relativeElement.clientHeight>=t&&this.$emit("visible")}}}};exports.default=e;
|
8 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"observerElement"},[this._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
9 |
+
},{}],"wvh1":[function(require,module,exports) {
|
10 |
+
"use strict";function e(e){return n(e)||a(e)||r(e)||t()}function t(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function a(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function n(e){if(Array.isArray(e))return o(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function u(e,t){var r=null;switch(t){case"dataset":r=e.dataset;break;case"style":r=e.style;break;default:r=e.dataset}return r}function l(t){var r=t.query,a=t.type,n=t.key,o=t.format,l=e(document.querySelectorAll(r));if(l.length>0){var i=u(l[0],a);if(i){var s=i[n];if(o){var c=o.replace("{$}","(.+)"),f=new RegExp("^".concat(c,"$"),"g").exec(s);f&&(s=f[1])}return{elements:l,value:s,type:a,key:n,format:o}}}throw new Error("no related operation found with a type of [".concat(a,"]"))}function i(e,t){var r=e.elements,a=e.type,n=e.key,o=e.format;Array.isArray(r)&&r.length>0&&r.map(function(e){var r=u(e,a),l=t;o&&(l=(l=o.replace("{$}",t)).replace(new RegExp(/\\/g),"")),r[n]=l})}function s(e,t){e.map(function(e){i(e,t)})}function c(e){var t={elements:[],startupValue:null};return e.map(function(e){var r=l(e);t.elements.push(l(e)),e.useAsStartup&&(t.startupValue=r)}),t.startupValue||(t.startupValue=t.elements[0].value),t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var f={getTargetValue:l,getAllValues:c,setTargetValue:i,setAllValues:s};exports.default=f;
|
11 |
},{}],"LTB1":[function(require,module,exports) {
|
12 |
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../functions/selector"));function t(e){return e&&e.__esModule?e:{default:e}}var a={props:{label:String,selectors:{type:Array,required:!1,default:function(){return[]}},defaultValue:null,uniqueId:{type:String,required:!1,default:""},elemContainer:{type:String,required:!1,default:""}},data:function(){return{startupValue:null,targetElements:[],elementMainValue:"",mountedDataUpdate:!1}},mounted:function(){if(this.selectors.length>0){var t=e.default.getAllValues(this.selectors);this.targetElements=t.elements,this.startupValue=t.startupValue}},methods:{generateChangeEvent:function(e){var t=this;this.targetElements.map(function(a){a.elements.map(function(a){WPTB_Helper.wptbDocumentEventGenerate("wptb-control:".concat(t.uniqueId),a,{value:e})})})},assignDefaultValue:function(){void 0!==this.startupValue&&""!==this.startupValue&&null!==this.startupValue?(this.mountedDataUpdate=!0,this.elementMainValue=this.startupValue):null!==this.defaultValue&&(this.mountedDataUpdate=!0,this.elementMainValue=this.defaultValue)},setTargetValue:function(t,a){e.default.setTargetValue(t,a)},setAllValues:function(t){e.default.setAllValues(this.targetElements,t)},setTableDirty:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.mountedDataUpdate||(new WPTB_TableStateSaveManager).tableStateSet(),this.mountedDataUpdate=!1}}},u=a;exports.default=u;
|
13 |
},{"../functions/selector":"wvh1"}],"DTps":[function(require,module,exports) {
|
14 |
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("../components/IntersectionObserver")),t=n(require("../mixins/ControlBase"));function n(e){return e&&e.__esModule?e:{default:e}}var r={props:{label:String,icons:Object,perPage:{type:Number,default:20}},mixins:[t.default],components:{IntersectionObserver:e.default},data:function(){return{selectedIcon:{url:null,name:null},openDrawer:!1,innerDrawerRef:null,paginationIndex:1,observerHide:!1,debunkedFilterText:"",debunkId:-1,filterText:"",drawerPosition:{left:0}}},mounted:function(){var e=this;document.addEventListener("keyup",function(t){"Escape"===t.code&&e.openDrawer&&e.setDrawerState(!1)});var t=this.startupValue;this.selectedIcon.name=""===t?null:t,this.selectedIcon.url=""===t?null:this.icons[t]},watch:{debunkedFilterText:function(e){var t=this;clearTimeout(this.debunkId),this.debunkId=setTimeout(function(){t.filterText=e},500)},selectedIcon:{handler:function(){var e=this,t=this.targetElements[0].elements;t&&Array.isArray(t)&&(this.selectedIcon.url?fetch(this.selectedIcon.url).then(function(e){return e.text()}).then(function(n){e.setTargetValue(e.targetElements[0],e.selectedIcon.name);var r=document.createRange();t.map(function(e){e.innerHTML="",r.setStart(e,0);var t=r.createContextualFragment(n);e.appendChild(t)})}):(this.setTargetValue(this.targetElements[0],""),t.map(function(e){e.innerHTML=""})))},deep:!0}},methods:{setDrawerState:function(e){this.openDrawer=e},fullIconList:function(){var e=this;return Object.keys(this.icons).filter(function(t){return t.includes(e.filterText)}).slice(0,this.paginationIndex*this.perPage).reduce(function(t,n){return t[n]=e.icons[n],t},{})},toggleIconDrawer:function(){this.calculateDrawerPosition(),this.openDrawer=!this.openDrawer,this.innerDrawerRef=this.$refs.drawerRefElement},setIcon:function(e,t){this.selectedIcon.url=t,this.selectedIcon.name=e,this.toggleIconDrawer(),this.setTableDirty()},observerVisible:function(){this.paginationIndex+=1},calculateDrawerPosition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=this.$refs.iconSelectButton.getBoundingClientRect(),n=t.x+t.width+e,r=t.y;this.drawerPosition.top=this.toPx(r),this.drawerPosition.left=this.toPx(n)},toPx:function(e){return"".concat(e,"px")}}};exports.default=r;
|
15 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"wptb-settings-row wptb-settings-middle-xs"},[i("div",{staticClass:"wptb-settings-space-between"},[i("p",{staticClass:"wptb-settings-item-title"},[e._v(e._s(e.label))]),e._v(" "),i("div",{staticClass:"wptb-icon-select-wrapper"},[i("div",{staticClass:"wptb-icon-select-display"},[i("div",{ref:"iconSelectButton",staticClass:"wptb-icon-select-preview",on:{click:e.toggleIconDrawer}},[i("img",{attrs:{src:e.selectedIcon.url}})]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.openDrawer,expression:"openDrawer"}],staticClass:"wptb-icon-select-drawer wptb-plugin-box-shadow-md",style:e.drawerPosition},[i("div",{staticClass:"wptb-icon-search-wrapper"},[i("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.debunkedFilterText,expression:"debunkedFilterText",modifiers:{trim:!0}}],attrs:{type:"text",placeholder:"Search for icons..."},domProps:{value:e.debunkedFilterText},on:{input:function(t){t.target.composing||(e.debunkedFilterText=t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}})]),e._v(" "),i("div",{ref:"drawerRefElement",staticClass:"wptb-icon-previews"},[i("div",{staticClass:"wptb-icon-select-drawer-preview wptb-icon-reset",on:{click:function(t){return e.setIcon("","")}}}),e._v(" "),e._l(e.fullIconList(),function(t,s){return i("div",{key:s,staticClass:"wptb-icon-select-drawer-preview",class:{"wptb-icon-preview-active":e.selectedIcon.name===s}},[i("img",{attrs:{src:t,title:s,draggable:!1},on:{click:function(i){return e.setIcon(s,t)}}})])}),e._v(" "),i("intersection-observer",{attrs:{"relative-element":e.innerDrawerRef,"force-hide":e.observerHide},on:{visible:e.observerVisible}},[i("div",{staticClass:"wptb-icon-select-drawer-end"})])],2)])])])])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
16 |
+
},{"../components/IntersectionObserver":"WV0h","../mixins/ControlBase":"LTB1"}],"Pn7d":[function(require,module,exports) {
|
17 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("vue")),t=n(require("../functions/WPTB_ControlsManager")),o=n(require("../containers/IconSelectControl"));function n(e){return e&&e.__esModule?e:{default:e}}var r={name:"ControlIconSelect",handler:function(n){var r=t.default.getControlData(n);new e.default({data:r,components:{IconSelectControl:o.default}}).$mount("#".concat(n))}};exports.default=r;
|
18 |
},{"vue":"HYXJ","../functions/WPTB_ControlsManager":"WZJa","../containers/IconSelectControl":"DTps"}],"W4BN":[function(require,module,exports) {
|
19 |
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../mixins/ControlBase"));function t(e){return e&&e.__esModule?e:{default:e}}var u={props:{min:{type:Number,default:1,required:!1},max:{type:Number,default:10,required:!1},step:{type:Number,default:1,required:!1},defaultValue:{type:Number,default:1,required:!1}},mixins:[e.default],mounted:function(){this.assignDefaultValue()},watch:{elementMainValue:function(e){var t=this.clampValue(e);this.setAllValues(t),this.generateChangeEvent(t),this.setTableDirty(!0)}},methods:{clampValue:function(e){return e<this.min?this.min:e>this.max?this.max:e}}};exports.default=u;
|
20 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"wptb-settings-item-header"},[e._v(e._s(e.label))]),e._v(" "),a("div",{staticClass:"wptb-settings-row wptb-settings-middle-xs"},[a("div",{staticClass:"wptb-settings-col-xs-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.elementMainValue,expression:"elementMainValue"}],staticClass:"wptb-element-property wptb-size-slider",class:e.uniqueId,attrs:{type:"range","data-element":e.elemContainer,"data-type":"range",min:e.min,max:e.max,step:e.step},domProps:{value:e.elementMainValue},on:{__r:function(t){e.elementMainValue=t.target.value}}})]),e._v(" "),a("div",{staticClass:"wptb-settings-col-xs-4"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.elementMainValue,expression:"elementMainValue"}],staticClass:"wptb-size-number wptb-number-input wptb-element-property",class:e.uniqueId,attrs:{type:"number",min:e.min,max:e.max,step:e.step,"data-element":e.elemContainer,"data-type":"range"},domProps:{value:e.elementMainValue},on:{input:function(t){t.target.composing||(e.elementMainValue=t.target.value)}}})])])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
21 |
+
},{"../mixins/ControlBase":"LTB1"}],"YVYX":[function(require,module,exports) {
|
22 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=o(require("vue")),t=o(require("../containers/RangeControl")),n=o(require("../functions/WPTB_ControlsManager"));function o(e){return e&&e.__esModule?e:{default:e}}var r={name:"ControlRange",handler:function(o){var r=n.default.getControlData(o);new e.default({data:r,components:{RangeControl:t.default}}).$mount("#".concat(o))}};exports.default=r;
|
23 |
+
},{"vue":"HYXJ","../containers/RangeControl":"W4BN","../functions/WPTB_ControlsManager":"WZJa"}],"Y9Ty":[function(require,module,exports) {
|
24 |
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../mixins/ControlBase"));function t(e){return e&&e.__esModule?e:{default:e}}var s={props:{options:Object},mixins:[e.default],mounted:function(){this.assignDefaultValue()},watch:{elementMainValue:function(e){this.generateChangeEvent(e),this.setAllValues(e),this.setTableDirty(!0)}}};exports.default=s;
|
25 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wptb-settings-row wptb-settings-middle-xs"},[n("div",{staticClass:"wptb-settings-space-between"},[n("p",{staticClass:"wptb-settings-item-title"},[e._v(e._s(e.label))]),e._v(" "),n("div",[n("select",{directives:[{name:"model",rawName:"v-model",value:e.elementMainValue,expression:"elementMainValue"}],ref:"selectElement",staticClass:"wptb-element-property",class:e.uniqueId,attrs:{"data-element":e.elemContainer,"data-type":"select2"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.elementMainValue=t.target.multiple?n:n[0]}}},e._l(e.options,function(t,s){return n("option",{key:s,domProps:{value:s}},[e._v(e._s(t))])}),0)])])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
26 |
+
},{"../mixins/ControlBase":"LTB1"}],"eNVe":[function(require,module,exports) {
|
27 |
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=o(require("vue")),t=o(require("../containers/Select2Control")),r=o(require("../functions/WPTB_ControlsManager"));function o(e){return e&&e.__esModule?e:{default:e}}var n={name:"Select2",handler:function(o){var n=r.default.getControlData(o);new e.default({data:n,components:{Select2Control:t.default}}).$mount("#".concat(o))}};exports.default=n;
|
28 |
+
},{"vue":"HYXJ","../containers/Select2Control":"Y9Ty","../functions/WPTB_ControlsManager":"WZJa"}],"bIMM":[function(require,module,exports) {
|
29 |
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../mixins/ControlBase"));function t(e){return e&&e.__esModule?e:{default:e}}var i={mixins:[e.default],props:{mediaAttr:{type:Object,required:!1,default:function(){return{title:"Media Select",button:{text:"Select"},multiple:!1}}}},data:function(){return{frame:null}},mounted:function(){this.assignDefaultValue()},watch:{elementMainValue:function(e){this.setAllValues(e),this.setTableDirty(!0)}},computed:{previewImageUrl:function(){return'url("'.concat(this.elementMainValue,'")')}},methods:{open:function(){var e=this;this.frame?this.frame.open():(this.frame=wp.media(this.mediaAttr),this.frame.on("select",function(){var t=e.frame.state().get("selection").first().toJSON().url;e.elementMainValue=t}),this.frame.open())},resetImg:function(){this.elementMainValue=""}}};exports.default=i;
|
30 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"wptb-settings-row wptb-settings-middle-xs"},[e("div",{staticClass:"wptb-settings-space-between"},[e("p",{staticClass:"wptb-settings-item-title"},[t._v(t._s(t.label))]),t._v(" "),e("div",{staticClass:"wptb-control-media-button-wrapper"},[e("div",{staticClass:"wptb-control-media-select-button",style:{backgroundImage:t.previewImageUrl},on:{click:t.open}}),t._v(" "),e("div",{staticClass:"wptb-control-media-clear-button",on:{"!click":function(s){return t.resetImg(s)}}},[e("span",{staticClass:"dashicons dashicons-dismiss"})])])])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
31 |
+
},{"../mixins/ControlBase":"LTB1"}],"Uwhc":[function(require,module,exports) {
|
32 |
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("vue")),t=r(require("../containers/MediaSelectControl")),o=r(require("../functions/WPTB_ControlsManager"));function r(e){return e&&e.__esModule?e:{default:e}}var a={name:"ControlMediaSelect",handler:function(r){var a=o.default.getControlData(r);new e.default({data:a,components:{MediaSelectControl:t.default}}).$mount("#".concat(r))}};exports.default=a;
|
33 |
+
},{"vue":"HYXJ","../containers/MediaSelectControl":"bIMM","../functions/WPTB_ControlsManager":"WZJa"}],"qsi5":[function(require,module,exports) {
|
34 |
"use strict";function e(){var e={};return function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3;Object.keys(e).includes(t)&&clearTimeout(e[t]),e[t]=setTimeout(r,o)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e();exports.default=t;
|
35 |
},{}],"cW6v":[function(require,module,exports) {
|
36 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../functions/DeBouncer"));function t(e){return e&&e.__esModule?e:{default:e}}var i={props:{clone:{type:Boolean,default:!1,required:!1},cloneQuery:{type:String,required:!0},tableDirectives:{type:String,default:""},tableStyle:{type:Object,default:function(){}}},inheritAttrs:!1,data:function(){return{cloneInner:!1,clonedTable:null,mainTable:null,tableDirectiveDatasetId:"wptbResponsiveDirectives",tableHaveDirectives:!1}},mounted:function(){this.cloneInner=this.clone},watch:{clone:function(e){this.cloneInner=e},cloneInner:function(e){e&&(this.startClone(),this.cloneInner=!1)},tableDirectives:function(e){e&&this.addDirectivesToTable(e)},"appOptions.identifyCells":{handler:function(e){e&&(this.showCellIdentification(),this.appOptions.identifyCells=!1)}},"directives.responsiveEnabled":{handler:function(e){e&&(this.mainTable.dataset.wptbAdaptiveTable=0)}}},methods:{startClone:function(){if(this.mainTable=document.querySelector(this.cloneQuery),!this.mainTable)throw new Error("no clone target is found with a query value of ".concat(this.cloneQuery));this.appOptions.hasLegacyResponsive="1"===this.mainTable.dataset.wptbAdaptiveTable,this.clonedTable=this.mainTable.cloneNode(!0),this.clonedTable.classList.add("wptb-plugin-box-shadow-xl"),this.$refs.tableClone.appendChild(this.clonedTable);var e=this.mainTable.dataset[this.tableDirectiveDatasetId];this.tableDirectives&&this.addDirectivesToTable(this.tableDirectives),this.tableHaveDirectives=void 0!==e,this.setupCellIdentification(this.clonedTable),this.$emit("tableCloned",e)},addDirectivesToTable:function(e){this.clonedTable&&this.mainTable&&(this.clonedTable.dataset[this.tableDirectiveDatasetId]=e,this.mainTable.dataset[this.tableDirectiveDatasetId]=e,this.$emit("directivesCopied",this.tableHaveDirectives),this.tableHaveDirectives=!1)},setupCellIdentification:function(e){Array.from(e.querySelectorAll("td")).map(function(e,t){"relative"!==getComputedStyle(e).position&&(e.style.position="relative");var i=document.createRange();i.setStart(e,0);var a="background-color: hsla(211, 25%, ".concat(t%2==0?70:90,"%, 80%)"),n='<div class="wptb-responsive-cell-identifier" style="'.concat(a,'">').concat(t+1,"</div>"),l=i.createContextualFragment(n);e.appendChild(l.childNodes[0])})},showCellIdentification:function(){var t=this;this.clonedTable.classList.add("wptb-responsive-show-cell-identifier"),(0,e.default)("cellIdentification",function(){t.clonedTable.classList.remove("wptb-responsive-show-cell-identifier")},2e3)}}};exports.default=i;
|
37 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"wptb-responsive-clone-wrapper"},[t("div",{staticClass:"wptb-responsive-clone-inner-wrapper"},[t("div",{ref:"tableClone",style:this.tableStyle})])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
38 |
+
},{"../functions/DeBouncer":"qsi5"}],"h0P7":[function(require,module,exports) {
|
39 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={inheritAttrs:!1,props:{postFix:{type:String,default:""},value:{type:null,default:0},enableDynamicWidth:{type:Boolean,default:!1},dynamicWidthPadding:{type:Number,default:3},onlyEnter:{type:Boolean,default:!1},min:{type:Number,default:0},max:{type:Number,default:1e3},enableLimit:{type:Boolean,default:!1}},model:{prop:"value",event:"valueChanged"},watch:{value:function(t){this.innerValue=t}},data:function(){return{innerValue:0}},mounted:function(){this.innerValue=this.value},computed:{postFixIt:function(){return"".concat(this.innerValue).concat(this.postFix)},dynamicWidth:function(){return this.enableDynamicWidth?{width:"calc(".concat(this.innerValue.toString().length+this.postFix.length+this.dynamicWidthPadding,"ch) !important")}:{}}},methods:{getValue:function(t){var e=Number.parseInt(t,10);return e=isNaN(e)?0:e,this.enableLimit?this.limitValue(e):e},limitValue:function(t){return t<this.min?this.min:t>this.max?this.max:t},handleOnInput:function(t){this.onlyEnter||this.$emit("valueChanged",this.getValue(t.target.value))},handleEnterInput:function(t){this.onlyEnter&&this.$emit("valueChanged",this.getValue(t.target.value))},handleKeyPress:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"up",e=this.getValue(this.innerValue);switch(t){case"up":e+=1;break;case"down":e-=1;break;default:e+=1}e=this.getValue(e),this.$emit("valueChanged",e)}}};exports.default=t;
|
40 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,n=e.$createElement;return(e._self._c||n)("input",{style:e.dynamicWidth,attrs:{type:"text",disabled:e.$attrs.disabled},domProps:{value:e.postFixIt},on:{input:e.handleOnInput,keydown:[function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"up",38,n.key,["Up","ArrowUp"])?null:(n.preventDefault(),e.handleKeyPress("up"))},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"down",40,n.key,["Down","ArrowDown"])?null:(n.preventDefault(),e.handleKeyPress("down"))},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:(n.preventDefault(),e.handleEnterInput(n))}]}})},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
41 |
+
},{}],"xi3E":[function(require,module,exports) {
|
|
|
|
|
|
|
|
|
42 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("./NumberPostfixInput"));function e(t){return t&&t.__esModule?t:{default:t}}var a={props:{value:{type:Number,default:0},rawValue:{type:Number,default:0},active:{type:Boolean,default:!1},stopId:String,enableBreakpointCustomization:{type:Boolean,default:!1}},components:{NumberPostfixInput:t.default},data:function(){return{wrapperStyle:{left:0,top:0},innerRawValue:this.rawValue}},watch:{rawValue:function(t){this.innerRawValue=t},value:function(){this.calculateStyle()},innerRawValue:function(t){this.$emit("breakpointChange",t,this.stopId)}},mounted:function(){var t=this;this.$nextTick(function(){t.calculateStyle()})},methods:{clickEvent:function(){this.$emit("click",this.rawValue)},calculateStyle:function(){var t=this.$refs.wrapper,e=this.$refs.knob;if(t){var a=t.getBoundingClientRect().width;this.wrapperStyle.left="calc(".concat(this.value,"% - ").concat(a/2,"px)")}if(e){var n=e.getBoundingClientRect().height;this.wrapperStyle.top="-".concat(n/2,"px")}}}};exports.default=a;
|
43 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"wrapper",staticClass:"wptb-slider-stop",class:{"wptb-slider-stop-active":e.active},style:e.wrapperStyle,on:{"!click":function(t){return t.preventDefault(),e.clickEvent(t)}}},[i("div",{ref:"knob",staticClass:"wptb-slider-stop-knob"}),e._v(" "),i("div",{staticClass:"wptb-slider-stop-label"},[e._t("default")],2),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.enableBreakpointCustomization,expression:"enableBreakpointCustomization"}]},[i("number-postfix-input",{staticClass:"wptb-size-input",staticStyle:{"font-size":"90%"},attrs:{"enable-dynamic-width":!0,"only-enter":!0,"post-fix":"px"},model:{value:e.innerRawValue,callback:function(t){e.innerRawValue=t},expression:"innerRawValue"}})],1)])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
44 |
+
},{"./NumberPostfixInput":"h0P7"}],"ooD9":[function(require,module,exports) {
|
45 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:{amount:{type:Number,default:0}},computed:{calculateStyle:function(){return{width:"".concat(this.amount,"%")}}}};exports.default=t;
|
46 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"wptb-screen-size-slider-fill",style:this.calculateStyle})},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
47 |
+
},{}],"q8F8":[function(require,module,exports) {
|
48 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{positionPercentage:{type:Number,default:0}},data:function(){return{style:{left:0}}},watch:{positionPercentage:{handler:function(){this.calculateStyle()},deep:!0}},mounted:function(){this.calculateStyle()},methods:{calculateStyle:function(){var e=this.$refs.arrowWrapper.getBoundingClientRect().width;this.style.left="calc(".concat(this.positionPercentage,"% - ").concat(e/2,"px)")},handleDrag:function(e){var t=e.screenX,a=e.screenY;0===t&&0===a||this.$emit("arrowDrag",e)}}};exports.default=e;
|
49 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{ref:"arrowWrapper",staticClass:"wptb-screen-size-slider-arrow",style:e.style,attrs:{draggable:"true"},on:{drag:function(t){return t.preventDefault(),e.handleDrag(t)},dragover:function(e){e.preventDefault()},dragend:function(t){return t.preventDefault(),e.$emit("arrowDragEnd")},drop:function(e){e.preventDefault()},dragexit:function(e){e.preventDefault()},dragleave:function(e){e.preventDefault()}}},[r("svg",{attrs:{width:"17",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M8.5 16L0 0h17L8.5 16z",fill:"var(--wptb-plugin-logo-color)"}})])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
50 |
+
},{}],"V4gv":[function(require,module,exports) {
|
51 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=n(require("./SliderStop")),e=n(require("./SliderFill")),i=n(require("./SliderArrow"));function n(t){return t&&t.__esModule?t:{default:t}}var r={props:{stops:Object,endPadding:{type:Number,default:0},modelVal:{type:Number,default:0},enableBreakpointCustomization:{type:Boolean,default:!1}},components:{SliderStop:t.default,SliderFill:e.default,SliderArrow:i.default},data:function(){return{min:0,max:100,currentVal:0,isDragging:!1,minSizeBetweenBreakpoints:100,repaintId:0}},beforeMount:function(){this.calculateMinMax()},watch:{currentVal:function(){this.$emit("slide",this.currentVal)},modelVal:function(t){this.currentVal=Math.floor(t)}},methods:{handleBreakpointChange:function(t,e){var i=this.directives.breakpoints;if(!i[e])throw new Error("no breakpoint found with the given ID: [".concat(e,"]"));var n=Object.keys(i).sort(function(t,e){return i[t].width-i[e].width}),r=n.indexOf(e),a=n[r-1],s=n[r+1];a&&i[a].width>=t&&(t=i[a].width+this.minSizeBetweenBreakpoints),s&&i[s].width<=t&&(t=i[s].width-this.minSizeBetweenBreakpoints),i[e].width=t,this.calculateMinMax(),this.repaintId+=1},calculateMinMax:function(){var t=Object.values(this.stops).sort(function(t,e){return-1*(e.width-t.width)});this.min=t[0].width-this.endPadding,this.max=t[t.length-1].width+this.endPadding,this.currentVal=t[t.length-1].width},translateIntoPercent:function(t){var e=this.max-this.min;return 100*(t-this.min)/e},slide:function(t){this.currentVal=t},handleArrowDrag:function(t){this.isDragging=!0;var e=this.$refs.sliderWrapper.getBoundingClientRect(),i=e.left,n=e.width,r=(t.clientX-i)*(this.max-this.min)/n;this.currentVal=this.limitToRange(this.min+r)},limitToRange:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t;return t<this.min&&(i=this.min),t>this.max&&(i=this.max),e&&(i=Math.floor(i)),i},isStopActive:function(t){var e=this;return this.currentVal>=t&&Object.values(this.stops).filter(function(t){return t<=e.currentVal}).every(function(e){return e<=t})}}};exports.default=r;
|
52 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{key:e.repaintId,ref:"sliderWrapper",staticClass:"wptb-screen-size-slider-wrapper",class:{"wptb-drag-active":e.isDragging}},[r("div",{staticClass:"wptb-screen-size-slider-empty"},[r("slider-arrow",{attrs:{"position-percentage":e.translateIntoPercent(e.limitToRange(e.currentVal))},on:{arrowDrag:e.handleArrowDrag,arrowDragEnd:function(t){e.isDragging=!1}}}),e._v(" "),r("slider-fill",{attrs:{amount:e.translateIntoPercent(e.limitToRange(e.currentVal))}}),e._v(" "),e._l(e.stops,function(t,a){var n=t.name,i=t.width;return r("slider-stop",{key:a,attrs:{active:e.isStopActive(i),value:e.translateIntoPercent(i),"raw-value":i,"stop-id":a,enableBreakpointCustomization:e.enableBreakpointCustomization},on:{click:e.slide,breakpointChange:e.handleBreakpointChange}},[e._v(e._s(n))])})],2)])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
53 |
+
},{"./SliderStop":"xi3E","./SliderFill":"ooD9","./SliderArrow":"q8F8"}],"phKF":[function(require,module,exports) {
|
54 |
|
55 |
var t,e,n=module.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function u(t){if(e===clearTimeout)return clearTimeout(t);if((e===o||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{return e(t)}catch(n){try{return e.call(null,t)}catch(n){return e.call(this,t)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(n){t=r}try{e="function"==typeof clearTimeout?clearTimeout:o}catch(n){e=o}}();var c,s=[],l=!1,a=-1;function f(){l&&c&&(l=!1,c.length?s=c.concat(s):a=-1,s.length&&h())}function h(){if(!l){var t=i(f);l=!0;for(var e=s.length;e;){for(c=s,s=[];++a<e;)c&&c[a].run();a=-1,e=s.length}c=null,l=!1,u(t)}}function m(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new m(t,e)),1!==s.length||l||i(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0};
|
56 |
},{}],"Q6f0":[function(require,module,exports) {
|
57 |
var global = arguments[3];
|
58 |
var process = require("process");
|
59 |
+
var e=arguments[3],t=require("process");function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,t,n){"object"===("undefined"==typeof exports?"undefined":a(exports))&&"undefined"!=typeof module?module.exports=n():t[e]=n()}("WPTB_ResponsiveFrontend",self||e,function(){function e(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]}function t(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.element=e,this.referenceObject=n,this.mergedRenderStatus=!0,this.mergedCells={row:[],column:[]},this.getMergedRenderStatus=function(){return t.mergedRenderStatus},this.setMergedRenderStatus=function(e){t.mergedRenderStatus=e},this.addToMergedCells=function(e,n){t.mergedCells[e].push(n)},this.isReference=function(){return null!==t.referenceObject},this.isReference()&&(this.element=e.cloneNode(!0)),this.modifications={},this.spans={row:1,col:1},this.remainingSpans={row:0,col:0},this.cacheSpanValues=function(){Object.keys(t.spans).map(function(e){if(Object.prototype.hasOwnProperty.call(t.spans,e)){var n=t.spans[e];t.spans[e]=t.element.getAttribute("".concat(e,"Span"))||n}})},this.cacheSpanValues(),this.getSpan=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t.getElement().getAttribute("".concat(e,"Span")):t.spans[e];if(n)return n;throw new Error("no span value found with the given type of [".concat(e,"]"))},this.getRemainingSpans=function(e){return t.remainingSpans[e]},this.setRemainingSpans=function(e,n){t.remainingSpans[e]=n},this.getElement=function(){return t.element},this.createCellElement=function(){return document.createElement("td")},e||(this.element=this.createCellElement()),this.setAttribute=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",",s=t.getElement()[e];"function"!=typeof s&&"object"!==a(s)||(s=t.getElement().getAttribute(e)),t.modifications[e]&&(s=t.modifications[e].default);var i=s;r?i+="".concat(i).concat(o).concat(n):i=n,t.modifications[e]={value:i,default:s},t.getElement()[e]=i},this.setSpan=function(e,n){if(!t.isReference()){var r=t.getSpan(e)-n<0?t.getSpan(e):n;t.setAttribute("".concat(e,"Span"),r),t.setRemainingSpans(e,t.getSpan(e)-r);for(var o=0;o<r-1;o+=1)t.mergedCells[e]&&t.mergedCells[e][o]&&t.mergedCells[e][o].setMergedRenderStatus(!1);return!0}if(!t.getMergedRenderStatus())return!1;var a=t.referenceObject.getRemainingSpans(e);if(0===a)return!1;var s=a-n<0?a:n,i=a-s;if(t.referenceObject.setRemainingSpans(e,i),t.setAttribute("".concat(e,"Span"),s),0!==i)for(var l=t.referenceObject.mergedCells[e].length-a+1,d=l+s-1,u=l;u<d;u+=1)t.mergedCells[e][u].setMergedRenderStatus(!1);return!0},this.resetAttribute=function(e){t.modifications[e]&&(t.getElement()[e]=t.modifications[e].default,t.modifications[e]=void 0)},this.resetAllAttributes=function(){Object.keys(t.modifications).map(function(e){Object.prototype.hasOwnProperty.call(t.modifications,e)&&t.resetAttribute(e)})},{getElement:this.getElement,el:this.element,setAttribute:this.setAttribute,resetAllAttributes:this.resetAllAttributes,getSpan:this.getSpan,setSpan:this.setSpan,getRemainingSpans:this.getRemainingSpans,setRemainingSpans:this.setRemainingSpans,isReference:this.isReference,addToMergedCells:this.addToMergedCells,mergedCells:this.mergedCells,setMergedRenderStatus:this.setMergedRenderStatus,getMergedRenderStatus:this.getMergedRenderStatus}}function n(n){var r=this;return this.tableElement=n,this.parsedTable=[],this.rowCache=[],this.originals={rows:[]},this.rowColors={header:null,even:null,odd:null},this.addToParsed=function(e,t,n){r.parsedTable[e]||(r.parsedTable[e]=[]),r.parsedTable[e][t]=n},this.parseTable=function(){var e=Array.from(r.tableElement.querySelectorAll("tr"));e.map(function(e,n){r.originals.rows.push(e),Array.from(e.querySelectorAll("td")).map(function(e,o){var a=new t(e);r.addToParsed(n,o,a);var s=a.getSpan(t.spanTypes.row),i=a.getSpan(t.spanTypes.column);if(s>1)for(var l=1;l<s;l+=1){var d=new t(e,a);a.addToMergedCells("row",d),r.addToParsed(n+l,o,d)}if(i>1)for(var u=1;u<i;u+=1){var c=new t(e,a);a.addToMergedCells("column",c),r.addToParsed(n,o+u,c)}})}),r.parseRowColors(e)},this.parseRowColors=function(t){(!t||t.length<=0)&&e("no rows are found to parse their colors","error");var n=r.tableElement.dataset.wptbHeaderBackgroundColor,o=r.tableElement.dataset.wptbEvenRowBackgroundColor,a=r.tableElement.dataset.wptbOddRowBackgroundColor;r.rowColors.header=void 0!==n?n:""===t[0].style.backgroundColor?null:t[0].style.backgroundColor;for(var s=t.length/3>=1?0:1===t.length?2:(t.length-1)%2,i=0;i<s;i+=1){var l=document.createElement("tr");r.tableElement.querySelector("tbody").appendChild(l),t.push(l)}r.rowColors.even=o||getComputedStyle(t[1]).backgroundColor,r.rowColors.odd=o?a:getComputedStyle(t[2]).backgroundColor;for(var d=0;d<s;d+=1)t[t.length-(d+1)].remove()},this.addRow=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Array.isArray(e)||(e=[e]);var o,a=r.tableElement.querySelector("tbody");if(t)o=r.originals.rows[n];else{var s=document.createRange();s.setStart(a,0),o=s.createContextualFragment('<tr class="'.concat(e.join(" "),'"></tr>')).childNodes[0]}return a.appendChild(o),r.rowCache.push(o),{el:o,id:r.rowCache.length-1}},this.clearTable=function(){r.rowCache=[],r.tableElement.querySelector("tbody").innerHTML=""},this.getRow=function(t){return r.rowCache[t]?r.rowCache[t]:(e("no row with id [".concat(t,"] found in the cache."),"warn"),null)},this.maxRows=function(){return r.parsedTable.length},this.maxColumns=function(){return r.parsedTable.reduce(function(e,t){return t.length>e&&(e=t.length),e},0)},this.getCell=function(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{if(r.parsedTable[t][n])return o?r.parsedTable[t][n]:r.parsedTable[t][n].el}catch(a){return e("no cell found at the given address of [".concat(t,"-").concat(n,"]"),"warn"),null}return e("no cell found at the given address of [".concat(t,"-").concat(n,"]"),"warn"),null},this.getCellsAtRow=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],o=0;o<r.maxColumns();o+=1){var a=r.getCell(e,o,t);a&&n.push(a)}return n},this.appendToRow=function(e,t,n){var o=r.getRow(n),a=r.getCell(e,t,!0);return a&&o&&o.appendChild(a.getElement()),a},this.appendElementToRow=function(e,t){var n=r.getRow(t);e&&n&&n.appendChild(e)},this.appendObjectToRow=function(e,t){var n=r.getRow(t);e&&n&&n.appendChild(e.getElement())},this.parseTable(),{maxRows:this.maxRows,maxColumns:this.maxColumns,addRow:this.addRow,clearTable:this.clearTable,getCell:this.getCell,appendToRow:this.appendToRow,appendElementToRow:this.appendElementToRow,appendObjectToRow:this.appendObjectToRow,getCellsAtRow:this.getCellsAtRow,el:this.tableElement,rowColors:this.rowColors}}t.spanTypes={row:"row",column:"col"};var o={query:".wptb-preview-table",defaultClasses:["wptb-plugin-responsive-base"],bindToResize:!1};return function(){var e=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options=r({},o,{},a),this.elements=Array.from(document.querySelectorAll(this.options.query)),this.elementObjects=this.elements.map(function(e){return{el:e,tableObject:new n(e)}}),this.bindRebuildToResize=function(){window.addEventListener("resize",function(t){e.rebuildTables(t.target.innerWidth)})},this.getDirective=function(e){var t=e.dataset.wptbResponsiveDirectives;return t?JSON.parse(atob(t)):null},this.addDefaultClasses=function(t){t.classList.add(e.options.defaultClasses)},this.removeDefaultClasses=function(t){t.classList.remove(e.options.defaultClasses)},this.autoBuild=function(t,n,r,o){var a=r.cellStackDirection[n],s=r.topRowAsHeader[n],i=r.cellsPerRow[n],l=!!r.staticTopRow&&r.staticTopRow[n];o.clearTable(),"desktop"===n?(e.buildDefault(o),e.removeDefaultClasses(t)):(e.autoDirectionBuild(o,a,s,l,i),e.addDefaultClasses(t))},this.autoDirectionBuild=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=t.maxRows(),i=t.maxColumns(),l="row"===n;if(r)e.headerBuild(t,n,a);else if(l)!function(){var e=[],n=0;o&&t.getCellsAtRow(0,!0).filter(function(e){return!e.isReference()}).map(function(e){n+=1;var r=t.addRow("wptb-row");r.el.style.backgroundColor=t.rowColors.header,t.appendObjectToRow(e,r.id),e.setAttribute("colSpan",a)});for(var r=n;r<s;r+=1)t.getCellsAtRow(r,!0).forEach(function(t){return e.push(t)});for(var i=e.length,l=0,d=0;l<i;l+=a,d+=1){var u=t.addRow("wptb-row");u.el.style.backgroundColor=t.rowColors[d%2==0?"odd":"even"];for(var c=0;c<a;c+=1){var p=e[l+c];p&&(t.appendElementToRow(p.getElement(),u.id),p.resetAllAttributes(),p.setAttribute("style","width: 100% !important",!0,";"),p.setAttribute("colSpan",1),p.setAttribute("rowSpan",1))}}}();else{var d=[],u=0;o&&t.getCellsAtRow(0,!0).filter(function(e){return!e.isReference()}).map(function(e){u+=1;var n=t.addRow("wptb-row");n.el.style.backgroundColor=t.rowColors.header,t.appendObjectToRow(e,n.id),e.setAttribute("colSpan",a)});for(var c=0;c<i;c+=1)for(var p=u;p<s;p+=1){var f=t.getCell(p,c,!0);f&&d.push(f)}for(var h=d.length,g=0,b=0;g<h;g+=a,b+=1){var m=t.addRow("wptb-row");m.el.style.backgroundColor=t.rowColors[b%2==0?"odd":"even"];for(var w=0;w<a;w+=1){var v=d[g+w];v&&(t.appendElementToRow(v.getElement(),m.id),v.resetAllAttributes(),v.setAttribute("style","width: 100% !important",!0,";"),v.setAttribute("colSpan",1),v.setAttribute("rowSpan",1))}}}},this.headerBuild=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=e.getCellsAtRow(0,!0).map(function(t){return t.setAttribute("style","background-color: ".concat(e.rowColors.header),!0,";"),t}),a="column"===n,s=e.maxRows(),i=e.maxColumns();if(a)for(var l=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.addRow("wptb-row");t&&(n.el.style.borderTop="3px solid gray"),o.map(function(t){e.appendElementToRow(t.el.cloneNode(!0),n.id)})},d=Math.ceil((s-1)/r),u=1,c=0;c<d;c+=1){l(c>0);for(var p=0;p<r&&!(u>=s);p+=1){var f=e.addRow("wptb-row");f.el.style.backgroundColor=e.rowColors[p%2==0?"even":"odd"];for(var h=0;h<i;h+=1){var g=e.getCell(u,h,!0);if(g){g.resetAllAttributes();var b=!0,m=g.getSpan(t.spanTypes.row);if(g.getSpan(t.spanTypes.column),m>1){var w=r-p,v=Math.min(m,w);b=g.setSpan(t.spanTypes.row,v),g.setMergedRenderStatus(!0)}b&&e.appendObjectToRow(g,f.id)}}u+=1}}else for(var R=Math.ceil((s-1)/r),C=1,y=0;y<R;y+=1){for(var S=0;S<i;S+=1){var T=e.addRow("wptb-row");T.el.style.backgroundColor="none",y>0&&0===S&&(T.el.style.borderTop="3px solid gray");var A=o[S].el.cloneNode(!0);A.style.backgroundColor="".concat(e.rowColors.header," !important"),e.appendElementToRow(A,T.id);for(var O=0;O<r&&!(C+O>=s);O+=1){var E=e.getCell(C+O,S,!0);if(E){E.resetAllAttributes();var j=!0,k=E.getSpan(t.spanTypes.row);if(E.getSpan(t.spanTypes.column),k>1){var M=r-O,x=Math.min(k,M);j=E.setSpan(t.spanTypes.row,x);var P=E.el.getAttribute("rowSpan"),D=E.el.getAttribute("colSpan");E.setAttribute("rowSpan",D),E.setAttribute("colSpan",P),E.setMergedRenderStatus(!0)}if(j){var B=(C+O+y)%2==0?"even":"odd";1===r&&(B=C%2==0?"even":"odd"),E.setAttribute("style","background-color: ".concat(e.rowColors[B]),!0,";"),e.appendObjectToRow(E,T.id)}}}}C+=r}},this.buildDefault=function(e){for(var t=e.maxRows(),n=e.maxColumns(),r=0;r<t;r+=1)for(var o=e.addRow("",!0,r).id,a=0;a<n;a+=1){var s=e.getCell(r,a,!0);s&&!s.isReference()&&(s.resetAllAttributes(),e.appendElementToRow(s.getElement(),o))}},this.calculateRangeId=function(e,t){var n=Object.keys(t).sort(function(e,n){return t[e].width-t[n].width}),r=n[0];return n.map(function(n){e>=t[n].width&&(r=n)}),r},this.rebuildTable=function(t,n,r){var o=e.getDirective(t);if(o){if(!o.responsiveEnabled)return;var a=o.responsiveMode,s=e["".concat(a,"Build")];n||(n=t.getBoundingClientRect().width);var i=e.calculateRangeId(n,o.breakpoints);if(!s)throw new Error("No build mode named as [".concat(a,"] found."));var l=o.modeOptions[a];s.call(e,t,i,l,r)}},this.rebuildTables=function(t){t||(t=window.innerWidth),e.elementObjects.map(function(n){e.rebuildTable(n.el,t,n.tableObject)})},this.options.bindToResize&&this.bindRebuildToResize(),{rebuildTables:this.rebuildTables}}});
|
60 |
},{"process":"phKF"}],"ATQh":[function(require,module,exports) {
|
61 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:{click:{type:Function,default:function(){console.log("Material button clicked")}},size:{type:String,default:"fit-content"}},computed:{buttonClass:function(){return["wptb-plugin-button-material-".concat(this.size)]}}};exports.default=t;
|
62 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"wptb-plugin-button-material",class:t.buttonClass,on:{click:function(e){return e.preventDefault(),t.click(e)}}},[t._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
63 |
+
},{}],"vCKs":[function(require,module,exports) {
|
64 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("./MaterialButton"));function t(e){return e&&e.__esModule?e:{default:e}}var o={props:{message:{type:String,default:"This is a default message for modal window."},visible:{type:Boolean,default:!1},relativeRef:{type:HTMLElement,required:!0},callback:{type:Function,default:function(){console.log("modal button clicked")}}},components:{MaterialButton:e.default},mounted:function(){this.relativeRef.appendChild(this.$refs.mainWrapper)},beforeDestroy:function(){this.$refs.mainWrapper.remove()}};exports.default=o;
|
65 |
+
(function(){var s=exports.default||module.exports;"function"==typeof s&&(s=s.options),Object.assign(s,{render:function(){var s=this,i=s.$createElement,t=s._self._c||i;return t("div",{directives:[{name:"show",rawName:"v-show",value:s.visible,expression:"visible"}],ref:"mainWrapper",staticClass:"wptb-plugin-modal-window"},[t("div",{staticClass:"wptb-plugin-modal-inner-window"},[s._m(0),s._v(" "),t("div",{staticClass:"wptb-plugin-modal-message"},[s._v(s._s(s.message))]),s._v(" "),t("div",{staticClass:"wptb-plugin-modal-button-container"},[t("material-button",{attrs:{size:"full-size",click:s.callback}},[s._v(s._s(s.strings.okay))])],1)])])},staticRenderFns:[function(){var s=this.$createElement,i=this._self._c||s;return i("div",{staticClass:"wptb-plugin-modal-icon"},[i("span",{staticClass:"dashicons dashicons-warning"})])}],_compiled:!0,_scopeId:null,functional:void 0});})();
|
66 |
+
},{"./MaterialButton":"ATQh"}],"waBm":[function(require,module,exports) {
|
67 |
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=c(require("../components/TableClone")),t=c(require("../components/ScreenSizeSlider")),i=c(require("../../../WPTB_ResponsiveFrontend")),n=c(require("../functions/DeBouncer")),r=c(require("../components/ModalWindow")),o=c(require("../components/MaterialButton")),s=c(require("../components/NumberPostfixInput"));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a={props:{cloneQuery:{type:String,required:!0},screenSizes:Object,compareSizes:Object},components:{TableClone:e.default,ScreenSizeSlider:t.default,ModalWindow:r.default,MaterialButton:o.default,NumberPostfixInput:s.default},data:function(){return{isVisible:!0,currentSize:0,currentDirectives:null,currentSizeRangeName:"desktop",sliderPadding:20,sizeStops:{},responsiveFrontend:null,rebuilding:!1,debounceTime:1e3,sizeLimitMin:100,sizeLimitMax:0}},watch:{currentSizeRangeName:function(e){this.appOptions.currentBreakpoint=e},directives:{handler:function(){this.currentDirectives=this.encodeResponsiveDirectives()},deep:!0},"appOptions.currentSize":{handler:function(e){var t=this,i=this.currentSizeRangeName;this.currentSizeRangeName=this.calculateSizeRangeName(e),i!==this.currentSizeRangeName&&this.directives.responsiveEnabled&&(this.rebuilding=!0,(0,n.default)("currentSize",function(){t.responsiveFrontend.rebuildTables(t.appOptions.currentSize),t.rebuilding=!1},this.debounceTime))}}},beforeMount:function(){},mounted:function(){var e=this;document.addEventListener("wptbSectionChanged",function(t){e.isVisible="table_responsive_menu"===t.detail}),this.sizeLimitMax=this.$refs.builderResponsive.getBoundingClientRect().width},computed:{tableStyle:function(){if(!this.directives.responsiveEnabled)return{};var e=this.limitToRange(this.appOptions.currentSize,Math.min(this.sizeLimitMin,this.sizeLimitMax),Math.max(this.sizeLimitMin,this.sizeLimitMax));return{width:"".concat(e,"px")}},modalRelative:function(){return document.querySelector(".wptb-builder-panel")}},methods:{limitToRange:function(e,t,i){return e>i?i:e<t?t:e},tableCloned:function(e){if(this.responsiveFrontend=new i.default({query:".wptb-builder-responsive table"}),e){var t=this.decodeResponsiveDirectives(e);try{var n=JSON.parse(t);this.deepMergeObject(this.directives,n)}catch(r){console.warn("[WPTB]: invalid directive found at main table")}}},deepMergeObject:function(e,t){var i=this;Object.keys(t).map(function(n){Object.prototype.hasOwnProperty.call(t,n)&&void 0!==e[n]&&("object"===u(e[n])?i.deepMergeObject(e[n],t[n]):e[n]=t[n])})},directivesCopied:function(e){this.responsiveFrontend.rebuildTables(this.appOptions.currentSize),e||(new WPTB_TableStateSaveManager).tableStateSet(),this.rebuilding=!1},sliderSizeStops:function(){var e=this,t=Object.keys(this.screenSizes).reduce(function(t,i){return Object.prototype.hasOwnProperty.call(e.screenSizes,i)&&(t[e.screenSizes[i].name]=e.screenSizes[i].width),t},{});return this.directives.stops=t,t},calculateSizeRangeName:function(e){var t=this.directives.breakpoints,i=Object.keys(t).filter(function(i){return!!Object.prototype.hasOwnProperty.call(t,i)&&t[i].width<=e}).sort(function(e,i){return t[e].width-t[i].width});return 0===i.length?"mobile":i[i.length-1]},handleSizeSlideChange:function(e){this.appOptions.currentSize=e},encodeResponsiveDirectives:function(){var e=JSON.stringify(this.directives);return btoa(e)},decodeResponsiveDirectives:function(e){return atob(e)},showCellIdentifications:function(){this.appOptions.identifyCells=!0}}};exports.default=a;
|
68 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("transition",{attrs:{name:"wptb-fade"}},[e.isVisible?i("div",{ref:"builderResponsive",staticClass:"wptb-builder-responsive"},[i("div",{staticClass:"wptb-responsive-menu-tools"},[i("screen-size-slider",{attrs:{"end-padding":e.sliderPadding,stops:e.directives.breakpoints,"model-val":e.appOptions.currentSize,"enable-breakpoint-customization":!1},on:{slide:e.handleSizeSlideChange}})],1),e._v(" "),i("div",{staticClass:"wptb-responsive-builder-main wptb-checkerboard-pattern wptb-plugin-inset-shadow-md"},[i("div",{staticClass:"wptb-responsive-builder-toolbox-float"},[i("number-postfix-input",{staticClass:"wptb-size-input wptb-plugin-box-shadow-xl",attrs:{"post-fix":"px","only-enter":!0},model:{value:e.appOptions.currentSize,callback:function(t){e.$set(e.appOptions,"currentSize",t)},expression:"appOptions.currentSize"}}),e._v(" "),i("material-button",{staticClass:"wptb-plugin-box-shadow-xl",attrs:{size:"fit-content",click:e.showCellIdentifications}},[e._v(e._s(e._f("cap")(e.strings.identifyCells))+" ")])],1),e._v(" "),i("table-clone",{ref:"tableClone",attrs:{clone:e.isVisible,"clone-query":e.cloneQuery,"table-directives":e.currentDirectives,"table-style":e.tableStyle},on:{tableCloned:e.tableCloned,directivesCopied:e.directivesCopied}}),e._v(" "),i("transition",{attrs:{name:"wptb-fade"}},[e.directives.responsiveEnabled?e._e():i("div",{staticClass:"wptb-responsive-disabled-table-overlay"})]),e._v(" "),i("transition",{attrs:{name:"wptb-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.rebuilding,expression:"rebuilding"}],staticClass:"wptb-responsive-wait-overlay"},[e._v(e._s(e.strings.rebuilding))])]),e._v(" "),i("modal-window",{attrs:{visible:e.appOptions.hasLegacyResponsive,message:e.strings.legacyResponsiveWarning,"relative-ref":e.modalRelative,callback:function(){e.appOptions.hasLegacyResponsive=!1}}})],1)]):e._e()])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
69 |
+
},{"../components/TableClone":"cW6v","../components/ScreenSizeSlider":"V4gv","../../../WPTB_ResponsiveFrontend":"Q6f0","../functions/DeBouncer":"qsi5","../components/ModalWindow":"vCKs","../components/MaterialButton":"ATQh","../components/NumberPostfixInput":"h0P7"}],"TuCQ":[function(require,module,exports) {
|
70 |
|
71 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"wptb-controls-flex-row"},[this._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
72 |
+
},{}],"GZC0":[function(require,module,exports) {
|
73 |
"use strict";function e(e,t){e.filter("cap",function(e){return e.split(" ").map(function(e){return e[0].toUpperCase()+e.slice(1)}).join(" ")})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={install:e};exports.default=t;
|
74 |
},{}],"yEip":[function(require,module,exports) {
|
75 |
"use strict";function t(t,e){t.mixin({data:function(){return{strings:e.strings}}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={install:t};exports.default=e;
|
76 |
},{}],"CDb8":[function(require,module,exports) {
|
77 |
"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(n){e(t,n,r[n])})}return t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Plugin=exports.SSR=exports.Fragment=exports.default=void 0;var n=function(e,t,n){Object.defineProperty(e,t,{configurable:!0,get:function(){return n},set:function(e){console.warn("tried to set frozen property ".concat(t," with ").concat(e))}})},r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n})},o={abstract:!0,name:"Fragment",props:{name:{type:String,default:function(){return Math.floor(Date.now()*Math.random()).toString(16)}}},mounted:function(){var e=this.$el,t=e.parentNode,o=document.createComment("fragment#".concat(this.name,"#head")),i=document.createComment("fragment#".concat(this.name,"#tail"));t.insertBefore(o,e),t.insertBefore(i,e),e.appendChild=function(r){t.insertBefore(r,i),n(r,"parentNode",e)},e.insertBefore=function(r,o){t.insertBefore(r,o),n(r,"parentNode",e)},e.removeChild=function(e){t.removeChild(e),r(e,"parentNode")},Array.from(e.childNodes).forEach(function(t){return e.appendChild(t)}),t.removeChild(e),n(e,"parentNode",t),n(e,"nextSibling",i.nextSibling);var a=t.insertBefore;t.insertBefore=function(n,r){a.call(t,n,r!==e?r:o)};var c=t.removeChild;t.removeChild=function(n){if(n===e){for(;o.nextSibling!==i;)e.removeChild(o.nextSibling);t.removeChild(o),t.removeChild(i),r(e,"parentNode"),t.insertBefore=a,t.removeChild=c}else c.call(t,n)}},render:function(e){var n=this,r=this.$slots.default;return r&&r.length&&r.forEach(function(e){return e.data=t({},e.data,{attrs:t({fragment:n.name},(e.data||{}).attrs)})}),e("div",{attrs:{fragment:this.name}},r)}};function i(e,t){}var a=o,c=i,f={install:function(e){e.component("fragment",o)}},l={Fragment:o,Plugin:f,SSR:i};exports.Plugin=f,exports.SSR=c,exports.Fragment=a;var u=l;exports.default=u;
|
78 |
},{}],"vpWQ":[function(require,module,exports) {
|
79 |
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{label:String,value:{type:null},disabled:{type:Boolean,default:!1},dependsValue:{type:null,default:null},dependsCallback:{type:Function,default:function(e,n){return n}}},data:function(){return{innerValue:""}},model:{prop:"value",event:"valueChanged"},watch:{value:function(e){this.innerValue=e},innerValue:function(e){this.$emit("valueChanged",e)},dependsValue:function(e){null!==e&&(this.innerValue=this.dependsCallback.call(this,e,this.innerValue))}},mounted:function(){this.innerValue=this.value}},n=e;exports.default=n;
|
80 |
},{}],"osOD":[function(require,module,exports) {
|
81 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../mixins/PanelControlBase"));function t(e){return e&&e.__esModule?e:{default:e}}var r={mixins:[e.default]};exports.default=r;
|
82 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wptb-element-option wptb-settings-items wptb-plugin-width-full"},[n("div",{staticClass:"wptb-settings-row wptb-settings-middle-xs"},[n("label",{staticClass:"wptb-toggle"},[n("span",{staticStyle:{"font-size":"16px"}},[e._v(" "+e._s(e.label)+" ")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.innerValue,expression:"innerValue"}],staticClass:"wptb-element-property",attrs:{type:"checkbox",disabled:e.disabled},domProps:{checked:Array.isArray(e.innerValue)?e._i(e.innerValue,null)>-1:e.innerValue},on:{change:function(t){var n=e.innerValue,i=t.target,l=!!i.checked;if(Array.isArray(n)){var s=e._i(n,null);i.checked?s<0&&(e.innerValue=n.concat([null])):s>-1&&(e.innerValue=n.slice(0,s).concat(n.slice(s+1)))}else e.innerValue=l}}}),e._v(" "),n("i")])])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
83 |
+
},{"../mixins/PanelControlBase":"vpWQ"}],"fI53":[function(require,module,exports) {
|
84 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../mixins/PanelControlBase"));function t(e){return e&&e.__esModule?e:{default:e}}var o={props:{options:{type:Object,default:function(){}}},mixins:[e.default]};exports.default=o;
|
85 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wptb-element-option wptb-settings-items wptb-plugin-width-full"},[n("div",{staticClass:"wptb-settings-row wptb-settings-middle-xs"},[n("label",{staticClass:"wptb-control-row wptb-flex wptb-flex-row wptb-flex-align-center wptb-flex-justify-space-between"},[n("span",{staticStyle:{"font-size":"16px"}},[e._v(" "+e._s(e.label)+" ")]),e._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.innerValue,expression:"innerValue"}],attrs:{disabled:e.disabled},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.innerValue=t.target.multiple?n:n[0]}}},e._l(e.options,function(t,l){return n("option",{key:l,domProps:{value:l}},[e._v(e._s(e._f("cap")(t)))])}),0)])])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
86 |
+
},{"../mixins/PanelControlBase":"vpWQ"}],"DmVJ":[function(require,module,exports) {
|
87 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("vue-fragment"),r=t(require("./PanelToggleControl")),o=t(require("./PanelDropdownControl"));function t(e){return e&&e.__esModule?e:{default:e}}var n={components:{PanelToggleControl:r.default,PanelDropdownControl:o.default,Fragment:e.Fragment}};exports.default=n;
|
88 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,s=e.$createElement,n=e._self._c||s;return n("fragment",[n("panel-toggle-control",{attrs:{label:e._f("cap")(e.strings.enableResponsive)},model:{value:e.directives.responsiveEnabled,callback:function(s){e.$set(e.directives,"responsiveEnabled",s)},expression:"directives.responsiveEnabled"}}),e._v(" "),n("panel-dropdown-control",{attrs:{label:e._f("cap")(e.strings.mode),options:{auto:"auto"},disabled:!e.directives.responsiveEnabled},model:{value:e.directives.responsiveMode,callback:function(s){e.$set(e.directives,"responsiveMode",s)},expression:"directives.responsiveMode"}})],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
89 |
+
},{"vue-fragment":"CDb8","./PanelToggleControl":"osOD","./PanelDropdownControl":"fI53"}],"UchZ":[function(require,module,exports) {
|
90 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{header:{type:String,default:"Tab Header"},tabs:{type:Object,default:function(){return{default:"Default"}}},currentTab:{type:String,default:"default"}},methods:{isActiveTab:function(e){return this.currentTab===e},handleTabClick:function(e){this.$emit("tabClicked",e)}}};exports.default=e;
|
91 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"wptb-section-group-tabbed wptb-plugin-box-shadow-md wptb-plugin-width-full"},[s("div",{staticClass:"wptb-panel-toggle wptb-section-group-tabbed-header"},[s("div",{staticClass:"header"},[t._v(t._s(t.header))])]),t._v(" "),s("div",{staticClass:"wptb-section-group-tabbed-tabs-buttons"},t._l(t.tabs,function(e,i){return s("div",{key:i,staticClass:"wptb-settings-section-item static-active",class:{active:t.isActiveTab(i),disabled:!t.isActiveTab(i)},on:{"!click":function(e){return e.preventDefault(),t.handleTabClick(i)}}},[t._v(" "+t._s(e)+" ")])}),0),t._v(" "),s("div",{staticClass:"wptb-section-group-tab-content"},[t._t("default")],2)])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
92 |
+
},{}],"bOKu":[function(require,module,exports) {
|
93 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("../mixins/PanelControlBase")),t=r(require("./NumberPostfixInput"));function r(e){return e&&e.__esModule?e:{default:e}}var u={components:{NumberPostfixInput:t.default},mixins:[e.default]};exports.default=u;
|
94 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"wptb-element-option wptb-settings-items wptb-plugin-width-full"},[i("div",{staticClass:"wptb-settings-row wptb-settings-middle-xs"},[i("label",{staticClass:"wptb-control-row wptb-flex wptb-flex-row wptb-flex-align-center wptb-flex-justify-space-between"},[i("span",{staticStyle:{"font-size":"16px"}},[t._v(" "+t._s(t.label)+" ")]),t._v(" "),i("number-postfix-input",{staticClass:"wptb-size-input",attrs:{"enable-dynamic-width":!0,min:1,max:100,"enable-limit":!0,disabled:t.disabled},model:{value:t.innerValue,callback:function(e){t.innerValue=e},expression:"innerValue"}})],1)])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
95 |
+
},{"../mixins/PanelControlBase":"vpWQ","./NumberPostfixInput":"h0P7"}],"rfRR":[function(require,module,exports) {
|
96 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("vue-fragment"),t=n(require("./PanelToggleControl")),r=n(require("./PanelDropdownControl")),o=n(require("./PanelInputControl"));function n(e){return e&&e.__esModule?e:{default:e}}var i={components:{Fragment:e.Fragment,PanelToggleControl:t.default,PanelDropdownControl:r.default,PanelInputControl:o.default},methods:{isDisabled:function(){return"desktop"===this.appOptions.currentBreakpoint||!this.directives.responsiveEnabled}},computed:{perLabelString:function(){return this.directives.modeOptions.auto.topRowAsHeader[this.appOptions.currentBreakpoint]?this.strings.itemsPerHeader:this.strings.cellsPerRow}}};exports.default=i;
|
97 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("fragment",[o("panel-toggle-control",{attrs:{label:e._f("cap")(e.strings.topRowHeader),disabled:e.isDisabled(),"depends-value":e.directives.modeOptions.auto.staticTopRow[e.appOptions.currentBreakpoint],"depends-callback":function(e,t){return!0!==e&&t}},model:{value:e.directives.modeOptions.auto.topRowAsHeader[e.appOptions.currentBreakpoint],callback:function(t){e.$set(e.directives.modeOptions.auto.topRowAsHeader,e.appOptions.currentBreakpoint,t)},expression:"directives.modeOptions.auto.topRowAsHeader[appOptions.currentBreakpoint]"}}),e._v(" "),o("panel-toggle-control",{attrs:{label:e._f("cap")(e.strings.staticTopRow),disabled:e.isDisabled(),"depends-value":e.directives.modeOptions.auto.topRowAsHeader[e.appOptions.currentBreakpoint],"depends-callback":function(e,t){return!0!==e&&t}},model:{value:e.directives.modeOptions.auto.staticTopRow[e.appOptions.currentBreakpoint],callback:function(t){e.$set(e.directives.modeOptions.auto.staticTopRow,e.appOptions.currentBreakpoint,t)},expression:"directives.modeOptions.auto.staticTopRow[appOptions.currentBreakpoint]"}}),e._v(" "),o("panel-dropdown-control",{attrs:{label:e._f("cap")(e.strings.stackDirection),options:{row:e.strings.row,column:e.strings.column},disabled:e.isDisabled()},model:{value:e.directives.modeOptions.auto.cellStackDirection[e.appOptions.currentBreakpoint],callback:function(t){e.$set(e.directives.modeOptions.auto.cellStackDirection,e.appOptions.currentBreakpoint,t)},expression:"directives.modeOptions.auto.cellStackDirection[appOptions.currentBreakpoint]"}}),e._v(" "),o("panel-input-control",{attrs:{label:e._f("cap")(e.perLabelString),disabled:e.isDisabled()},model:{value:e.directives.modeOptions.auto.cellsPerRow[e.appOptions.currentBreakpoint],callback:function(t){e.$set(e.directives.modeOptions.auto.cellsPerRow,e.appOptions.currentBreakpoint,t)},expression:"directives.modeOptions.auto.cellsPerRow[appOptions.currentBreakpoint]"}})],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
98 |
+
},{"vue-fragment":"CDb8","./PanelToggleControl":"osOD","./PanelDropdownControl":"fI53","./PanelInputControl":"bOKu"}],"BxO6":[function(require,module,exports) {
|
99 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("./PanelSectionGroupTabbed")),t=r(require("./AutoModePanelControls"));function r(e){return e&&e.__esModule?e:{default:e}}var o={components:{PanelSectionGroupTabbed:e.default,AutoModePanelControls:t.default},computed:{breakpointsObject:function(){var e=this;return Object.keys(this.directives.breakpoints).sort(function(t,r){return e.directives.breakpoints[t].width-e.directives.breakpoints[r].width}).reduce(function(t,r){return Object.prototype.hasOwnProperty.call(e.directives.breakpoints,r)&&(t[r]=e.directives.breakpoints[r].name),t},{})},currentPanelControls:function(){return"".concat(this.directives.responsiveMode[0].toUpperCase()+this.directives.responsiveMode.slice(1),"ModePanelControls")}},methods:{handleTabChange:function(e){this.appOptions.currentBreakpoint=e,this.appOptions.currentSize=this.directives.breakpoints[e].width}}};exports.default=o;
|
100 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement,e=this._self._c||t;return e("panel-section-group-tabbed",{attrs:{"current-tab":this.appOptions.currentBreakpoint,tabs:this.breakpointsObject,header:this.strings[this.directives.responsiveMode]},on:{tabClicked:this.handleTabChange}},[e(this.currentPanelControls,{tag:"component"})],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
101 |
+
},{"./PanelSectionGroupTabbed":"UchZ","./AutoModePanelControls":"rfRR"}],"Ub7O":[function(require,module,exports) {
|
102 |
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=l(require("vue")),t=l(require("../containers/ResponsiveApp")),n=l(require("../components/ResponsiveControlsRow")),o=l(require("../functions/WPTB_ControlsManager")),r=l(require("../plugins/filters")),s=l(require("../plugins/strings")),a=l(require("../components/ResponsivePanelGeneralControls")),i=l(require("../components/ResponsivePanelModeControls"));function l(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d={name:"ResponsiveTable",handler:function(l){var p=o.default.getControlData("responsiveMenuData"),c={responsiveEnabled:!1,responsiveMode:"auto",preserveRowColor:!1,modeOptions:{auto:{topRowAsHeader:{desktop:!1,tablet:!1,mobile:!1},staticTopRow:{desktop:!1,tablet:!1,mobile:!1},cellStackDirection:{desktop:"row",tablet:"row",mobile:"row"},cellsPerRow:{desktop:1,tablet:1,mobile:1}}},breakpoints:p.screenSizes};e.default.use({install:function(e,t){var n=t.components;e.mixin({components:n})}},{components:{ResponsiveControlsRow:n.default}}),e.default.use({install:function(e,t){e.mixin({data:function(){return t.data}})}},{data:{appOptions:{identifyCells:!1,hasLegacyResponsive:!1,currentBreakpoint:"desktop",currentSize:0},directives:c}}),e.default.use(r.default),e.default.use(s.default,p),new e.default({components:{ResponsiveApp:t.default},data:u({mainTableQuery:".wptb-preview-table"},p),template:'<responsive-app :clone-query="mainTableQuery" :screen-sizes="screenSizes" :compare-sizes="compareSizes"></responsive-app>'}).$mount("#".concat(l)),new e.default({components:{ResponsivePanelGeneralControls:a.default},template:"<responsive-panel-general-controls></responsive-panel-general-controls>"}).$mount("#responsiveBuilderLeftPanelGeneralControls"),new e.default({components:{ResponsivePanelModeControls:i.default},data:u({},p),template:"<responsive-panel-mode-controls></responsive-panel-mode-controls>"}).$mount("#responsiveBuilderLeftPanelModeOptions")}};exports.default=d;
|
103 |
+
},{"vue":"HYXJ","../containers/ResponsiveApp":"waBm","../components/ResponsiveControlsRow":"TuCQ","../functions/WPTB_ControlsManager":"WZJa","../plugins/filters":"GZC0","../plugins/strings":"yEip","../components/ResponsivePanelGeneralControls":"DmVJ","../components/ResponsivePanelModeControls":"BxO6"}],"n7p4":[function(require,module,exports) {
|
104 |
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{label:{type:String,default:"top"},value:{type:Number,default:0},disabled:{type:Boolean,default:!1}},model:{prop:"value",event:"valueChanged"},mounted:function(){this.innerValue=this.value},data:function(){return{innerValue:0}},watch:{value:function(e){this.innerValue=e},innerValue:function(e){this.$emit("valueChanged",Number.parseInt(e,10))}},methods:{inputChange:function(e){this.$emit("changedFromFront",this.$vnode.key,e.target.value),this.innerValue=e.target.value}}};exports.default=e;
|
105 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wptb-side-control-input-wrapper wptb-side-control-number-input"},[n("div",{staticClass:"wptb-side-control-header"},[t._v(" "+t._s(t._f("cap")(t.label))+" ")]),t._v(" "),n("div",[n("input",{staticClass:"wptb-side-control-main-input",attrs:{type:"number",disabled:t.disabled},domProps:{value:t.innerValue},on:{input:t.inputChange}})])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
106 |
+
},{}],"VsoX":[function(require,module,exports) {
|
107 |
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{value:{type:String,default:"px"}},model:{prop:"value",event:"valueChanged"},data:function(){return{options:["px","%"],innerValue:""}},mounted:function(){this.innerValue=this.value},watch:{value:function(e){this.innerValue=e},innerValue:function(e){this.$emit("valueChanged",e)}},methods:{isSelected:function(e){return this.innerValue===e}}};exports.default=e;
|
108 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wptb-side-control-input-wrapper wptb-side-control-dropdown-wrapper"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.innerValue,expression:"innerValue"}],staticClass:"wptb-side-control-main-input wptb-side-control-dropdown",on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.innerValue=t.target.multiple?n:n[0]}}},e._l(e.options,function(t){return n("option",{key:t,domProps:{value:t,selected:e.isSelected(t)}},[e._v(e._s(t))])}),0)])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
109 |
+
},{}],"ouPJ":[function(require,module,exports) {
|
110 |
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("../mixins/ControlBase")),t=n(require("../components/SideInput")),i=n(require("../components/SideDropdown"));function n(e){return e&&e.__esModule?e:{default:e}}function a(e){return l(e)||s(e)||d(e)||r()}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function l(e){if(Array.isArray(e))return f(e)}function u(e,t){return h(e)||c(e,t)||d(e,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){if(e){if("string"==typeof e)return f(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function c(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var i=[],n=!0,a=!1,r=void 0;try{for(var s,l=e[Symbol.iterator]();!(n=(s=l.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(u){a=!0,r=u}finally{try{n||null==l.return||l.return()}finally{if(a)throw r}}return i}}function h(e){if(Array.isArray(e))return e}var p={props:{linkIcon:{type:String,default:null},unlinkIcon:{type:String,default:null},strings:{type:Object,required:!0},defaultValue:{type:String,default:"0 0 0 0"}},mixins:[e.default],components:{SideInput:t.default,SideDropdown:i.default},data:function(){return{linkValues:!1,sideValues:{top:0,right:0,bottom:0,left:0},lastEdited:"top",type:"px"}},mounted:function(){this.assignDefaultValue(),this.parseElementValue()},watch:{sideValues:{handler:function(){this.calculateElementValue()},deep:!0},elementMainValue:function(e){this.setAllValues(e),this.generateChangeEvent(e),this.setTableDirty(!0)},linkValues:function(){this.calculateElementValue()},type:function(){this.calculateElementValue()}},methods:{inputChanged:function(e){this.lastEdited=e},calculateElementValue:function(){var e=this;this.assignLinkedValues(),this.elementMainValue=Object.keys(this.sideValues).map(function(t){if(Object.prototype.hasOwnProperty.call(e.sideValues,t))return e.sideValues[t]+e.type}).join(" ")},assignLinkedValues:function(){var e=this;this.linkValues&&Object.keys(this.sideValues).filter(function(t){return t!==e.lastEdited}).map(function(t){Object.prototype.hasOwnProperty.call(e.sideValues,t)&&(e.sideValues[t]=e.sideValues[e.lastEdited])})},parseElementValue:function(){var e="px";this.elementMainValue.split(" ").map(function(t){var i=t.match(/([a-z%?]+)/);if(i&&i[1]){var n=u(i,2);e=n[1]}}),this.type=e;var t=a(this.elementMainValue.matchAll(/[\d]+/g)).flatMap(function(e){return Number.parseInt(e[0],10)});if(t)if(1===t.length){var i=u(t,1);this.sideValues.top=i[0];var n=u(t,1);this.sideValues.bottom=n[0];var r=u(t,1);this.sideValues.left=r[0];var s=u(t,1);this.sideValues.right=s[0],this.linkValues=!0}else if(2===t.length){var l=u(t,2);this.sideValues.bottom=l[0],this.sideValues.left=l[1];var o=u(t,2);this.sideValues.top=o[0],this.sideValues.right=o[1]}else if(3===t.length){var d=u(t,3);this.sideValues.top=d[0],this.sideValues.right=d[1],this.sideValues.bottom=d[2],this.sideValues.left=0}else{var f=u(t,4);this.sideValues.top=f[0],this.sideValues.right=f[1],this.sideValues.bottom=f[2],this.sideValues.left=f[3]}}}};exports.default=p;
|
111 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t("div",{staticClass:"wptb-settings-item-header-include-right"},[t("div",{staticClass:"wptb-settings-space-between"},[t("div",[e._v(e._s(e._f("cap")(e.label)))]),e._v(" "),t("div",{on:{click:function(s){s.preventDefault(),e.linkValues=!e.linkValues}}},[e.linkValues?t("div",{staticClass:"wptb-sides-link-icon-wrapper"},[t("img",{attrs:{src:e.unlinkIcon,title:e.strings.unlink}})]):t("div",{staticClass:"wptb-sides-link-icon-wrapper"},[t("img",{attrs:{src:e.linkIcon,title:e.strings.link}})])])])]),e._v(" "),t("div",{staticClass:"wptb-settings-row wptb-settings-middle-xs wptb-sides-controls-wrapper",class:{"wptb-side-values-linked":e.linkValues}},[e._l(e.sideValues,function(s,i){return t("side-input",{key:i,attrs:{label:e.strings[i]},on:{changedFromFront:e.inputChanged},model:{value:e.sideValues[i],callback:function(s){e.$set(e.sideValues,i,s)},expression:"sideValues[k]"}})}),e._v(" "),t("side-dropdown",{model:{value:e.type,callback:function(s){e.type=s},expression:"type"}})],2)])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
112 |
+
},{"../mixins/ControlBase":"LTB1","../components/SideInput":"n7p4","../components/SideDropdown":"VsoX"}],"Qbmt":[function(require,module,exports) {
|
113 |
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("vue")),t=n(require("../functions/WPTB_ControlsManager")),r=n(require("../containers/SidesControl")),o=n(require("../plugins/filters"));function n(e){return e&&e.__esModule?e:{default:e}}var u={name:"ControlSides",handler:function(n){var u=t.default.getControlData(n);e.default.use(o.default),new e.default({data:u,components:{SidesControl:r.default}}).$mount("#".concat(n))}};exports.default=u;
|
114 |
+
},{"vue":"HYXJ","../functions/WPTB_ControlsManager":"WZJa","../containers/SidesControl":"ouPJ","../plugins/filters":"GZC0"}],"Zn1h":[function(require,module,exports) {
|
115 |
|
116 |
+
"use strict";var e=a(require("vue")),t=a(require("./mountPoints/WPTB_IconSelectControl")),o=a(require("./mountPoints/WPTB_RangeControl")),n=a(require("./mountPoints/WPTB_Select2Control")),r=a(require("./mountPoints/WPTB_MediaSelectControl")),u=a(require("./functions/WPTB_ControlsManager")),i=a(require("./mountPoints/WPTB_ResponsiveTable")),l=a(require("./mountPoints/WPTB_SidesControl"));function a(e){return e&&e.__esModule?e:{default:e}}e.default.config.productionTip=!1;var d=self||void 0;d.WPTB_ControlsManager=u.default;var f=[t.default,o.default,u.default,n.default,r.default,i.default,l.default];function s(e){u.default.addControlScript(e.name,e.handler)}f.map(s);
|
117 |
+
},{"vue":"HYXJ","./mountPoints/WPTB_IconSelectControl":"Pn7d","./mountPoints/WPTB_RangeControl":"YVYX","./mountPoints/WPTB_Select2Control":"eNVe","./mountPoints/WPTB_MediaSelectControl":"Uwhc","./functions/WPTB_ControlsManager":"WZJa","./mountPoints/WPTB_ResponsiveTable":"Ub7O","./mountPoints/WPTB_SidesControl":"Qbmt"}]},{},["Zn1h"], null)
|
|
|
|
|
|
inc/admin/js/WPTB_Import_Menu.js
CHANGED
@@ -3,50 +3,44 @@ var global = arguments[3];
|
|
3 |
var e=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=Object.freeze({});function n(e){return null==e}function r(e){return null!=e}function i(e){return!0===e}function o(e){return!1===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}var c=Object.prototype.toString;function u(e){return c.call(e).slice(8,-1)}function l(e){return"[object Object]"===c.call(e)}function f(e){return"[object RegExp]"===c.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return r(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var y=m("slot,component",!0),g=m("key,ref,slot,slot-scope,is");function _(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function $(e,t){return b.call(e,t)}function w(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var x=/-(\w)/g,C=w(function(e){return e.replace(x,function(e,t){return t?t.toUpperCase():""})}),A=w(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),k=/\B([A-Z])/g,O=w(function(e){return e.replace(k,"-$1").toLowerCase()});function S(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function T(e,t){return e.bind(t)}var N=Function.prototype.bind?T:S;function j(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function E(e,t){for(var n in t)e[n]=t[n];return e}function M(e){for(var t={},n=0;n<e.length;n++)e[n]&&E(t,e[n]);return t}function D(e,t,n){}var L=function(e,t,n){return!1},I=function(e){return e};function F(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}function P(e,t){if(e===t)return!0;var n=s(e),r=s(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every(function(e,n){return P(e,t[n])});if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),c=Object.keys(t);return a.length===c.length&&a.every(function(n){return P(e[n],t[n])})}catch(u){return!1}}function R(e,t){for(var n=0;n<e.length;n++)if(P(e[n],t))return n;return-1}function H(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var B="data-server-rendered",U=["component","directive","filter"],z=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],V={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:L,isReservedAttr:L,isUnknownElement:L,getTagNamespace:D,parsePlatformTagName:I,mustUseProp:L,async:!0,_lifecycleHooks:z},J=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function K(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function q(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var W=new RegExp("[^"+J.source+".$_\\d]");function Z(e){if(!W.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var G,X="__proto__"in{},Y="undefined"!=typeof window,Q="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,ee=Q&&WXEnvironment.platform.toLowerCase(),te=Y&&window.navigator.userAgent.toLowerCase(),ne=te&&/msie|trident/.test(te),re=te&&te.indexOf("msie 9.0")>0,ie=te&&te.indexOf("edge/")>0,oe=te&&te.indexOf("android")>0||"android"===ee,ae=te&&/iphone|ipad|ipod|ios/.test(te)||"ios"===ee,se=te&&/chrome\/\d+/.test(te)&&!ie,ce=te&&/phantomjs/.test(te),ue=te&&te.match(/firefox\/(\d+)/),le={}.watch,fe=!1;if(Y)try{var pe={};Object.defineProperty(pe,"passive",{get:function(){fe=!0}}),window.addEventListener("test-passive",null,pe)}catch(Xl){}var de=function(){return void 0===G&&(G=!Y&&!Q&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),G},ve=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function he(e){return"function"==typeof e&&/native code/.test(e.toString())}var me,ye="undefined"!=typeof Symbol&&he(Symbol)&&"undefined"!=typeof Reflect&&he(Reflect.ownKeys);me="undefined"!=typeof Set&&he(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ge,_e,be,$e,we=D,xe=D,Ce=D,Ae=D,ke=0,Oe=function(){this.id=ke++,this.subs=[]};Oe.prototype.addSub=function(e){this.subs.push(e)},Oe.prototype.removeSub=function(e){_(this.subs,e)},Oe.prototype.depend=function(){Oe.target&&Oe.target.addDep(this)},Oe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},Oe.target=null;var Se=[];function Te(e){Se.push(e),Oe.target=e}function Ne(){Se.pop(),Oe.target=Se[Se.length-1]}var je=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Ee={child:{configurable:!0}};Ee.child.get=function(){return this.componentInstance},Object.defineProperties(je.prototype,Ee);var Me=function(e){void 0===e&&(e="");var t=new je;return t.text=e,t.isComment=!0,t};function De(e){return new je(void 0,void 0,void 0,String(e))}function Le(e){var t=new je(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Ie=Array.prototype,Fe=Object.create(Ie),Pe=["push","pop","shift","unshift","splice","sort","reverse"];Pe.forEach(function(e){var t=Ie[e];q(Fe,e,function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o})});var Re=Object.getOwnPropertyNames(Fe),He=!0;function Be(e){He=e}var Ue=function(e){this.value=e,this.dep=new Oe,this.vmCount=0,q(e,"__ob__",this),Array.isArray(e)?(X?ze(e,Fe):Ve(e,Fe,Re),this.observeArray(e)):this.walk(e)};function ze(e,t){e.__proto__=t}function Ve(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];q(e,o,t[o])}}function Je(e,t){var n;if(s(e)&&!(e instanceof je))return $(e,"__ob__")&&e.__ob__ instanceof Ue?n=e.__ob__:He&&!de()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Ue(e)),t&&n&&n.vmCount++,n}function Ke(e,t,n,r,i){var o=new Oe,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var u=!i&&Je(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return Oe.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(t)&&Ze(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!=t&&r!=r||s&&!c||(c?c.call(e,t):n=t,u=!i&&Je(t),o.notify())}})}}function qe(e,t,n){if(Array.isArray(e)&&p(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Ke(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function We(e,t){if(Array.isArray(e)&&p(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||$(e,t)&&(delete e[t],n&&n.dep.notify())}}function Ze(e){for(var t=void 0,n=0,r=e.length;n<r;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Ze(t)}Ue.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Ke(e,t[n])},Ue.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Je(e[t])};var Ge=V.optionMergeStrategies;function Xe(e,t){if(!t)return e;for(var n,r,i,o=ye?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=e[n],i=t[n],$(e,n)?r!==i&&l(r)&&l(i)&&Xe(r,i):qe(e,n,i));return e}function Ye(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?Xe(r,i):i}:t?e?function(){return Xe("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Qe(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?et(n):n}function et(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function tt(e,t,n,r){var i=Object.create(e||null);return t?E(i,t):i}Ge.data=function(e,t,n){return n?Ye(e,t,n):t&&"function"!=typeof t?e:Ye(e,t)},z.forEach(function(e){Ge[e]=Qe}),U.forEach(function(e){Ge[e+"s"]=tt}),Ge.watch=function(e,t,n,r){if(e===le&&(e=void 0),t===le&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in E(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Ge.props=Ge.methods=Ge.inject=Ge.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return E(i,e),t&&E(i,t),i},Ge.provide=Ye;var nt=function(e,t){return void 0===t?e:t};function rt(e){for(var t in e.components)it(t)}function it(e){new RegExp("^[a-zA-Z][\\-\\.0-9_"+J.source+"]*$").test(e)||we('Invalid component name: "'+e+'". Component names should conform to valid custom element name in html5 specification.'),(y(e)||V.isReservedTag(e))&&we("Do not use built-in or reserved HTML elements as component id: "+e)}function ot(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[C(i)]={type:null});else if(l(n))for(var a in n)i=n[a],o[C(a)]=l(i)?i:{type:i};else 0;e.props=o}}function at(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(l(n))for(var o in n){var a=n[o];r[o]=l(a)?E({from:o},a):{from:a}}else 0}}function st(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}function ct(e,t,n){l(t)||we('Invalid value for option "'+e+'": expected an Object, but got '+u(t)+".",n)}function ut(e,t,n){if("function"==typeof t&&(t=t.options),ot(t,n),at(t,n),st(t),!t._base&&(t.extends&&(e=ut(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=ut(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)$(e,o)||s(o);function s(r){var i=Ge[r]||nt;a[r]=i(e[r],t[r],n,r)}return a}function lt(e,t,n,r){if("string"==typeof n){var i=e[t];if($(i,n))return i[n];var o=C(n);if($(i,o))return i[o];var a=A(o);if($(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function ft(e,t,n,r){var i=t[e],o=!$(n,e),a=n[e],s=gt(Boolean,i.type);if(s>-1)if(o&&!$(i,"default"))a=!1;else if(""===a||a===O(e)){var c=gt(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=pt(r,i,e);var u=He;Be(!0),Je(a),Be(u)}return a}function pt(e,t,n){if($(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"==typeof r&&"Function"!==mt(t.type)?r.call(e):r}}function dt(e,t,n,r,i){if(e.required&&i)we('Missing required prop: "'+t+'"',r);else if(null!=n||e.required){var o=e.type,a=!o||!0===o,s=[];if(o){Array.isArray(o)||(o=[o]);for(var c=0;c<o.length&&!a;c++){var u=ht(n,o[c]);s.push(u.expectedType||""),a=u.valid}}if(a){var l=e.validator;l&&(l(n)||we('Invalid prop: custom validator check failed for prop "'+t+'".',r))}else we(_t(t,n,s),r)}}var vt=/^(String|Number|Boolean|Function|Symbol)$/;function ht(e,t){var n,r=mt(t);if(vt.test(r)){var i=typeof e;(n=i===r.toLowerCase())||"object"!==i||(n=e instanceof t)}else n="Object"===r?l(e):"Array"===r?Array.isArray(e):e instanceof t;return{valid:n,expectedType:r}}function mt(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function yt(e,t){return mt(e)===mt(t)}function gt(e,t){if(!Array.isArray(t))return yt(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(yt(t[n],e))return n;return-1}function _t(e,t,n){var r='Invalid prop: type check failed for prop "'+e+'". Expected '+n.map(A).join(", "),i=n[0],o=u(t),a=bt(t,i),s=bt(t,o);return 1===n.length&&$t(i)&&!wt(i,o)&&(r+=" with value "+a),r+=", got "+o+" ",$t(o)&&(r+="with value "+s+"."),r}function bt(e,t){return"String"===t?'"'+e+'"':"Number"===t?""+Number(e):""+e}function $t(e){return["string","number","boolean"].some(function(t){return e.toLowerCase()===t})}function wt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.some(function(e){return"boolean"===e.toLowerCase()})}function xt(e,t,n){Te();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(Xl){At(Xl,r,"errorCaptured hook")}}At(e,t,n)}finally{Ne()}}function Ct(e,t,n,r,i){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&d(o)&&!o._handled&&(o.catch(function(e){return xt(e,r,i+" (Promise/async)")}),o._handled=!0)}catch(Xl){xt(Xl,r,i)}return o}function At(e,t,n){if(V.errorHandler)try{return V.errorHandler.call(null,e,t,n)}catch(Xl){Xl!==e&&kt(Xl,null,"config.errorHandler")}kt(e,t,n)}function kt(e,t,n){if(!Y&&!Q||"undefined"==typeof console)throw e;console.error(e)}var Ot,St,Tt,Nt,jt,Et,Mt,Dt,Lt,It,Ft,Pt,Rt=!1,Ht=[],Bt=!1;function Ut(){Bt=!1;var e=Ht.slice(0);Ht.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&he(Promise)){var zt=Promise.resolve();Ot=function(){zt.then(Ut),ae&&setTimeout(D)},Rt=!0}else if(ne||"undefined"==typeof MutationObserver||!he(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ot="undefined"!=typeof setImmediate&&he(setImmediate)?function(){setImmediate(Ut)}:function(){setTimeout(Ut,0)};else{var Vt=1,Jt=new MutationObserver(Ut),Kt=document.createTextNode(String(Vt));Jt.observe(Kt,{characterData:!0}),Ot=function(){Vt=(Vt+1)%2,Kt.data=String(Vt)},Rt=!0}function qt(e,t){var n;if(Ht.push(function(){if(e)try{e.call(t)}catch(Xl){xt(Xl,t,"nextTick")}else n&&n(t)}),Bt||(Bt=!0,Ot()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var Wt=new me;function Zt(e){Gt(e,Wt),Wt.clear()}function Gt(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!s(e)||Object.isFrozen(e)||e instanceof je)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i)for(n=e.length;n--;)Gt(e[n],t);else for(n=(r=Object.keys(e)).length;n--;)Gt(e[r[n]],t)}}var Xt=w(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}});function Yt(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return Ct(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)Ct(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function Qt(e,t,r,o,a,s){var c,u,l,f;for(c in e)u=e[c],l=t[c],f=Xt(c),n(u)||(n(l)?(n(u.fns)&&(u=e[c]=Yt(u,s)),i(f.once)&&(u=e[c]=a(f.name,u,f.capture)),r(f.name,u,f.capture,f.passive,f.params)):u!==l&&(l.fns=u,e[c]=l));for(c in t)n(e[c])&&o((f=Xt(c)).name,t[c],f.capture)}function en(e,t,o){var a;e instanceof je&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function c(){o.apply(this,arguments),_(a.fns,c)}n(s)?a=Yt([c]):r(s.fns)&&i(s.merged)?(a=s).fns.push(c):a=Yt([s,c]),a.merged=!0,e[t]=a}function tn(e,t,i){var o=t.options.props;if(!n(o)){var a={},s=e.attrs,c=e.props;if(r(s)||r(c))for(var u in o){var l=O(u);nn(a,c,u,l,!0)||nn(a,s,u,l,!1)}return a}}function nn(e,t,n,i,o){if(r(t)){if($(t,n))return e[n]=t[n],o||delete t[n],!0;if($(t,i))return e[n]=t[i],o||delete t[i],!0}return!1}function rn(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function on(e){return a(e)?[De(e)]:Array.isArray(e)?sn(e):void 0}function an(e){return r(e)&&r(e.text)&&o(e.isComment)}function sn(e,t){var o,s,c,u,l=[];for(o=0;o<e.length;o++)n(s=e[o])||"boolean"==typeof s||(u=l[c=l.length-1],Array.isArray(s)?s.length>0&&(an((s=sn(s,(t||"")+"_"+o))[0])&&an(u)&&(l[c]=De(u.text+s[0].text),s.shift()),l.push.apply(l,s)):a(s)?an(u)?l[c]=De(u.text+s):""!==s&&l.push(De(s)):an(s)&&an(u)?l[c]=De(u.text+s.text):(i(e._isVList)&&r(s.tag)&&n(s.key)&&r(t)&&(s.key="__vlist"+t+"_"+o+"__"),l.push(s)));return l}function cn(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}function un(e){var t=ln(e.$options.inject,e);t&&(Be(!1),Object.keys(t).forEach(function(n){Ke(e,n,t[n])}),Be(!0))}function ln(e,t){if(e){for(var n=Object.create(null),r=ye?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=e[o].from,s=t;s;){if(s._provided&&$(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[o]){var c=e[o].default;n[o]="function"==typeof c?c.call(t):c}else 0}}return n}}function fn(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(pn)&&delete n[u];return n}function pn(e){return e.isComment&&!e.asyncFactory||" "===e.text}function dn(e,n,r){var i,o=Object.keys(n).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==t&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=vn(n,c,e[c]))}else i={};for(var u in n)u in i||(i[u]=hn(n,u));return e&&Object.isExtensible(e)&&(e._normalized=i),q(i,"$stable",a),q(i,"$key",s),q(i,"$hasNormal",o),i}function vn(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:on(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function hn(e,t){return function(){return e[t]}}function mn(e,t){var n,i,o,a,c;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),i=0,o=e.length;i<o;i++)n[i]=t(e[i],i);else if("number"==typeof e)for(n=new Array(e),i=0;i<e;i++)n[i]=t(i+1,i);else if(s(e))if(ye&&e[Symbol.iterator]){n=[];for(var u=e[Symbol.iterator](),l=u.next();!l.done;)n.push(t(l.value,n.length)),l=u.next()}else for(a=Object.keys(e),n=new Array(a.length),i=0,o=a.length;i<o;i++)c=a[i],n[i]=t(e[c],c,i);return r(n)||(n=[]),n._isVList=!0,n}function yn(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=E(E({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function gn(e){return lt(this.$options,"filters",e,!0)||I}function _n(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function bn(e,t,n,r,i){var o=V.keyCodes[t]||n;return i&&r&&!V.keyCodes[t]?_n(i,r):o?_n(o,e):r?O(r)!==t:void 0}function $n(e,t,n,r,i){if(n)if(s(n)){var o;Array.isArray(n)&&(n=M(n));var a=function(a){if("class"===a||"style"===a||g(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||V.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=C(a),u=O(a);c in o||u in o||(o[a]=n[a],i&&((e.on||(e.on={}))["update:"+a]=function(e){n[a]=e}))};for(var c in n)a(c)}else;return e}function wn(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t?r:(Cn(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r)}function xn(e,t,n){return Cn(e,"__once__"+t+(n?"_"+n:""),!0),e}function Cn(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&An(e[r],t+"_"+r,n);else An(e,t,n)}function An(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function kn(e,t){if(t)if(l(t)){var n=e.on=e.on?E({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function On(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?On(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Sn(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Tn(e,t){return"string"==typeof e?t+e:e}function Nn(e){e._o=xn,e._n=h,e._s=v,e._l=mn,e._t=yn,e._q=P,e._i=R,e._m=wn,e._f=gn,e._k=bn,e._b=$n,e._v=De,e._e=Me,e._u=On,e._g=kn,e._d=Sn,e._p=Tn}function jn(e,n,r,o,a){var s,c=this,u=a.options;$(o,"_uid")?(s=Object.create(o))._original=o:(s=o,o=o._original);var l=i(u._compiled),f=!l;this.data=e,this.props=n,this.children=r,this.parent=o,this.listeners=e.on||t,this.injections=ln(u.inject,o),this.slots=function(){return c.$slots||dn(e.scopedSlots,c.$slots=fn(r,o)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return dn(e.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=dn(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var i=Vn(s,e,t,n,r,f);return i&&!Array.isArray(i)&&(i.fnScopeId=u._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return Vn(s,e,t,n,r,f)}}function En(e,n,i,o,a){var s=e.options,c={},u=s.props;if(r(u))for(var l in u)c[l]=ft(l,u,n||t);else r(i.attrs)&&Dn(c,i.attrs),r(i.props)&&Dn(c,i.props);var f=new jn(i,c,a,o,e),p=s.render.call(null,f._c,f);if(p instanceof je)return Mn(p,i,f.parent,s,f);if(Array.isArray(p)){for(var d=on(p)||[],v=new Array(d.length),h=0;h<d.length;h++)v[h]=Mn(d[h],i,f.parent,s,f);return v}}function Mn(e,t,n,r,i){var o=Le(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function Dn(e,t){for(var n in t)e[C(n)]=t[n]}Nn(jn.prototype);var Ln={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Ln.prepatch(n,n)}else{(e.componentInstance=Pn(e,ur)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;hr(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,_r(n,"mounted")),e.data.keepAlive&&(t._isMounted?Dr(n):yr(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?gr(t,!0):t.$destroy())}},In=Object.keys(Ln);function Fn(e,t,o,a,c){if(!n(e)){var u=o.$options._base;if(s(e)&&(e=u.extend(e)),"function"==typeof e){var l;if(n(e.cid)&&void 0===(e=er(l=e,u)))return Qn(l,t,o,a,c);t=t||{},ri(e),r(t.model)&&Bn(e.options,t);var f=tn(t,e,c);if(i(e.options.functional))return En(e,f,t,o,a);var p=t.on;if(t.on=t.nativeOn,i(e.options.abstract)){var d=t.slot;t={},d&&(t.slot=d)}Rn(t);var v=e.options.name||c;return new je("vue-component-"+e.cid+(v?"-"+v:""),t,void 0,void 0,void 0,o,{Ctor:e,propsData:f,listeners:p,tag:c,children:a},l)}}}function Pn(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;return r(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new e.componentOptions.Ctor(n)}function Rn(e){for(var t=e.hook||(e.hook={}),n=0;n<In.length;n++){var r=In[n],i=t[r],o=Ln[r];i===o||i&&i._merged||(t[r]=i?Hn(o,i):o)}}function Hn(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Bn(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),a=o[i],s=t.model.callback;r(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[i]=[s].concat(a)):o[i]=s}var Un=1,zn=2;function Vn(e,t,n,r,o,s){return(Array.isArray(n)||a(n))&&(o=r,r=n,n=void 0),i(s)&&(o=zn),Jn(e,t,n,r,o)}function Jn(e,t,n,i,o){if(r(n)&&r(n.__ob__))return Me();if(r(n)&&r(n.is)&&(t=n.is),!t)return Me();var a,s,c;(Array.isArray(i)&&"function"==typeof i[0]&&((n=n||{}).scopedSlots={default:i[0]},i.length=0),o===zn?i=on(i):o===Un&&(i=rn(i)),"string"==typeof t)?(s=e.$vnode&&e.$vnode.ns||V.getTagNamespace(t),a=V.isReservedTag(t)?new je(V.parsePlatformTagName(t),n,i,void 0,void 0,e):n&&n.pre||!r(c=lt(e.$options,"components",t))?new je(t,n,i,void 0,void 0,e):Fn(c,n,e,i,t)):a=Fn(t,n,e,i);return Array.isArray(a)?a:r(a)?(r(s)&&Kn(a,s),r(n)&&qn(n),a):Me()}function Kn(e,t,o){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,o=!0),r(e.children))for(var a=0,s=e.children.length;a<s;a++){var c=e.children[a];r(c.tag)&&(n(c.ns)||i(o)&&"svg"!==c.tag)&&Kn(c,t,o)}}function qn(e){s(e.style)&&Zt(e.style),s(e.class)&&Zt(e.class)}function Wn(e){e._vnode=null,e._staticTrees=null;var n=e.$options,r=e.$vnode=n._parentVnode,i=r&&r.context;e.$slots=fn(n._renderChildren,i),e.$scopedSlots=t,e._c=function(t,n,r,i){return Vn(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Vn(e,t,n,r,i,!0)};var o=r&&r.data;Ke(e,"$attrs",o&&o.attrs||t,null,!0),Ke(e,"$listeners",n._parentListeners||t,null,!0)}var Zn,Gn=null;function Xn(e){Nn(e.prototype),e.prototype.$nextTick=function(e){return qt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=dn(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Gn=t,e=r.call(t._renderProxy,t.$createElement)}catch(Xl){xt(Xl,t,"render"),e=t._vnode}finally{Gn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof je||(e=Me()),e.parent=i,e}}function Yn(e,t){return(e.__esModule||ye&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function Qn(e,t,n,r,i){var o=Me();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function er(e,t){if(i(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;var o=Gn;if(o&&r(e.owners)&&-1===e.owners.indexOf(o)&&e.owners.push(o),i(e.loading)&&r(e.loadingComp))return e.loadingComp;if(o&&!r(e.owners)){var a=e.owners=[o],c=!0,u=null,l=null;o.$on("hook:destroyed",function(){return _(a,o)});var f=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==l&&(clearTimeout(l),l=null))},p=H(function(n){e.resolved=Yn(n,t),c?a.length=0:f(!0)}),v=H(function(t){r(e.errorComp)&&(e.error=!0,f(!0))}),h=e(p,v);return s(h)&&(d(h)?n(e.resolved)&&h.then(p,v):d(h.component)&&(h.component.then(p,v),r(h.error)&&(e.errorComp=Yn(h.error,t)),r(h.loading)&&(e.loadingComp=Yn(h.loading,t),0===h.delay?e.loading=!0:u=setTimeout(function(){u=null,n(e.resolved)&&n(e.error)&&(e.loading=!0,f(!1))},h.delay||200)),r(h.timeout)&&(l=setTimeout(function(){l=null,n(e.resolved)&&v(null)},h.timeout)))),c=!1,e.loading?e.loadingComp:e.resolved}}function tr(e){return e.isComment&&e.asyncFactory}function nr(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&(r(n.componentOptions)||tr(n)))return n}}function rr(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&sr(e,t)}function ir(e,t){Zn.$on(e,t)}function or(e,t){Zn.$off(e,t)}function ar(e,t){var n=Zn;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function sr(e,t,n){Zn=e,Qt(t,n||{},ir,or,ar,e),Zn=void 0}function cr(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;for(var s=a.length;s--;)if((o=a[s])===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?j(n):n;for(var r=j(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;o<a;o++)Ct(n[o],t,r,t,i)}return t}}var ur=null,lr=!1;function fr(e){var t=ur;return ur=e,function(){ur=t}}function pr(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function dr(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=fr(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){_r(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||_(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),_r(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function vr(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=Me),_r(e,"beforeMount"),r=function(){e._update(e._render(),n)},new Pr(e,r,D,{before:function(){e._isMounted&&!e._isDestroyed&&_r(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,_r(e,"mounted")),e}function hr(e,n,r,i,o){var a=i.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==t&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),u=!!(o||e.$options._renderChildren||c);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o,e.$attrs=i.data.attrs||t,e.$listeners=r||t,n&&e.$options.props){Be(!1);for(var l=e._props,f=e.$options._propKeys||[],p=0;p<f.length;p++){var d=f[p],v=e.$options.props;l[d]=ft(d,v,n,e)}Be(!0),e.$options.propsData=n}r=r||t;var h=e.$options._parentListeners;e.$options._parentListeners=r,sr(e,r,h),u&&(e.$slots=fn(o,i.context),e.$forceUpdate())}function mr(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function yr(e,t){if(t){if(e._directInactive=!1,mr(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)yr(e.$children[n]);_r(e,"activated")}}function gr(e,t){if(!(t&&(e._directInactive=!0,mr(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)gr(e.$children[n]);_r(e,"deactivated")}}function _r(e,t){Te();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Ct(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),Ne()}var br=100,$r=[],wr=[],xr={},Cr={},Ar=!1,kr=!1,Or=0;function Sr(){Or=$r.length=wr.length=0,xr={},Ar=kr=!1}var Tr=0,Nr=Date.now;if(Y&&!ne){var jr=window.performance;jr&&"function"==typeof jr.now&&Nr()>document.createEvent("Event").timeStamp&&(Nr=function(){return jr.now()})}function Er(){var e,t;for(Tr=Nr(),kr=!0,$r.sort(function(e,t){return e.id-t.id}),Or=0;Or<$r.length;Or++)(e=$r[Or]).before&&e.before(),t=e.id,xr[t]=null,e.run();var n=wr.slice(),r=$r.slice();Sr(),Lr(n),Mr(r),ve&&V.devtools&&ve.emit("flush")}function Mr(e){for(var t=e.length;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&_r(r,"updated")}}function Dr(e){e._inactive=!1,wr.push(e)}function Lr(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,yr(e[t],!0)}function Ir(e){var t=e.id;if(null==xr[t]){if(xr[t]=!0,kr){for(var n=$r.length-1;n>Or&&$r[n].id>e.id;)n--;$r.splice(n+1,0,e)}else $r.push(e);Ar||(Ar=!0,qt(Er))}}var Fr=0,Pr=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Fr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new me,this.newDepIds=new me,this.expression="","function"==typeof t?this.getter=t:(this.getter=Z(t),this.getter||(this.getter=D)),this.value=this.lazy?void 0:this.get()};Pr.prototype.get=function(){var e;Te(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Xl){if(!this.user)throw Xl;xt(Xl,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Zt(e),Ne(),this.cleanupDeps()}return e},Pr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Pr.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Pr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Ir(this)},Pr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Xl){xt(Xl,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Pr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Pr.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Pr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||_(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Rr={enumerable:!0,configurable:!0,get:D,set:D};function Hr(e,t,n){Rr.get=function(){return this[t][n]},Rr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Rr)}function Br(e){e._watchers=[];var t=e.$options;t.props&&Ur(e,t.props),t.methods&&Gr(e,t.methods),t.data?zr(e):Je(e._data={},!0),t.computed&&Kr(e,t.computed),t.watch&&t.watch!==le&&Xr(e,t.watch)}function Ur(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||Be(!1);var a=function(o){i.push(o);var a=ft(o,t,n,e);Ke(r,o,a),o in e||Hr(e,"_props",o)};for(var s in t)a(s);Be(!0)}function zr(e){var t=e.$options.data;l(t=e._data="function"==typeof t?Vr(t,e):t||{})||(t={});for(var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);i--;){var o=n[i];0,r&&$(r,o)||K(o)||Hr(e,"_data",o)}Je(t,!0)}function Vr(e,t){Te();try{return e.call(t,t)}catch(Xl){return xt(Xl,t,"data()"),{}}finally{Ne()}}var Jr={lazy:!0};function Kr(e,t){var n=e._computedWatchers=Object.create(null),r=de();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new Pr(e,a||D,D,Jr)),i in e||qr(e,i,o)}}function qr(e,t,n){var r=!de();"function"==typeof n?(Rr.get=r?Wr(t):Zr(n),Rr.set=D):(Rr.get=n.get?r&&!1!==n.cache?Wr(t):Zr(n.get):D,Rr.set=n.set||D),Object.defineProperty(e,t,Rr)}function Wr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Oe.target&&t.depend(),t.value}}function Zr(e){return function(){return e.call(this,this)}}function Gr(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?D:N(t[n],e)}function Xr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Yr(e,n,r[i]);else Yr(e,n,r)}}function Yr(e,t,n,r){return l(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function Qr(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=qe,e.prototype.$delete=We,e.prototype.$watch=function(e,t,n){if(l(t))return Yr(this,e,t,n);(n=n||{}).user=!0;var r=new Pr(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(i){xt(i,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}var ei=0;function ti(e){e.prototype._init=function(e){var t=this;t._uid=ei++,t._isVue=!0,e&&e._isComponent?ni(t,e):t.$options=ut(ri(t.constructor),e||{},t),t._renderProxy=t,t._self=t,pr(t),rr(t),Wn(t),_r(t,"beforeCreate"),un(t),Br(t),cn(t),_r(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function ni(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function ri(e){var t=e.options;if(e.super){var n=ri(e.super);if(n!==e.superOptions){e.superOptions=n;var r=ii(e);r&&E(e.extendOptions,r),(t=e.options=ut(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function ii(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function oi(e){this._init(e)}function ai(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=j(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}function si(e){e.mixin=function(e){return this.options=ut(this.options,e),this}}function ci(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=ut(n.options,e),a.super=n,a.options.props&&ui(a),a.options.computed&&li(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,U.forEach(function(e){a[e]=n[e]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=E({},a.options),i[r]=a,a}}function ui(e){var t=e.options.props;for(var n in t)Hr(e.prototype,"_props",n)}function li(e){var t=e.options.computed;for(var n in t)qr(e.prototype,n,t[n])}function fi(e){U.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function pi(e){return e&&(e.Ctor.options.name||e.tag)}function di(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function vi(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=pi(a.componentOptions);s&&!t(s)&&hi(n,o,r,i)}}}function hi(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,_(n,t)}ti(oi),Qr(oi),cr(oi),dr(oi),Xn(oi);var mi=[String,RegExp,Array],yi={name:"keep-alive",abstract:!0,props:{include:mi,exclude:mi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)hi(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",function(t){vi(e,function(e){return di(t,e)})}),this.$watch("exclude",function(t){vi(e,function(e){return!di(t,e)})})},render:function(){var e=this.$slots.default,t=nr(e),n=t&&t.componentOptions;if(n){var r=pi(n),i=this.include,o=this.exclude;if(i&&(!r||!di(i,r))||o&&r&&di(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,_(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&hi(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},gi={KeepAlive:yi};function _i(e){var t={get:function(){return V}};Object.defineProperty(e,"config",t),e.util={warn:we,extend:E,mergeOptions:ut,defineReactive:Ke},e.set=qe,e.delete=We,e.nextTick=qt,e.observable=function(e){return Je(e),e},e.options=Object.create(null),U.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,E(e.options.components,gi),ai(e),si(e),ci(e),fi(e)}_i(oi),Object.defineProperty(oi.prototype,"$isServer",{get:de}),Object.defineProperty(oi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(oi,"FunctionalRenderContext",{value:jn}),oi.version="2.6.11";var bi=m("style,class"),$i=m("input,textarea,option,select,progress"),wi=function(e,t,n){return"value"===n&&$i(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},xi=m("contenteditable,draggable,spellcheck"),Ci=m("events,caret,typing,plaintext-only"),Ai=function(e,t){return Ni(t)||"false"===t?"false":"contenteditable"===e&&Ci(t)?t:"true"},ki=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Oi="http://www.w3.org/1999/xlink",Si=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ti=function(e){return Si(e)?e.slice(6,e.length):""},Ni=function(e){return null==e||!1===e};function ji(e){for(var t=e.data,n=e,i=e;r(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=Ei(i.data,t));for(;r(n=n.parent);)n&&n.data&&(t=Ei(t,n.data));return Mi(t.staticClass,t.class)}function Ei(e,t){return{staticClass:Di(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Mi(e,t){return r(e)||r(t)?Di(e,Li(t)):""}function Di(e,t){return e?t?e+" "+t:e:t||""}function Li(e){return Array.isArray(e)?Ii(e):s(e)?Fi(e):"string"==typeof e?e:""}function Ii(e){for(var t,n="",i=0,o=e.length;i<o;i++)r(t=Li(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function Fi(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var Pi={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Ri=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Hi=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Bi=function(e){return"pre"===e},Ui=function(e){return Ri(e)||Hi(e)};function zi(e){return Hi(e)?"svg":"math"===e?"math":void 0}var Vi=Object.create(null);function Ji(e){if(!Y)return!0;if(Ui(e))return!1;if(e=e.toLowerCase(),null!=Vi[e])return Vi[e];var t=document.createElement(e);return e.indexOf("-")>-1?Vi[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Vi[e]=/HTMLUnknownElement/.test(t.toString())}var Ki=m("text,number,password,search,email,tel,url");function qi(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function Wi(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Zi(e,t){return document.createElementNS(Pi[e],t)}function Gi(e){return document.createTextNode(e)}function Xi(e){return document.createComment(e)}function Yi(e,t,n){e.insertBefore(t,n)}function Qi(e,t){e.removeChild(t)}function eo(e,t){e.appendChild(t)}function to(e){return e.parentNode}function no(e){return e.nextSibling}function ro(e){return e.tagName}function io(e,t){e.textContent=t}function oo(e,t){e.setAttribute(t,"")}var ao=Object.freeze({createElement:Wi,createElementNS:Zi,createTextNode:Gi,createComment:Xi,insertBefore:Yi,removeChild:Qi,appendChild:eo,parentNode:to,nextSibling:no,tagName:ro,setTextContent:io,setStyleScope:oo}),so={create:function(e,t){co(t)},update:function(e,t){e.data.ref!==t.data.ref&&(co(e,!0),co(t))},destroy:function(e){co(e,!0)}};function co(e,t){var n=e.data.ref;if(r(n)){var i=e.context,o=e.componentInstance||e.elm,a=i.$refs;t?Array.isArray(a[n])?_(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var uo=new je("",{},[]),lo=["create","activate","update","remove","destroy"];function fo(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&po(e,t)||i(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&n(t.asyncFactory.error))}function po(e,t){if("input"!==e.tag)return!0;var n,i=r(n=e.data)&&r(n=n.attrs)&&n.type,o=r(n=t.data)&&r(n=n.attrs)&&n.type;return i===o||Ki(i)&&Ki(o)}function vo(e,t,n){var i,o,a={};for(i=t;i<=n;++i)r(o=e[i].key)&&(a[o]=i);return a}function ho(e){var t,o,s={},c=e.modules,u=e.nodeOps;for(t=0;t<lo.length;++t)for(s[lo[t]]=[],o=0;o<c.length;++o)r(c[o][lo[t]])&&s[lo[t]].push(c[o][lo[t]]);function l(e){var t=u.parentNode(e);r(t)&&u.removeChild(t,e)}function f(e,t,n,o,a,c,l){if(r(e.elm)&&r(c)&&(e=c[l]=Le(e)),e.isRootInsert=!a,!function(e,t,n,o){var a=e.data;if(r(a)){var c=r(e.componentInstance)&&a.keepAlive;if(r(a=a.hook)&&r(a=a.init)&&a(e,!1),r(e.componentInstance))return p(e,t),d(n,e.elm,o),i(c)&&function(e,t,n,i){var o,a=e;for(;a.componentInstance;)if(a=a.componentInstance._vnode,r(o=a.data)&&r(o=o.transition)){for(o=0;o<s.activate.length;++o)s.activate[o](uo,a);t.push(a);break}d(n,e.elm,i)}(e,t,n,o),!0}}(e,t,n,o)){var f=e.data,h=e.children,m=e.tag;r(m)?(e.elm=e.ns?u.createElementNS(e.ns,m):u.createElement(m,e),g(e),v(e,h,t),r(f)&&y(e,t),d(n,e.elm,o)):i(e.isComment)?(e.elm=u.createComment(e.text),d(n,e.elm,o)):(e.elm=u.createTextNode(e.text),d(n,e.elm,o))}}function p(e,t){r(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,h(e)?(y(e,t),g(e)):(co(e),t.push(e))}function d(e,t,n){r(e)&&(r(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function v(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)f(t[r],n,e.elm,null,!0,t,r)}else a(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function h(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return r(e.tag)}function y(e,n){for(var i=0;i<s.create.length;++i)s.create[i](uo,e);r(t=e.data.hook)&&(r(t.create)&&t.create(uo,e),r(t.insert)&&n.push(e))}function g(e){var t;if(r(t=e.fnScopeId))u.setStyleScope(e.elm,t);else for(var n=e;n;)r(t=n.context)&&r(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent;r(t=ur)&&t!==e.context&&t!==e.fnContext&&r(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function _(e,t,n,r,i,o){for(;r<=i;++r)f(n[r],o,e,t,!1,n,r)}function b(e){var t,n,i=e.data;if(r(i))for(r(t=i.hook)&&r(t=t.destroy)&&t(e),t=0;t<s.destroy.length;++t)s.destroy[t](e);if(r(t=e.children))for(n=0;n<e.children.length;++n)b(e.children[n])}function $(e,t,n){for(;t<=n;++t){var i=e[t];r(i)&&(r(i.tag)?(w(i),b(i)):l(i.elm))}}function w(e,t){if(r(t)||r(e.data)){var n,i=s.remove.length+1;for(r(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&l(e)}return n.listeners=t,n}(e.elm,i),r(n=e.componentInstance)&&r(n=n._vnode)&&r(n.data)&&w(n,t),n=0;n<s.remove.length;++n)s.remove[n](e,t);r(n=e.data.hook)&&r(n=n.remove)?n(e,t):t()}else l(e.elm)}function x(e,t,n,i){for(var o=n;o<i;o++){var a=t[o];if(r(a)&&fo(e,a))return o}}function C(e,t,o,a,c,l){if(e!==t){r(t.elm)&&r(a)&&(t=a[c]=Le(t));var p=t.elm=e.elm;if(i(e.isAsyncPlaceholder))r(t.asyncFactory.resolved)?O(e.elm,t,o):t.isAsyncPlaceholder=!0;else if(i(t.isStatic)&&i(e.isStatic)&&t.key===e.key&&(i(t.isCloned)||i(t.isOnce)))t.componentInstance=e.componentInstance;else{var d,v=t.data;r(v)&&r(d=v.hook)&&r(d=d.prepatch)&&d(e,t);var m=e.children,y=t.children;if(r(v)&&h(t)){for(d=0;d<s.update.length;++d)s.update[d](e,t);r(d=v.hook)&&r(d=d.update)&&d(e,t)}n(t.text)?r(m)&&r(y)?m!==y&&function(e,t,i,o,a){var s,c,l,p=0,d=0,v=t.length-1,h=t[0],m=t[v],y=i.length-1,g=i[0],b=i[y],w=!a;for(;p<=v&&d<=y;)n(h)?h=t[++p]:n(m)?m=t[--v]:fo(h,g)?(C(h,g,o,i,d),h=t[++p],g=i[++d]):fo(m,b)?(C(m,b,o,i,y),m=t[--v],b=i[--y]):fo(h,b)?(C(h,b,o,i,y),w&&u.insertBefore(e,h.elm,u.nextSibling(m.elm)),h=t[++p],b=i[--y]):fo(m,g)?(C(m,g,o,i,d),w&&u.insertBefore(e,m.elm,h.elm),m=t[--v],g=i[++d]):(n(s)&&(s=vo(t,p,v)),n(c=r(g.key)?s[g.key]:x(g,t,p,v))?f(g,o,e,h.elm,!1,i,d):fo(l=t[c],g)?(C(l,g,o,i,d),t[c]=void 0,w&&u.insertBefore(e,l.elm,h.elm)):f(g,o,e,h.elm,!1,i,d),g=i[++d]);p>v?_(e,n(i[y+1])?null:i[y+1].elm,i,d,y,o):d>y&&$(t,p,v)}(p,m,y,o,l):r(y)?(r(e.text)&&u.setTextContent(p,""),_(p,null,y,0,y.length-1,o)):r(m)?$(m,0,m.length-1):r(e.text)&&u.setTextContent(p,""):e.text!==t.text&&u.setTextContent(p,t.text),r(v)&&r(d=v.hook)&&r(d=d.postpatch)&&d(e,t)}}}function A(e,t,n){if(i(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var o=0;o<t.length;++o)t[o].data.hook.insert(t[o])}var k=m("attrs,class,staticClass,staticStyle,key");function O(e,t,n,o){var a,s=t.tag,c=t.data,u=t.children;if(o=o||c&&c.pre,t.elm=e,i(t.isComment)&&r(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(r(c)&&(r(a=c.hook)&&r(a=a.init)&&a(t,!0),r(a=t.componentInstance)))return p(t,n),!0;if(r(s)){if(r(u))if(e.hasChildNodes())if(r(a=c)&&r(a=a.domProps)&&r(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var l=!0,f=e.firstChild,d=0;d<u.length;d++){if(!f||!O(f,u[d],n,o)){l=!1;break}f=f.nextSibling}if(!l||f)return!1}else v(t,u,n);if(r(c)){var h=!1;for(var m in c)if(!k(m)){h=!0,y(t,n);break}!h&&c.class&&Zt(c.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,o,a){if(!n(t)){var c,l=!1,p=[];if(n(e))l=!0,f(t,p);else{var d=r(e.nodeType);if(!d&&fo(e,t))C(e,t,p,null,null,a);else{if(d){if(1===e.nodeType&&e.hasAttribute(B)&&(e.removeAttribute(B),o=!0),i(o)&&O(e,t,p))return A(t,p,!0),e;c=e,e=new je(u.tagName(c).toLowerCase(),{},[],void 0,c)}var v=e.elm,m=u.parentNode(v);if(f(t,p,v._leaveCb?null:m,u.nextSibling(v)),r(t.parent))for(var y=t.parent,g=h(t);y;){for(var _=0;_<s.destroy.length;++_)s.destroy[_](y);if(y.elm=t.elm,g){for(var w=0;w<s.create.length;++w)s.create[w](uo,y);var x=y.data.hook.insert;if(x.merged)for(var k=1;k<x.fns.length;k++)x.fns[k]()}else co(y);y=y.parent}r(m)?$([e],0,0):r(e.tag)&&b(e)}}return A(t,p,l),t.elm}r(e)&&b(e)}}var mo={create:yo,update:yo,destroy:function(e){yo(e,uo)}};function yo(e,t){(e.data.directives||t.data.directives)&&go(e,t)}function go(e,t){var n,r,i,o=e===uo,a=t===uo,s=bo(e.data.directives,e.context),c=bo(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,wo(i,"update",t,e),i.def&&i.def.componentUpdated&&l.push(i)):(wo(i,"bind",t,e),i.def&&i.def.inserted&&u.push(i));if(u.length){var f=function(){for(var n=0;n<u.length;n++)wo(u[n],"inserted",t,e)};o?en(t,"insert",f):f()}if(l.length&&en(t,"postpatch",function(){for(var n=0;n<l.length;n++)wo(l[n],"componentUpdated",t,e)}),!o)for(n in s)c[n]||wo(s[n],"unbind",e,e,a)}var _o=Object.create(null);function bo(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=_o),i[$o(r)]=r,r.def=lt(t.$options,"directives",r.name,!0);return i}function $o(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function wo(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(Xl){xt(Xl,n.context,"directive "+e.name+" "+t+" hook")}}var xo=[so,mo];function Co(e,t){var i=t.componentOptions;if(!(r(i)&&!1===i.Ctor.options.inheritAttrs||n(e.data.attrs)&&n(t.data.attrs))){var o,a,s=t.elm,c=e.data.attrs||{},u=t.data.attrs||{};for(o in r(u.__ob__)&&(u=t.data.attrs=E({},u)),u)a=u[o],c[o]!==a&&Ao(s,o,a);for(o in(ne||ie)&&u.value!==c.value&&Ao(s,"value",u.value),c)n(u[o])&&(Si(o)?s.removeAttributeNS(Oi,Ti(o)):xi(o)||s.removeAttribute(o))}}function Ao(e,t,n){e.tagName.indexOf("-")>-1?ko(e,t,n):ki(t)?Ni(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):xi(t)?e.setAttribute(t,Ai(t,n)):Si(t)?Ni(n)?e.removeAttributeNS(Oi,Ti(t)):e.setAttributeNS(Oi,t,n):ko(e,t,n)}function ko(e,t,n){if(Ni(n))e.removeAttribute(t);else{if(ne&&!re&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Oo={create:Co,update:Co};function So(e,t){var i=t.elm,o=t.data,a=e.data;if(!(n(o.staticClass)&&n(o.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=ji(t),c=i._transitionClasses;r(c)&&(s=Di(s,Li(c))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}var To,No,jo,Eo,Mo,Do,Lo,Io={create:So,update:So},Fo=/[\w).+\-_$\]]/;function Po(e){var t,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,p=0,d=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(c)96===t&&92!==n&&(c=!1);else if(u)47===t&&92!==n&&(u=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||l||f||p){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:l++;break;case 125:l--}if(47===t){for(var v=r-1,h=void 0;v>=0&&" "===(h=e.charAt(v));v--);h&&Fo.test(h)||(u=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r<o.length;r++)i=Ro(i,o[r]);return i}function Ro(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function Ho(e,t){console.error("[Vue compiler]: "+e)}function Bo(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Uo(e,t,n,r,i){(e.props||(e.props=[])).push(Yo({name:t,value:n,dynamic:i},r)),e.plain=!1}function zo(e,t,n,r,i){(i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Yo({name:t,value:n,dynamic:i},r)),e.plain=!1}function Vo(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Yo({name:t,value:n},r))}function Jo(e,t,n,r,i,o,a,s){(e.directives||(e.directives=[])).push(Yo({name:t,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),e.plain=!1}function Ko(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function qo(e,n,r,i,o,a,s,c){var u;(i=i||t).right?c?n="("+n+")==='click'?'contextmenu':("+n+")":"click"===n&&(n="contextmenu",delete i.right):i.middle&&(c?n="("+n+")==='click'?'mouseup':("+n+")":"click"===n&&(n="mouseup")),i.capture&&(delete i.capture,n=Ko("!",n,c)),i.once&&(delete i.once,n=Ko("~",n,c)),i.passive&&(delete i.passive,n=Ko("&",n,c)),i.native?(delete i.native,u=e.nativeEvents||(e.nativeEvents={})):u=e.events||(e.events={});var l=Yo({value:r.trim(),dynamic:c},s);i!==t&&(l.modifiers=i);var f=u[n];Array.isArray(f)?o?f.unshift(l):f.push(l):u[n]=f?o?[l,f]:[f,l]:l,e.plain=!1}function Wo(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}function Zo(e,t,n){var r=Go(e,":"+t)||Go(e,"v-bind:"+t);if(null!=r)return Po(r);if(!1!==n){var i=Go(e,t);if(null!=i)return JSON.stringify(i)}}function Go(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===t){i.splice(o,1);break}return n&&delete e.attrsMap[t],r}function Xo(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(t.test(o.name))return n.splice(r,1),o}}function Yo(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Qo(e,t,n){var r=n||{},i=r.number,o="$$v";r.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(o="_n("+o+")");var a=ea(t,o);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+a+"}"}}function ea(e,t){var n=ta(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function ta(e){if(e=e.trim(),To=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<To-1)return(Eo=e.lastIndexOf("."))>-1?{exp:e.slice(0,Eo),key:'"'+e.slice(Eo+1)+'"'}:{exp:e,key:null};for(No=e,Eo=Mo=Do=0;!ra();)ia(jo=na())?aa(jo):91===jo&&oa(jo);return{exp:e.slice(0,Mo),key:e.slice(Mo+1,Do)}}function na(){return No.charCodeAt(++Eo)}function ra(){return Eo>=To}function ia(e){return 34===e||39===e}function oa(e){var t=1;for(Mo=Eo;!ra();)if(ia(e=na()))aa(e);else if(91===e&&t++,93===e&&t--,0===t){Do=Eo;break}}function aa(e){for(var t=e;!ra()&&(e=na())!==t;);}var sa,ca="__r",ua="__c";function la(e,t,n){Lo=n;var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type;if(e.component)return Qo(e,r,i),!1;if("select"===o)da(e,r,i);else if("input"===o&&"checkbox"===a)fa(e,r,i);else if("input"===o&&"radio"===a)pa(e,r,i);else if("input"===o||"textarea"===o)va(e,r,i);else{if(!V.isReservedTag(o))return Qo(e,r,i),!1}return!0}function fa(e,t,n){var r=n&&n.number,i=Zo(e,"value")||"null",o=Zo(e,"true-value")||"true",a=Zo(e,"false-value")||"false";Uo(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),qo(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+ea(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+ea(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+ea(t,"$$c")+"}",null,!0)}function pa(e,t,n){var r=n&&n.number,i=Zo(e,"value")||"null";Uo(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),qo(e,"change",ea(t,i),null,!0)}function da(e,t,n){var r="var $$selectedVal = "+('Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"})")+";";qo(e,"change",r=r+" "+ea(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}function va(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?ca:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=ea(t,l);c&&(f="if($event.target.composing)return;"+f),Uo(e,"value","("+t+")"),qo(e,u,f,null,!0),(s||a)&&qo(e,"blur","$forceUpdate()")}function ha(e){if(r(e[ca])){var t=ne?"change":"input";e[t]=[].concat(e[ca],e[t]||[]),delete e[ca]}r(e[ua])&&(e.change=[].concat(e[ua],e.change||[]),delete e[ua])}function ma(e,t,n){var r=sa;return function i(){null!==t.apply(null,arguments)&&_a(e,i,n,r)}}var ya=Rt&&!(ue&&Number(ue[1])<=53);function ga(e,t,n,r){if(ya){var i=Tr,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}sa.addEventListener(e,t,fe?{capture:n,passive:r}:n)}function _a(e,t,n,r){(r||sa).removeEventListener(e,t._wrapper||t,n)}function ba(e,t){if(!n(e.data.on)||!n(t.data.on)){var r=t.data.on||{},i=e.data.on||{};sa=t.elm,ha(r),Qt(r,i,ga,_a,ma,t.context),sa=void 0}}var $a,wa={create:ba,update:ba};function xa(e,t){if(!n(e.data.domProps)||!n(t.data.domProps)){var i,o,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(i in r(c.__ob__)&&(c=t.data.domProps=E({},c)),s)i in c||(a[i]="");for(i in c){if(o=c[i],"textContent"===i||"innerHTML"===i){if(t.children&&(t.children.length=0),o===s[i])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===i&&"PROGRESS"!==a.tagName){a._value=o;var u=n(o)?"":String(o);Ca(a,u)&&(a.value=u)}else if("innerHTML"===i&&Hi(a.tagName)&&n(a.innerHTML)){($a=$a||document.createElement("div")).innerHTML="<svg>"+o+"</svg>";for(var l=$a.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(o!==s[i])try{a[i]=o}catch(Xl){}}}}function Ca(e,t){return!e.composing&&("OPTION"===e.tagName||Aa(e,t)||ka(e,t))}function Aa(e,t){var n=!0;try{n=document.activeElement!==e}catch(Xl){}return n&&e.value!==t}function ka(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.number)return h(n)!==h(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var Oa={create:xa,update:xa},Sa=w(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function Ta(e){var t=Na(e.style);return e.staticStyle?E(e.staticStyle,t):t}function Na(e){return Array.isArray(e)?M(e):"string"==typeof e?Sa(e):e}function ja(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Ta(i.data))&&E(r,n);(n=Ta(e.data))&&E(r,n);for(var o=e;o=o.parent;)o.data&&(n=Ta(o.data))&&E(r,n);return r}var Ea,Ma=/^--/,Da=/\s*!important$/,La=function(e,t,n){if(Ma.test(t))e.style.setProperty(t,n);else if(Da.test(n))e.style.setProperty(O(t),n.replace(Da,""),"important");else{var r=Fa(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},Ia=["Webkit","Moz","ms"],Fa=w(function(e){if(Ea=Ea||document.createElement("div").style,"filter"!==(e=C(e))&&e in Ea)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Ia.length;n++){var r=Ia[n]+t;if(r in Ea)return r}});function Pa(e,t){var i=t.data,o=e.data;if(!(n(i.staticStyle)&&n(i.style)&&n(o.staticStyle)&&n(o.style))){var a,s,c=t.elm,u=o.staticStyle,l=o.normalizedStyle||o.style||{},f=u||l,p=Na(t.data.style)||{};t.data.normalizedStyle=r(p.__ob__)?E({},p):p;var d=ja(t,!0);for(s in f)n(d[s])&&La(c,s,"");for(s in d)(a=d[s])!==f[s]&&La(c,s,null==a?"":a)}}var Ra={create:Pa,update:Pa},Ha=/\s+/;function Ba(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Ha).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Ua(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Ha).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function za(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&E(t,Va(e.name||"v")),E(t,e),t}return"string"==typeof e?Va(e):void 0}}var Va=w(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),Ja=Y&&!re,Ka="transition",qa="animation",Wa="transition",Za="transitionend",Ga="animation",Xa="animationend";Ja&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Wa="WebkitTransition",Za="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ga="WebkitAnimation",Xa="webkitAnimationEnd"));var Ya=Y?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Qa(e){Ya(function(){Ya(e)})}function es(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Ba(e,t))}function ts(e,t){e._transitionClasses&&_(e._transitionClasses,t),Ua(e,t)}function ns(e,t,n){var r=is(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ka?Za:Xa,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c<a&&u()},o+1),e.addEventListener(s,l)}var rs=/\b(transform|all)(,|$)/;function is(e,t){var n,r=window.getComputedStyle(e),i=(r[Wa+"Delay"]||"").split(", "),o=(r[Wa+"Duration"]||"").split(", "),a=os(i,o),s=(r[Ga+"Delay"]||"").split(", "),c=(r[Ga+"Duration"]||"").split(", "),u=os(s,c),l=0,f=0;return t===Ka?a>0&&(n=Ka,l=a,f=o.length):t===qa?u>0&&(n=qa,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Ka:qa:null)?n===Ka?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Ka&&rs.test(r[Wa+"Property"])}}function os(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(function(t,n){return as(t)+as(e[n])}))}function as(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ss(e,t){var i=e.elm;r(i._leaveCb)&&(i._leaveCb.cancelled=!0,i._leaveCb());var o=za(e.data.transition);if(!n(o)&&!r(i._enterCb)&&1===i.nodeType){for(var a=o.css,c=o.type,u=o.enterClass,l=o.enterToClass,f=o.enterActiveClass,p=o.appearClass,d=o.appearToClass,v=o.appearActiveClass,m=o.beforeEnter,y=o.enter,g=o.afterEnter,_=o.enterCancelled,b=o.beforeAppear,$=o.appear,w=o.afterAppear,x=o.appearCancelled,C=o.duration,A=ur,k=ur.$vnode;k&&k.parent;)A=k.context,k=k.parent;var O=!A._isMounted||!e.isRootInsert;if(!O||$||""===$){var S=O&&p?p:u,T=O&&v?v:f,N=O&&d?d:l,j=O&&b||m,E=O&&"function"==typeof $?$:y,M=O&&w||g,D=O&&x||_,L=h(s(C)?C.enter:C);0;var I=!1!==a&&!re,F=fs(E),P=i._enterCb=H(function(){I&&(ts(i,N),ts(i,T)),P.cancelled?(I&&ts(i,S),D&&D(i)):M&&M(i),i._enterCb=null});e.data.show||en(e,"insert",function(){var t=i.parentNode,n=t&&t._pending&&t._pending[e.key];n&&n.tag===e.tag&&n.elm._leaveCb&&n.elm._leaveCb(),E&&E(i,P)}),j&&j(i),I&&(es(i,S),es(i,T),Qa(function(){ts(i,S),P.cancelled||(es(i,N),F||(ls(L)?setTimeout(P,L):ns(i,c,P)))})),e.data.show&&(t&&t(),E&&E(i,P)),I||F||P()}}}function cs(e,t){var i=e.elm;r(i._enterCb)&&(i._enterCb.cancelled=!0,i._enterCb());var o=za(e.data.transition);if(n(o)||1!==i.nodeType)return t();if(!r(i._leaveCb)){var a=o.css,c=o.type,u=o.leaveClass,l=o.leaveToClass,f=o.leaveActiveClass,p=o.beforeLeave,d=o.leave,v=o.afterLeave,m=o.leaveCancelled,y=o.delayLeave,g=o.duration,_=!1!==a&&!re,b=fs(d),$=h(s(g)?g.leave:g);0;var w=i._leaveCb=H(function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[e.key]=null),_&&(ts(i,l),ts(i,f)),w.cancelled?(_&&ts(i,u),m&&m(i)):(t(),v&&v(i)),i._leaveCb=null});y?y(x):x()}function x(){w.cancelled||(!e.data.show&&i.parentNode&&((i.parentNode._pending||(i.parentNode._pending={}))[e.key]=e),p&&p(i),_&&(es(i,u),es(i,f),Qa(function(){ts(i,u),w.cancelled||(es(i,l),b||(ls($)?setTimeout(w,$):ns(i,c,w)))})),d&&d(i,w),_||b||w())}}function us(e,t,n){"number"!=typeof e?we("<transition> explicit "+t+" duration is not a valid number - got "+JSON.stringify(e)+".",n.context):isNaN(e)&&we("<transition> explicit "+t+" duration is NaN - the duration expression might be incorrect.",n.context)}function ls(e){return"number"==typeof e&&!isNaN(e)}function fs(e){if(n(e))return!1;var t=e.fns;return r(t)?fs(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function ps(e,t){!0!==t.data.show&&ss(t)}var ds=Y?{create:ps,activate:ps,remove:function(e,t){!0!==e.data.show?cs(e,t):t()}}:{},vs=[Oo,Io,wa,Oa,Ra,ds],hs=vs.concat(xo),ms=ho({nodeOps:ao,modules:hs});re&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Cs(e,"input")});var ys={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?en(n,"postpatch",function(){ys.componentUpdated(e,t,n)}):gs(e,t,n.context),e._vOptions=[].map.call(e.options,$s)):("textarea"===n.tag||Ki(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ws),e.addEventListener("compositionend",xs),e.addEventListener("change",xs),re&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){gs(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,$s);if(i.some(function(e,t){return!P(e,r[t])}))(e.multiple?t.value.some(function(e){return bs(e,i)}):t.value!==t.oldValue&&bs(t.value,i))&&Cs(e,"change")}}};function gs(e,t,n){_s(e,t,n),(ne||ie)&&setTimeout(function(){_s(e,t,n)},0)}function _s(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=R(r,$s(a))>-1,a.selected!==o&&(a.selected=o);else if(P($s(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function bs(e,t){return t.every(function(t){return!P(t,e)})}function $s(e){return"_value"in e?e._value:e.value}function ws(e){e.target.composing=!0}function xs(e){e.target.composing&&(e.target.composing=!1,Cs(e.target,"input"))}function Cs(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function As(e){return!e.componentInstance||e.data&&e.data.transition?e:As(e.componentInstance._vnode)}var ks={bind:function(e,t,n){var r=t.value,i=(n=As(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,ss(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=As(n)).data&&n.data.transition?(n.data.show=!0,r?ss(n,function(){e.style.display=e.__vOriginalDisplay}):cs(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Os={model:ys,show:ks},Ss={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ts(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ts(nr(t.children)):e}function Ns(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[C(o)]=i[o];return t}function js(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Es(e){for(;e=e.parent;)if(e.data.transition)return!0}function Ms(e,t){return t.key===e.key&&t.tag===e.tag}var Ds=function(e){return e.tag||tr(e)},Ls=function(e){return"show"===e.name},Is={name:"transition",props:Ss,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Ds)).length){0;var r=this.mode;0;var i=n[0];if(Es(this.$vnode))return i;var o=Ts(i);if(!o)return i;if(this._leaving)return js(e,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=Ns(this),u=this._vnode,l=Ts(u);if(o.data.directives&&o.data.directives.some(Ls)&&(o.data.show=!0),l&&l.data&&!Ms(o,l)&&!tr(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=E({},c);if("out-in"===r)return this._leaving=!0,en(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),js(e,i);if("in-out"===r){if(tr(o))return u;var p,d=function(){p()};en(c,"afterEnter",d),en(c,"enterCancelled",d),en(f,"delayLeave",function(e){p=e})}}return i}}},Fs=E({tag:String,moveClass:String},Ss);delete Fs.mode;var Ps={props:Fs,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=fr(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ns(this),s=0;s<i.length;s++){var c=i[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(r){for(var u=[],l=[],f=0;f<r.length;f++){var p=r[f];p.data.transition=a,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?u.push(p):l.push(p)}this.kept=e(t,null,u),this.removed=l}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Rs),e.forEach(Hs),e.forEach(Bs),this._reflow=document.body.offsetHeight,e.forEach(function(e){if(e.data.moved){var n=e.elm,r=n.style;es(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Za,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Za,e),n._moveCb=null,ts(n,t))})}}))},methods:{hasMove:function(e,t){if(!Ja)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){Ua(n,e)}),Ba(n,t),n.style.display="none",this.$el.appendChild(n);var r=is(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function Rs(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Hs(e){e.data.newPos=e.elm.getBoundingClientRect()}function Bs(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var Us={Transition:Is,TransitionGroup:Ps};oi.config.mustUseProp=wi,oi.config.isReservedTag=Ui,oi.config.isReservedAttr=bi,oi.config.getTagNamespace=zi,oi.config.isUnknownElement=Ji,E(oi.options.directives,Os),E(oi.options.components,Us),oi.prototype.__patch__=Y?ms:D,oi.prototype.$mount=function(e,t){return vr(this,e=e&&Y?qi(e):void 0,t)},Y&&setTimeout(function(){V.devtools&&ve&&ve.emit("init",oi)},0);var zs=/\{\{((?:.|\r?\n)+?)\}\}/g,Vs=/[-.*+?^${}()|[\]\/\\]/g,Js=w(function(e){var t=e[0].replace(Vs,"\\$&"),n=e[1].replace(Vs,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Ks(e,t){var n=t?Js(t):zs;if(n.test(e)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){(i=r.index)>c&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=Po(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c<e.length&&(s.push(o=e.slice(c)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}function qs(e,t){t.warn;var n=Go(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Zo(e,"class",!1);r&&(e.classBinding=r)}function Ws(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}var Zs={staticKeys:["staticClass"],transformNode:qs,genData:Ws};function Gs(e,t){t.warn;var n=Go(e,"style");n&&(e.staticStyle=JSON.stringify(Sa(n)));var r=Zo(e,"style",!1);r&&(e.styleBinding=r)}function Xs(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}var Ys,Qs={staticKeys:["staticStyle"],transformNode:Gs,genData:Xs},ec={decode:function(e){return(Ys=Ys||document.createElement("div")).innerHTML=e,Ys.textContent}},tc=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),nc=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),rc=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ic=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,oc=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ac="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+J.source+"]*",sc="((?:"+ac+"\\:)?"+ac+")",cc=new RegExp("^<"+sc),uc=/^\s*(\/?)>/,lc=new RegExp("^<\\/"+sc+"[^>]*>"),fc=/^<!DOCTYPE [^>]+>/i,pc=/^<!\--/,dc=/^<!\[/,vc=m("script,style,textarea",!0),hc={},mc={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},yc=/&(?:lt|gt|quot|amp|#39);/g,gc=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,_c=m("pre,textarea",!0),bc=function(e,t){return e&&_c(e)&&"\n"===t[0]};function $c(e,t){var n=t?gc:yc;return e.replace(n,function(e){return mc[e]})}function wc(e,t){for(var n,r,i=[],o=t.expectHTML,a=t.isUnaryTag||L,s=t.canBeLeftOpenTag||L,c=0;e;){if(n=e,r&&vc(r)){var u=0,l=r.toLowerCase(),f=hc[l]||(hc[l]=new RegExp("([\\s\\S]*?)(</"+l+"[^>]*>)","i")),p=e.replace(f,function(e,n,r){return u=r.length,vc(l)||"noscript"===l||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),bc(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-p.length,e=p,k(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(pc.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v),c,c+v+3),x(v+3);continue}}if(dc.test(e)){var h=e.indexOf("]>");if(h>=0){x(h+2);continue}}var m=e.match(fc);if(m){x(m[0].length);continue}var y=e.match(lc);if(y){var g=c;x(y[0].length),k(y[1],g,c);continue}var _=C();if(_){A(_),bc(_.tagName,e)&&x(1);continue}}var b=void 0,$=void 0,w=void 0;if(d>=0){for($=e.slice(d);!(lc.test($)||cc.test($)||pc.test($)||dc.test($)||(w=$.indexOf("<",1))<0);)d+=w,$=e.slice(d);b=e.substring(0,d)}d<0&&(b=e),b&&x(b.length),t.chars&&b&&t.chars(b,c-b.length,c)}if(e===n){t.chars&&t.chars(e);break}}function x(t){c+=t,e=e.substring(t)}function C(){var t=e.match(cc);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(x(t[0].length);!(n=e.match(uc))&&(r=e.match(oc)||e.match(ic));)r.start=c,x(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],x(n[0].length),i.end=c,i}}function A(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&rc(n)&&k(r),s(n)&&r===n&&k(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p<l;p++){var d=e.attrs[p],v=d[3]||d[4]||d[5]||"",h="a"===n&&"href"===d[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;f[p]={name:d[1],value:$c(v,h)}}u||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:f,start:e.start,end:e.end}),r=n),t.start&&t.start(n,f,u,e.start,e.end)}function k(e,n,o){var a,s;if(null==n&&(n=c),null==o&&(o=c),e)for(s=e.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}k()}var xc,Cc,Ac,kc,Oc,Sc,Tc,Nc,jc,Ec=/^@|^v-on:/,Mc=/^v-|^@|^:|^#/,Dc=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Lc=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ic=/^\(|\)$/g,Fc=/^\[.*\]$/,Pc=/:(.*)$/,Rc=/^:|^\.|^v-bind:/,Hc=/\.[^.\]]+(?=[^\]]*$)/g,Bc=/^v-slot(:|$)|^#/,Uc=/[\r\n]/,zc=/\s+/g,Vc=/[\s"'<>\/=]/,Jc=w(ec.decode),Kc="_empty_";function qc(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:vu(t),rawAttrsMap:{},parent:n,children:[]}}function Wc(e,t){xc=t.warn||Ho,Sc=t.isPreTag||L,Tc=t.mustUseProp||L,Nc=t.getTagNamespace||L;var n=t.isReservedTag||L;jc=function(e){return!!e.component||!n(e.tag)},Ac=Bo(t.modules,"transformNode"),kc=Bo(t.modules,"preTransformNode"),Oc=Bo(t.modules,"postTransformNode"),Cc=t.delimiters;var r,i,o=[],a=!1!==t.preserveWhitespace,s=t.whitespace,c=!1,u=!1;function l(e){if(f(e),c||e.processed||(e=Xc(e,t)),o.length||e===r||r.if&&(e.elseif||e.else)&&ou(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)ru(e,i);else{if(e.slotScope){var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}e.children=e.children.filter(function(e){return!e.slotScope}),f(e),e.pre&&(c=!1),Sc(e.tag)&&(u=!1);for(var a=0;a<Oc.length;a++)Oc[a](e,t)}function f(e){if(!u)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return wc(e,{warn:xc,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,a,s,f){var p=i&&i.ns||Nc(e);ne&&"svg"===p&&(n=_u(n));var d=qc(e,n,i);p&&(d.ns=p),mu(d)&&!de()&&(d.forbidden=!0);for(var v=0;v<kc.length;v++)d=kc[v](d,t)||d;c||(Zc(d),d.pre&&(c=!0)),Sc(d.tag)&&(u=!0),c?Gc(d):d.processed||(eu(d),nu(d),au(d)),r||(r=d),a?l(d):(i=d,o.push(d))},end:function(e,t,n){var r=o[o.length-1];o.length-=1,i=o[o.length-1],l(r)},chars:function(e,t,n){if(i&&(!ne||"textarea"!==i.tag||i.attrsMap.placeholder!==e)){var r,o,l=i.children;if(e=u||e.trim()?hu(i)?e:Jc(e):l.length?s?"condense"===s&&Uc.test(e)?"":" ":a?" ":"":"")u||"condense"!==s||(e=e.replace(zc," ")),!c&&" "!==e&&(r=Ks(e,Cc))?o={type:2,expression:r.expression,tokens:r.tokens,text:e}:" "===e&&l.length&&" "===l[l.length-1].text||(o={type:3,text:e}),o&&l.push(o)}},comment:function(e,t,n){if(i){var r={type:3,text:e,isComment:!0};0,i.children.push(r)}}}),r}function Zc(e){null!=Go(e,"v-pre")&&(e.pre=!0)}function Gc(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(e.plain=!0)}function Xc(e,t){Yc(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,Qc(e),su(e),uu(e),lu(e);for(var n=0;n<Ac.length;n++)e=Ac[n](e,t)||e;return fu(e),e}function Yc(e){var t=Zo(e,"key");t&&(e.key=t)}function Qc(e){var t=Zo(e,"ref");t&&(e.ref=t,e.refInFor=pu(e))}function eu(e){var t;if(t=Go(e,"v-for")){var n=tu(t);n&&E(e,n)}}function tu(e){var t=e.match(Dc);if(t){var n={};n.for=t[2].trim();var r=t[1].trim().replace(Ic,""),i=r.match(Lc);return i?(n.alias=r.replace(Lc,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r,n}}function nu(e){var t=Go(e,"v-if");if(t)e.if=t,ou(e,{exp:t,block:e});else{null!=Go(e,"v-else")&&(e.else=!0);var n=Go(e,"v-else-if");n&&(e.elseif=n)}}function ru(e,t){var n=iu(t.children);n&&n.if&&ou(n,{exp:e.elseif,block:e})}function iu(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}function ou(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function au(e){null!=Go(e,"v-once")&&(e.once=!0)}function su(e){var t;"template"===e.tag?(t=Go(e,"scope"),e.slotScope=t||Go(e,"slot-scope")):(t=Go(e,"slot-scope"))&&(e.slotScope=t);var n=Zo(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||zo(e,"slot",n,Wo(e,"slot"))),"template"===e.tag){var r=Xo(e,Bc);if(r){0;var i=cu(r),o=i.name,a=i.dynamic;e.slotTarget=o,e.slotTargetDynamic=a,e.slotScope=r.value||Kc}}else{var s=Xo(e,Bc);if(s){0;var c=e.scopedSlots||(e.scopedSlots={}),u=cu(s),l=u.name,f=u.dynamic,p=c[l]=qc("template",[],e);p.slotTarget=l,p.slotTargetDynamic=f,p.children=e.children.filter(function(e){if(!e.slotScope)return e.parent=p,!0}),p.slotScope=s.value||Kc,e.children=[],e.plain=!1}}}function cu(e){var t=e.name.replace(Bc,"");return t||"#"!==e.name[0]&&(t="default"),Fc.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function uu(e){"slot"===e.tag&&(e.slotName=Zo(e,"name"))}function lu(e){var t;(t=Zo(e,"is"))&&(e.component=t),null!=Go(e,"inline-template")&&(e.inlineTemplate=!0)}function fu(e){var t,n,r,i,o,a,s,c,u=e.attrsList;for(t=0,n=u.length;t<n;t++){if(r=i=u[t].name,o=u[t].value,Mc.test(r))if(e.hasBindings=!0,(a=du(r.replace(Mc,"")))&&(r=r.replace(Hc,"")),Rc.test(r))r=r.replace(Rc,""),o=Po(o),(c=Fc.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!c&&"innerHtml"===(r=C(r))&&(r="innerHTML"),a.camel&&!c&&(r=C(r)),a.sync&&(s=ea(o,"$event"),c?qo(e,'"update:"+('+r+")",s,null,!1,xc,u[t],!0):(qo(e,"update:"+C(r),s,null,!1,xc,u[t]),O(r)!==C(r)&&qo(e,"update:"+O(r),s,null,!1,xc,u[t])))),a&&a.prop||!e.component&&Tc(e.tag,e.attrsMap.type,r)?Uo(e,r,o,u[t],c):zo(e,r,o,u[t],c);else if(Ec.test(r))r=r.replace(Ec,""),(c=Fc.test(r))&&(r=r.slice(1,-1)),qo(e,r,o,a,!1,xc,u[t],c);else{var l=(r=r.replace(Mc,"")).match(Pc),f=l&&l[1];c=!1,f&&(r=r.slice(0,-(f.length+1)),Fc.test(f)&&(f=f.slice(1,-1),c=!0)),Jo(e,r,i,o,f,c,a,u[t])}else zo(e,r,JSON.stringify(o),u[t]),!e.component&&"muted"===r&&Tc(e.tag,e.attrsMap.type,r)&&Uo(e,r,"true",u[t])}}function pu(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}function du(e){var t=e.match(Hc);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}function vu(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}function hu(e){return"script"===e.tag||"style"===e.tag}function mu(e){return"style"===e.tag||"script"===e.tag&&(!e.attrsMap.type||"text/javascript"===e.attrsMap.type)}var yu=/^xmlns:NS\d+/,gu=/^NS\d+:/;function _u(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];yu.test(r.name)||(r.name=r.name.replace(gu,""),t.push(r))}return t}function bu(e,t){for(var n=e;n;)n.for&&n.alias===t&&xc("<"+e.tag+' v-model="'+t+'">: You are binding v-model directly to a v-for iteration alias. This will not be able to modify the v-for source array because writing to the alias is like modifying a function local variable. Consider using an array of objects and use v-model on an object property instead.',e.rawAttrsMap["v-model"]),n=n.parent}function $u(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Zo(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=Go(e,"v-if",!0),o=i?"&&("+i+")":"",a=null!=Go(e,"v-else",!0),s=Go(e,"v-else-if",!0),c=wu(e);eu(c),Vo(c,"type","checkbox"),Xc(c,t),c.processed=!0,c.if="("+n+")==='checkbox'"+o,ou(c,{exp:c.if,block:c});var u=wu(e);Go(u,"v-for",!0),Vo(u,"type","radio"),Xc(u,t),ou(c,{exp:"("+n+")==='radio'"+o,block:u});var l=wu(e);return Go(l,"v-for",!0),Vo(l,":type",n),Xc(l,t),ou(c,{exp:i,block:l}),a?c.else=!0:s&&(c.elseif=s),c}}}function wu(e){return qc(e.tag,e.attrsList.slice(),e.parent)}var xu={preTransformNode:$u},Cu=[Zs,Qs,xu];function Au(e,t){t.value&&Uo(e,"textContent","_s("+t.value+")",t)}function ku(e,t){t.value&&Uo(e,"innerHTML","_s("+t.value+")",t)}var Ou,Su,Tu={model:la,text:Au,html:ku},Nu={expectHTML:!0,modules:Cu,directives:Tu,isPreTag:Bi,isUnaryTag:tc,mustUseProp:wi,canBeLeftOpenTag:nc,isReservedTag:Ui,getTagNamespace:zi,staticKeys:F(Cu)},ju=w(Mu);function Eu(e,t){e&&(Ou=ju(t.staticKeys||""),Su=t.isReservedTag||L,Du(e),Lu(e,!1))}function Mu(e){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}function Du(e){if(e.static=Iu(e),1===e.type){if(!Su(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t<n;t++){var r=e.children[t];Du(r),r.static||(e.static=!1)}if(e.ifConditions)for(var i=1,o=e.ifConditions.length;i<o;i++){var a=e.ifConditions[i].block;Du(a),a.static||(e.static=!1)}}}function Lu(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,r=e.children.length;n<r;n++)Lu(e.children[n],t||!!e.for);if(e.ifConditions)for(var i=1,o=e.ifConditions.length;i<o;i++)Lu(e.ifConditions[i].block,t)}}function Iu(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||y(e.tag)||!Su(e.tag)||Fu(e)||!Object.keys(e).every(Ou))))}function Fu(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}var Pu=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Ru=/\([^)]*?\);*$/,Hu=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Bu={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Uu={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},zu=function(e){return"if("+e+")return null;"},Vu={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:zu("$event.target !== $event.currentTarget"),ctrl:zu("!$event.ctrlKey"),shift:zu("!$event.shiftKey"),alt:zu("!$event.altKey"),meta:zu("!$event.metaKey"),left:zu("'button' in $event && $event.button !== 0"),middle:zu("'button' in $event && $event.button !== 1"),right:zu("'button' in $event && $event.button !== 2")};function Ju(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=Ku(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Ku(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return Ku(e)}).join(",")+"]";var t=Hu.test(e.value),n=Pu.test(e.value),r=Hu.test(e.value.replace(Ru,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(Vu[s])o+=Vu[s],Bu[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=zu(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=qu(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function qu(e){return"if(!$event.type.indexOf('key')&&"+e.map(Wu).join("&&")+")return null;"}function Wu(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Bu[e],r=Uu[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}function Zu(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}}function Gu(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}}var Xu={on:Zu,bind:Gu,cloak:D},Yu=function(e){this.options=e,this.warn=e.warn||Ho,this.transforms=Bo(e.modules,"transformCode"),this.dataGenFns=Bo(e.modules,"genData"),this.directives=E(E({},Xu),e.directives);var t=e.isReservedTag||L;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Qu(e,t){var n=new Yu(t);return{render:"with(this){return "+(e?el(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function el(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return tl(e,t);if(e.once&&!e.onceProcessed)return nl(e,t);if(e.for&&!e.forProcessed)return ol(e,t);if(e.if&&!e.ifProcessed)return rl(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return _l(e,t);var n;if(e.component)n=bl(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=al(e,t));var i=e.inlineTemplate?null:dl(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<t.transforms.length;o++)n=t.transforms[o](e,n);return n}return dl(e,t)||"void 0"}function tl(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+el(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function nl(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return rl(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+el(e,t)+","+t.onceId+++","+n+")":el(e,t)}return tl(e,t)}function rl(e,t,n,r){return e.ifProcessed=!0,il(e.ifConditions.slice(),t,n,r)}function il(e,t,n,r){if(!e.length)return r||"_e()";var i=e.shift();return i.exp?"("+i.exp+")?"+o(i.block)+":"+il(e,t,n,r):""+o(i.block);function o(e){return n?n(e,t):e.once?nl(e,t):el(e,t)}}function ol(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||el)(e,t)+"})"}function al(e,t){var n="{",r=sl(e,t);r&&(n+=r+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);if(e.attrs&&(n+="attrs:"+$l(e.attrs)+","),e.props&&(n+="domProps:"+$l(e.props)+","),e.events&&(n+=Ju(e.events,!1)+","),e.nativeEvents&&(n+=Ju(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=ul(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=cl(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+$l(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function sl(e,t){var n=e.directives;if(n){var r,i,o,a,s="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var u=t.directives[o.name];u&&(a=!!u(e,o,t.warn)),a&&(c=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return c?s.slice(0,-1)+"]":void 0}}function cl(e,t){var n=e.children[0];if(n&&1===n.type){var r=Qu(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}function ul(e,t,n){var r=e.for||Object.keys(t).some(function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||fl(n)}),i=!!e.if;if(!r)for(var o=e.parent;o;){if(o.slotScope&&o.slotScope!==Kc||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}var a=Object.keys(t).map(function(e){return pl(t[e],n)}).join(",");return"scopedSlots:_u(["+a+"]"+(r?",null,true":"")+(!r&&i?",null,false,"+ll(a):"")+")"}function ll(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}function fl(e){return 1===e.type&&("slot"===e.tag||e.children.some(fl))}function pl(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return rl(e,t,pl,"null");if(e.for&&!e.forProcessed)return ol(e,t,pl);var r=e.slotScope===Kc?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(dl(e,t)||"undefined")+":undefined":dl(e,t)||"undefined":el(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function dl(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||el)(a,t)+s}var c=n?vl(o,t.maybeComponent):0,u=i||ml;return"["+o.map(function(e){return u(e,t)}).join(",")+"]"+(c?","+c:"")}}function vl(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(hl(i)||i.ifConditions&&i.ifConditions.some(function(e){return hl(e.block)})){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some(function(e){return t(e.block)}))&&(n=1)}}return n}function hl(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function ml(e,t){return 1===e.type?el(e,t):3===e.type&&e.isComment?gl(e):yl(e)}function yl(e){return"_v("+(2===e.type?e.expression:wl(JSON.stringify(e.text)))+")"}function gl(e){return"_e("+JSON.stringify(e.text)+")"}function _l(e,t){var n=e.slotName||'"default"',r=dl(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?$l((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:C(e.name),value:e.value,dynamic:e.dynamic}})):null,a=e.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=","+o),a&&(i+=(o?"":",null")+","+a),i+")"}function bl(e,t,n){var r=t.inlineTemplate?null:dl(t,n,!0);return"_c("+e+","+al(t,n)+(r?","+r:"")+")"}function $l(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],o=wl(i.value);i.dynamic?n+=i.name+","+o+",":t+='"'+i.name+'":'+o+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function wl(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}var xl=new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),Cl=new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),Al=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function kl(e,t){e&&Ol(e,t)}function Ol(e,t){if(1===e.type){for(var n in e.attrsMap)if(Mc.test(n)){var r=e.attrsMap[n];if(r){var i=e.rawAttrsMap[n];"v-for"===n?Tl(e,'v-for="'+r+'"',t,i):"v-slot"===n||"#"===n[0]?El(r,n+'="'+r+'"',t,i):Ec.test(n)?Sl(r,n+'="'+r+'"',t,i):jl(r,n+'="'+r+'"',t,i)}}if(e.children)for(var o=0;o<e.children.length;o++)Ol(e.children[o],t)}else 2===e.type&&jl(e.expression,e.text,t,e)}function Sl(e,t,n,r){var i=e.replace(Al,""),o=i.match(Cl);o&&"$"!==i.charAt(o.index-1)&&n('avoid using JavaScript unary operator as property name: "'+o[0]+'" in expression '+t.trim(),r),jl(e,t,n,r)}function Tl(e,t,n,r){jl(e.for||"",t,n,r),Nl(e.alias,"v-for alias",t,n,r),Nl(e.iterator1,"v-for iterator",t,n,r),Nl(e.iterator2,"v-for iterator",t,n,r)}function Nl(e,t,n,r,i){if("string"==typeof e)try{new Function("var "+e+"=_")}catch(Xl){r("invalid "+t+' "'+e+'" in expression: '+n.trim(),i)}}function jl(e,t,n,r){try{new Function("return "+e)}catch(Xl){var i=e.replace(Al,"").match(xl);n(i?'avoid using JavaScript keyword as property name: "'+i[0]+'"\n Raw expression: '+t.trim():"invalid expression: "+Xl.message+" in\n\n "+e+"\n\n Raw expression: "+t.trim()+"\n",r)}}function El(e,t,n,r){try{new Function(e,"")}catch(Xl){n("invalid function parameter expression: "+Xl.message+" in\n\n "+e+"\n\n Raw expression: "+t.trim()+"\n",r)}}var Ml=2;function Dl(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var r=e.split(/\r?\n/),i=0,o=[],a=0;a<r.length;a++)if((i+=r[a].length+1)>=t){for(var s=a-Ml;s<=a+Ml||n>i;s++)if(!(s<0||s>=r.length)){o.push(""+(s+1)+Ll(" ",3-String(s+1).length)+"| "+r[s]);var c=r[s].length;if(s===a){var u=t-(i-c)+1,l=n>i?c-u:n-t;o.push(" | "+Ll(" ",u)+Ll("^",l))}else if(s>a){if(n>i){var f=Math.min(n-i,c);o.push(" | "+Ll("^",f))}i+=c+1}}break}return o.join("\n")}function Ll(e,t){var n="";if(t>0)for(;1&t&&(n+=e),!((t>>>=1)<=0);)e+=e;return n}function Il(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),D}}function Fl(e){var t=Object.create(null);return function(n,r,i){(r=E({},r)).warn;delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(t[o])return t[o];var a=e(n,r);var s={},c=[];return s.render=Il(a.render,c),s.staticRenderFns=a.staticRenderFns.map(function(e){return Il(e,c)}),t[o]=s}}function Pl(e){return function(t){function n(n,r){var i=Object.create(t),o=[],a=[],s=function(e,t,n){(n?a:o).push(e)};if(r)for(var c in r.modules&&(i.modules=(t.modules||[]).concat(r.modules)),r.directives&&(i.directives=E(Object.create(t.directives||null),r.directives)),r)"modules"!==c&&"directives"!==c&&(i[c]=r[c]);i.warn=s;var u=e(n.trim(),i);return u.errors=o,u.tips=a,u}return{compile:n,compileToFunctions:Fl(n)}}}var Rl,Hl=Pl(function(e,t){var n=Wc(e.trim(),t);!1!==t.optimize&&Eu(n,t);var r=Qu(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}}),Bl=Hl(Nu),Ul=Bl.compile,zl=Bl.compileToFunctions;function Vl(e){return(Rl=Rl||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Rl.innerHTML.indexOf(" ")>0}var Jl=!!Y&&Vl(!1),Kl=!!Y&&Vl(!0),ql=w(function(e){var t=qi(e);return t&&t.innerHTML}),Wl=oi.prototype.$mount;function Zl(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}oi.prototype.$mount=function(e,t){if((e=e&&qi(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ql(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=Zl(e));if(r){0;var i=zl(r,{outputSourceRange:!1,shouldDecodeNewlines:Jl,shouldDecodeNewlinesForHref:Kl,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Wl.call(this,e,t)},oi.compile=zl;var Gl=oi;exports.default=Gl;
|
4 |
},{}],"Lue2":[function(require,module,exports) {
|
5 |
"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var e=t(require("vue"));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 n(t){return o(t)||s(t)||i()}function o(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}function s(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var a="undefined"!=typeof window;function u(t){return Array.isArray(t)||"object"===r(t)?Object.freeze(t):t}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce(function(t,r){var n=r.passengers[0],o="function"==typeof n?n(e):r.passengers;return t.concat(o)},[])}function c(t,e){return t.map(function(t,e){return[e,t]}).sort(function(t,r){return e(t[1],r[1])||t[0]-r[0]}).map(function(t){return t[1]})}function p(t,e){return e.reduce(function(e,r){return t.hasOwnProperty(r)&&(e[r]=t[r]),e},{})}var h={},d={},f={},g=e.extend({data:function(){return{transports:h,targets:d,sources:f,trackInstances:a}},methods:{open:function(t){if(a){var r=t.to,n=t.from,o=t.passengers,s=t.order,i=void 0===s?1/0:s;if(r&&n&&o){var l={to:r,from:n,passengers:u(o),order:i};-1===Object.keys(this.transports).indexOf(r)&&e.set(this.transports,r,[]);var p=this.$_getTransportIndex(l),h=this.transports[r].slice(0);-1===p?h.push(l):h[p]=l,this.transports[r]=c(h,function(t,e){return t.order-e.order})}}},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.to,n=t.from;if(r&&(n||!1!==e)&&this.transports[r])if(e)this.transports[r]=[];else{var o=this.$_getTransportIndex(t);if(o>=0){var s=this.transports[r].slice(0);s.splice(o,1),this.transports[r]=s}}},registerTarget:function(t,e,r){a&&(this.trackInstances&&!r&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,r){a&&(this.trackInstances&&!r&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,r=t.from;for(var n in this.transports[e])if(this.transports[e][n].from===r)return+n;return-1}}}),m=new g(h),y=1,v=e.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(y++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick(function(){m.registerSource(t.name,t)})},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){m.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};m.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"==typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:n(t),order:this.order};m.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],r=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(r,[this.normalizeOwnChildren(e)]):this.slim?t():t(r,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),S=e.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:m.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick(function(){m.registerTarget(t.name,t)})},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){m.unregisterTarget(e),m.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick(function(){t.firstRender=!1})},beforeDestroy:function(){m.unregisterTarget(this.name)},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return l(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render:function(t){var e=this.noWrapper(),r=this.children(),n=this.transition||this.tag;return e?r[0]:this.slim&&!n?t():t(n,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},r)}}),b=0,T=["disabled","name","order","slim","slotProps","tag","to"],$=["multiple","transition"],w=e.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(b++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!=typeof document){var t=document.querySelector(this.mountTo);if(t){var e=this.$props;if(m.targets[e.name])e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted.\n Aborting because 'bail: true' is set")):this.portalTarget=m.targets[e.name];else{var r=e.append;if(r){var n="string"==typeof r?r:"DIV",o=document.createElement(n);t.appendChild(o),t=o}var s=p(this.$props,$);s.slim=this.targetSlim,s.tag=this.targetTag,s.slotProps=this.targetSlotProps,s.name=this.to,this.portalTarget=new S({el:t,parent:this.$parent||this,propsData:s})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var t=this.portalTarget;if(this.append){var e=t.$el;e.parentNode.removeChild(e)}t.$destroy()},render:function(t){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){var e=p(this.$props,T);return t(v,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var r=this.$scopedSlots.manual({to:this.to});return Array.isArray(r)&&(r=r[0]),r||t()}});function P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.portalName||"Portal",v),t.component(e.portalTargetName||"PortalTarget",S),t.component(e.MountingPortalName||"MountingPortal",w)}var x={install:P};exports.default=x,exports.Portal=v,exports.PortalTarget=S,exports.MountingPortal=w,exports.Wormhole=m;
|
6 |
-
},{"vue":"HYXJ"}],"
|
7 |
-
var e,n,o=Object.create(null);"undefined"!=typeof window&&(window.__VUE_HOT_MAP__=o);var t=!1,r=!1,i="beforeCreate";function s(e,n){if(n.functional){var t=n.render;n.render=function(n,r){var i=o[e].instances;return r&&i.indexOf(r.parent)<0&&i.push(r.parent),t(n,r)}}else c(n,i,function(){var n=o[e];n.Ctor||(n.Ctor=this.constructor),n.instances.push(this)}),c(n,"beforeDestroy",function(){var n=o[e].instances;n.splice(n.indexOf(this),1)})}function c(e,n,o){var t=e[n];e[n]=t?Array.isArray(t)?t.concat(o):[t,o]:[o]}function a(e){return function(n,o){try{e(n,o)}catch(t){console.error(t),console.warn("Something went wrong during Vue component hot-reload. Full reload required.")}}}function f(e,n){for(var o in e)o in n||delete e[o];for(var t in n)e[t]=n[t]}function u(e){if(e._u){var n=e._u;return e._u=function(e){try{return n(e,!0)}catch(o){return n(e,null,!0)}},function(){e._u=n}}}exports.install=function(o,s){t||(t=!0,e=o.__esModule?o.default:o,n=e.version.split(".").map(Number),r=s,e.config._lifecycleHooks.indexOf("init")>-1&&(i="init"),exports.compatible=n[0]>=2,exports.compatible||console.warn("[HMR] You are using a version of vue-hot-reload-api that is only compatible with Vue.js core ^2.0.0."))},exports.createRecord=function(e,n){if(!o[e]){var t=null;"function"==typeof n&&(n=(t=n).options),s(e,n),o[e]={Ctor:t,options:n,instances:[]}}},exports.isRecorded=function(e){return void 0!==o[e]},exports.rerender=a(function(e,n){var t=o[e];if(n){if("function"==typeof n&&(n=n.options),t.Ctor)t.Ctor.options.render=n.render,t.Ctor.options.staticRenderFns=n.staticRenderFns,t.instances.slice().forEach(function(e){e.$options.render=n.render,e.$options.staticRenderFns=n.staticRenderFns,e._staticTrees&&(e._staticTrees=[]),Array.isArray(t.Ctor.options.cached)&&(t.Ctor.options.cached=[]),Array.isArray(e.$options.cached)&&(e.$options.cached=[]);var o=u(e);e.$forceUpdate(),e.$nextTick(o)});else if(t.options.render=n.render,t.options.staticRenderFns=n.staticRenderFns,t.options.functional){if(Object.keys(n).length>2)f(t.options,n);else{var r=t.options._injectStyles;if(r){var i=n.render;t.options.render=function(e,n){return r.call(n),i(e,n)}}}t.options._Ctor=null,Array.isArray(t.options.cached)&&(t.options.cached=[]),t.instances.slice().forEach(function(e){e.$forceUpdate()})}}else t.instances.slice().forEach(function(e){e.$forceUpdate()})}),exports.reload=a(function(e,t){var r=o[e];if(t)if("function"==typeof t&&(t=t.options),s(e,t),r.Ctor){n[1]<2&&(r.Ctor.extendOptions=t);var i=r.Ctor.super.extend(t);i.options._Ctor=r.options._Ctor,r.Ctor.options=i.options,r.Ctor.cid=i.cid,r.Ctor.prototype=i.prototype,i.release&&i.release()}else f(r.options,t);r.instances.slice().forEach(function(e){e.$vnode&&e.$vnode.context?e.$vnode.context.$forceUpdate():console.warn("Root or manually mounted instance modified. Full reload required.")})});
|
8 |
-
},{}],"vi91":[function(require,module,exports) {
|
9 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:["logoSrc","logoAlt","pluginName"]};exports.default=e;
|
10 |
-
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,
|
11 |
-
},{
|
12 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:["name","current"],methods:{activePosition:function(){void 0!==this.current&&this.current!==this.name||this.$emit("activeSectionElement",this.$refs.sectionItem)}},computed:{isActive:function(){return this.activePosition(),void 0===this.current||this.current===this.name}}};exports.default=t;
|
13 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{ref:"sectionItem",staticClass:"wptb-settings-section-item",class:{disabled:!e.isActive},on:{click:function(t){return e.$emit("sectionchange",e.name,t.target)}}},[e._v(" "+e._s(e.name)+"\n")])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
14 |
-
},{
|
15 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:["activeItem","relativeParent"],methods:{toPx:function(t){return"".concat(t,"px")}},computed:{styleCalculations:function(){if(this.activeItem){var t=this.activeItem.getBoundingClientRect(),e=this.relativeParent.getBoundingClientRect(),i=Math.abs(t.left-e.left);return{width:this.toPx(t.width),height:"2px",bottom:0,left:this.toPx(i)}}return{}}}};exports.default=t;
|
16 |
-
(function(){var
|
17 |
-
},{
|
18 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("./SectionItem")),t=n(require("./ActiveSectionIndicator"));function n(e){return e&&e.__esModule?e:{default:e}}var i={model:{prop:"currentSection",event:"updateSection"},props:{child:{type:Boolean,default:!1},items:Array,currentSection:String},components:{SectionItem:e.default,ActiveSectionIndicator:t.default},data:function(){return{innerCurrentSection:"",activeSectionElement:null}},mounted:function(){this.innerCurrentSection=this.currentSection||this.items[0]},watch:{innerCurrentSection:function(e){this.$emit("updateSection",e)}},methods:{handleSectionChange:function(e){this.innerCurrentSection=e},handleActiveSectionElement:function(e){this.activeSectionElement=e}}};exports.default=i;
|
19 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{ref:"wrapper",staticClass:"wptb-settings-sections-wrapper",class:{child:e.child}},[e._l(e.items,function(t){return n("section-item",{key:t,attrs:{name:t,current:e.innerCurrentSection},on:{sectionchange:e.handleSectionChange,activeSectionElement:e.handleActiveSectionElement}})}),e._v(" "),n("active-section-indicator",{attrs:{"relative-parent":e.$refs.wrapper,"active-item":e.activeSectionElement}})],2),e._v(" "),e._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
20 |
-
},{"./SectionItem":"bosS","./ActiveSectionIndicator":"jLHe"
|
21 |
"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function t(t){for(var s=1;s<arguments.length;s++){var a=null!=arguments[s]?arguments[s]:{};s%2?e(Object(a),!0).forEach(function(e){r(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var s={withMessageData:{busy:!1,show:!1,message:"",type:"ok",intervalId:-1,intervalTime:5e3}},a=t({},s.withMessageData),i={data:function(){return s},methods:{isBusy:function(){return this.withMessageData.busy},setMessage:function(e){var r=this,s=t({},a,{},e);this.withMessageData.message=s.message,this.withMessageData.type=s.type,this.withMessageData.show=!0,clearInterval(this.withMessageData.intervalId),this.withMessageData.intervalId=setInterval(function(){r.withMessageData.show=!1},s.intervalTime)},setBusy:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.withMessageData.busy=e}}},n=i;exports.default=n;
|
22 |
},{}],"P9T4":[function(require,module,exports) {
|
23 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../mixins/withMessage"));function t(e){return e&&e.__esModule?e:{default:e}}var r={mixins:[e.default]};exports.default=r;
|
24 |
-
(function(){var
|
25 |
-
},{"../mixins/withMessage":"wm3G"
|
26 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{disabled:Boolean,type:{type:String,default:"primary"},size:{type:String,default:"normal"}},methods:{handleClick:function(){this.disabled||this.$emit("click")}}};exports.default=e;
|
27 |
-
(function(){var
|
28 |
-
},{
|
29 |
-
var t=null;function e(){return t||(t=n()),t}function n(){try{throw new Error}catch(e){var t=(""+e.stack).match(/(https?|file|ftp|chrome-extension|moz-extension):\/\/[^)\n]+/g);if(t)return r(t[0])}return"/"}function r(t){return(""+t).replace(/^((?:https?|file|ftp|chrome-extension|moz-extension):\/\/.+)\/[^\/]+$/,"$1")+"/"}exports.getBundleURL=e,exports.getBaseURL=r;
|
30 |
-
},{}],"uNEb":[function(require,module,exports) {
|
31 |
-
var e=require("./bundle-url");function n(e){var n=e.cloneNode();n.onload=function(){e.remove()},n.href=e.href.split("?")[0]+"?"+Date.now(),e.parentNode.insertBefore(n,e.nextSibling)}var l=null;function r(){l||(l=setTimeout(function(){for(var r=document.querySelectorAll('link[rel="stylesheet"]'),t=0;t<r.length;t++)e.getBaseURL(r[t].href)===e.getBundleURL()&&n(r[t]);l=null},50))}module.exports=r;
|
32 |
-
},{"./bundle-url":"y8Jx"}],"nwtb":[function(require,module,exports) {
|
33 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("./MessageDisplay.vue")),s=t(require("./MenuButton"));function t(e){return e&&e.__esModule?e:{default:e}}var u={props:["messageType","messageShow","messageBody","messageBusy"],components:{MessageDisplay:e.default,MenuButton:s.default}};exports.default=u;
|
34 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"wptb-settings-footer"},[s("message-display",{attrs:{busy:e.messageBusy,message:e.messageBody,show:e.messageShow,type:e.messageType}}),e._v(" "),s("div",{staticClass:"wptb-settings-button-container"},[s("menu-button",{staticStyle:{visibility:"hidden"}},[e._v("dummy")]),e._v(" "),e._t("default")],2)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
35 |
-
},{"./MessageDisplay.vue":"P9T4","./MenuButton":"ksMR"
|
36 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{center:{type:Boolean,default:!1}}};exports.default=e;
|
37 |
-
(function(){var
|
38 |
-
},{
|
39 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:["texts","file","allowedFormats"],model:{prop:"file",event:"fileChanged"},data:function(){return{dragActive:!1,currentFile:null}},mounted:function(){this.currentFile=this.file},watch:{currentFile:function(e){this.$emit("fileChanged",e)},file:function(e){this.currentFile=e}},computed:{eventClass:function(){return this.dragActive?"dragenter":""}},methods:{handleDrop:function(e){this.dragActive=!0;var t=e.dataTransfer;t.files[0]&&this.isTypeAllowed(t.files[0])&&(this.currentFile=t.files[0]),this.dragActive=!1},isTypeAllowed:function(e){var t=e.name.split(".").pop();return this.allowedFormats.includes(t)},openFileSelect:function(){this.$refs.fileSelect.click()},handleFileSelect:function(e){e.target.files.length>0&&this.isTypeAllowed(e.target.files[0])&&(this.currentFile=e.target.files[0])},clearCurrentFile:function(){this.currentFile=null}}};exports.default=e;
|
40 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,
|
41 |
-
},{
|
42 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:["fieldData","modelBind"],methods:{isType:function(e){return this.fieldData.type===e}}};exports.default=e;
|
43 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,i=e.$createElement,d=e._self._c||i;return d("div",[e.isType("multiCheckbox")?d("div",e._l(e.fieldData.options,function(i,a){return d("div",{key:i,staticClass:"wptb-setting-control-row"},[d("input",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[e.fieldData.id],expression:"modelBind[fieldData.id]"}],attrs:{id:e.fieldData.id,type:"checkbox"},domProps:{value:a,checked:Array.isArray(e.modelBind[e.fieldData.id])?e._i(e.modelBind[e.fieldData.id],a)>-1:e.modelBind[e.fieldData.id]},on:{change:function(i){var d=e.modelBind[e.fieldData.id],t=i.target,l=!!t.checked;if(Array.isArray(d)){var o=a,n=e._i(d,o);t.checked?n<0&&e.$set(e.modelBind,e.fieldData.id,d.concat([o])):n>-1&&e.$set(e.modelBind,e.fieldData.id,d.slice(0,n).concat(d.slice(n+1)))}else e.$set(e.modelBind,e.fieldData.id,l)}}}),e._v(" "),d("label",{attrs:{for:e.fieldData.id}},[e._v(e._s(i))])])}),0):e.isType("checkbox")?d("div",[d("div",{staticClass:"wptb-setting-control-row"},[d("input",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[e.fieldData.id],expression:"modelBind[fieldData.id]"}],attrs:{id:e.fieldData.id,type:"checkbox"},domProps:{checked:Array.isArray(e.modelBind[e.fieldData.id])?e._i(e.modelBind[e.fieldData.id],null)>-1:e.modelBind[e.fieldData.id]},on:{change:function(i){var d=e.modelBind[e.fieldData.id],a=i.target,t=!!a.checked;if(Array.isArray(d)){var l=e._i(d,null);a.checked?l<0&&e.$set(e.modelBind,e.fieldData.id,d.concat([null])):l>-1&&e.$set(e.modelBind,e.fieldData.id,d.slice(0,l).concat(d.slice(l+1)))}else e.$set(e.modelBind,e.fieldData.id,t)}}}),e._v(" "),d("label",{attrs:{for:e.fieldData.id}},[e._v(e._s(e.fieldData.label))])])]):e.isType("dropdown")?d("div",[d("div",{staticClass:"wptb-setting-control-row"},[d("select",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[e.fieldData.id],expression:"modelBind[fieldData.id]"}],attrs:{id:e.fieldData.id},on:{change:function(i){var d=Array.prototype.filter.call(i.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.$set(e.modelBind,e.fieldData.id,i.target.multiple?d:d[0])}}},e._l(e.fieldData.options,function(i){return d("option",{key:i.label,domProps:{value:i.value}},[e._v(" "+e._s(i.label)+" ")])}),0),e._v(" "),d("label",{attrs:{for:e.fieldData.id}},[e._v(e._s(e.fieldData.label))]),e._v(" "),e._t("default")],2)]):e._e()])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
44 |
-
},{
|
45 |
"use strict";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e){return a(e)||n(e)||o(e)||r()}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function a(e){if(Array.isArray(e))return i(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function l(r){function o(e){e.map(function(e){var t=document.createElement("div");t.innerHTML=e,a(t.querySelector("table"))})}function n(e,o){if(e&&Array.isArray(e)){var l=r.delimiter;if("tab"==l&&(l="\t"),!l&&!(l=function(e){for(var t={},r=!1,o=0,n=e.length,a=0;a<n;a++){var i=a-1>=0?e[a-1]:"",l=e[a],s=a+1<n?e[a+1]:"";if('"'===l)r&&'"'===s?r&&a++:r=!r;else if(("\n"!==l||"\r"===i)&&"\r"!==l||r)r||-1!==";,\t".indexOf(l)&&(void 0===t[l]&&(t[l]={}),void 0===t[l][o]&&(t[l][o]=0),t[l][o]++);else if(++o>=15)break}var c="";for(var d in t){var p=t[d],u=0;for(var m in p)u++;if(u===o){var b=!1,w=void 0;for(var v in p)b?w=!(p[v]!==b||!w&&void 0!==w):b=p[v];if(!(o>1)||w){if(c){c=!1;break}c=d}}}return c}(e[o])))return void alert("The delimiter could not be determined");document.addEventListener("table:imported:saved",function t(){e.length-o>1&&n(e,o+1),document.removeEventListener("table:imported:saved",t)}),""===e[o]&&(e[o]=" "),a(function(e){if(e&&Array.isArray(e)&&e.length>0){var r=e.length,o=r>0&&e[0]&&Array.isArray(e[0])?e[0].length:0;if(0===r&&0===o)return!1;var n={imageElemIndex:1,textElemIndex:1,customHtmlElemIndex:1},a=new Array(r);a.fill(1);var l=new Array(o);l.fill(1);for(var s=document.createElement("tbody"),c=r-1,p=o-1,u=c;u>=0;u--){var m=document.createElement("tr");m.classList.add("wptb-row");for(var b=p;b>=0;b--){var w=e[u][b];if("#rowspan#"===w){if(u>0){a[b]||(a[b]=1),a[b]++,l[u]=1;continue}w=""}else if("#colspan#"===w){if(b>0){l[u]||(l[u]=1),l[u]++,a[b]=1;continue}w=""}var v=document.createElement("td");v.classList.add("wptb-droppable","wptb-cell"),v.dataset.wptbCssTdAutoWidth="true",v.style.padding="15px",v.style.width=null,v.style.height=null,v.style.borderStyle="solid",v.style.borderWidth="1px",v.innerHTML=w,l[u]>1&&(v.colSpan=l[u]),a[b]>1&&(v.rowSpan=a[b]),m.insertBefore(v,m.firstChild),l[u]=1,a[b]=1}s.insertBefore(m,s.firstChild)}var y=document.createElement("table");y.classList.add("wptb-preview-table","wptb-element-main-table_setting-startedid-0"),y.style.borderStyle="solid",y.style.borderWidth="1px",y.appendChild(s);for(var f=y.querySelectorAll("td"),h=0;h<f.length;h++){var S=t(f[h].childNodes),T=d(S,n),g=void 0;if(T&&Array.isArray(T)&&(g=T[0],n=T[1]),f[h].innerHTML="",g&&Array.isArray(g))for(var H=0;H<g.length;H++)f[h].appendChild(g[H])}return WPTB_Helper.recalculateIndexes(y),i(y),y}return!1}(function(e,t){for(var r=[],o=!1,n=0,a=0,i=0;i<e.length;i++){var l=e[i],s=e[i+1];r[n]=r[n]||[],r[n][a]=r[n][a]||"",'"'==l&&o&&'"'==s?(r[n][a]+=l,++i):'"'!=l?l!=t||o?"\n"!=l||o?r[n][a]+=l:(++n,a=0):++a:o=!o}return r}(e[o],l)))}}function a(e,t){var o=new XMLHttpRequest,n="".concat(r.ajaxUrl,"?action=save_table");t&&e.classList.contains("wptb-element-main-table_setting-startedid-0")&&(e.classList.remove("wptb-element-main-table_setting-startedid-0"),e.classList.add("wptb-element-main-table_setting-".concat(t)));var i={content:WPTB_Stringifier(e).outerHTML,security_code:r.nonce};t&&(i.id=t),i=JSON.stringify(i),o.open("POST",n,!0),o.setRequestHeader("Content-type","application/json; charset=utf-8"),o.onreadystatechange=function(t){if(4==this.readyState&&200==this.status){if("security_problem"===JSON.parse(o.responseText)[0])return void WPTB_Helper.wptbDocumentEventGenerate("table:imported:error",document);var r=JSON.parse(o.responseText);"saved"==r[0]?a(e,r[1]):"edited"==r[0]&&WPTB_Helper.wptbDocumentEventGenerate("table:imported:saved",document)}},o.send(i)}function i(e){r.tableResponsive?e.dataset.wptbAdaptiveTable="1":e.dataset.wptbAdaptiveTable="0",r.topRowAsHeader&&e.classList.add("wptb-table-preview-head"),e.dataset.wptbFixedWidthSize="0",e.dataset.wptbCellsWidthAutoCount=e.maxCols;var t=e.querySelector("td"),o=t&&t.style.paddingTop?t.style.paddingTop:15;e.dataset.wptbTableTdsSumMaxWidth=String(parseInt(e.maxCols)*(101+2*parseInt(o))+1)}function l(o,n){if(n&&Array.isArray(n)&&n.length>0){var a=n.shift();if(a&&Array.isArray(a)&&a.length>0){var c=a[0];window.wptbImportConvertationShortcodes||(window.wptbImportConvertationShortcodes=[]);var p=[];p.push(c),window.wptbImportConvertationShortcodes.push(p);var u=a[1],m="".concat(r.import_iframe_url,"&_wpnonce=").concat(r.security_code,"&shortcode=").concat(c);o.src=m,o.onload=function(o,n,a){var c=o.contentDocument||o.contentWindow.document,p=c.querySelector(".dataTables_length select");if(p){var u=t(p.options);if(Array.isArray(u)){var m=u.reduce(function(e,t){var r=e?Number(e.value):"",o=t?Number(t.value):"";return r<o&&(e=t),e});m&&(p.value=m.value,WPTB_Helper.wptbDocumentEventGenerate("change",p))}}!function(o,n,a,c){if(o){o.style.borderStyle="solid",o.style.borderWidth="1px",WPTB_Helper.checkSetGetStyleColorValue(o,"border-color","border-top-color",!0);var p=WPTB_Helper.checkSetGetStyleValue(o,"float","float");p&&"none"!=p&&(o.dataset.wptbTableAlignment=p);var u=o.querySelector("caption");u&&o.removeChild(u);var m=o.querySelector("tbody");m&&m.removeAttribute("class");var b=o.querySelector("thead");if(b){var w=b.innerHTML;if(w&&(w=WPTB_Helper.replaceAll(w,"<th","<td"),w=WPTB_Helper.replaceAll(w,"th>","td>"),m)){var v=m.innerHTML;v=w+v,m.innerHTML=v}o.removeChild(b)}var y=o.querySelector("tfoot");if(y){var f=y.innerHTML;if(f&&m){var h=m.innerHTML;h+=f,m.innerHTML=h}o.removeChild(y)}WPTB_Helper.recalculateIndexes(o);var S=o.querySelectorAll("tr");if(S.length>0)for(var T={imageElemIndex:1,textElemIndex:1,customHtmlElemIndex:1},g=0;g<S.length;g++){S[g].removeAttribute("class"),S[g].removeAttribute("role"),S[g].classList.add("wptb-row");var H=!0,_=WPTB_Helper.checkSetGetStyleColorValue(S[g],"background-color","background-color");_&&(WPTB_Helper.isHex(_)||(_=WPTB_Helper.rgbToHex(_)),S[g].style.tdsBackgroundColor=_,H=!1);for(var A=t(S[g].children),C=void 0,x="",L=0;L<A.length;L++){H&&(L>0&&C!=WPTB_Helper.checkSetGetStyleColorValue(trChildNodes[g],"background-color","background-color")?(C="",H=!1):C=WPTB_Helper.checkSetGetStyleColorValue(trChildNodes[g],"background-color","background-color")),A[L].style.width=null,A[L].style.height=null,A[L].style.borderStyle="solid",A[L].style.borderWidth="1px";var P=WPTB_Helper.checkSetGetStyleColorValue(A[L],"border-color","border-top-color"),B=WPTB_Helper.checkSetGetStyleColorValue(A[L],"border-color","border-left-color"),I=WPTB_Helper.checkSetGetStyleColorValue(A[L],"border-color","border-right-color"),W=WPTB_Helper.checkSetGetStyleColorValue(A[L],"border-color","border-bottom-color"),E=WPTB_Helper.getValueMaxCountSameElementsInArray([P,B,I,W]);E&&(WPTB_Helper.isHex(E)||(E=WPTB_Helper.rgbToHex(E)),A[L].style.borderColor=E),WPTB_Helper.checkSetGetStyleSizeValue(A[L],"padding","padding-top","px"),A[L].dataset.wptbCssTdAutoWidth="true",A[L].removeAttribute("class"),A[L].removeAttribute("role"),A[L].classList.add("wptb-droppable","wptb-cell");var M=A[L].dataset.xIndex,q=A[L].dataset.yIndex;if(M&&q&&Array.isArray(n)&&n[q]&&Array.isArray(n[q])&&n[q][M]){A[L].innerHTML=n[q][M];var k=t(A[L].childNodes),R=d(k,T),N=void 0;R&&Array.isArray(R)&&(N=R[0],T=R[1]),A[L].innerHTML="";for(var G=0;G<N.length;G++)A[L].appendChild(N[G])}x+=A[L].outerHTML}S[g].innerHTML=x,S[g].style.backgroundColor=WPTB_Helper.rgbToHex(C)}o.removeAttribute("class"),o.removeAttribute("role"),o.removeAttribute("id"),o.removeAttribute("aria-describedby"),o.classList.add("wptb-preview-table","wptb-element-main-table_setting-startedid-0"),i(o),function t(o,n,a,i){var c=new XMLHttpRequest;var d="".concat(r.ajaxUrl,"?action=save_table");var p;var u;var m=n.contentDocument||n.contentWindow.document;var b=m.querySelector(".tablepress-table-name");p=b?b.innerText:"";i&&o.classList.contains("wptb-element-main-table_setting-startedid-0")&&(o.classList.remove("wptb-element-main-table_setting-startedid-0"),o.classList.add("wptb-element-main-table_setting-".concat(i)));u=WPTB_Stringifier(o);u=u.outerHTML;var w={title:p,content:u,security_code:r.security_code};i&&(w.id=i);w=JSON.stringify(w);c.open("POST",d,!0);c.setRequestHeader("Content-type","application/json; charset=utf-8");c.onreadystatechange=function(i){if(4==this.readyState&&200==this.status){var d=JSON.parse(c.responseText);if("saved"==d[0])t(o,n,a,d[1]);else if("edited"==d[0]){if(d[1]&&window.wptbImportConvertationShortcodes&&Array.isArray(window.wptbImportConvertationShortcodes)&&window.wptbImportConvertationShortcodes.length>0&&window.wptbImportConvertationShortcodes[window.wptbImportConvertationShortcodes.length-1].push("[wptb id=".concat(d[1],"]")),window.wptbImportCommonCountTables){var p=window.wptbImportCommonCountTables,u=window.wptbImportCommonCountTables-a.length,m=s(u,p,"import");if(100==m){var b=document.querySelector(".wptb-importPBarContainer");b&&b.addEventListener("wptb-import:progressBar:full:import",function(){WPTB_Helper.wptbDocumentEventGenerate("table:imported:saved",document),WPTB_Helper.wptbDocumentEventGenerate("table:imported:list",document,e({},r.type,window.wptbImportConvertationShortcodes))},!1)}}else s(100,100,"import");l(n,a)}}};c.send(w)}(o,a,c)}}(c.querySelector("table.tablepress"),n,o,a)}.bind(this,o,u,n)}}}function s(e,t,r){var o=document.querySelector(".wptb-importPBarContainer"),n=document.querySelector("#wptb-pBarPercent"),a=document.querySelector("#wptb-pBarPercent span");if(o&&n&&a&&(e||0===e)&&t&&(e=Number(e),(t=Number(t))>0)){o.classList.add("wptb-importPBarContainerActive");var i=o.querySelector(".wptb-nameProcessInBarProgress");if(i){var l,s="";"import"==r?l=document.querySelector(".wptb-importFromPlugin"):"replace"==r&&(l=document.querySelector(".wptb-importTableReplaceShortcodes")),l&&(s=l.dataset.name)&&(i.innerHTML=s),s||(i.innerHTML="")}var c=(e/t*100).toFixed(2);return c>100&&(c=100),a.innerHTML="".concat(c,"%"),n.style.width=c<3?"3%":"".concat(c,"%"),100==c&&setTimeout(function(){o.classList.remove("wptb-importPBarContainerActive"),r=r?":".concat(r):"",WPTB_Helper.wptbDocumentEventGenerate("wptb-import:progressBar:full".concat(r),o)},2e3),c}}function c(e,t){if(e&&Array.isArray(e)&&e.length>0){t&&(window.wptbImportShortcodesNecessaryReplace=e.length,window.wptbImportShortcodesReplacedCount=0,s(0,window.wptbImportShortcodesNecessaryReplace,"replace"));var o=new XMLHttpRequest,n="".concat(r.ajaxUrl,"?action=shortcodes_replace"),a={replacing_shortcodes:e.shift(),security_code:r.security_code};a=JSON.stringify(a),o.open("POST",n,!0),o.setRequestHeader("Content-type","application/json; charset=utf-8"),o.onreadystatechange=function(t){if(4==this.readyState&&200==this.status){var r=JSON.parse(o.responseText),n=window.wptbImportShortcodesNecessaryReplace,a=window.wptbImportShortcodesNecessaryReplace-e.length,i=0;if(r&&Array.isArray(r)&&"success"==r[0]?(i=s(a,n,"replace"),window.wptbImportShortcodesReplacedCount?window.wptbImportShortcodesReplacedCount+=r[1]:window.wptbImportShortcodesReplacedCount=r[1]):i=s(n,n,"replace"),100==i){WPTB_Helper.wptbDocumentEventGenerate("table:shortcode:replace",document,window.wptbImportShortcodesReplacedCount);var l=document.querySelector(".wptb-importPBarContainer");l&&l.addEventListener("wptb-import:progressBar:full:replace",function(){var e=document.querySelector(".wptb-importedTablesShortcodesReplaced");if(e){e.style.display="block";var t=document.querySelector(".wptb-importedShortcodesReplaceCount span");t&&(window.wptbImportShortcodesReplacedCount?t.innerHTML=window.wptbImportShortcodesReplacedCount:t.innerHTML="0")}},!1)}else c(e)}},o.send(a)}}function d(e,t){for(var r=[],o=0;o<e.length;o++)if(1==e[o].nodeType||3==e[o].nodeType){var n=document.createElement("div");if(1==e[o].nodeType)if("img"===e[o].nodeName.toLowerCase()){e[o].style.width="100%",e[o].removeAttribute("class"),n.classList.add("wptb-image-container","wptb-ph-element","wptb-element-image-".concat(t.imageElemIndex)),n.innerHTML="".concat('<div class="wptb-image-wrapper"><a style="display: block;" target="_blank" rel="nofollow">').concat(e[o].outerHTML,"</a>")+"</div>";var a=n.querySelector("img");a&&(a.style.width="100%"),t.imageElemIndex++}else"wptb_shortcode_container_element"===e[o].nodeName.toLowerCase()?(n.classList.add("wptb-shortcode-container","wptb-ph-element","wptb-element-shortcode-".concat(t.customHtmlElemIndex)),n.innerHTML="<wptb_shortcode_container_element><div>".concat(e[o].innerHTML,"</div></wptb_shortcode_container_element>"),t.customHtmlElemIndex++):(n.classList.add("wptb-html-container","wptb-ph-element","wptb-element-custom_html-".concat(t.customHtmlElemIndex)),n.innerHTML='<div class="wptb-custom-html-wrapper" data-wptb-new-element="1">'.concat(e[o].outerHTML,"</div>"),t.customHtmlElemIndex++);else if(3==e[o].nodeType){n.classList.add("wptb-text-container","wptb-ph-element","wptb-element-text-".concat(t.textElemIndex)),n.innerHTML="<div><p>".concat(e[o].nodeValue,"</p></div>");var i=n.querySelector("p");if(i){var l=WPTB_Helper.checkSetGetStyleSizeValue(i,"font-size","font-size");l&&WPTB_Helper.checkingDimensionValue(l,"px")&&(i.style.fontSize=null,n.style.fontSize=l);var s=WPTB_Helper.checkSetGetStyleColorValue(i,"color","color");s&&(WPTB_Helper.isHex(s)?(i.style.color=null,n.style.color=s):WPTB_Helper.rgbToHex(s)&&(i.style.color=null,s=WPTB_Helper.rgbToHex(s),n.style.color=s))}t.textElemIndex++}r.push(n)}return[r,t]}return{importFromFile:function(){if(r.file){var e=/^([a-zA-Z0-9()\s_\\.\-:])+(.csv)$/.test(r.file.name.toLowerCase()),t=/^([a-zA-Z0-9()\s_\\.\-:])+(.xml)$/.test(r.file.name.toLowerCase()),a=(/^([a-zA-Z0-9()\s_\\.\-:])+(.html)$/.test(r.file.name.toLowerCase()),/^([a-zA-Z0-9()\s_\\.\-:])+(.zip)$/.test(r.file.name.toLowerCase())),i=r.file;if(a){var l=new XMLHttpRequest,s="".concat(r.ajaxUrl,"?action=zip_unpacker"),c=new FormData;c.append("file",i,"csv_zip.zip"),c.append("security_code",r.nonce),l.open("POST",s,!0),l.onreadystatechange=function(e){if(4==this.readyState&&200==this.status){var t=l.responseText;if("unsuccess"===JSON.parse(t)[0])return void WPTB_Helper.wptbDocumentEventGenerate("table:imported:error",document);if(t&&(t=JSON.parse(t)),t&&Array.isArray(t)&&"success"==t[0]&&t[1]&&Array.isArray(t[1])){for(var r=[],a=[],i=0;i<t[1].length;i++)switch(t[1][i][0]){case"csv":r.push(t[1][i][1]);break;case"xml":a.push(t[1][i][1])}r.length>0?n(r,0):a.length>0?o(a):WPTB_Helper.wptbDocumentEventGenerate("table:imported:error",document,{message:"invalid file type"})}}},l.send(c)}else if(e||t)if("undefined"!=typeof FileReader){var d,p=new FileReader;p.onload=function(r){d=r.target.result,e?n([d],0):t&&o([d])},p.readAsText(i)}else alert("This browser does not support HTML5.");else alert("Please upload a valid file.")}},importFromPlugin:function(e){var t,o,n;e&&"table-press"===e&&(t=new XMLHttpRequest,o="".concat(r.ajaxUrl,"?action=import_tables"),n={import_plugin_name:"table-press",security_code:r.security_code},n=JSON.stringify(n),t.open("POST",o,!0),t.setRequestHeader("Content-type","application/json; charset=utf-8"),t.onreadystatechange=function(e){if(4==this.readyState&&200==this.status){var r=JSON.parse(t.responseText);if(r&&Array.isArray(r))if("success"==r[0]){if(r[1]&&Array.isArray(r[1])){var o=document.getElementById("wptb-importIframeSection");if(o){var n=document.createElement("iframe");o.innerHTML="",o.appendChild(n),window.wptbImportCommonCountTables=r[1].length,window.wptbImportConvertationShortcodes&&delete window.wptbImportConvertationShortcodes,l(n,r[1])}}}else r[1]&&WPTB_Helper.wptbDocumentEventGenerate("table:imported:error",document,r[1])}},t.send(n))},replaceShortcodesAjax:c}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var s=l;exports.default=s;
|
46 |
},{}],"ACYA":[function(require,module,exports) {
|
47 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=o(require("../components/DragDrop.vue")),t=o(require("../components/ControlItem.vue")),s=o(require("../components/MenuButton.vue")),i=o(require("../functions/importOperations.js")),r=o(require("../mixins/withMessage"));function o(e){return e&&e.__esModule?e:{default:e}}var n={props:["options"],mixins:[r.default],components:{DragDrop:e.default,ControlItem:t.default,MenuButton:s.default},data:function(){return{settings:{responsiveTables:!1,topRowAsHeader:!1,csvDelimiter:","},fieldsData:[],currentFile:null,fetching:!1}},mounted:function(){var e=this;document.addEventListener("table:imported:saved",function(){e.currentFile=null,e.setMessage({type:"ok",message:e.strings.tableImported}),e.setBusy(!1)}),document.addEventListener("table:imported:error",function(){e.currentFile=null,e.setMessage({type:"error",message:e.strings.errorOccured}),e.setBusy(!1)}),this.fieldsData.push({type:"dropdown",id:"csvDelimiter",modelBind:this.settings,label:this.strings.csvDelimiter,options:[{value:",",label:", (comma)"},{value:";",label:"; (semicolon)"},{value:"tab",label:"\\t (tabular)"}]},{type:"checkbox",id:"responsiveTables",modelBind:this.settings,label:this.strings.tableResponsive},{type:"checkbox",id:"topRowAsHeader",modelBind:this.settings,label:this.strings.topRowHeader})},computed:{isImportDisabled:function(){return null===this.currentFile||this.fetching}},methods:{importFromFile:function(){if(null!==this.currentFile){var e={file:this.currentFile,ajaxUrl:this.options.ajaxUrl,nonce:this.options.security_code,delimiter:this.settings.csvDelimiter,tableResponsive:this.settings.responsiveTables,topRowAsHeader:this.settings.topRowAsHeader},t=(0,i.default)(e);this.setBusy(),t.importFromFile()}}}};exports.default=n;
|
48 |
-
(function(){var
|
49 |
-
},{"../components/DragDrop.vue":"vU4o","../components/ControlItem.vue":"yXWm","../components/MenuButton.vue":"ksMR","../functions/importOperations.js":"bsz0","../mixins/withMessage":"wm3G"
|
50 |
"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(n){e(t,n,r[n])})}return t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Plugin=exports.SSR=exports.Fragment=exports.default=void 0;var n=function(e,t,n){Object.defineProperty(e,t,{configurable:!0,get:function(){return n},set:function(e){console.warn("tried to set frozen property ".concat(t," with ").concat(e))}})},r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n})},o={abstract:!0,name:"Fragment",props:{name:{type:String,default:function(){return Math.floor(Date.now()*Math.random()).toString(16)}}},mounted:function(){var e=this.$el,t=e.parentNode,o=document.createComment("fragment#".concat(this.name,"#head")),i=document.createComment("fragment#".concat(this.name,"#tail"));t.insertBefore(o,e),t.insertBefore(i,e),e.appendChild=function(r){t.insertBefore(r,i),n(r,"parentNode",e)},e.insertBefore=function(r,o){t.insertBefore(r,o),n(r,"parentNode",e)},e.removeChild=function(e){t.removeChild(e),r(e,"parentNode")},Array.from(e.childNodes).forEach(function(t){return e.appendChild(t)}),t.removeChild(e),n(e,"parentNode",t),n(e,"nextSibling",i.nextSibling);var a=t.insertBefore;t.insertBefore=function(n,r){a.call(t,n,r!==e?r:o)};var c=t.removeChild;t.removeChild=function(n){if(n===e){for(;o.nextSibling!==i;)e.removeChild(o.nextSibling);t.removeChild(o),t.removeChild(i),r(e,"parentNode"),t.insertBefore=a,t.removeChild=c}else c.call(t,n)}},render:function(e){var n=this,r=this.$slots.default;return r&&r.length&&r.forEach(function(e){return e.data=t({},e.data,{attrs:t({fragment:n.name},(e.data||{}).attrs)})}),e("div",{attrs:{fragment:this.name}},r)}};function i(e,t){}var a=o,c=i,f={install:function(e){e.component("fragment",o)}},l={Fragment:o,Plugin:f,SSR:i};exports.Plugin=f,exports.SSR=c,exports.Fragment=a;var u=l;exports.default=u;
|
51 |
},{}],"pxbx":[function(require,module,exports) {
|
52 |
function e(e,n){var r,t,l=0;function u(){var u,v,a=r,p=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(v=0;v<p;v++)if(a.args[v]!==arguments[v]){a=a.next;continue e}return a!==r&&(a===t&&(t=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=r,a.prev=null,r.prev=a,r=a),a.val}a=a.next}for(u=new Array(p),v=0;v<p;v++)u[v]=arguments[v];return a={args:u,val:e.apply(null,u)},r?(r.prev=a,a.next=r):t=a,l===n.maxSize?(t=t.prev).next=null:l++,r=a,a.val}return n=n||{},u.clear=function(){r=null,t=null,l=0},u}module.exports=e;
|
@@ -75,35 +69,32 @@ var e;!function(){"use strict";var r={not_string:/[^s]/,not_bool:/[^t]/,not_type
|
|
75 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={sprintf:!0,setLocaleData:!0,__:!0,_x:!0,_n:!0,_nx:!0,isRTL:!0};Object.defineProperty(exports,"sprintf",{enumerable:!0,get:function(){return t.sprintf}}),Object.defineProperty(exports,"setLocaleData",{enumerable:!0,get:function(){return n.setLocaleData}}),Object.defineProperty(exports,"__",{enumerable:!0,get:function(){return n.__}}),Object.defineProperty(exports,"_x",{enumerable:!0,get:function(){return n._x}}),Object.defineProperty(exports,"_n",{enumerable:!0,get:function(){return n._n}}),Object.defineProperty(exports,"_nx",{enumerable:!0,get:function(){return n._nx}}),Object.defineProperty(exports,"isRTL",{enumerable:!0,get:function(){return n.isRTL}});var t=require("./sprintf"),r=require("./create-i18n");Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return r[t]}}))});var n=require("./default-i18n");
|
76 |
},{"./sprintf":"jmTT","./create-i18n":"bf97","./default-i18n":"C7H9"}],"FPuA":[function(require,module,exports) {
|
77 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("vue-fragment"),t=require("@wordpress/i18n"),r=s(require("../components/MenuButton.vue")),n=s(require("../functions/importOperations.js")),o=s(require("../mixins/withMessage"));function s(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c={props:["options"],mixins:[o.default],components:{MenuButton:r.default,Fragment:e.Fragment},data:function(){return{supportedPlugins:{"table-press":"TablePress"},importedTables:{},selectedReplaceRows:[]}},watch:{fetching:function(e){this.$emit("fetching",e)}},mounted:function(){var e=this;document.addEventListener("table:imported:saved",function(t){var r=t.detail;e.setMessage({type:"ok",message:e.isDocumentEventPoorlyImplemented(r)?e.strings.operationSuccess:r}),e.setBusy(!1)}),document.addEventListener("table:imported:error",function(t){var r=t.detail;e.setMessage({type:"error",message:e.isDocumentEventPoorlyImplemented(r)?e.strings.errorOccured:r}),e.setBusy(!1)}),document.addEventListener("table:imported:list",function(t){var r=t.detail;e.setBusy(!1),e.importedTables=r}),document.addEventListener("table:shortcode:replace",function(t){var r=t.detail;e.setMessage({type:"ok",message:"".concat(e.strings.replacedShortcodes,": ").concat(!0===r?0:r)}),e.setBusy(!1)})},methods:{isDocumentEventPoorlyImplemented:function(e){return"boolean"==typeof e},handleImportFromPlugin:function(e){var t=(0,n.default)(a({},this.options,{type:e}));this.setBusy(),t.importFromPlugin(e)},selectAllCheckbox:function(e){this.selectedReplaceRows===this.importedTables[e]?this.selectedReplaceRows=[]:this.selectedReplaceRows=this.importedTables[e]},replaceShortcodes:function(){if(0!==this.selectedReplaceRows.length){var e=this.selectedReplaceRows.map(function(e){return{search:e[0],replace:e[1]}}),t=(0,n.default)(this.options);this.setBusy(),t.replaceShortcodesAjax(e,!0)}},importButtonText:function(e){return(0,t.sprintf)((0,t._x)("import from %s","%s is a format variable for a name of WordPress plugin",this.options.textDomain),e)},importedTablesCountInfo:function(e){return(0,t.sprintf)((0,t._nx)("%u table imported","%u tables imported","number of tables imported",this.options.textDomain),this.importedTables[e].length)},isPluginInstalled:function(e){return this.options.installedSupportedPlugins.includes(e)}},computed:{showImportedTables:function(){var e=this,t=Object.keys(this.importedTables).map(function(t){return Object.prototype.hasOwnProperty.call(e.importedTables,t)?t:null});return!!Array.isArray(t)&&t.length>0}}};exports.default=c;
|
78 |
-
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t._l(t.supportedPlugins,function(e,a){return s("menu-button",{key:a,staticClass:"wptb-text-transform-cap",attrs:{disabled:!t.isPluginInstalled(e)||t.isBusy(),title:t.isPluginInstalled(e)?"":t.getTranslation("plugin not installed")},on:{click:function(e){return t.handleImportFromPlugin(a)}}},[t._v(" "+t._s(t.importButtonText(e))+" ")])}),t._v(" "),s("div",{staticStyle:{display:"none"},attrs:{id:"wptb-importIframeSection"}}),t._v(" "),s("transition",{attrs:{name:"wptb-fade",mode:"out-in"}},[t.showImportedTables?s("div",{staticClass:"wptb-flex wptb-flex-align-center wptb-flex-col"},[s("div",{staticClass:"wptb-import-tables-wrapper"},t._l(t.importedTables,function(e,a){return s("div",{key:a,staticClass:"wptb-import-tables-list"},[s("div",{staticClass:"wptb-import-table-count-info"},[t._v(t._s(t.importedTablesCountInfo(a)))]),t._v(" "),s("table",{staticClass:"wptb-import-table"},[s("thead",[s("tr",[s("th",[s("input",{attrs:{type:"checkbox"},on:{click:function(e){return t.selectAllCheckbox(a)}}})]),t._v(" "),s("th",{staticClass:"wptb-text-transform-cap"},[t._v(" "+t._s(t.supportedPlugins[a])+" ")]),t._v(" "),s("th",{staticClass:"wptb-text-transform-cap"},[t._v(" wp table builder ")])])]),t._v(" "),s("tbody",t._l(e,function(e){return s("fragment",{key:e[0]},[s("tr",[s("td",[s("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedReplaceRows,expression:"selectedReplaceRows"}],attrs:{type:"checkbox"},domProps:{value:e,checked:Array.isArray(t.selectedReplaceRows)?t._i(t.selectedReplaceRows,e)>-1:t.selectedReplaceRows},on:{change:function(s){var a=t.selectedReplaceRows,i=s.target,l=!!i.checked;if(Array.isArray(a)){var r=e,
|
79 |
-
},{"vue-fragment":"CDb8","@wordpress/i18n":"e20f","../components/MenuButton.vue":"ksMR","../functions/importOperations.js":"bsz0","../mixins/withMessage":"wm3G"
|
80 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("../components/Sections.vue")),t=r(require("../components/SectionItem.vue")),n=r(require("../components/MenuContent.vue")),u=r(require("./CSVImportMenu.vue")),o=r(require("./PluginsImportMenu.vue"));function r(e){return e&&e.__esModule?e:{default:e}}var c={props:["options"],components:{Sections:e.default,SectionItem:t.default,MenuContent:n.default},data:function(){return{currentSection:"csv"}},methods:{setSection:function(e){this.currentSection!==e&&(this.currentSection=e)}},computed:{currentTemplate:function(){return"csv"===this.currentSection?u.default:o.default}}};exports.default=c;
|
81 |
-
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,
|
82 |
-
},{"../components/Sections.vue":"yPIx","../components/SectionItem.vue":"bosS","../components/MenuContent.vue":"vTRD","./CSVImportMenu.vue":"ACYA","./PluginsImportMenu.vue":"FPuA"
|
83 |
|
84 |
-
(function(){var
|
85 |
-
},{
|
86 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:["message"],data:function(){return{top:0,left:0}},mounted:function(){this.calculatePopupPosition()},methods:{toPx:function(t){return"".concat(t,"px")},calculatePopupPosition:function(){var t=this.$refs.wrapper.getBoundingClientRect(),e=this.$refs.popup.getBoundingClientRect(),o=this.$refs.arrow.getBoundingClientRect();this.left=this.toPx(t.left-e.width/2+t.width/2),this.top=this.toPx(t.top-(e.height+o.height/2))}}};exports.default=t;
|
87 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,
|
88 |
-
},{
|
89 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:["label","index"],data:function(){return{currentDirection:1}},methods:{sort:function(){this.currentDirection*=-1,this.$emit("sort",this.index,this.currentDirection)}}};exports.default=t;
|
90 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("td",{on:{click:function(t){return t.preventDefault(),e.sort(t)}}},[e._v(" "+e._s(e.label)+"\n")])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0})
|
91 |
-
},{
|
92 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("./ColumnSort"));function e(t){return t&&t.__esModule?t:{default:t}}var o={props:{rowLabels:Array,rowData:Array,modelBind:Object,sortType:Object},components:{ColumnSort:t.default},data:function(){return{innerRowData:[],sortOptions:{index:0,direction:1}}},watch:{rowData:function(t){this.innerRowData=t,this.sortOptions&&this.sort(this.sortOptions.index,this.sortOptions.direction)}},methods:{sort:function(t,e){this.sortOptions.index=t,this.sortOptions.direction=e;var o,r={dateSort:function(o,r){var a=0,s=new Date(o.fieldDatas[t].toLowerCase()).getTime(),i=new Date(r.fieldDatas[t].toLowerCase()).getTime();return s<i&&(a=1),s>i&&(a=-1),a*e},defaultSort:function(o,r){var a=0,s=o.fieldDatas[t].toLowerCase(),i=r.fieldDatas[t].toLowerCase();return s<i&&(a=1),s>i&&(a=-1),a*e}},a=this.sortType[t];o=a&&r["".concat(a,"Sort")]?r["".concat(a,"Sort")]:r.defaultSort,this.innerRowData.sort(o)}}};exports.default=o;
|
93 |
-
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,
|
94 |
-
},{"./ColumnSort":"hl0g"
|
95 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("../components/MenuButton")),t=i(require("../components/ControlItem")),r=i(require("../components/EmptyCover")),n=i(require("../components/PopUp")),o=i(require("../components/ListTable")),s=i(require("../mixins/withMessage"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u={props:["options","pluginInfo"],mixins:[s.default],components:{ListTable:o.default,PopUp:n.default,MenuButton:e.default,ControlItem:t.default,EmptyCover:r.default},data:function(){return{userTables:[],selectedTables:{},exportType:"CSV",exportTypeControlOptions:{id:"exportType",type:"dropdown",label:"export type",options:[{label:"csv",value:"CSV"},{label:"xml",value:"XML"}]},filename:""}},mounted:function(){this.getUserTables()},computed:{exportTypeDescription:function(){var e={csvDescription:"<b>CSV:</b> ".concat(this.getTranslation("only text content of your tables will be exported, ideal for usage within other apps/plugins.")),xmlDescription:"<b>XML:</b> ".concat(this.getTranslation("an exact copy of your tables will be exported, ideal for backing up and sharing your tables with your other WordPress sites that uses WP Table Builder."))};return this.getTranslation(e["".concat(this.exportType.toLowerCase(),"Description")])},remainingTables:function(){var e=this;return this.userTables.filter(function(t){return!e.selectedTables[t.ID]})},parsedSelectedTables:function(){var e=this;return this.userTables.filter(function(t){return e.selectedTables[t.ID]})},exportDisabled:function(){return this.isBusy()||this.isSelectedEmpty()}},methods:{selectAll:function(){var e={};this.userTables.map(function(t){e[t.ID]=!0}),this.selectedTables=l({},this.selectedTables,{},e)},deselectAll:function(){this.selectedTables={}},isSelectedEmpty:function(){var e=this;return!Object.keys(this.selectedTables).filter(function(t){return!!Object.prototype.hasOwnProperty.call(e.selectedTables,t)&&e.selectedTables[t]}).length>0},getSelectedIds:function(){var e=this,t=[];return Object.keys(this.selectedTables).map(function(r){Object.prototype.hasOwnProperty.call(e.selectedTables,r)&&e.selectedTables[r]&&t.push(r)}),t},fieldLabel:function(e){return""===e.post_title?"Table #".concat(e.ID):e.post_title},getUserTables:function(){var e=this,t=this.options,r=t.ajaxUrl,n=t.fetchNonce,o=t.fetchAjaxAction,s=new FormData;s.append("nonce",n),s.append("action",o),this.setBusy(),fetch(r,{method:"POST",body:s}).then(function(t){if(t.ok)return t.json();throw new Error(e.getTranslation("an error occurred, try again later"))}).then(function(t){if(t.error)throw new Error(t.error);var r=[];e.userTables=t.data.userTables.map(function(t){var n=new Intl.DateTimeFormat("default",{year:"numeric",month:"long",day:"numeric"}).format(new Date(t.post_date)),o={ID:t.ID,fieldDatas:[e.fieldLabel(t),n,t.ID]};r.push(o)}),e.userTables=r}).catch(function(t){e.setMessage({type:"error",message:t})}).finally(function(){e.setBusy(!1)})},parseFilename:function(e){var t=new RegExp(/filename="(.+\..+)"/,"g").exec(e);if(null===t)throw new Error(this.getTranslation("invalid file name header"));return t[1]},exportTables:function(){var e=this,t=this.options,r=t.ajaxUrl,n=t.exportAjaxAction,o=t.exportNonce,s=new FormData;s.append("nonce",o),s.append("action",n),s.append("ids",JSON.stringify(this.getSelectedIds())),s.append("export_type",this.exportType),this.setBusy(),fetch(r,{method:"POST",body:s}).then(function(t){if(t.ok)return"application/octet-stream"===t.headers.get("content-type")?(e.filename=e.parseFilename(t.headers.get("content-disposition")),t.blob()):t.json();throw new Error(e.getTranslation("an error occurred, try again later"))}).then(function(t){if(t.error)throw new Error(t.error);var r=window.URL.createObjectURL(t);e.$refs.filesave.href=r,e.$refs.filesave.click(),window.URL.revokeObjectURL(r),e.resetSelections()}).catch(function(t){e.setMessage({type:"error",message:t})}).finally(function(){e.setBusy(!1)})},resetSelections:function(){this.selectedTables=[]}}};exports.default=u;
|
96 |
-
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,
|
97 |
-
},{"../components/MenuButton":"ksMR","../components/ControlItem":"yXWm","../components/EmptyCover":"BOOO","../components/PopUp":"UuSu","../components/ListTable":"AF9R","../mixins/withMessage":"wm3G"
|
98 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=c(require("../components/MenuHeader")),t=c(require("../components/Sections")),n=c(require("../components/SectionItem")),r=c(require("../components/MenuFooter")),o=c(require("../mixins/withMessage")),u=c(require("./ImportApp")),p=c(require("./ExportApp")),i=c(require("../components/MenuContent"));function c(e){return e&&e.__esModule?e:{default:e}}var s={props:["pluginInfo","options"],mixins:[o.default],components:{ExportApp:p.default,MenuContent:i.default,ImportApp:u.default,MenuHeader:e.default,SectionItem:n.default,Sections:t.default,MenuFooter:r.default},data:function(){return{currentSection:"Import"}},computed:{currentTemplate:function(){return"".concat(this.currentSection,"App")}}};exports.default=s;
|
99 |
-
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,
|
100 |
-
},{"../components/MenuHeader":"vi91","../components/Sections":"yPIx","../components/SectionItem":"bosS","../components/MenuFooter":"nwtb","../mixins/withMessage":"wm3G","./ImportApp":"qRIs","./ExportApp":"UipM","../components/MenuContent":"vTRD"
|
101 |
"use strict";function t(t,e){t.mixin({data:function(){return{strings:e.strings}}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={install:t};exports.default=e;
|
102 |
},{}],"XomE":[function(require,module,exports) {
|
103 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("@wordpress/i18n");function t(t,r){var i=r.textDomain;t.mixin({methods:{getTranslation:function(t){return(0,e.__)(t,i)}}})}var r={install:t};exports.default=r;
|
104 |
},{"@wordpress/i18n":"e20f"}],"NIwa":[function(require,module,exports) {
|
105 |
"use strict";var e=u(require("vue")),t=u(require("portal-vue")),r=u(require("./containers/ImportExportApp")),n=u(require("./plugins/strings")),o=u(require("./plugins/translations"));function u(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=p({},wptbImportMenuData);wptbImportMenuData=void 0,e.default.config.productionTip=!1,e.default.use(n.default,{strings:s.strings}),e.default.use(o.default,{textDomain:s.options.textDomain}),e.default.use(t.default),new e.default({components:{ImportExportApp:r.default},data:{pluginInfo:s.pluginInfo,options:s.options}}).$mount("#wptb-import-menu");
|
106 |
-
},{"vue":"HYXJ","portal-vue":"Lue2","./containers/ImportExportApp":"l9Oj","./plugins/strings":"yEip","./plugins/translations":"XomE"}],"
|
107 |
-
var global = arguments[3];
|
108 |
-
var e,t,o=arguments[3],a="__parcel__error__overlay__",r=module.bundle.Module;function n(e){r.call(this,e),this.hot={data:module.bundle.hotData,_acceptCallbacks:[],_disposeCallbacks:[],accept:function(e){this._acceptCallbacks.push(e||function(){})},dispose:function(e){this._disposeCallbacks.push(e)}},module.bundle.hotData=null}module.bundle.Module=n;var c=module.bundle.parent;if(!(c&&c.isParcelRequire||"undefined"==typeof WebSocket)){var i=location.hostname,l="https:"===location.protocol?"wss":"ws",s=new WebSocket(l+"://"+i+":3488/");s.onmessage=function(a){e={},t=[];var r=JSON.parse(a.data);if("update"===r.type){var n=!1;r.assets.forEach(function(e){e.isNew||h(o.parcelRequire,e.id)&&(n=!0)}),(n=n||r.assets.every(function(e){return"css"===e.type&&e.generated.js}))?(console.clear(),r.assets.forEach(function(e){f(o.parcelRequire,e)}),t.forEach(function(e){m(e[0],e[1])})):location.reload&&location.reload()}if("reload"===r.type&&(s.close(),s.onclose=function(){location.reload()}),"error-resolved"===r.type&&(console.log("[parcel] ✨ Error resolved"),p()),"error"===r.type){console.error("[parcel] 🚨 "+r.error.message+"\n"+r.error.stack),p();var c=d(r);document.body.appendChild(c)}}}function p(){var e=document.getElementById(a);e&&e.remove()}function d(e){var t=document.createElement("div");t.id=a;var o=document.createElement("div"),r=document.createElement("pre");return o.innerText=e.error.message,r.innerText=e.error.stack,t.innerHTML='<div style="background: black; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; opacity: 0.85; font-family: Menlo, Consolas, monospace; z-index: 9999;"><span style="background: red; padding: 2px 4px; border-radius: 2px;">ERROR</span><span style="top: 2px; margin-left: 5px; position: relative;">🚨</span><div style="font-size: 18px; font-weight: bold; margin-top: 20px;">'+o.innerHTML+"</div><pre>"+r.innerHTML+"</pre></div>",t}function u(e,t){var o=e.modules;if(!o)return[];var a,r,n,c=[];for(a in o)for(r in o[a][1])((n=o[a][1][r])===t||Array.isArray(n)&&n[n.length-1]===t)&&c.push(a);return e.parent&&(c=c.concat(u(e.parent,t))),c}function f(e,t){var o=e.modules;if(o)if(o[t.id]||!e.parent){var a=new Function("require","module","exports",t.generated.js);t.isNew=!o[t.id],o[t.id]=[a,t.deps]}else e.parent&&f(e.parent,t)}function h(a,r){var n=a.modules;if(n){if(!n[r]&&a.parent)return h(a.parent,r);if(!e[r]){e[r]=!0;var c=a.cache[r];return t.push([a,r]),!!(c&&c.hot&&c.hot._acceptCallbacks.length)||u(o.parcelRequire,r).some(function(e){return h(o.parcelRequire,e)})}}}function m(e,t){var o=e.cache[t];if(e.hotData={},o&&(o.hot.data=e.hotData),o&&o.hot&&o.hot._disposeCallbacks.length&&o.hot._disposeCallbacks.forEach(function(t){t(e.hotData)}),delete e.cache[t],e(t),(o=e.cache[t])&&o.hot&&o.hot._acceptCallbacks.length)return o.hot._acceptCallbacks.forEach(function(e){e()}),!0}
|
109 |
-
},{}]},{},["PMBU","NIwa"], null)
|
3 |
var e=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=Object.freeze({});function n(e){return null==e}function r(e){return null!=e}function i(e){return!0===e}function o(e){return!1===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}var c=Object.prototype.toString;function u(e){return c.call(e).slice(8,-1)}function l(e){return"[object Object]"===c.call(e)}function f(e){return"[object RegExp]"===c.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return r(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var y=m("slot,component",!0),g=m("key,ref,slot,slot-scope,is");function _(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function $(e,t){return b.call(e,t)}function w(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var x=/-(\w)/g,C=w(function(e){return e.replace(x,function(e,t){return t?t.toUpperCase():""})}),A=w(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),k=/\B([A-Z])/g,O=w(function(e){return e.replace(k,"-$1").toLowerCase()});function S(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function T(e,t){return e.bind(t)}var N=Function.prototype.bind?T:S;function j(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function E(e,t){for(var n in t)e[n]=t[n];return e}function M(e){for(var t={},n=0;n<e.length;n++)e[n]&&E(t,e[n]);return t}function D(e,t,n){}var L=function(e,t,n){return!1},I=function(e){return e};function F(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}function P(e,t){if(e===t)return!0;var n=s(e),r=s(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every(function(e,n){return P(e,t[n])});if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),c=Object.keys(t);return a.length===c.length&&a.every(function(n){return P(e[n],t[n])})}catch(u){return!1}}function R(e,t){for(var n=0;n<e.length;n++)if(P(e[n],t))return n;return-1}function H(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var B="data-server-rendered",U=["component","directive","filter"],z=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],V={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:L,isReservedAttr:L,isUnknownElement:L,getTagNamespace:D,parsePlatformTagName:I,mustUseProp:L,async:!0,_lifecycleHooks:z},J=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function K(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function q(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var W=new RegExp("[^"+J.source+".$_\\d]");function Z(e){if(!W.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var G,X="__proto__"in{},Y="undefined"!=typeof window,Q="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,ee=Q&&WXEnvironment.platform.toLowerCase(),te=Y&&window.navigator.userAgent.toLowerCase(),ne=te&&/msie|trident/.test(te),re=te&&te.indexOf("msie 9.0")>0,ie=te&&te.indexOf("edge/")>0,oe=te&&te.indexOf("android")>0||"android"===ee,ae=te&&/iphone|ipad|ipod|ios/.test(te)||"ios"===ee,se=te&&/chrome\/\d+/.test(te)&&!ie,ce=te&&/phantomjs/.test(te),ue=te&&te.match(/firefox\/(\d+)/),le={}.watch,fe=!1;if(Y)try{var pe={};Object.defineProperty(pe,"passive",{get:function(){fe=!0}}),window.addEventListener("test-passive",null,pe)}catch(Xl){}var de=function(){return void 0===G&&(G=!Y&&!Q&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),G},ve=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function he(e){return"function"==typeof e&&/native code/.test(e.toString())}var me,ye="undefined"!=typeof Symbol&&he(Symbol)&&"undefined"!=typeof Reflect&&he(Reflect.ownKeys);me="undefined"!=typeof Set&&he(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ge,_e,be,$e,we=D,xe=D,Ce=D,Ae=D,ke=0,Oe=function(){this.id=ke++,this.subs=[]};Oe.prototype.addSub=function(e){this.subs.push(e)},Oe.prototype.removeSub=function(e){_(this.subs,e)},Oe.prototype.depend=function(){Oe.target&&Oe.target.addDep(this)},Oe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},Oe.target=null;var Se=[];function Te(e){Se.push(e),Oe.target=e}function Ne(){Se.pop(),Oe.target=Se[Se.length-1]}var je=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Ee={child:{configurable:!0}};Ee.child.get=function(){return this.componentInstance},Object.defineProperties(je.prototype,Ee);var Me=function(e){void 0===e&&(e="");var t=new je;return t.text=e,t.isComment=!0,t};function De(e){return new je(void 0,void 0,void 0,String(e))}function Le(e){var t=new je(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Ie=Array.prototype,Fe=Object.create(Ie),Pe=["push","pop","shift","unshift","splice","sort","reverse"];Pe.forEach(function(e){var t=Ie[e];q(Fe,e,function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o})});var Re=Object.getOwnPropertyNames(Fe),He=!0;function Be(e){He=e}var Ue=function(e){this.value=e,this.dep=new Oe,this.vmCount=0,q(e,"__ob__",this),Array.isArray(e)?(X?ze(e,Fe):Ve(e,Fe,Re),this.observeArray(e)):this.walk(e)};function ze(e,t){e.__proto__=t}function Ve(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];q(e,o,t[o])}}function Je(e,t){var n;if(s(e)&&!(e instanceof je))return $(e,"__ob__")&&e.__ob__ instanceof Ue?n=e.__ob__:He&&!de()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Ue(e)),t&&n&&n.vmCount++,n}function Ke(e,t,n,r,i){var o=new Oe,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var u=!i&&Je(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return Oe.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(t)&&Ze(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!=t&&r!=r||s&&!c||(c?c.call(e,t):n=t,u=!i&&Je(t),o.notify())}})}}function qe(e,t,n){if(Array.isArray(e)&&p(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Ke(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function We(e,t){if(Array.isArray(e)&&p(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||$(e,t)&&(delete e[t],n&&n.dep.notify())}}function Ze(e){for(var t=void 0,n=0,r=e.length;n<r;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Ze(t)}Ue.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Ke(e,t[n])},Ue.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Je(e[t])};var Ge=V.optionMergeStrategies;function Xe(e,t){if(!t)return e;for(var n,r,i,o=ye?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=e[n],i=t[n],$(e,n)?r!==i&&l(r)&&l(i)&&Xe(r,i):qe(e,n,i));return e}function Ye(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?Xe(r,i):i}:t?e?function(){return Xe("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Qe(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?et(n):n}function et(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function tt(e,t,n,r){var i=Object.create(e||null);return t?E(i,t):i}Ge.data=function(e,t,n){return n?Ye(e,t,n):t&&"function"!=typeof t?e:Ye(e,t)},z.forEach(function(e){Ge[e]=Qe}),U.forEach(function(e){Ge[e+"s"]=tt}),Ge.watch=function(e,t,n,r){if(e===le&&(e=void 0),t===le&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in E(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Ge.props=Ge.methods=Ge.inject=Ge.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return E(i,e),t&&E(i,t),i},Ge.provide=Ye;var nt=function(e,t){return void 0===t?e:t};function rt(e){for(var t in e.components)it(t)}function it(e){new RegExp("^[a-zA-Z][\\-\\.0-9_"+J.source+"]*$").test(e)||we('Invalid component name: "'+e+'". Component names should conform to valid custom element name in html5 specification.'),(y(e)||V.isReservedTag(e))&&we("Do not use built-in or reserved HTML elements as component id: "+e)}function ot(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[C(i)]={type:null});else if(l(n))for(var a in n)i=n[a],o[C(a)]=l(i)?i:{type:i};else 0;e.props=o}}function at(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(l(n))for(var o in n){var a=n[o];r[o]=l(a)?E({from:o},a):{from:a}}else 0}}function st(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}function ct(e,t,n){l(t)||we('Invalid value for option "'+e+'": expected an Object, but got '+u(t)+".",n)}function ut(e,t,n){if("function"==typeof t&&(t=t.options),ot(t,n),at(t,n),st(t),!t._base&&(t.extends&&(e=ut(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=ut(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)$(e,o)||s(o);function s(r){var i=Ge[r]||nt;a[r]=i(e[r],t[r],n,r)}return a}function lt(e,t,n,r){if("string"==typeof n){var i=e[t];if($(i,n))return i[n];var o=C(n);if($(i,o))return i[o];var a=A(o);if($(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function ft(e,t,n,r){var i=t[e],o=!$(n,e),a=n[e],s=gt(Boolean,i.type);if(s>-1)if(o&&!$(i,"default"))a=!1;else if(""===a||a===O(e)){var c=gt(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=pt(r,i,e);var u=He;Be(!0),Je(a),Be(u)}return a}function pt(e,t,n){if($(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"==typeof r&&"Function"!==mt(t.type)?r.call(e):r}}function dt(e,t,n,r,i){if(e.required&&i)we('Missing required prop: "'+t+'"',r);else if(null!=n||e.required){var o=e.type,a=!o||!0===o,s=[];if(o){Array.isArray(o)||(o=[o]);for(var c=0;c<o.length&&!a;c++){var u=ht(n,o[c]);s.push(u.expectedType||""),a=u.valid}}if(a){var l=e.validator;l&&(l(n)||we('Invalid prop: custom validator check failed for prop "'+t+'".',r))}else we(_t(t,n,s),r)}}var vt=/^(String|Number|Boolean|Function|Symbol)$/;function ht(e,t){var n,r=mt(t);if(vt.test(r)){var i=typeof e;(n=i===r.toLowerCase())||"object"!==i||(n=e instanceof t)}else n="Object"===r?l(e):"Array"===r?Array.isArray(e):e instanceof t;return{valid:n,expectedType:r}}function mt(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function yt(e,t){return mt(e)===mt(t)}function gt(e,t){if(!Array.isArray(t))return yt(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(yt(t[n],e))return n;return-1}function _t(e,t,n){var r='Invalid prop: type check failed for prop "'+e+'". Expected '+n.map(A).join(", "),i=n[0],o=u(t),a=bt(t,i),s=bt(t,o);return 1===n.length&&$t(i)&&!wt(i,o)&&(r+=" with value "+a),r+=", got "+o+" ",$t(o)&&(r+="with value "+s+"."),r}function bt(e,t){return"String"===t?'"'+e+'"':"Number"===t?""+Number(e):""+e}function $t(e){return["string","number","boolean"].some(function(t){return e.toLowerCase()===t})}function wt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.some(function(e){return"boolean"===e.toLowerCase()})}function xt(e,t,n){Te();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(Xl){At(Xl,r,"errorCaptured hook")}}At(e,t,n)}finally{Ne()}}function Ct(e,t,n,r,i){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&d(o)&&!o._handled&&(o.catch(function(e){return xt(e,r,i+" (Promise/async)")}),o._handled=!0)}catch(Xl){xt(Xl,r,i)}return o}function At(e,t,n){if(V.errorHandler)try{return V.errorHandler.call(null,e,t,n)}catch(Xl){Xl!==e&&kt(Xl,null,"config.errorHandler")}kt(e,t,n)}function kt(e,t,n){if(!Y&&!Q||"undefined"==typeof console)throw e;console.error(e)}var Ot,St,Tt,Nt,jt,Et,Mt,Dt,Lt,It,Ft,Pt,Rt=!1,Ht=[],Bt=!1;function Ut(){Bt=!1;var e=Ht.slice(0);Ht.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&he(Promise)){var zt=Promise.resolve();Ot=function(){zt.then(Ut),ae&&setTimeout(D)},Rt=!0}else if(ne||"undefined"==typeof MutationObserver||!he(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ot="undefined"!=typeof setImmediate&&he(setImmediate)?function(){setImmediate(Ut)}:function(){setTimeout(Ut,0)};else{var Vt=1,Jt=new MutationObserver(Ut),Kt=document.createTextNode(String(Vt));Jt.observe(Kt,{characterData:!0}),Ot=function(){Vt=(Vt+1)%2,Kt.data=String(Vt)},Rt=!0}function qt(e,t){var n;if(Ht.push(function(){if(e)try{e.call(t)}catch(Xl){xt(Xl,t,"nextTick")}else n&&n(t)}),Bt||(Bt=!0,Ot()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var Wt=new me;function Zt(e){Gt(e,Wt),Wt.clear()}function Gt(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!s(e)||Object.isFrozen(e)||e instanceof je)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i)for(n=e.length;n--;)Gt(e[n],t);else for(n=(r=Object.keys(e)).length;n--;)Gt(e[r[n]],t)}}var Xt=w(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}});function Yt(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return Ct(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)Ct(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function Qt(e,t,r,o,a,s){var c,u,l,f;for(c in e)u=e[c],l=t[c],f=Xt(c),n(u)||(n(l)?(n(u.fns)&&(u=e[c]=Yt(u,s)),i(f.once)&&(u=e[c]=a(f.name,u,f.capture)),r(f.name,u,f.capture,f.passive,f.params)):u!==l&&(l.fns=u,e[c]=l));for(c in t)n(e[c])&&o((f=Xt(c)).name,t[c],f.capture)}function en(e,t,o){var a;e instanceof je&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function c(){o.apply(this,arguments),_(a.fns,c)}n(s)?a=Yt([c]):r(s.fns)&&i(s.merged)?(a=s).fns.push(c):a=Yt([s,c]),a.merged=!0,e[t]=a}function tn(e,t,i){var o=t.options.props;if(!n(o)){var a={},s=e.attrs,c=e.props;if(r(s)||r(c))for(var u in o){var l=O(u);nn(a,c,u,l,!0)||nn(a,s,u,l,!1)}return a}}function nn(e,t,n,i,o){if(r(t)){if($(t,n))return e[n]=t[n],o||delete t[n],!0;if($(t,i))return e[n]=t[i],o||delete t[i],!0}return!1}function rn(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function on(e){return a(e)?[De(e)]:Array.isArray(e)?sn(e):void 0}function an(e){return r(e)&&r(e.text)&&o(e.isComment)}function sn(e,t){var o,s,c,u,l=[];for(o=0;o<e.length;o++)n(s=e[o])||"boolean"==typeof s||(u=l[c=l.length-1],Array.isArray(s)?s.length>0&&(an((s=sn(s,(t||"")+"_"+o))[0])&&an(u)&&(l[c]=De(u.text+s[0].text),s.shift()),l.push.apply(l,s)):a(s)?an(u)?l[c]=De(u.text+s):""!==s&&l.push(De(s)):an(s)&&an(u)?l[c]=De(u.text+s.text):(i(e._isVList)&&r(s.tag)&&n(s.key)&&r(t)&&(s.key="__vlist"+t+"_"+o+"__"),l.push(s)));return l}function cn(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}function un(e){var t=ln(e.$options.inject,e);t&&(Be(!1),Object.keys(t).forEach(function(n){Ke(e,n,t[n])}),Be(!0))}function ln(e,t){if(e){for(var n=Object.create(null),r=ye?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=e[o].from,s=t;s;){if(s._provided&&$(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[o]){var c=e[o].default;n[o]="function"==typeof c?c.call(t):c}else 0}}return n}}function fn(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(pn)&&delete n[u];return n}function pn(e){return e.isComment&&!e.asyncFactory||" "===e.text}function dn(e,n,r){var i,o=Object.keys(n).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==t&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=vn(n,c,e[c]))}else i={};for(var u in n)u in i||(i[u]=hn(n,u));return e&&Object.isExtensible(e)&&(e._normalized=i),q(i,"$stable",a),q(i,"$key",s),q(i,"$hasNormal",o),i}function vn(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:on(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function hn(e,t){return function(){return e[t]}}function mn(e,t){var n,i,o,a,c;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),i=0,o=e.length;i<o;i++)n[i]=t(e[i],i);else if("number"==typeof e)for(n=new Array(e),i=0;i<e;i++)n[i]=t(i+1,i);else if(s(e))if(ye&&e[Symbol.iterator]){n=[];for(var u=e[Symbol.iterator](),l=u.next();!l.done;)n.push(t(l.value,n.length)),l=u.next()}else for(a=Object.keys(e),n=new Array(a.length),i=0,o=a.length;i<o;i++)c=a[i],n[i]=t(e[c],c,i);return r(n)||(n=[]),n._isVList=!0,n}function yn(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=E(E({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function gn(e){return lt(this.$options,"filters",e,!0)||I}function _n(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function bn(e,t,n,r,i){var o=V.keyCodes[t]||n;return i&&r&&!V.keyCodes[t]?_n(i,r):o?_n(o,e):r?O(r)!==t:void 0}function $n(e,t,n,r,i){if(n)if(s(n)){var o;Array.isArray(n)&&(n=M(n));var a=function(a){if("class"===a||"style"===a||g(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||V.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=C(a),u=O(a);c in o||u in o||(o[a]=n[a],i&&((e.on||(e.on={}))["update:"+a]=function(e){n[a]=e}))};for(var c in n)a(c)}else;return e}function wn(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t?r:(Cn(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r)}function xn(e,t,n){return Cn(e,"__once__"+t+(n?"_"+n:""),!0),e}function Cn(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&An(e[r],t+"_"+r,n);else An(e,t,n)}function An(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function kn(e,t){if(t)if(l(t)){var n=e.on=e.on?E({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function On(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?On(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Sn(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Tn(e,t){return"string"==typeof e?t+e:e}function Nn(e){e._o=xn,e._n=h,e._s=v,e._l=mn,e._t=yn,e._q=P,e._i=R,e._m=wn,e._f=gn,e._k=bn,e._b=$n,e._v=De,e._e=Me,e._u=On,e._g=kn,e._d=Sn,e._p=Tn}function jn(e,n,r,o,a){var s,c=this,u=a.options;$(o,"_uid")?(s=Object.create(o))._original=o:(s=o,o=o._original);var l=i(u._compiled),f=!l;this.data=e,this.props=n,this.children=r,this.parent=o,this.listeners=e.on||t,this.injections=ln(u.inject,o),this.slots=function(){return c.$slots||dn(e.scopedSlots,c.$slots=fn(r,o)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return dn(e.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=dn(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var i=Vn(s,e,t,n,r,f);return i&&!Array.isArray(i)&&(i.fnScopeId=u._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return Vn(s,e,t,n,r,f)}}function En(e,n,i,o,a){var s=e.options,c={},u=s.props;if(r(u))for(var l in u)c[l]=ft(l,u,n||t);else r(i.attrs)&&Dn(c,i.attrs),r(i.props)&&Dn(c,i.props);var f=new jn(i,c,a,o,e),p=s.render.call(null,f._c,f);if(p instanceof je)return Mn(p,i,f.parent,s,f);if(Array.isArray(p)){for(var d=on(p)||[],v=new Array(d.length),h=0;h<d.length;h++)v[h]=Mn(d[h],i,f.parent,s,f);return v}}function Mn(e,t,n,r,i){var o=Le(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function Dn(e,t){for(var n in t)e[C(n)]=t[n]}Nn(jn.prototype);var Ln={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Ln.prepatch(n,n)}else{(e.componentInstance=Pn(e,ur)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;hr(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,_r(n,"mounted")),e.data.keepAlive&&(t._isMounted?Dr(n):yr(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?gr(t,!0):t.$destroy())}},In=Object.keys(Ln);function Fn(e,t,o,a,c){if(!n(e)){var u=o.$options._base;if(s(e)&&(e=u.extend(e)),"function"==typeof e){var l;if(n(e.cid)&&void 0===(e=er(l=e,u)))return Qn(l,t,o,a,c);t=t||{},ri(e),r(t.model)&&Bn(e.options,t);var f=tn(t,e,c);if(i(e.options.functional))return En(e,f,t,o,a);var p=t.on;if(t.on=t.nativeOn,i(e.options.abstract)){var d=t.slot;t={},d&&(t.slot=d)}Rn(t);var v=e.options.name||c;return new je("vue-component-"+e.cid+(v?"-"+v:""),t,void 0,void 0,void 0,o,{Ctor:e,propsData:f,listeners:p,tag:c,children:a},l)}}}function Pn(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;return r(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new e.componentOptions.Ctor(n)}function Rn(e){for(var t=e.hook||(e.hook={}),n=0;n<In.length;n++){var r=In[n],i=t[r],o=Ln[r];i===o||i&&i._merged||(t[r]=i?Hn(o,i):o)}}function Hn(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Bn(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),a=o[i],s=t.model.callback;r(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[i]=[s].concat(a)):o[i]=s}var Un=1,zn=2;function Vn(e,t,n,r,o,s){return(Array.isArray(n)||a(n))&&(o=r,r=n,n=void 0),i(s)&&(o=zn),Jn(e,t,n,r,o)}function Jn(e,t,n,i,o){if(r(n)&&r(n.__ob__))return Me();if(r(n)&&r(n.is)&&(t=n.is),!t)return Me();var a,s,c;(Array.isArray(i)&&"function"==typeof i[0]&&((n=n||{}).scopedSlots={default:i[0]},i.length=0),o===zn?i=on(i):o===Un&&(i=rn(i)),"string"==typeof t)?(s=e.$vnode&&e.$vnode.ns||V.getTagNamespace(t),a=V.isReservedTag(t)?new je(V.parsePlatformTagName(t),n,i,void 0,void 0,e):n&&n.pre||!r(c=lt(e.$options,"components",t))?new je(t,n,i,void 0,void 0,e):Fn(c,n,e,i,t)):a=Fn(t,n,e,i);return Array.isArray(a)?a:r(a)?(r(s)&&Kn(a,s),r(n)&&qn(n),a):Me()}function Kn(e,t,o){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,o=!0),r(e.children))for(var a=0,s=e.children.length;a<s;a++){var c=e.children[a];r(c.tag)&&(n(c.ns)||i(o)&&"svg"!==c.tag)&&Kn(c,t,o)}}function qn(e){s(e.style)&&Zt(e.style),s(e.class)&&Zt(e.class)}function Wn(e){e._vnode=null,e._staticTrees=null;var n=e.$options,r=e.$vnode=n._parentVnode,i=r&&r.context;e.$slots=fn(n._renderChildren,i),e.$scopedSlots=t,e._c=function(t,n,r,i){return Vn(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Vn(e,t,n,r,i,!0)};var o=r&&r.data;Ke(e,"$attrs",o&&o.attrs||t,null,!0),Ke(e,"$listeners",n._parentListeners||t,null,!0)}var Zn,Gn=null;function Xn(e){Nn(e.prototype),e.prototype.$nextTick=function(e){return qt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=dn(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Gn=t,e=r.call(t._renderProxy,t.$createElement)}catch(Xl){xt(Xl,t,"render"),e=t._vnode}finally{Gn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof je||(e=Me()),e.parent=i,e}}function Yn(e,t){return(e.__esModule||ye&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function Qn(e,t,n,r,i){var o=Me();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function er(e,t){if(i(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;var o=Gn;if(o&&r(e.owners)&&-1===e.owners.indexOf(o)&&e.owners.push(o),i(e.loading)&&r(e.loadingComp))return e.loadingComp;if(o&&!r(e.owners)){var a=e.owners=[o],c=!0,u=null,l=null;o.$on("hook:destroyed",function(){return _(a,o)});var f=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==l&&(clearTimeout(l),l=null))},p=H(function(n){e.resolved=Yn(n,t),c?a.length=0:f(!0)}),v=H(function(t){r(e.errorComp)&&(e.error=!0,f(!0))}),h=e(p,v);return s(h)&&(d(h)?n(e.resolved)&&h.then(p,v):d(h.component)&&(h.component.then(p,v),r(h.error)&&(e.errorComp=Yn(h.error,t)),r(h.loading)&&(e.loadingComp=Yn(h.loading,t),0===h.delay?e.loading=!0:u=setTimeout(function(){u=null,n(e.resolved)&&n(e.error)&&(e.loading=!0,f(!1))},h.delay||200)),r(h.timeout)&&(l=setTimeout(function(){l=null,n(e.resolved)&&v(null)},h.timeout)))),c=!1,e.loading?e.loadingComp:e.resolved}}function tr(e){return e.isComment&&e.asyncFactory}function nr(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&(r(n.componentOptions)||tr(n)))return n}}function rr(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&sr(e,t)}function ir(e,t){Zn.$on(e,t)}function or(e,t){Zn.$off(e,t)}function ar(e,t){var n=Zn;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function sr(e,t,n){Zn=e,Qt(t,n||{},ir,or,ar,e),Zn=void 0}function cr(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;for(var s=a.length;s--;)if((o=a[s])===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?j(n):n;for(var r=j(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;o<a;o++)Ct(n[o],t,r,t,i)}return t}}var ur=null,lr=!1;function fr(e){var t=ur;return ur=e,function(){ur=t}}function pr(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function dr(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=fr(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){_r(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||_(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),_r(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function vr(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=Me),_r(e,"beforeMount"),r=function(){e._update(e._render(),n)},new Pr(e,r,D,{before:function(){e._isMounted&&!e._isDestroyed&&_r(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,_r(e,"mounted")),e}function hr(e,n,r,i,o){var a=i.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==t&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),u=!!(o||e.$options._renderChildren||c);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o,e.$attrs=i.data.attrs||t,e.$listeners=r||t,n&&e.$options.props){Be(!1);for(var l=e._props,f=e.$options._propKeys||[],p=0;p<f.length;p++){var d=f[p],v=e.$options.props;l[d]=ft(d,v,n,e)}Be(!0),e.$options.propsData=n}r=r||t;var h=e.$options._parentListeners;e.$options._parentListeners=r,sr(e,r,h),u&&(e.$slots=fn(o,i.context),e.$forceUpdate())}function mr(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function yr(e,t){if(t){if(e._directInactive=!1,mr(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)yr(e.$children[n]);_r(e,"activated")}}function gr(e,t){if(!(t&&(e._directInactive=!0,mr(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)gr(e.$children[n]);_r(e,"deactivated")}}function _r(e,t){Te();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Ct(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),Ne()}var br=100,$r=[],wr=[],xr={},Cr={},Ar=!1,kr=!1,Or=0;function Sr(){Or=$r.length=wr.length=0,xr={},Ar=kr=!1}var Tr=0,Nr=Date.now;if(Y&&!ne){var jr=window.performance;jr&&"function"==typeof jr.now&&Nr()>document.createEvent("Event").timeStamp&&(Nr=function(){return jr.now()})}function Er(){var e,t;for(Tr=Nr(),kr=!0,$r.sort(function(e,t){return e.id-t.id}),Or=0;Or<$r.length;Or++)(e=$r[Or]).before&&e.before(),t=e.id,xr[t]=null,e.run();var n=wr.slice(),r=$r.slice();Sr(),Lr(n),Mr(r),ve&&V.devtools&&ve.emit("flush")}function Mr(e){for(var t=e.length;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&_r(r,"updated")}}function Dr(e){e._inactive=!1,wr.push(e)}function Lr(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,yr(e[t],!0)}function Ir(e){var t=e.id;if(null==xr[t]){if(xr[t]=!0,kr){for(var n=$r.length-1;n>Or&&$r[n].id>e.id;)n--;$r.splice(n+1,0,e)}else $r.push(e);Ar||(Ar=!0,qt(Er))}}var Fr=0,Pr=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Fr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new me,this.newDepIds=new me,this.expression="","function"==typeof t?this.getter=t:(this.getter=Z(t),this.getter||(this.getter=D)),this.value=this.lazy?void 0:this.get()};Pr.prototype.get=function(){var e;Te(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Xl){if(!this.user)throw Xl;xt(Xl,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Zt(e),Ne(),this.cleanupDeps()}return e},Pr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Pr.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Pr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Ir(this)},Pr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Xl){xt(Xl,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Pr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Pr.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Pr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||_(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Rr={enumerable:!0,configurable:!0,get:D,set:D};function Hr(e,t,n){Rr.get=function(){return this[t][n]},Rr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Rr)}function Br(e){e._watchers=[];var t=e.$options;t.props&&Ur(e,t.props),t.methods&&Gr(e,t.methods),t.data?zr(e):Je(e._data={},!0),t.computed&&Kr(e,t.computed),t.watch&&t.watch!==le&&Xr(e,t.watch)}function Ur(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||Be(!1);var a=function(o){i.push(o);var a=ft(o,t,n,e);Ke(r,o,a),o in e||Hr(e,"_props",o)};for(var s in t)a(s);Be(!0)}function zr(e){var t=e.$options.data;l(t=e._data="function"==typeof t?Vr(t,e):t||{})||(t={});for(var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);i--;){var o=n[i];0,r&&$(r,o)||K(o)||Hr(e,"_data",o)}Je(t,!0)}function Vr(e,t){Te();try{return e.call(t,t)}catch(Xl){return xt(Xl,t,"data()"),{}}finally{Ne()}}var Jr={lazy:!0};function Kr(e,t){var n=e._computedWatchers=Object.create(null),r=de();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new Pr(e,a||D,D,Jr)),i in e||qr(e,i,o)}}function qr(e,t,n){var r=!de();"function"==typeof n?(Rr.get=r?Wr(t):Zr(n),Rr.set=D):(Rr.get=n.get?r&&!1!==n.cache?Wr(t):Zr(n.get):D,Rr.set=n.set||D),Object.defineProperty(e,t,Rr)}function Wr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Oe.target&&t.depend(),t.value}}function Zr(e){return function(){return e.call(this,this)}}function Gr(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?D:N(t[n],e)}function Xr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Yr(e,n,r[i]);else Yr(e,n,r)}}function Yr(e,t,n,r){return l(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function Qr(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=qe,e.prototype.$delete=We,e.prototype.$watch=function(e,t,n){if(l(t))return Yr(this,e,t,n);(n=n||{}).user=!0;var r=new Pr(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(i){xt(i,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}var ei=0;function ti(e){e.prototype._init=function(e){var t=this;t._uid=ei++,t._isVue=!0,e&&e._isComponent?ni(t,e):t.$options=ut(ri(t.constructor),e||{},t),t._renderProxy=t,t._self=t,pr(t),rr(t),Wn(t),_r(t,"beforeCreate"),un(t),Br(t),cn(t),_r(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function ni(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function ri(e){var t=e.options;if(e.super){var n=ri(e.super);if(n!==e.superOptions){e.superOptions=n;var r=ii(e);r&&E(e.extendOptions,r),(t=e.options=ut(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function ii(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function oi(e){this._init(e)}function ai(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=j(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}function si(e){e.mixin=function(e){return this.options=ut(this.options,e),this}}function ci(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=ut(n.options,e),a.super=n,a.options.props&&ui(a),a.options.computed&&li(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,U.forEach(function(e){a[e]=n[e]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=E({},a.options),i[r]=a,a}}function ui(e){var t=e.options.props;for(var n in t)Hr(e.prototype,"_props",n)}function li(e){var t=e.options.computed;for(var n in t)qr(e.prototype,n,t[n])}function fi(e){U.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function pi(e){return e&&(e.Ctor.options.name||e.tag)}function di(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function vi(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=pi(a.componentOptions);s&&!t(s)&&hi(n,o,r,i)}}}function hi(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,_(n,t)}ti(oi),Qr(oi),cr(oi),dr(oi),Xn(oi);var mi=[String,RegExp,Array],yi={name:"keep-alive",abstract:!0,props:{include:mi,exclude:mi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)hi(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",function(t){vi(e,function(e){return di(t,e)})}),this.$watch("exclude",function(t){vi(e,function(e){return!di(t,e)})})},render:function(){var e=this.$slots.default,t=nr(e),n=t&&t.componentOptions;if(n){var r=pi(n),i=this.include,o=this.exclude;if(i&&(!r||!di(i,r))||o&&r&&di(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,_(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&hi(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},gi={KeepAlive:yi};function _i(e){var t={get:function(){return V}};Object.defineProperty(e,"config",t),e.util={warn:we,extend:E,mergeOptions:ut,defineReactive:Ke},e.set=qe,e.delete=We,e.nextTick=qt,e.observable=function(e){return Je(e),e},e.options=Object.create(null),U.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,E(e.options.components,gi),ai(e),si(e),ci(e),fi(e)}_i(oi),Object.defineProperty(oi.prototype,"$isServer",{get:de}),Object.defineProperty(oi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(oi,"FunctionalRenderContext",{value:jn}),oi.version="2.6.11";var bi=m("style,class"),$i=m("input,textarea,option,select,progress"),wi=function(e,t,n){return"value"===n&&$i(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},xi=m("contenteditable,draggable,spellcheck"),Ci=m("events,caret,typing,plaintext-only"),Ai=function(e,t){return Ni(t)||"false"===t?"false":"contenteditable"===e&&Ci(t)?t:"true"},ki=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Oi="http://www.w3.org/1999/xlink",Si=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ti=function(e){return Si(e)?e.slice(6,e.length):""},Ni=function(e){return null==e||!1===e};function ji(e){for(var t=e.data,n=e,i=e;r(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=Ei(i.data,t));for(;r(n=n.parent);)n&&n.data&&(t=Ei(t,n.data));return Mi(t.staticClass,t.class)}function Ei(e,t){return{staticClass:Di(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Mi(e,t){return r(e)||r(t)?Di(e,Li(t)):""}function Di(e,t){return e?t?e+" "+t:e:t||""}function Li(e){return Array.isArray(e)?Ii(e):s(e)?Fi(e):"string"==typeof e?e:""}function Ii(e){for(var t,n="",i=0,o=e.length;i<o;i++)r(t=Li(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function Fi(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var Pi={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Ri=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Hi=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Bi=function(e){return"pre"===e},Ui=function(e){return Ri(e)||Hi(e)};function zi(e){return Hi(e)?"svg":"math"===e?"math":void 0}var Vi=Object.create(null);function Ji(e){if(!Y)return!0;if(Ui(e))return!1;if(e=e.toLowerCase(),null!=Vi[e])return Vi[e];var t=document.createElement(e);return e.indexOf("-")>-1?Vi[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Vi[e]=/HTMLUnknownElement/.test(t.toString())}var Ki=m("text,number,password,search,email,tel,url");function qi(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function Wi(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Zi(e,t){return document.createElementNS(Pi[e],t)}function Gi(e){return document.createTextNode(e)}function Xi(e){return document.createComment(e)}function Yi(e,t,n){e.insertBefore(t,n)}function Qi(e,t){e.removeChild(t)}function eo(e,t){e.appendChild(t)}function to(e){return e.parentNode}function no(e){return e.nextSibling}function ro(e){return e.tagName}function io(e,t){e.textContent=t}function oo(e,t){e.setAttribute(t,"")}var ao=Object.freeze({createElement:Wi,createElementNS:Zi,createTextNode:Gi,createComment:Xi,insertBefore:Yi,removeChild:Qi,appendChild:eo,parentNode:to,nextSibling:no,tagName:ro,setTextContent:io,setStyleScope:oo}),so={create:function(e,t){co(t)},update:function(e,t){e.data.ref!==t.data.ref&&(co(e,!0),co(t))},destroy:function(e){co(e,!0)}};function co(e,t){var n=e.data.ref;if(r(n)){var i=e.context,o=e.componentInstance||e.elm,a=i.$refs;t?Array.isArray(a[n])?_(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var uo=new je("",{},[]),lo=["create","activate","update","remove","destroy"];function fo(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&po(e,t)||i(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&n(t.asyncFactory.error))}function po(e,t){if("input"!==e.tag)return!0;var n,i=r(n=e.data)&&r(n=n.attrs)&&n.type,o=r(n=t.data)&&r(n=n.attrs)&&n.type;return i===o||Ki(i)&&Ki(o)}function vo(e,t,n){var i,o,a={};for(i=t;i<=n;++i)r(o=e[i].key)&&(a[o]=i);return a}function ho(e){var t,o,s={},c=e.modules,u=e.nodeOps;for(t=0;t<lo.length;++t)for(s[lo[t]]=[],o=0;o<c.length;++o)r(c[o][lo[t]])&&s[lo[t]].push(c[o][lo[t]]);function l(e){var t=u.parentNode(e);r(t)&&u.removeChild(t,e)}function f(e,t,n,o,a,c,l){if(r(e.elm)&&r(c)&&(e=c[l]=Le(e)),e.isRootInsert=!a,!function(e,t,n,o){var a=e.data;if(r(a)){var c=r(e.componentInstance)&&a.keepAlive;if(r(a=a.hook)&&r(a=a.init)&&a(e,!1),r(e.componentInstance))return p(e,t),d(n,e.elm,o),i(c)&&function(e,t,n,i){var o,a=e;for(;a.componentInstance;)if(a=a.componentInstance._vnode,r(o=a.data)&&r(o=o.transition)){for(o=0;o<s.activate.length;++o)s.activate[o](uo,a);t.push(a);break}d(n,e.elm,i)}(e,t,n,o),!0}}(e,t,n,o)){var f=e.data,h=e.children,m=e.tag;r(m)?(e.elm=e.ns?u.createElementNS(e.ns,m):u.createElement(m,e),g(e),v(e,h,t),r(f)&&y(e,t),d(n,e.elm,o)):i(e.isComment)?(e.elm=u.createComment(e.text),d(n,e.elm,o)):(e.elm=u.createTextNode(e.text),d(n,e.elm,o))}}function p(e,t){r(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,h(e)?(y(e,t),g(e)):(co(e),t.push(e))}function d(e,t,n){r(e)&&(r(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function v(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)f(t[r],n,e.elm,null,!0,t,r)}else a(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function h(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return r(e.tag)}function y(e,n){for(var i=0;i<s.create.length;++i)s.create[i](uo,e);r(t=e.data.hook)&&(r(t.create)&&t.create(uo,e),r(t.insert)&&n.push(e))}function g(e){var t;if(r(t=e.fnScopeId))u.setStyleScope(e.elm,t);else for(var n=e;n;)r(t=n.context)&&r(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent;r(t=ur)&&t!==e.context&&t!==e.fnContext&&r(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function _(e,t,n,r,i,o){for(;r<=i;++r)f(n[r],o,e,t,!1,n,r)}function b(e){var t,n,i=e.data;if(r(i))for(r(t=i.hook)&&r(t=t.destroy)&&t(e),t=0;t<s.destroy.length;++t)s.destroy[t](e);if(r(t=e.children))for(n=0;n<e.children.length;++n)b(e.children[n])}function $(e,t,n){for(;t<=n;++t){var i=e[t];r(i)&&(r(i.tag)?(w(i),b(i)):l(i.elm))}}function w(e,t){if(r(t)||r(e.data)){var n,i=s.remove.length+1;for(r(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&l(e)}return n.listeners=t,n}(e.elm,i),r(n=e.componentInstance)&&r(n=n._vnode)&&r(n.data)&&w(n,t),n=0;n<s.remove.length;++n)s.remove[n](e,t);r(n=e.data.hook)&&r(n=n.remove)?n(e,t):t()}else l(e.elm)}function x(e,t,n,i){for(var o=n;o<i;o++){var a=t[o];if(r(a)&&fo(e,a))return o}}function C(e,t,o,a,c,l){if(e!==t){r(t.elm)&&r(a)&&(t=a[c]=Le(t));var p=t.elm=e.elm;if(i(e.isAsyncPlaceholder))r(t.asyncFactory.resolved)?O(e.elm,t,o):t.isAsyncPlaceholder=!0;else if(i(t.isStatic)&&i(e.isStatic)&&t.key===e.key&&(i(t.isCloned)||i(t.isOnce)))t.componentInstance=e.componentInstance;else{var d,v=t.data;r(v)&&r(d=v.hook)&&r(d=d.prepatch)&&d(e,t);var m=e.children,y=t.children;if(r(v)&&h(t)){for(d=0;d<s.update.length;++d)s.update[d](e,t);r(d=v.hook)&&r(d=d.update)&&d(e,t)}n(t.text)?r(m)&&r(y)?m!==y&&function(e,t,i,o,a){var s,c,l,p=0,d=0,v=t.length-1,h=t[0],m=t[v],y=i.length-1,g=i[0],b=i[y],w=!a;for(;p<=v&&d<=y;)n(h)?h=t[++p]:n(m)?m=t[--v]:fo(h,g)?(C(h,g,o,i,d),h=t[++p],g=i[++d]):fo(m,b)?(C(m,b,o,i,y),m=t[--v],b=i[--y]):fo(h,b)?(C(h,b,o,i,y),w&&u.insertBefore(e,h.elm,u.nextSibling(m.elm)),h=t[++p],b=i[--y]):fo(m,g)?(C(m,g,o,i,d),w&&u.insertBefore(e,m.elm,h.elm),m=t[--v],g=i[++d]):(n(s)&&(s=vo(t,p,v)),n(c=r(g.key)?s[g.key]:x(g,t,p,v))?f(g,o,e,h.elm,!1,i,d):fo(l=t[c],g)?(C(l,g,o,i,d),t[c]=void 0,w&&u.insertBefore(e,l.elm,h.elm)):f(g,o,e,h.elm,!1,i,d),g=i[++d]);p>v?_(e,n(i[y+1])?null:i[y+1].elm,i,d,y,o):d>y&&$(t,p,v)}(p,m,y,o,l):r(y)?(r(e.text)&&u.setTextContent(p,""),_(p,null,y,0,y.length-1,o)):r(m)?$(m,0,m.length-1):r(e.text)&&u.setTextContent(p,""):e.text!==t.text&&u.setTextContent(p,t.text),r(v)&&r(d=v.hook)&&r(d=d.postpatch)&&d(e,t)}}}function A(e,t,n){if(i(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var o=0;o<t.length;++o)t[o].data.hook.insert(t[o])}var k=m("attrs,class,staticClass,staticStyle,key");function O(e,t,n,o){var a,s=t.tag,c=t.data,u=t.children;if(o=o||c&&c.pre,t.elm=e,i(t.isComment)&&r(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(r(c)&&(r(a=c.hook)&&r(a=a.init)&&a(t,!0),r(a=t.componentInstance)))return p(t,n),!0;if(r(s)){if(r(u))if(e.hasChildNodes())if(r(a=c)&&r(a=a.domProps)&&r(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var l=!0,f=e.firstChild,d=0;d<u.length;d++){if(!f||!O(f,u[d],n,o)){l=!1;break}f=f.nextSibling}if(!l||f)return!1}else v(t,u,n);if(r(c)){var h=!1;for(var m in c)if(!k(m)){h=!0,y(t,n);break}!h&&c.class&&Zt(c.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,o,a){if(!n(t)){var c,l=!1,p=[];if(n(e))l=!0,f(t,p);else{var d=r(e.nodeType);if(!d&&fo(e,t))C(e,t,p,null,null,a);else{if(d){if(1===e.nodeType&&e.hasAttribute(B)&&(e.removeAttribute(B),o=!0),i(o)&&O(e,t,p))return A(t,p,!0),e;c=e,e=new je(u.tagName(c).toLowerCase(),{},[],void 0,c)}var v=e.elm,m=u.parentNode(v);if(f(t,p,v._leaveCb?null:m,u.nextSibling(v)),r(t.parent))for(var y=t.parent,g=h(t);y;){for(var _=0;_<s.destroy.length;++_)s.destroy[_](y);if(y.elm=t.elm,g){for(var w=0;w<s.create.length;++w)s.create[w](uo,y);var x=y.data.hook.insert;if(x.merged)for(var k=1;k<x.fns.length;k++)x.fns[k]()}else co(y);y=y.parent}r(m)?$([e],0,0):r(e.tag)&&b(e)}}return A(t,p,l),t.elm}r(e)&&b(e)}}var mo={create:yo,update:yo,destroy:function(e){yo(e,uo)}};function yo(e,t){(e.data.directives||t.data.directives)&&go(e,t)}function go(e,t){var n,r,i,o=e===uo,a=t===uo,s=bo(e.data.directives,e.context),c=bo(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,wo(i,"update",t,e),i.def&&i.def.componentUpdated&&l.push(i)):(wo(i,"bind",t,e),i.def&&i.def.inserted&&u.push(i));if(u.length){var f=function(){for(var n=0;n<u.length;n++)wo(u[n],"inserted",t,e)};o?en(t,"insert",f):f()}if(l.length&&en(t,"postpatch",function(){for(var n=0;n<l.length;n++)wo(l[n],"componentUpdated",t,e)}),!o)for(n in s)c[n]||wo(s[n],"unbind",e,e,a)}var _o=Object.create(null);function bo(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=_o),i[$o(r)]=r,r.def=lt(t.$options,"directives",r.name,!0);return i}function $o(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function wo(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(Xl){xt(Xl,n.context,"directive "+e.name+" "+t+" hook")}}var xo=[so,mo];function Co(e,t){var i=t.componentOptions;if(!(r(i)&&!1===i.Ctor.options.inheritAttrs||n(e.data.attrs)&&n(t.data.attrs))){var o,a,s=t.elm,c=e.data.attrs||{},u=t.data.attrs||{};for(o in r(u.__ob__)&&(u=t.data.attrs=E({},u)),u)a=u[o],c[o]!==a&&Ao(s,o,a);for(o in(ne||ie)&&u.value!==c.value&&Ao(s,"value",u.value),c)n(u[o])&&(Si(o)?s.removeAttributeNS(Oi,Ti(o)):xi(o)||s.removeAttribute(o))}}function Ao(e,t,n){e.tagName.indexOf("-")>-1?ko(e,t,n):ki(t)?Ni(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):xi(t)?e.setAttribute(t,Ai(t,n)):Si(t)?Ni(n)?e.removeAttributeNS(Oi,Ti(t)):e.setAttributeNS(Oi,t,n):ko(e,t,n)}function ko(e,t,n){if(Ni(n))e.removeAttribute(t);else{if(ne&&!re&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Oo={create:Co,update:Co};function So(e,t){var i=t.elm,o=t.data,a=e.data;if(!(n(o.staticClass)&&n(o.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=ji(t),c=i._transitionClasses;r(c)&&(s=Di(s,Li(c))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}var To,No,jo,Eo,Mo,Do,Lo,Io={create:So,update:So},Fo=/[\w).+\-_$\]]/;function Po(e){var t,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,p=0,d=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(c)96===t&&92!==n&&(c=!1);else if(u)47===t&&92!==n&&(u=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||l||f||p){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:l++;break;case 125:l--}if(47===t){for(var v=r-1,h=void 0;v>=0&&" "===(h=e.charAt(v));v--);h&&Fo.test(h)||(u=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r<o.length;r++)i=Ro(i,o[r]);return i}function Ro(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function Ho(e,t){console.error("[Vue compiler]: "+e)}function Bo(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Uo(e,t,n,r,i){(e.props||(e.props=[])).push(Yo({name:t,value:n,dynamic:i},r)),e.plain=!1}function zo(e,t,n,r,i){(i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Yo({name:t,value:n,dynamic:i},r)),e.plain=!1}function Vo(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Yo({name:t,value:n},r))}function Jo(e,t,n,r,i,o,a,s){(e.directives||(e.directives=[])).push(Yo({name:t,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),e.plain=!1}function Ko(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function qo(e,n,r,i,o,a,s,c){var u;(i=i||t).right?c?n="("+n+")==='click'?'contextmenu':("+n+")":"click"===n&&(n="contextmenu",delete i.right):i.middle&&(c?n="("+n+")==='click'?'mouseup':("+n+")":"click"===n&&(n="mouseup")),i.capture&&(delete i.capture,n=Ko("!",n,c)),i.once&&(delete i.once,n=Ko("~",n,c)),i.passive&&(delete i.passive,n=Ko("&",n,c)),i.native?(delete i.native,u=e.nativeEvents||(e.nativeEvents={})):u=e.events||(e.events={});var l=Yo({value:r.trim(),dynamic:c},s);i!==t&&(l.modifiers=i);var f=u[n];Array.isArray(f)?o?f.unshift(l):f.push(l):u[n]=f?o?[l,f]:[f,l]:l,e.plain=!1}function Wo(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}function Zo(e,t,n){var r=Go(e,":"+t)||Go(e,"v-bind:"+t);if(null!=r)return Po(r);if(!1!==n){var i=Go(e,t);if(null!=i)return JSON.stringify(i)}}function Go(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===t){i.splice(o,1);break}return n&&delete e.attrsMap[t],r}function Xo(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(t.test(o.name))return n.splice(r,1),o}}function Yo(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Qo(e,t,n){var r=n||{},i=r.number,o="$$v";r.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(o="_n("+o+")");var a=ea(t,o);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+a+"}"}}function ea(e,t){var n=ta(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function ta(e){if(e=e.trim(),To=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<To-1)return(Eo=e.lastIndexOf("."))>-1?{exp:e.slice(0,Eo),key:'"'+e.slice(Eo+1)+'"'}:{exp:e,key:null};for(No=e,Eo=Mo=Do=0;!ra();)ia(jo=na())?aa(jo):91===jo&&oa(jo);return{exp:e.slice(0,Mo),key:e.slice(Mo+1,Do)}}function na(){return No.charCodeAt(++Eo)}function ra(){return Eo>=To}function ia(e){return 34===e||39===e}function oa(e){var t=1;for(Mo=Eo;!ra();)if(ia(e=na()))aa(e);else if(91===e&&t++,93===e&&t--,0===t){Do=Eo;break}}function aa(e){for(var t=e;!ra()&&(e=na())!==t;);}var sa,ca="__r",ua="__c";function la(e,t,n){Lo=n;var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type;if(e.component)return Qo(e,r,i),!1;if("select"===o)da(e,r,i);else if("input"===o&&"checkbox"===a)fa(e,r,i);else if("input"===o&&"radio"===a)pa(e,r,i);else if("input"===o||"textarea"===o)va(e,r,i);else{if(!V.isReservedTag(o))return Qo(e,r,i),!1}return!0}function fa(e,t,n){var r=n&&n.number,i=Zo(e,"value")||"null",o=Zo(e,"true-value")||"true",a=Zo(e,"false-value")||"false";Uo(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),qo(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+ea(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+ea(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+ea(t,"$$c")+"}",null,!0)}function pa(e,t,n){var r=n&&n.number,i=Zo(e,"value")||"null";Uo(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),qo(e,"change",ea(t,i),null,!0)}function da(e,t,n){var r="var $$selectedVal = "+('Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"})")+";";qo(e,"change",r=r+" "+ea(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}function va(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?ca:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=ea(t,l);c&&(f="if($event.target.composing)return;"+f),Uo(e,"value","("+t+")"),qo(e,u,f,null,!0),(s||a)&&qo(e,"blur","$forceUpdate()")}function ha(e){if(r(e[ca])){var t=ne?"change":"input";e[t]=[].concat(e[ca],e[t]||[]),delete e[ca]}r(e[ua])&&(e.change=[].concat(e[ua],e.change||[]),delete e[ua])}function ma(e,t,n){var r=sa;return function i(){null!==t.apply(null,arguments)&&_a(e,i,n,r)}}var ya=Rt&&!(ue&&Number(ue[1])<=53);function ga(e,t,n,r){if(ya){var i=Tr,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}sa.addEventListener(e,t,fe?{capture:n,passive:r}:n)}function _a(e,t,n,r){(r||sa).removeEventListener(e,t._wrapper||t,n)}function ba(e,t){if(!n(e.data.on)||!n(t.data.on)){var r=t.data.on||{},i=e.data.on||{};sa=t.elm,ha(r),Qt(r,i,ga,_a,ma,t.context),sa=void 0}}var $a,wa={create:ba,update:ba};function xa(e,t){if(!n(e.data.domProps)||!n(t.data.domProps)){var i,o,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(i in r(c.__ob__)&&(c=t.data.domProps=E({},c)),s)i in c||(a[i]="");for(i in c){if(o=c[i],"textContent"===i||"innerHTML"===i){if(t.children&&(t.children.length=0),o===s[i])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===i&&"PROGRESS"!==a.tagName){a._value=o;var u=n(o)?"":String(o);Ca(a,u)&&(a.value=u)}else if("innerHTML"===i&&Hi(a.tagName)&&n(a.innerHTML)){($a=$a||document.createElement("div")).innerHTML="<svg>"+o+"</svg>";for(var l=$a.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(o!==s[i])try{a[i]=o}catch(Xl){}}}}function Ca(e,t){return!e.composing&&("OPTION"===e.tagName||Aa(e,t)||ka(e,t))}function Aa(e,t){var n=!0;try{n=document.activeElement!==e}catch(Xl){}return n&&e.value!==t}function ka(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.number)return h(n)!==h(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var Oa={create:xa,update:xa},Sa=w(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function Ta(e){var t=Na(e.style);return e.staticStyle?E(e.staticStyle,t):t}function Na(e){return Array.isArray(e)?M(e):"string"==typeof e?Sa(e):e}function ja(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Ta(i.data))&&E(r,n);(n=Ta(e.data))&&E(r,n);for(var o=e;o=o.parent;)o.data&&(n=Ta(o.data))&&E(r,n);return r}var Ea,Ma=/^--/,Da=/\s*!important$/,La=function(e,t,n){if(Ma.test(t))e.style.setProperty(t,n);else if(Da.test(n))e.style.setProperty(O(t),n.replace(Da,""),"important");else{var r=Fa(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},Ia=["Webkit","Moz","ms"],Fa=w(function(e){if(Ea=Ea||document.createElement("div").style,"filter"!==(e=C(e))&&e in Ea)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Ia.length;n++){var r=Ia[n]+t;if(r in Ea)return r}});function Pa(e,t){var i=t.data,o=e.data;if(!(n(i.staticStyle)&&n(i.style)&&n(o.staticStyle)&&n(o.style))){var a,s,c=t.elm,u=o.staticStyle,l=o.normalizedStyle||o.style||{},f=u||l,p=Na(t.data.style)||{};t.data.normalizedStyle=r(p.__ob__)?E({},p):p;var d=ja(t,!0);for(s in f)n(d[s])&&La(c,s,"");for(s in d)(a=d[s])!==f[s]&&La(c,s,null==a?"":a)}}var Ra={create:Pa,update:Pa},Ha=/\s+/;function Ba(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Ha).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Ua(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Ha).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function za(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&E(t,Va(e.name||"v")),E(t,e),t}return"string"==typeof e?Va(e):void 0}}var Va=w(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),Ja=Y&&!re,Ka="transition",qa="animation",Wa="transition",Za="transitionend",Ga="animation",Xa="animationend";Ja&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Wa="WebkitTransition",Za="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ga="WebkitAnimation",Xa="webkitAnimationEnd"));var Ya=Y?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Qa(e){Ya(function(){Ya(e)})}function es(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Ba(e,t))}function ts(e,t){e._transitionClasses&&_(e._transitionClasses,t),Ua(e,t)}function ns(e,t,n){var r=is(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ka?Za:Xa,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c<a&&u()},o+1),e.addEventListener(s,l)}var rs=/\b(transform|all)(,|$)/;function is(e,t){var n,r=window.getComputedStyle(e),i=(r[Wa+"Delay"]||"").split(", "),o=(r[Wa+"Duration"]||"").split(", "),a=os(i,o),s=(r[Ga+"Delay"]||"").split(", "),c=(r[Ga+"Duration"]||"").split(", "),u=os(s,c),l=0,f=0;return t===Ka?a>0&&(n=Ka,l=a,f=o.length):t===qa?u>0&&(n=qa,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Ka:qa:null)?n===Ka?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Ka&&rs.test(r[Wa+"Property"])}}function os(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(function(t,n){return as(t)+as(e[n])}))}function as(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ss(e,t){var i=e.elm;r(i._leaveCb)&&(i._leaveCb.cancelled=!0,i._leaveCb());var o=za(e.data.transition);if(!n(o)&&!r(i._enterCb)&&1===i.nodeType){for(var a=o.css,c=o.type,u=o.enterClass,l=o.enterToClass,f=o.enterActiveClass,p=o.appearClass,d=o.appearToClass,v=o.appearActiveClass,m=o.beforeEnter,y=o.enter,g=o.afterEnter,_=o.enterCancelled,b=o.beforeAppear,$=o.appear,w=o.afterAppear,x=o.appearCancelled,C=o.duration,A=ur,k=ur.$vnode;k&&k.parent;)A=k.context,k=k.parent;var O=!A._isMounted||!e.isRootInsert;if(!O||$||""===$){var S=O&&p?p:u,T=O&&v?v:f,N=O&&d?d:l,j=O&&b||m,E=O&&"function"==typeof $?$:y,M=O&&w||g,D=O&&x||_,L=h(s(C)?C.enter:C);0;var I=!1!==a&&!re,F=fs(E),P=i._enterCb=H(function(){I&&(ts(i,N),ts(i,T)),P.cancelled?(I&&ts(i,S),D&&D(i)):M&&M(i),i._enterCb=null});e.data.show||en(e,"insert",function(){var t=i.parentNode,n=t&&t._pending&&t._pending[e.key];n&&n.tag===e.tag&&n.elm._leaveCb&&n.elm._leaveCb(),E&&E(i,P)}),j&&j(i),I&&(es(i,S),es(i,T),Qa(function(){ts(i,S),P.cancelled||(es(i,N),F||(ls(L)?setTimeout(P,L):ns(i,c,P)))})),e.data.show&&(t&&t(),E&&E(i,P)),I||F||P()}}}function cs(e,t){var i=e.elm;r(i._enterCb)&&(i._enterCb.cancelled=!0,i._enterCb());var o=za(e.data.transition);if(n(o)||1!==i.nodeType)return t();if(!r(i._leaveCb)){var a=o.css,c=o.type,u=o.leaveClass,l=o.leaveToClass,f=o.leaveActiveClass,p=o.beforeLeave,d=o.leave,v=o.afterLeave,m=o.leaveCancelled,y=o.delayLeave,g=o.duration,_=!1!==a&&!re,b=fs(d),$=h(s(g)?g.leave:g);0;var w=i._leaveCb=H(function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[e.key]=null),_&&(ts(i,l),ts(i,f)),w.cancelled?(_&&ts(i,u),m&&m(i)):(t(),v&&v(i)),i._leaveCb=null});y?y(x):x()}function x(){w.cancelled||(!e.data.show&&i.parentNode&&((i.parentNode._pending||(i.parentNode._pending={}))[e.key]=e),p&&p(i),_&&(es(i,u),es(i,f),Qa(function(){ts(i,u),w.cancelled||(es(i,l),b||(ls($)?setTimeout(w,$):ns(i,c,w)))})),d&&d(i,w),_||b||w())}}function us(e,t,n){"number"!=typeof e?we("<transition> explicit "+t+" duration is not a valid number - got "+JSON.stringify(e)+".",n.context):isNaN(e)&&we("<transition> explicit "+t+" duration is NaN - the duration expression might be incorrect.",n.context)}function ls(e){return"number"==typeof e&&!isNaN(e)}function fs(e){if(n(e))return!1;var t=e.fns;return r(t)?fs(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function ps(e,t){!0!==t.data.show&&ss(t)}var ds=Y?{create:ps,activate:ps,remove:function(e,t){!0!==e.data.show?cs(e,t):t()}}:{},vs=[Oo,Io,wa,Oa,Ra,ds],hs=vs.concat(xo),ms=ho({nodeOps:ao,modules:hs});re&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Cs(e,"input")});var ys={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?en(n,"postpatch",function(){ys.componentUpdated(e,t,n)}):gs(e,t,n.context),e._vOptions=[].map.call(e.options,$s)):("textarea"===n.tag||Ki(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ws),e.addEventListener("compositionend",xs),e.addEventListener("change",xs),re&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){gs(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,$s);if(i.some(function(e,t){return!P(e,r[t])}))(e.multiple?t.value.some(function(e){return bs(e,i)}):t.value!==t.oldValue&&bs(t.value,i))&&Cs(e,"change")}}};function gs(e,t,n){_s(e,t,n),(ne||ie)&&setTimeout(function(){_s(e,t,n)},0)}function _s(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=R(r,$s(a))>-1,a.selected!==o&&(a.selected=o);else if(P($s(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function bs(e,t){return t.every(function(t){return!P(t,e)})}function $s(e){return"_value"in e?e._value:e.value}function ws(e){e.target.composing=!0}function xs(e){e.target.composing&&(e.target.composing=!1,Cs(e.target,"input"))}function Cs(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function As(e){return!e.componentInstance||e.data&&e.data.transition?e:As(e.componentInstance._vnode)}var ks={bind:function(e,t,n){var r=t.value,i=(n=As(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,ss(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=As(n)).data&&n.data.transition?(n.data.show=!0,r?ss(n,function(){e.style.display=e.__vOriginalDisplay}):cs(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Os={model:ys,show:ks},Ss={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ts(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ts(nr(t.children)):e}function Ns(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[C(o)]=i[o];return t}function js(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Es(e){for(;e=e.parent;)if(e.data.transition)return!0}function Ms(e,t){return t.key===e.key&&t.tag===e.tag}var Ds=function(e){return e.tag||tr(e)},Ls=function(e){return"show"===e.name},Is={name:"transition",props:Ss,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Ds)).length){0;var r=this.mode;0;var i=n[0];if(Es(this.$vnode))return i;var o=Ts(i);if(!o)return i;if(this._leaving)return js(e,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=Ns(this),u=this._vnode,l=Ts(u);if(o.data.directives&&o.data.directives.some(Ls)&&(o.data.show=!0),l&&l.data&&!Ms(o,l)&&!tr(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=E({},c);if("out-in"===r)return this._leaving=!0,en(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),js(e,i);if("in-out"===r){if(tr(o))return u;var p,d=function(){p()};en(c,"afterEnter",d),en(c,"enterCancelled",d),en(f,"delayLeave",function(e){p=e})}}return i}}},Fs=E({tag:String,moveClass:String},Ss);delete Fs.mode;var Ps={props:Fs,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=fr(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ns(this),s=0;s<i.length;s++){var c=i[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(r){for(var u=[],l=[],f=0;f<r.length;f++){var p=r[f];p.data.transition=a,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?u.push(p):l.push(p)}this.kept=e(t,null,u),this.removed=l}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Rs),e.forEach(Hs),e.forEach(Bs),this._reflow=document.body.offsetHeight,e.forEach(function(e){if(e.data.moved){var n=e.elm,r=n.style;es(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Za,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Za,e),n._moveCb=null,ts(n,t))})}}))},methods:{hasMove:function(e,t){if(!Ja)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){Ua(n,e)}),Ba(n,t),n.style.display="none",this.$el.appendChild(n);var r=is(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function Rs(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Hs(e){e.data.newPos=e.elm.getBoundingClientRect()}function Bs(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var Us={Transition:Is,TransitionGroup:Ps};oi.config.mustUseProp=wi,oi.config.isReservedTag=Ui,oi.config.isReservedAttr=bi,oi.config.getTagNamespace=zi,oi.config.isUnknownElement=Ji,E(oi.options.directives,Os),E(oi.options.components,Us),oi.prototype.__patch__=Y?ms:D,oi.prototype.$mount=function(e,t){return vr(this,e=e&&Y?qi(e):void 0,t)},Y&&setTimeout(function(){V.devtools&&ve&&ve.emit("init",oi)},0);var zs=/\{\{((?:.|\r?\n)+?)\}\}/g,Vs=/[-.*+?^${}()|[\]\/\\]/g,Js=w(function(e){var t=e[0].replace(Vs,"\\$&"),n=e[1].replace(Vs,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Ks(e,t){var n=t?Js(t):zs;if(n.test(e)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){(i=r.index)>c&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=Po(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c<e.length&&(s.push(o=e.slice(c)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}function qs(e,t){t.warn;var n=Go(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Zo(e,"class",!1);r&&(e.classBinding=r)}function Ws(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}var Zs={staticKeys:["staticClass"],transformNode:qs,genData:Ws};function Gs(e,t){t.warn;var n=Go(e,"style");n&&(e.staticStyle=JSON.stringify(Sa(n)));var r=Zo(e,"style",!1);r&&(e.styleBinding=r)}function Xs(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}var Ys,Qs={staticKeys:["staticStyle"],transformNode:Gs,genData:Xs},ec={decode:function(e){return(Ys=Ys||document.createElement("div")).innerHTML=e,Ys.textContent}},tc=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),nc=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),rc=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ic=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,oc=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ac="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+J.source+"]*",sc="((?:"+ac+"\\:)?"+ac+")",cc=new RegExp("^<"+sc),uc=/^\s*(\/?)>/,lc=new RegExp("^<\\/"+sc+"[^>]*>"),fc=/^<!DOCTYPE [^>]+>/i,pc=/^<!\--/,dc=/^<!\[/,vc=m("script,style,textarea",!0),hc={},mc={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},yc=/&(?:lt|gt|quot|amp|#39);/g,gc=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,_c=m("pre,textarea",!0),bc=function(e,t){return e&&_c(e)&&"\n"===t[0]};function $c(e,t){var n=t?gc:yc;return e.replace(n,function(e){return mc[e]})}function wc(e,t){for(var n,r,i=[],o=t.expectHTML,a=t.isUnaryTag||L,s=t.canBeLeftOpenTag||L,c=0;e;){if(n=e,r&&vc(r)){var u=0,l=r.toLowerCase(),f=hc[l]||(hc[l]=new RegExp("([\\s\\S]*?)(</"+l+"[^>]*>)","i")),p=e.replace(f,function(e,n,r){return u=r.length,vc(l)||"noscript"===l||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),bc(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-p.length,e=p,k(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(pc.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v),c,c+v+3),x(v+3);continue}}if(dc.test(e)){var h=e.indexOf("]>");if(h>=0){x(h+2);continue}}var m=e.match(fc);if(m){x(m[0].length);continue}var y=e.match(lc);if(y){var g=c;x(y[0].length),k(y[1],g,c);continue}var _=C();if(_){A(_),bc(_.tagName,e)&&x(1);continue}}var b=void 0,$=void 0,w=void 0;if(d>=0){for($=e.slice(d);!(lc.test($)||cc.test($)||pc.test($)||dc.test($)||(w=$.indexOf("<",1))<0);)d+=w,$=e.slice(d);b=e.substring(0,d)}d<0&&(b=e),b&&x(b.length),t.chars&&b&&t.chars(b,c-b.length,c)}if(e===n){t.chars&&t.chars(e);break}}function x(t){c+=t,e=e.substring(t)}function C(){var t=e.match(cc);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(x(t[0].length);!(n=e.match(uc))&&(r=e.match(oc)||e.match(ic));)r.start=c,x(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],x(n[0].length),i.end=c,i}}function A(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&rc(n)&&k(r),s(n)&&r===n&&k(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p<l;p++){var d=e.attrs[p],v=d[3]||d[4]||d[5]||"",h="a"===n&&"href"===d[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;f[p]={name:d[1],value:$c(v,h)}}u||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:f,start:e.start,end:e.end}),r=n),t.start&&t.start(n,f,u,e.start,e.end)}function k(e,n,o){var a,s;if(null==n&&(n=c),null==o&&(o=c),e)for(s=e.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}k()}var xc,Cc,Ac,kc,Oc,Sc,Tc,Nc,jc,Ec=/^@|^v-on:/,Mc=/^v-|^@|^:|^#/,Dc=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Lc=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ic=/^\(|\)$/g,Fc=/^\[.*\]$/,Pc=/:(.*)$/,Rc=/^:|^\.|^v-bind:/,Hc=/\.[^.\]]+(?=[^\]]*$)/g,Bc=/^v-slot(:|$)|^#/,Uc=/[\r\n]/,zc=/\s+/g,Vc=/[\s"'<>\/=]/,Jc=w(ec.decode),Kc="_empty_";function qc(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:vu(t),rawAttrsMap:{},parent:n,children:[]}}function Wc(e,t){xc=t.warn||Ho,Sc=t.isPreTag||L,Tc=t.mustUseProp||L,Nc=t.getTagNamespace||L;var n=t.isReservedTag||L;jc=function(e){return!!e.component||!n(e.tag)},Ac=Bo(t.modules,"transformNode"),kc=Bo(t.modules,"preTransformNode"),Oc=Bo(t.modules,"postTransformNode"),Cc=t.delimiters;var r,i,o=[],a=!1!==t.preserveWhitespace,s=t.whitespace,c=!1,u=!1;function l(e){if(f(e),c||e.processed||(e=Xc(e,t)),o.length||e===r||r.if&&(e.elseif||e.else)&&ou(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)ru(e,i);else{if(e.slotScope){var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}e.children=e.children.filter(function(e){return!e.slotScope}),f(e),e.pre&&(c=!1),Sc(e.tag)&&(u=!1);for(var a=0;a<Oc.length;a++)Oc[a](e,t)}function f(e){if(!u)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return wc(e,{warn:xc,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,a,s,f){var p=i&&i.ns||Nc(e);ne&&"svg"===p&&(n=_u(n));var d=qc(e,n,i);p&&(d.ns=p),mu(d)&&!de()&&(d.forbidden=!0);for(var v=0;v<kc.length;v++)d=kc[v](d,t)||d;c||(Zc(d),d.pre&&(c=!0)),Sc(d.tag)&&(u=!0),c?Gc(d):d.processed||(eu(d),nu(d),au(d)),r||(r=d),a?l(d):(i=d,o.push(d))},end:function(e,t,n){var r=o[o.length-1];o.length-=1,i=o[o.length-1],l(r)},chars:function(e,t,n){if(i&&(!ne||"textarea"!==i.tag||i.attrsMap.placeholder!==e)){var r,o,l=i.children;if(e=u||e.trim()?hu(i)?e:Jc(e):l.length?s?"condense"===s&&Uc.test(e)?"":" ":a?" ":"":"")u||"condense"!==s||(e=e.replace(zc," ")),!c&&" "!==e&&(r=Ks(e,Cc))?o={type:2,expression:r.expression,tokens:r.tokens,text:e}:" "===e&&l.length&&" "===l[l.length-1].text||(o={type:3,text:e}),o&&l.push(o)}},comment:function(e,t,n){if(i){var r={type:3,text:e,isComment:!0};0,i.children.push(r)}}}),r}function Zc(e){null!=Go(e,"v-pre")&&(e.pre=!0)}function Gc(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(e.plain=!0)}function Xc(e,t){Yc(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,Qc(e),su(e),uu(e),lu(e);for(var n=0;n<Ac.length;n++)e=Ac[n](e,t)||e;return fu(e),e}function Yc(e){var t=Zo(e,"key");t&&(e.key=t)}function Qc(e){var t=Zo(e,"ref");t&&(e.ref=t,e.refInFor=pu(e))}function eu(e){var t;if(t=Go(e,"v-for")){var n=tu(t);n&&E(e,n)}}function tu(e){var t=e.match(Dc);if(t){var n={};n.for=t[2].trim();var r=t[1].trim().replace(Ic,""),i=r.match(Lc);return i?(n.alias=r.replace(Lc,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r,n}}function nu(e){var t=Go(e,"v-if");if(t)e.if=t,ou(e,{exp:t,block:e});else{null!=Go(e,"v-else")&&(e.else=!0);var n=Go(e,"v-else-if");n&&(e.elseif=n)}}function ru(e,t){var n=iu(t.children);n&&n.if&&ou(n,{exp:e.elseif,block:e})}function iu(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}function ou(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function au(e){null!=Go(e,"v-once")&&(e.once=!0)}function su(e){var t;"template"===e.tag?(t=Go(e,"scope"),e.slotScope=t||Go(e,"slot-scope")):(t=Go(e,"slot-scope"))&&(e.slotScope=t);var n=Zo(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||zo(e,"slot",n,Wo(e,"slot"))),"template"===e.tag){var r=Xo(e,Bc);if(r){0;var i=cu(r),o=i.name,a=i.dynamic;e.slotTarget=o,e.slotTargetDynamic=a,e.slotScope=r.value||Kc}}else{var s=Xo(e,Bc);if(s){0;var c=e.scopedSlots||(e.scopedSlots={}),u=cu(s),l=u.name,f=u.dynamic,p=c[l]=qc("template",[],e);p.slotTarget=l,p.slotTargetDynamic=f,p.children=e.children.filter(function(e){if(!e.slotScope)return e.parent=p,!0}),p.slotScope=s.value||Kc,e.children=[],e.plain=!1}}}function cu(e){var t=e.name.replace(Bc,"");return t||"#"!==e.name[0]&&(t="default"),Fc.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function uu(e){"slot"===e.tag&&(e.slotName=Zo(e,"name"))}function lu(e){var t;(t=Zo(e,"is"))&&(e.component=t),null!=Go(e,"inline-template")&&(e.inlineTemplate=!0)}function fu(e){var t,n,r,i,o,a,s,c,u=e.attrsList;for(t=0,n=u.length;t<n;t++){if(r=i=u[t].name,o=u[t].value,Mc.test(r))if(e.hasBindings=!0,(a=du(r.replace(Mc,"")))&&(r=r.replace(Hc,"")),Rc.test(r))r=r.replace(Rc,""),o=Po(o),(c=Fc.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!c&&"innerHtml"===(r=C(r))&&(r="innerHTML"),a.camel&&!c&&(r=C(r)),a.sync&&(s=ea(o,"$event"),c?qo(e,'"update:"+('+r+")",s,null,!1,xc,u[t],!0):(qo(e,"update:"+C(r),s,null,!1,xc,u[t]),O(r)!==C(r)&&qo(e,"update:"+O(r),s,null,!1,xc,u[t])))),a&&a.prop||!e.component&&Tc(e.tag,e.attrsMap.type,r)?Uo(e,r,o,u[t],c):zo(e,r,o,u[t],c);else if(Ec.test(r))r=r.replace(Ec,""),(c=Fc.test(r))&&(r=r.slice(1,-1)),qo(e,r,o,a,!1,xc,u[t],c);else{var l=(r=r.replace(Mc,"")).match(Pc),f=l&&l[1];c=!1,f&&(r=r.slice(0,-(f.length+1)),Fc.test(f)&&(f=f.slice(1,-1),c=!0)),Jo(e,r,i,o,f,c,a,u[t])}else zo(e,r,JSON.stringify(o),u[t]),!e.component&&"muted"===r&&Tc(e.tag,e.attrsMap.type,r)&&Uo(e,r,"true",u[t])}}function pu(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}function du(e){var t=e.match(Hc);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}function vu(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}function hu(e){return"script"===e.tag||"style"===e.tag}function mu(e){return"style"===e.tag||"script"===e.tag&&(!e.attrsMap.type||"text/javascript"===e.attrsMap.type)}var yu=/^xmlns:NS\d+/,gu=/^NS\d+:/;function _u(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];yu.test(r.name)||(r.name=r.name.replace(gu,""),t.push(r))}return t}function bu(e,t){for(var n=e;n;)n.for&&n.alias===t&&xc("<"+e.tag+' v-model="'+t+'">: You are binding v-model directly to a v-for iteration alias. This will not be able to modify the v-for source array because writing to the alias is like modifying a function local variable. Consider using an array of objects and use v-model on an object property instead.',e.rawAttrsMap["v-model"]),n=n.parent}function $u(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Zo(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=Go(e,"v-if",!0),o=i?"&&("+i+")":"",a=null!=Go(e,"v-else",!0),s=Go(e,"v-else-if",!0),c=wu(e);eu(c),Vo(c,"type","checkbox"),Xc(c,t),c.processed=!0,c.if="("+n+")==='checkbox'"+o,ou(c,{exp:c.if,block:c});var u=wu(e);Go(u,"v-for",!0),Vo(u,"type","radio"),Xc(u,t),ou(c,{exp:"("+n+")==='radio'"+o,block:u});var l=wu(e);return Go(l,"v-for",!0),Vo(l,":type",n),Xc(l,t),ou(c,{exp:i,block:l}),a?c.else=!0:s&&(c.elseif=s),c}}}function wu(e){return qc(e.tag,e.attrsList.slice(),e.parent)}var xu={preTransformNode:$u},Cu=[Zs,Qs,xu];function Au(e,t){t.value&&Uo(e,"textContent","_s("+t.value+")",t)}function ku(e,t){t.value&&Uo(e,"innerHTML","_s("+t.value+")",t)}var Ou,Su,Tu={model:la,text:Au,html:ku},Nu={expectHTML:!0,modules:Cu,directives:Tu,isPreTag:Bi,isUnaryTag:tc,mustUseProp:wi,canBeLeftOpenTag:nc,isReservedTag:Ui,getTagNamespace:zi,staticKeys:F(Cu)},ju=w(Mu);function Eu(e,t){e&&(Ou=ju(t.staticKeys||""),Su=t.isReservedTag||L,Du(e),Lu(e,!1))}function Mu(e){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}function Du(e){if(e.static=Iu(e),1===e.type){if(!Su(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t<n;t++){var r=e.children[t];Du(r),r.static||(e.static=!1)}if(e.ifConditions)for(var i=1,o=e.ifConditions.length;i<o;i++){var a=e.ifConditions[i].block;Du(a),a.static||(e.static=!1)}}}function Lu(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,r=e.children.length;n<r;n++)Lu(e.children[n],t||!!e.for);if(e.ifConditions)for(var i=1,o=e.ifConditions.length;i<o;i++)Lu(e.ifConditions[i].block,t)}}function Iu(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||y(e.tag)||!Su(e.tag)||Fu(e)||!Object.keys(e).every(Ou))))}function Fu(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}var Pu=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Ru=/\([^)]*?\);*$/,Hu=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Bu={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Uu={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},zu=function(e){return"if("+e+")return null;"},Vu={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:zu("$event.target !== $event.currentTarget"),ctrl:zu("!$event.ctrlKey"),shift:zu("!$event.shiftKey"),alt:zu("!$event.altKey"),meta:zu("!$event.metaKey"),left:zu("'button' in $event && $event.button !== 0"),middle:zu("'button' in $event && $event.button !== 1"),right:zu("'button' in $event && $event.button !== 2")};function Ju(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=Ku(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Ku(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return Ku(e)}).join(",")+"]";var t=Hu.test(e.value),n=Pu.test(e.value),r=Hu.test(e.value.replace(Ru,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(Vu[s])o+=Vu[s],Bu[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=zu(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=qu(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function qu(e){return"if(!$event.type.indexOf('key')&&"+e.map(Wu).join("&&")+")return null;"}function Wu(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Bu[e],r=Uu[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}function Zu(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}}function Gu(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}}var Xu={on:Zu,bind:Gu,cloak:D},Yu=function(e){this.options=e,this.warn=e.warn||Ho,this.transforms=Bo(e.modules,"transformCode"),this.dataGenFns=Bo(e.modules,"genData"),this.directives=E(E({},Xu),e.directives);var t=e.isReservedTag||L;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Qu(e,t){var n=new Yu(t);return{render:"with(this){return "+(e?el(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function el(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return tl(e,t);if(e.once&&!e.onceProcessed)return nl(e,t);if(e.for&&!e.forProcessed)return ol(e,t);if(e.if&&!e.ifProcessed)return rl(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return _l(e,t);var n;if(e.component)n=bl(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=al(e,t));var i=e.inlineTemplate?null:dl(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<t.transforms.length;o++)n=t.transforms[o](e,n);return n}return dl(e,t)||"void 0"}function tl(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+el(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function nl(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return rl(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+el(e,t)+","+t.onceId+++","+n+")":el(e,t)}return tl(e,t)}function rl(e,t,n,r){return e.ifProcessed=!0,il(e.ifConditions.slice(),t,n,r)}function il(e,t,n,r){if(!e.length)return r||"_e()";var i=e.shift();return i.exp?"("+i.exp+")?"+o(i.block)+":"+il(e,t,n,r):""+o(i.block);function o(e){return n?n(e,t):e.once?nl(e,t):el(e,t)}}function ol(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||el)(e,t)+"})"}function al(e,t){var n="{",r=sl(e,t);r&&(n+=r+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);if(e.attrs&&(n+="attrs:"+$l(e.attrs)+","),e.props&&(n+="domProps:"+$l(e.props)+","),e.events&&(n+=Ju(e.events,!1)+","),e.nativeEvents&&(n+=Ju(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=ul(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=cl(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+$l(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function sl(e,t){var n=e.directives;if(n){var r,i,o,a,s="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var u=t.directives[o.name];u&&(a=!!u(e,o,t.warn)),a&&(c=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return c?s.slice(0,-1)+"]":void 0}}function cl(e,t){var n=e.children[0];if(n&&1===n.type){var r=Qu(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}function ul(e,t,n){var r=e.for||Object.keys(t).some(function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||fl(n)}),i=!!e.if;if(!r)for(var o=e.parent;o;){if(o.slotScope&&o.slotScope!==Kc||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}var a=Object.keys(t).map(function(e){return pl(t[e],n)}).join(",");return"scopedSlots:_u(["+a+"]"+(r?",null,true":"")+(!r&&i?",null,false,"+ll(a):"")+")"}function ll(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}function fl(e){return 1===e.type&&("slot"===e.tag||e.children.some(fl))}function pl(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return rl(e,t,pl,"null");if(e.for&&!e.forProcessed)return ol(e,t,pl);var r=e.slotScope===Kc?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(dl(e,t)||"undefined")+":undefined":dl(e,t)||"undefined":el(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function dl(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||el)(a,t)+s}var c=n?vl(o,t.maybeComponent):0,u=i||ml;return"["+o.map(function(e){return u(e,t)}).join(",")+"]"+(c?","+c:"")}}function vl(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(hl(i)||i.ifConditions&&i.ifConditions.some(function(e){return hl(e.block)})){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some(function(e){return t(e.block)}))&&(n=1)}}return n}function hl(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function ml(e,t){return 1===e.type?el(e,t):3===e.type&&e.isComment?gl(e):yl(e)}function yl(e){return"_v("+(2===e.type?e.expression:wl(JSON.stringify(e.text)))+")"}function gl(e){return"_e("+JSON.stringify(e.text)+")"}function _l(e,t){var n=e.slotName||'"default"',r=dl(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?$l((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:C(e.name),value:e.value,dynamic:e.dynamic}})):null,a=e.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=","+o),a&&(i+=(o?"":",null")+","+a),i+")"}function bl(e,t,n){var r=t.inlineTemplate?null:dl(t,n,!0);return"_c("+e+","+al(t,n)+(r?","+r:"")+")"}function $l(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],o=wl(i.value);i.dynamic?n+=i.name+","+o+",":t+='"'+i.name+'":'+o+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function wl(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}var xl=new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),Cl=new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),Al=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function kl(e,t){e&&Ol(e,t)}function Ol(e,t){if(1===e.type){for(var n in e.attrsMap)if(Mc.test(n)){var r=e.attrsMap[n];if(r){var i=e.rawAttrsMap[n];"v-for"===n?Tl(e,'v-for="'+r+'"',t,i):"v-slot"===n||"#"===n[0]?El(r,n+'="'+r+'"',t,i):Ec.test(n)?Sl(r,n+'="'+r+'"',t,i):jl(r,n+'="'+r+'"',t,i)}}if(e.children)for(var o=0;o<e.children.length;o++)Ol(e.children[o],t)}else 2===e.type&&jl(e.expression,e.text,t,e)}function Sl(e,t,n,r){var i=e.replace(Al,""),o=i.match(Cl);o&&"$"!==i.charAt(o.index-1)&&n('avoid using JavaScript unary operator as property name: "'+o[0]+'" in expression '+t.trim(),r),jl(e,t,n,r)}function Tl(e,t,n,r){jl(e.for||"",t,n,r),Nl(e.alias,"v-for alias",t,n,r),Nl(e.iterator1,"v-for iterator",t,n,r),Nl(e.iterator2,"v-for iterator",t,n,r)}function Nl(e,t,n,r,i){if("string"==typeof e)try{new Function("var "+e+"=_")}catch(Xl){r("invalid "+t+' "'+e+'" in expression: '+n.trim(),i)}}function jl(e,t,n,r){try{new Function("return "+e)}catch(Xl){var i=e.replace(Al,"").match(xl);n(i?'avoid using JavaScript keyword as property name: "'+i[0]+'"\n Raw expression: '+t.trim():"invalid expression: "+Xl.message+" in\n\n "+e+"\n\n Raw expression: "+t.trim()+"\n",r)}}function El(e,t,n,r){try{new Function(e,"")}catch(Xl){n("invalid function parameter expression: "+Xl.message+" in\n\n "+e+"\n\n Raw expression: "+t.trim()+"\n",r)}}var Ml=2;function Dl(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var r=e.split(/\r?\n/),i=0,o=[],a=0;a<r.length;a++)if((i+=r[a].length+1)>=t){for(var s=a-Ml;s<=a+Ml||n>i;s++)if(!(s<0||s>=r.length)){o.push(""+(s+1)+Ll(" ",3-String(s+1).length)+"| "+r[s]);var c=r[s].length;if(s===a){var u=t-(i-c)+1,l=n>i?c-u:n-t;o.push(" | "+Ll(" ",u)+Ll("^",l))}else if(s>a){if(n>i){var f=Math.min(n-i,c);o.push(" | "+Ll("^",f))}i+=c+1}}break}return o.join("\n")}function Ll(e,t){var n="";if(t>0)for(;1&t&&(n+=e),!((t>>>=1)<=0);)e+=e;return n}function Il(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),D}}function Fl(e){var t=Object.create(null);return function(n,r,i){(r=E({},r)).warn;delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(t[o])return t[o];var a=e(n,r);var s={},c=[];return s.render=Il(a.render,c),s.staticRenderFns=a.staticRenderFns.map(function(e){return Il(e,c)}),t[o]=s}}function Pl(e){return function(t){function n(n,r){var i=Object.create(t),o=[],a=[],s=function(e,t,n){(n?a:o).push(e)};if(r)for(var c in r.modules&&(i.modules=(t.modules||[]).concat(r.modules)),r.directives&&(i.directives=E(Object.create(t.directives||null),r.directives)),r)"modules"!==c&&"directives"!==c&&(i[c]=r[c]);i.warn=s;var u=e(n.trim(),i);return u.errors=o,u.tips=a,u}return{compile:n,compileToFunctions:Fl(n)}}}var Rl,Hl=Pl(function(e,t){var n=Wc(e.trim(),t);!1!==t.optimize&&Eu(n,t);var r=Qu(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}}),Bl=Hl(Nu),Ul=Bl.compile,zl=Bl.compileToFunctions;function Vl(e){return(Rl=Rl||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Rl.innerHTML.indexOf(" ")>0}var Jl=!!Y&&Vl(!1),Kl=!!Y&&Vl(!0),ql=w(function(e){var t=qi(e);return t&&t.innerHTML}),Wl=oi.prototype.$mount;function Zl(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}oi.prototype.$mount=function(e,t){if((e=e&&qi(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ql(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=Zl(e));if(r){0;var i=zl(r,{outputSourceRange:!1,shouldDecodeNewlines:Jl,shouldDecodeNewlinesForHref:Kl,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Wl.call(this,e,t)},oi.compile=zl;var Gl=oi;exports.default=Gl;
|
4 |
},{}],"Lue2":[function(require,module,exports) {
|
5 |
"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var e=t(require("vue"));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 n(t){return o(t)||s(t)||i()}function o(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}function s(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var a="undefined"!=typeof window;function u(t){return Array.isArray(t)||"object"===r(t)?Object.freeze(t):t}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce(function(t,r){var n=r.passengers[0],o="function"==typeof n?n(e):r.passengers;return t.concat(o)},[])}function c(t,e){return t.map(function(t,e){return[e,t]}).sort(function(t,r){return e(t[1],r[1])||t[0]-r[0]}).map(function(t){return t[1]})}function p(t,e){return e.reduce(function(e,r){return t.hasOwnProperty(r)&&(e[r]=t[r]),e},{})}var h={},d={},f={},g=e.extend({data:function(){return{transports:h,targets:d,sources:f,trackInstances:a}},methods:{open:function(t){if(a){var r=t.to,n=t.from,o=t.passengers,s=t.order,i=void 0===s?1/0:s;if(r&&n&&o){var l={to:r,from:n,passengers:u(o),order:i};-1===Object.keys(this.transports).indexOf(r)&&e.set(this.transports,r,[]);var p=this.$_getTransportIndex(l),h=this.transports[r].slice(0);-1===p?h.push(l):h[p]=l,this.transports[r]=c(h,function(t,e){return t.order-e.order})}}},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.to,n=t.from;if(r&&(n||!1!==e)&&this.transports[r])if(e)this.transports[r]=[];else{var o=this.$_getTransportIndex(t);if(o>=0){var s=this.transports[r].slice(0);s.splice(o,1),this.transports[r]=s}}},registerTarget:function(t,e,r){a&&(this.trackInstances&&!r&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,r){a&&(this.trackInstances&&!r&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,r=t.from;for(var n in this.transports[e])if(this.transports[e][n].from===r)return+n;return-1}}}),m=new g(h),y=1,v=e.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(y++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick(function(){m.registerSource(t.name,t)})},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){m.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};m.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"==typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:n(t),order:this.order};m.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],r=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(r,[this.normalizeOwnChildren(e)]):this.slim?t():t(r,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),S=e.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:m.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick(function(){m.registerTarget(t.name,t)})},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){m.unregisterTarget(e),m.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick(function(){t.firstRender=!1})},beforeDestroy:function(){m.unregisterTarget(this.name)},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return l(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render:function(t){var e=this.noWrapper(),r=this.children(),n=this.transition||this.tag;return e?r[0]:this.slim&&!n?t():t(n,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},r)}}),b=0,T=["disabled","name","order","slim","slotProps","tag","to"],$=["multiple","transition"],w=e.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(b++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!=typeof document){var t=document.querySelector(this.mountTo);if(t){var e=this.$props;if(m.targets[e.name])e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted.\n Aborting because 'bail: true' is set")):this.portalTarget=m.targets[e.name];else{var r=e.append;if(r){var n="string"==typeof r?r:"DIV",o=document.createElement(n);t.appendChild(o),t=o}var s=p(this.$props,$);s.slim=this.targetSlim,s.tag=this.targetTag,s.slotProps=this.targetSlotProps,s.name=this.to,this.portalTarget=new S({el:t,parent:this.$parent||this,propsData:s})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var t=this.portalTarget;if(this.append){var e=t.$el;e.parentNode.removeChild(e)}t.$destroy()},render:function(t){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){var e=p(this.$props,T);return t(v,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var r=this.$scopedSlots.manual({to:this.to});return Array.isArray(r)&&(r=r[0]),r||t()}});function P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.portalName||"Portal",v),t.component(e.portalTargetName||"PortalTarget",S),t.component(e.MountingPortalName||"MountingPortal",w)}var x={install:P};exports.default=x,exports.Portal=v,exports.PortalTarget=S,exports.MountingPortal=w,exports.Wormhole=m;
|
6 |
+
},{"vue":"HYXJ"}],"vi91":[function(require,module,exports) {
|
|
|
|
|
7 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:["logoSrc","logoAlt","pluginName"]};exports.default=e;
|
8 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"wptb-settings-header"},[e("div",{staticClass:"wptb-settings-brand"},[e("img",{attrs:{src:t.logoSrc,alt:t.logoAlt}}),t._v(" "),e("span",{staticClass:"wptb-settings-header-name"},[t._v(" "+t._s(t.pluginName)+" ")])]),t._v(" "),e("div",{staticClass:"wptb-settings-links"},[t._t("default")],2)])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
9 |
+
},{}],"bosS":[function(require,module,exports) {
|
10 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:["name","current"],methods:{activePosition:function(){void 0!==this.current&&this.current!==this.name||this.$emit("activeSectionElement",this.$refs.sectionItem)}},computed:{isActive:function(){return this.activePosition(),void 0===this.current||this.current===this.name}}};exports.default=t;
|
11 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{ref:"sectionItem",staticClass:"wptb-settings-section-item",class:{disabled:!e.isActive},on:{click:function(t){return e.$emit("sectionchange",e.name,t.target)}}},[e._v(" "+e._s(e.name)+"\n")])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
12 |
+
},{}],"jLHe":[function(require,module,exports) {
|
13 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:["activeItem","relativeParent"],methods:{toPx:function(t){return"".concat(t,"px")}},computed:{styleCalculations:function(){if(this.activeItem){var t=this.activeItem.getBoundingClientRect(),e=this.relativeParent.getBoundingClientRect(),i=Math.abs(t.left-e.left);return{width:this.toPx(t.width),height:"2px",bottom:0,left:this.toPx(i)}}return{}}}};exports.default=t;
|
14 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"wptb-menu-active-section-indicator",style:this.styleCalculations})},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
15 |
+
},{}],"yPIx":[function(require,module,exports) {
|
16 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("./SectionItem")),t=n(require("./ActiveSectionIndicator"));function n(e){return e&&e.__esModule?e:{default:e}}var i={model:{prop:"currentSection",event:"updateSection"},props:{child:{type:Boolean,default:!1},items:Array,currentSection:String},components:{SectionItem:e.default,ActiveSectionIndicator:t.default},data:function(){return{innerCurrentSection:"",activeSectionElement:null}},mounted:function(){this.innerCurrentSection=this.currentSection||this.items[0]},watch:{innerCurrentSection:function(e){this.$emit("updateSection",e)}},methods:{handleSectionChange:function(e){this.innerCurrentSection=e},handleActiveSectionElement:function(e){this.activeSectionElement=e}}};exports.default=i;
|
17 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{ref:"wrapper",staticClass:"wptb-settings-sections-wrapper",class:{child:e.child}},[e._l(e.items,function(t){return n("section-item",{key:t,attrs:{name:t,current:e.innerCurrentSection},on:{sectionchange:e.handleSectionChange,activeSectionElement:e.handleActiveSectionElement}})}),e._v(" "),n("active-section-indicator",{attrs:{"relative-parent":e.$refs.wrapper,"active-item":e.activeSectionElement}})],2),e._v(" "),e._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
18 |
+
},{"./SectionItem":"bosS","./ActiveSectionIndicator":"jLHe"}],"wm3G":[function(require,module,exports) {
|
19 |
"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function t(t){for(var s=1;s<arguments.length;s++){var a=null!=arguments[s]?arguments[s]:{};s%2?e(Object(a),!0).forEach(function(e){r(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var s={withMessageData:{busy:!1,show:!1,message:"",type:"ok",intervalId:-1,intervalTime:5e3}},a=t({},s.withMessageData),i={data:function(){return s},methods:{isBusy:function(){return this.withMessageData.busy},setMessage:function(e){var r=this,s=t({},a,{},e);this.withMessageData.message=s.message,this.withMessageData.type=s.type,this.withMessageData.show=!0,clearInterval(this.withMessageData.intervalId),this.withMessageData.intervalId=setInterval(function(){r.withMessageData.show=!1},s.intervalTime)},setBusy:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.withMessageData.busy=e}}},n=i;exports.default=n;
|
20 |
},{}],"P9T4":[function(require,module,exports) {
|
21 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../mixins/withMessage"));function t(e){return e&&e.__esModule?e:{default:e}}var r={mixins:[e.default]};exports.default=r;
|
22 |
+
(function(){var s=exports.default||module.exports;"function"==typeof s&&(s=s.options),Object.assign(s,{render:function(){var s=this,t=s.$createElement,e=s._self._c||t;return e("div",{staticClass:"wptb-settings-messages"},[s.withMessageData.busy?e("span",{staticClass:"dashicons dashicons-image-rotate wptb-settings-fetching"}):s._e(),s._v(" "),e("transition",{attrs:{name:"wptb-fade"}},[s.withMessageData.show?e("span",{staticClass:"wptb-settings-message",class:[s.withMessageData.type]},[s._v(s._s(s.withMessageData.message))]):s._e()])],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
23 |
+
},{"../mixins/withMessage":"wm3G"}],"ksMR":[function(require,module,exports) {
|
24 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{disabled:Boolean,type:{type:String,default:"primary"},size:{type:String,default:"normal"}},methods:{handleClick:function(){this.disabled||this.$emit("click")}}};exports.default=e;
|
25 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"wptb-settings-button",class:[{disabled:this.disabled},this.type,this.size],on:{click:this.handleClick}},[this._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
26 |
+
},{}],"nwtb":[function(require,module,exports) {
|
|
|
|
|
|
|
|
|
27 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("./MessageDisplay.vue")),s=t(require("./MenuButton"));function t(e){return e&&e.__esModule?e:{default:e}}var u={props:["messageType","messageShow","messageBody","messageBusy"],components:{MessageDisplay:e.default,MenuButton:s.default}};exports.default=u;
|
28 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"wptb-settings-footer"},[s("message-display",{attrs:{busy:e.messageBusy,message:e.messageBody,show:e.messageShow,type:e.messageType}}),e._v(" "),s("div",{staticClass:"wptb-settings-button-container"},[s("menu-button",{staticStyle:{visibility:"hidden"}},[e._v("dummy")]),e._v(" "),e._t("default")],2)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
29 |
+
},{"./MessageDisplay.vue":"P9T4","./MenuButton":"ksMR"}],"vTRD":[function(require,module,exports) {
|
30 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:{center:{type:Boolean,default:!1}}};exports.default=e;
|
31 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"wptb-settings-controls-wrapper",class:[this.center?"center":"grid"]},[e("transition",{attrs:{name:"wptb-fade",mode:"out-in"}},[this._t("default")],2)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
32 |
+
},{}],"vU4o":[function(require,module,exports) {
|
33 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:["texts","file","allowedFormats"],model:{prop:"file",event:"fileChanged"},data:function(){return{dragActive:!1,currentFile:null}},mounted:function(){this.currentFile=this.file},watch:{currentFile:function(e){this.$emit("fileChanged",e)},file:function(e){this.currentFile=e}},computed:{eventClass:function(){return this.dragActive?"dragenter":""}},methods:{handleDrop:function(e){this.dragActive=!0;var t=e.dataTransfer;t.files[0]&&this.isTypeAllowed(t.files[0])&&(this.currentFile=t.files[0]),this.dragActive=!1},isTypeAllowed:function(e){var t=e.name.split(".").pop();return this.allowedFormats.includes(t)},openFileSelect:function(){this.$refs.fileSelect.click()},handleFileSelect:function(e){e.target.files.length>0&&this.isTypeAllowed(e.target.files[0])&&(this.currentFile=e.target.files[0])},clearCurrentFile:function(){this.currentFile=null}}};exports.default=e;
|
34 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wptb-menu-file-drop",class:e.eventClass,on:{dragenter:function(t){t.stopPropagation(),t.preventDefault(),e.dragActive=!0},dragleave:function(t){t.stopPropagation(),t.preventDefault(),e.dragActive=!1},drop:function(t){return t.stopPropagation(),t.preventDefault(),e.handleDrop(t)},dragover:function(t){t.stopPropagation(),t.preventDefault(),e.dragActive=!0}}},[n("transition",{attrs:{name:"wptb-fade",mode:"out-in"}},[e.dragActive?n("div",{key:"fileLogo",staticClass:"file-icon"},[n("span",{staticClass:"dashicons dashicons-media-spreadsheet"})]):n("div",{key:"controls"},[n("transition",{attrs:{name:"wptb-fade",mode:"out-in"}},[null===e.currentFile?n("div",{key:"selection",staticClass:"wptb-flex wptb-flex-col wptb-flex-align-center"},[n("div",{staticClass:"hint"},[e._v(e._s(e.texts.hint))]),e._v(" "),n("div",{staticClass:"supported wptb-text-transform-none"},[e._v("("+e._s(e.allowedFormats.join(", "))+")")]),e._v(" "),n("div",[n("a",{on:{click:function(t){return t.preventDefault(),e.openFileSelect(t)}}},[e._v(e._s(e.texts.browse))]),e._v(" "),n("input",{ref:"fileSelect",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.handleFileSelect}})])]):n("div",{key:"selected",staticClass:"wptb-flex wptb-flex-col wptb-flex-align-center"},[n("div",{staticClass:"file"},[e._v(e._s(e.currentFile.name))]),e._v(" "),n("div",[n("a",{on:{click:function(t){return t.preventDefault(),e.clearCurrentFile(t)}}},[e._v(e._s(e.texts.clear))])])])])],1)])],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
35 |
+
},{}],"yXWm":[function(require,module,exports) {
|
36 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={props:["fieldData","modelBind"],methods:{isType:function(e){return this.fieldData.type===e}}};exports.default=e;
|
37 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,i=e.$createElement,d=e._self._c||i;return d("div",[e.isType("multiCheckbox")?d("div",e._l(e.fieldData.options,function(i,a){return d("div",{key:i,staticClass:"wptb-setting-control-row"},[d("input",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[e.fieldData.id],expression:"modelBind[fieldData.id]"}],attrs:{id:e.fieldData.id,type:"checkbox"},domProps:{value:a,checked:Array.isArray(e.modelBind[e.fieldData.id])?e._i(e.modelBind[e.fieldData.id],a)>-1:e.modelBind[e.fieldData.id]},on:{change:function(i){var d=e.modelBind[e.fieldData.id],t=i.target,l=!!t.checked;if(Array.isArray(d)){var o=a,n=e._i(d,o);t.checked?n<0&&e.$set(e.modelBind,e.fieldData.id,d.concat([o])):n>-1&&e.$set(e.modelBind,e.fieldData.id,d.slice(0,n).concat(d.slice(n+1)))}else e.$set(e.modelBind,e.fieldData.id,l)}}}),e._v(" "),d("label",{attrs:{for:e.fieldData.id}},[e._v(e._s(i))])])}),0):e.isType("checkbox")?d("div",[d("div",{staticClass:"wptb-setting-control-row"},[d("input",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[e.fieldData.id],expression:"modelBind[fieldData.id]"}],attrs:{id:e.fieldData.id,type:"checkbox"},domProps:{checked:Array.isArray(e.modelBind[e.fieldData.id])?e._i(e.modelBind[e.fieldData.id],null)>-1:e.modelBind[e.fieldData.id]},on:{change:function(i){var d=e.modelBind[e.fieldData.id],a=i.target,t=!!a.checked;if(Array.isArray(d)){var l=e._i(d,null);a.checked?l<0&&e.$set(e.modelBind,e.fieldData.id,d.concat([null])):l>-1&&e.$set(e.modelBind,e.fieldData.id,d.slice(0,l).concat(d.slice(l+1)))}else e.$set(e.modelBind,e.fieldData.id,t)}}}),e._v(" "),d("label",{attrs:{for:e.fieldData.id}},[e._v(e._s(e.fieldData.label))])])]):e.isType("dropdown")?d("div",[d("div",{staticClass:"wptb-setting-control-row"},[d("select",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[e.fieldData.id],expression:"modelBind[fieldData.id]"}],attrs:{id:e.fieldData.id},on:{change:function(i){var d=Array.prototype.filter.call(i.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.$set(e.modelBind,e.fieldData.id,i.target.multiple?d:d[0])}}},e._l(e.fieldData.options,function(i){return d("option",{key:i.label,domProps:{value:i.value}},[e._v(" "+e._s(i.label)+" ")])}),0),e._v(" "),d("label",{attrs:{for:e.fieldData.id}},[e._v(e._s(e.fieldData.label))]),e._v(" "),e._t("default")],2)]):e._e()])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
38 |
+
},{}],"bsz0":[function(require,module,exports) {
|
39 |
"use strict";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e){return a(e)||n(e)||o(e)||r()}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function a(e){if(Array.isArray(e))return i(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function l(r){function o(e){e.map(function(e){var t=document.createElement("div");t.innerHTML=e,a(t.querySelector("table"))})}function n(e,o){if(e&&Array.isArray(e)){var l=r.delimiter;if("tab"==l&&(l="\t"),!l&&!(l=function(e){for(var t={},r=!1,o=0,n=e.length,a=0;a<n;a++){var i=a-1>=0?e[a-1]:"",l=e[a],s=a+1<n?e[a+1]:"";if('"'===l)r&&'"'===s?r&&a++:r=!r;else if(("\n"!==l||"\r"===i)&&"\r"!==l||r)r||-1!==";,\t".indexOf(l)&&(void 0===t[l]&&(t[l]={}),void 0===t[l][o]&&(t[l][o]=0),t[l][o]++);else if(++o>=15)break}var c="";for(var d in t){var p=t[d],u=0;for(var m in p)u++;if(u===o){var b=!1,w=void 0;for(var v in p)b?w=!(p[v]!==b||!w&&void 0!==w):b=p[v];if(!(o>1)||w){if(c){c=!1;break}c=d}}}return c}(e[o])))return void alert("The delimiter could not be determined");document.addEventListener("table:imported:saved",function t(){e.length-o>1&&n(e,o+1),document.removeEventListener("table:imported:saved",t)}),""===e[o]&&(e[o]=" "),a(function(e){if(e&&Array.isArray(e)&&e.length>0){var r=e.length,o=r>0&&e[0]&&Array.isArray(e[0])?e[0].length:0;if(0===r&&0===o)return!1;var n={imageElemIndex:1,textElemIndex:1,customHtmlElemIndex:1},a=new Array(r);a.fill(1);var l=new Array(o);l.fill(1);for(var s=document.createElement("tbody"),c=r-1,p=o-1,u=c;u>=0;u--){var m=document.createElement("tr");m.classList.add("wptb-row");for(var b=p;b>=0;b--){var w=e[u][b];if("#rowspan#"===w){if(u>0){a[b]||(a[b]=1),a[b]++,l[u]=1;continue}w=""}else if("#colspan#"===w){if(b>0){l[u]||(l[u]=1),l[u]++,a[b]=1;continue}w=""}var v=document.createElement("td");v.classList.add("wptb-droppable","wptb-cell"),v.dataset.wptbCssTdAutoWidth="true",v.style.padding="15px",v.style.width=null,v.style.height=null,v.style.borderStyle="solid",v.style.borderWidth="1px",v.innerHTML=w,l[u]>1&&(v.colSpan=l[u]),a[b]>1&&(v.rowSpan=a[b]),m.insertBefore(v,m.firstChild),l[u]=1,a[b]=1}s.insertBefore(m,s.firstChild)}var y=document.createElement("table");y.classList.add("wptb-preview-table","wptb-element-main-table_setting-startedid-0"),y.style.borderStyle="solid",y.style.borderWidth="1px",y.appendChild(s);for(var f=y.querySelectorAll("td"),h=0;h<f.length;h++){var S=t(f[h].childNodes),T=d(S,n),g=void 0;if(T&&Array.isArray(T)&&(g=T[0],n=T[1]),f[h].innerHTML="",g&&Array.isArray(g))for(var H=0;H<g.length;H++)f[h].appendChild(g[H])}return WPTB_Helper.recalculateIndexes(y),i(y),y}return!1}(function(e,t){for(var r=[],o=!1,n=0,a=0,i=0;i<e.length;i++){var l=e[i],s=e[i+1];r[n]=r[n]||[],r[n][a]=r[n][a]||"",'"'==l&&o&&'"'==s?(r[n][a]+=l,++i):'"'!=l?l!=t||o?"\n"!=l||o?r[n][a]+=l:(++n,a=0):++a:o=!o}return r}(e[o],l)))}}function a(e,t){var o=new XMLHttpRequest,n="".concat(r.ajaxUrl,"?action=save_table");t&&e.classList.contains("wptb-element-main-table_setting-startedid-0")&&(e.classList.remove("wptb-element-main-table_setting-startedid-0"),e.classList.add("wptb-element-main-table_setting-".concat(t)));var i={content:WPTB_Stringifier(e).outerHTML,security_code:r.nonce};t&&(i.id=t),i=JSON.stringify(i),o.open("POST",n,!0),o.setRequestHeader("Content-type","application/json; charset=utf-8"),o.onreadystatechange=function(t){if(4==this.readyState&&200==this.status){if("security_problem"===JSON.parse(o.responseText)[0])return void WPTB_Helper.wptbDocumentEventGenerate("table:imported:error",document);var r=JSON.parse(o.responseText);"saved"==r[0]?a(e,r[1]):"edited"==r[0]&&WPTB_Helper.wptbDocumentEventGenerate("table:imported:saved",document)}},o.send(i)}function i(e){r.tableResponsive?e.dataset.wptbAdaptiveTable="1":e.dataset.wptbAdaptiveTable="0",r.topRowAsHeader&&e.classList.add("wptb-table-preview-head"),e.dataset.wptbFixedWidthSize="0",e.dataset.wptbCellsWidthAutoCount=e.maxCols;var t=e.querySelector("td"),o=t&&t.style.paddingTop?t.style.paddingTop:15;e.dataset.wptbTableTdsSumMaxWidth=String(parseInt(e.maxCols)*(101+2*parseInt(o))+1)}function l(o,n){if(n&&Array.isArray(n)&&n.length>0){var a=n.shift();if(a&&Array.isArray(a)&&a.length>0){var c=a[0];window.wptbImportConvertationShortcodes||(window.wptbImportConvertationShortcodes=[]);var p=[];p.push(c),window.wptbImportConvertationShortcodes.push(p);var u=a[1],m="".concat(r.import_iframe_url,"&_wpnonce=").concat(r.security_code,"&shortcode=").concat(c);o.src=m,o.onload=function(o,n,a){var c=o.contentDocument||o.contentWindow.document,p=c.querySelector(".dataTables_length select");if(p){var u=t(p.options);if(Array.isArray(u)){var m=u.reduce(function(e,t){var r=e?Number(e.value):"",o=t?Number(t.value):"";return r<o&&(e=t),e});m&&(p.value=m.value,WPTB_Helper.wptbDocumentEventGenerate("change",p))}}!function(o,n,a,c){if(o){o.style.borderStyle="solid",o.style.borderWidth="1px",WPTB_Helper.checkSetGetStyleColorValue(o,"border-color","border-top-color",!0);var p=WPTB_Helper.checkSetGetStyleValue(o,"float","float");p&&"none"!=p&&(o.dataset.wptbTableAlignment=p);var u=o.querySelector("caption");u&&o.removeChild(u);var m=o.querySelector("tbody");m&&m.removeAttribute("class");var b=o.querySelector("thead");if(b){var w=b.innerHTML;if(w&&(w=WPTB_Helper.replaceAll(w,"<th","<td"),w=WPTB_Helper.replaceAll(w,"th>","td>"),m)){var v=m.innerHTML;v=w+v,m.innerHTML=v}o.removeChild(b)}var y=o.querySelector("tfoot");if(y){var f=y.innerHTML;if(f&&m){var h=m.innerHTML;h+=f,m.innerHTML=h}o.removeChild(y)}WPTB_Helper.recalculateIndexes(o);var S=o.querySelectorAll("tr");if(S.length>0)for(var T={imageElemIndex:1,textElemIndex:1,customHtmlElemIndex:1},g=0;g<S.length;g++){S[g].removeAttribute("class"),S[g].removeAttribute("role"),S[g].classList.add("wptb-row");var H=!0,_=WPTB_Helper.checkSetGetStyleColorValue(S[g],"background-color","background-color");_&&(WPTB_Helper.isHex(_)||(_=WPTB_Helper.rgbToHex(_)),S[g].style.tdsBackgroundColor=_,H=!1);for(var A=t(S[g].children),C=void 0,x="",L=0;L<A.length;L++){H&&(L>0&&C!=WPTB_Helper.checkSetGetStyleColorValue(trChildNodes[g],"background-color","background-color")?(C="",H=!1):C=WPTB_Helper.checkSetGetStyleColorValue(trChildNodes[g],"background-color","background-color")),A[L].style.width=null,A[L].style.height=null,A[L].style.borderStyle="solid",A[L].style.borderWidth="1px";var P=WPTB_Helper.checkSetGetStyleColorValue(A[L],"border-color","border-top-color"),B=WPTB_Helper.checkSetGetStyleColorValue(A[L],"border-color","border-left-color"),I=WPTB_Helper.checkSetGetStyleColorValue(A[L],"border-color","border-right-color"),W=WPTB_Helper.checkSetGetStyleColorValue(A[L],"border-color","border-bottom-color"),E=WPTB_Helper.getValueMaxCountSameElementsInArray([P,B,I,W]);E&&(WPTB_Helper.isHex(E)||(E=WPTB_Helper.rgbToHex(E)),A[L].style.borderColor=E),WPTB_Helper.checkSetGetStyleSizeValue(A[L],"padding","padding-top","px"),A[L].dataset.wptbCssTdAutoWidth="true",A[L].removeAttribute("class"),A[L].removeAttribute("role"),A[L].classList.add("wptb-droppable","wptb-cell");var M=A[L].dataset.xIndex,q=A[L].dataset.yIndex;if(M&&q&&Array.isArray(n)&&n[q]&&Array.isArray(n[q])&&n[q][M]){A[L].innerHTML=n[q][M];var k=t(A[L].childNodes),R=d(k,T),N=void 0;R&&Array.isArray(R)&&(N=R[0],T=R[1]),A[L].innerHTML="";for(var G=0;G<N.length;G++)A[L].appendChild(N[G])}x+=A[L].outerHTML}S[g].innerHTML=x,S[g].style.backgroundColor=WPTB_Helper.rgbToHex(C)}o.removeAttribute("class"),o.removeAttribute("role"),o.removeAttribute("id"),o.removeAttribute("aria-describedby"),o.classList.add("wptb-preview-table","wptb-element-main-table_setting-startedid-0"),i(o),function t(o,n,a,i){var c=new XMLHttpRequest;var d="".concat(r.ajaxUrl,"?action=save_table");var p;var u;var m=n.contentDocument||n.contentWindow.document;var b=m.querySelector(".tablepress-table-name");p=b?b.innerText:"";i&&o.classList.contains("wptb-element-main-table_setting-startedid-0")&&(o.classList.remove("wptb-element-main-table_setting-startedid-0"),o.classList.add("wptb-element-main-table_setting-".concat(i)));u=WPTB_Stringifier(o);u=u.outerHTML;var w={title:p,content:u,security_code:r.security_code};i&&(w.id=i);w=JSON.stringify(w);c.open("POST",d,!0);c.setRequestHeader("Content-type","application/json; charset=utf-8");c.onreadystatechange=function(i){if(4==this.readyState&&200==this.status){var d=JSON.parse(c.responseText);if("saved"==d[0])t(o,n,a,d[1]);else if("edited"==d[0]){if(d[1]&&window.wptbImportConvertationShortcodes&&Array.isArray(window.wptbImportConvertationShortcodes)&&window.wptbImportConvertationShortcodes.length>0&&window.wptbImportConvertationShortcodes[window.wptbImportConvertationShortcodes.length-1].push("[wptb id=".concat(d[1],"]")),window.wptbImportCommonCountTables){var p=window.wptbImportCommonCountTables,u=window.wptbImportCommonCountTables-a.length,m=s(u,p,"import");if(100==m){var b=document.querySelector(".wptb-importPBarContainer");b&&b.addEventListener("wptb-import:progressBar:full:import",function(){WPTB_Helper.wptbDocumentEventGenerate("table:imported:saved",document),WPTB_Helper.wptbDocumentEventGenerate("table:imported:list",document,e({},r.type,window.wptbImportConvertationShortcodes))},!1)}}else s(100,100,"import");l(n,a)}}};c.send(w)}(o,a,c)}}(c.querySelector("table.tablepress"),n,o,a)}.bind(this,o,u,n)}}}function s(e,t,r){var o=document.querySelector(".wptb-importPBarContainer"),n=document.querySelector("#wptb-pBarPercent"),a=document.querySelector("#wptb-pBarPercent span");if(o&&n&&a&&(e||0===e)&&t&&(e=Number(e),(t=Number(t))>0)){o.classList.add("wptb-importPBarContainerActive");var i=o.querySelector(".wptb-nameProcessInBarProgress");if(i){var l,s="";"import"==r?l=document.querySelector(".wptb-importFromPlugin"):"replace"==r&&(l=document.querySelector(".wptb-importTableReplaceShortcodes")),l&&(s=l.dataset.name)&&(i.innerHTML=s),s||(i.innerHTML="")}var c=(e/t*100).toFixed(2);return c>100&&(c=100),a.innerHTML="".concat(c,"%"),n.style.width=c<3?"3%":"".concat(c,"%"),100==c&&setTimeout(function(){o.classList.remove("wptb-importPBarContainerActive"),r=r?":".concat(r):"",WPTB_Helper.wptbDocumentEventGenerate("wptb-import:progressBar:full".concat(r),o)},2e3),c}}function c(e,t){if(e&&Array.isArray(e)&&e.length>0){t&&(window.wptbImportShortcodesNecessaryReplace=e.length,window.wptbImportShortcodesReplacedCount=0,s(0,window.wptbImportShortcodesNecessaryReplace,"replace"));var o=new XMLHttpRequest,n="".concat(r.ajaxUrl,"?action=shortcodes_replace"),a={replacing_shortcodes:e.shift(),security_code:r.security_code};a=JSON.stringify(a),o.open("POST",n,!0),o.setRequestHeader("Content-type","application/json; charset=utf-8"),o.onreadystatechange=function(t){if(4==this.readyState&&200==this.status){var r=JSON.parse(o.responseText),n=window.wptbImportShortcodesNecessaryReplace,a=window.wptbImportShortcodesNecessaryReplace-e.length,i=0;if(r&&Array.isArray(r)&&"success"==r[0]?(i=s(a,n,"replace"),window.wptbImportShortcodesReplacedCount?window.wptbImportShortcodesReplacedCount+=r[1]:window.wptbImportShortcodesReplacedCount=r[1]):i=s(n,n,"replace"),100==i){WPTB_Helper.wptbDocumentEventGenerate("table:shortcode:replace",document,window.wptbImportShortcodesReplacedCount);var l=document.querySelector(".wptb-importPBarContainer");l&&l.addEventListener("wptb-import:progressBar:full:replace",function(){var e=document.querySelector(".wptb-importedTablesShortcodesReplaced");if(e){e.style.display="block";var t=document.querySelector(".wptb-importedShortcodesReplaceCount span");t&&(window.wptbImportShortcodesReplacedCount?t.innerHTML=window.wptbImportShortcodesReplacedCount:t.innerHTML="0")}},!1)}else c(e)}},o.send(a)}}function d(e,t){for(var r=[],o=0;o<e.length;o++)if(1==e[o].nodeType||3==e[o].nodeType){var n=document.createElement("div");if(1==e[o].nodeType)if("img"===e[o].nodeName.toLowerCase()){e[o].style.width="100%",e[o].removeAttribute("class"),n.classList.add("wptb-image-container","wptb-ph-element","wptb-element-image-".concat(t.imageElemIndex)),n.innerHTML="".concat('<div class="wptb-image-wrapper"><a style="display: block;" target="_blank" rel="nofollow">').concat(e[o].outerHTML,"</a>")+"</div>";var a=n.querySelector("img");a&&(a.style.width="100%"),t.imageElemIndex++}else"wptb_shortcode_container_element"===e[o].nodeName.toLowerCase()?(n.classList.add("wptb-shortcode-container","wptb-ph-element","wptb-element-shortcode-".concat(t.customHtmlElemIndex)),n.innerHTML="<wptb_shortcode_container_element><div>".concat(e[o].innerHTML,"</div></wptb_shortcode_container_element>"),t.customHtmlElemIndex++):(n.classList.add("wptb-html-container","wptb-ph-element","wptb-element-custom_html-".concat(t.customHtmlElemIndex)),n.innerHTML='<div class="wptb-custom-html-wrapper" data-wptb-new-element="1">'.concat(e[o].outerHTML,"</div>"),t.customHtmlElemIndex++);else if(3==e[o].nodeType){n.classList.add("wptb-text-container","wptb-ph-element","wptb-element-text-".concat(t.textElemIndex)),n.innerHTML="<div><p>".concat(e[o].nodeValue,"</p></div>");var i=n.querySelector("p");if(i){var l=WPTB_Helper.checkSetGetStyleSizeValue(i,"font-size","font-size");l&&WPTB_Helper.checkingDimensionValue(l,"px")&&(i.style.fontSize=null,n.style.fontSize=l);var s=WPTB_Helper.checkSetGetStyleColorValue(i,"color","color");s&&(WPTB_Helper.isHex(s)?(i.style.color=null,n.style.color=s):WPTB_Helper.rgbToHex(s)&&(i.style.color=null,s=WPTB_Helper.rgbToHex(s),n.style.color=s))}t.textElemIndex++}r.push(n)}return[r,t]}return{importFromFile:function(){if(r.file){var e=/^([a-zA-Z0-9()\s_\\.\-:])+(.csv)$/.test(r.file.name.toLowerCase()),t=/^([a-zA-Z0-9()\s_\\.\-:])+(.xml)$/.test(r.file.name.toLowerCase()),a=(/^([a-zA-Z0-9()\s_\\.\-:])+(.html)$/.test(r.file.name.toLowerCase()),/^([a-zA-Z0-9()\s_\\.\-:])+(.zip)$/.test(r.file.name.toLowerCase())),i=r.file;if(a){var l=new XMLHttpRequest,s="".concat(r.ajaxUrl,"?action=zip_unpacker"),c=new FormData;c.append("file",i,"csv_zip.zip"),c.append("security_code",r.nonce),l.open("POST",s,!0),l.onreadystatechange=function(e){if(4==this.readyState&&200==this.status){var t=l.responseText;if("unsuccess"===JSON.parse(t)[0])return void WPTB_Helper.wptbDocumentEventGenerate("table:imported:error",document);if(t&&(t=JSON.parse(t)),t&&Array.isArray(t)&&"success"==t[0]&&t[1]&&Array.isArray(t[1])){for(var r=[],a=[],i=0;i<t[1].length;i++)switch(t[1][i][0]){case"csv":r.push(t[1][i][1]);break;case"xml":a.push(t[1][i][1])}r.length>0?n(r,0):a.length>0?o(a):WPTB_Helper.wptbDocumentEventGenerate("table:imported:error",document,{message:"invalid file type"})}}},l.send(c)}else if(e||t)if("undefined"!=typeof FileReader){var d,p=new FileReader;p.onload=function(r){d=r.target.result,e?n([d],0):t&&o([d])},p.readAsText(i)}else alert("This browser does not support HTML5.");else alert("Please upload a valid file.")}},importFromPlugin:function(e){var t,o,n;e&&"table-press"===e&&(t=new XMLHttpRequest,o="".concat(r.ajaxUrl,"?action=import_tables"),n={import_plugin_name:"table-press",security_code:r.security_code},n=JSON.stringify(n),t.open("POST",o,!0),t.setRequestHeader("Content-type","application/json; charset=utf-8"),t.onreadystatechange=function(e){if(4==this.readyState&&200==this.status){var r=JSON.parse(t.responseText);if(r&&Array.isArray(r))if("success"==r[0]){if(r[1]&&Array.isArray(r[1])){var o=document.getElementById("wptb-importIframeSection");if(o){var n=document.createElement("iframe");o.innerHTML="",o.appendChild(n),window.wptbImportCommonCountTables=r[1].length,window.wptbImportConvertationShortcodes&&delete window.wptbImportConvertationShortcodes,l(n,r[1])}}}else r[1]&&WPTB_Helper.wptbDocumentEventGenerate("table:imported:error",document,r[1])}},t.send(n))},replaceShortcodesAjax:c}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var s=l;exports.default=s;
|
40 |
},{}],"ACYA":[function(require,module,exports) {
|
41 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=o(require("../components/DragDrop.vue")),t=o(require("../components/ControlItem.vue")),s=o(require("../components/MenuButton.vue")),i=o(require("../functions/importOperations.js")),r=o(require("../mixins/withMessage"));function o(e){return e&&e.__esModule?e:{default:e}}var n={props:["options"],mixins:[r.default],components:{DragDrop:e.default,ControlItem:t.default,MenuButton:s.default},data:function(){return{settings:{responsiveTables:!1,topRowAsHeader:!1,csvDelimiter:","},fieldsData:[],currentFile:null,fetching:!1}},mounted:function(){var e=this;document.addEventListener("table:imported:saved",function(){e.currentFile=null,e.setMessage({type:"ok",message:e.strings.tableImported}),e.setBusy(!1)}),document.addEventListener("table:imported:error",function(){e.currentFile=null,e.setMessage({type:"error",message:e.strings.errorOccured}),e.setBusy(!1)}),this.fieldsData.push({type:"dropdown",id:"csvDelimiter",modelBind:this.settings,label:this.strings.csvDelimiter,options:[{value:",",label:", (comma)"},{value:";",label:"; (semicolon)"},{value:"tab",label:"\\t (tabular)"}]},{type:"checkbox",id:"responsiveTables",modelBind:this.settings,label:this.strings.tableResponsive},{type:"checkbox",id:"topRowAsHeader",modelBind:this.settings,label:this.strings.topRowHeader})},computed:{isImportDisabled:function(){return null===this.currentFile||this.fetching}},methods:{importFromFile:function(){if(null!==this.currentFile){var e={file:this.currentFile,ajaxUrl:this.options.ajaxUrl,nonce:this.options.security_code,delimiter:this.settings.csvDelimiter,tableResponsive:this.settings.responsiveTables,topRowAsHeader:this.settings.topRowAsHeader},t=(0,i.default)(e);this.setBusy(),t.importFromFile()}}}};exports.default=n;
|
42 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("drag-drop",{attrs:{texts:{hint:t.strings.fileDropHint,browse:t.strings.browse,clear:t.strings.clear},"allowed-formats":["csv","xml","zip"]},model:{value:t.currentFile,callback:function(e){t.currentFile=e},expression:"currentFile"}}),t._v(" "),r("div",t._l(t.fieldsData,function(t){return r("control-item",{key:t.id,attrs:{"field-data":t,"model-bind":t.modelBind}})}),1),t._v(" "),r("portal",{attrs:{to:"footerButtons"}},[r("menu-button",{attrs:{disabled:t.isImportDisabled},on:{click:t.importFromFile}},[t._v(t._s(t.strings.importSection)+" ")])],1)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
43 |
+
},{"../components/DragDrop.vue":"vU4o","../components/ControlItem.vue":"yXWm","../components/MenuButton.vue":"ksMR","../functions/importOperations.js":"bsz0","../mixins/withMessage":"wm3G"}],"CDb8":[function(require,module,exports) {
|
44 |
"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(n){e(t,n,r[n])})}return t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Plugin=exports.SSR=exports.Fragment=exports.default=void 0;var n=function(e,t,n){Object.defineProperty(e,t,{configurable:!0,get:function(){return n},set:function(e){console.warn("tried to set frozen property ".concat(t," with ").concat(e))}})},r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n})},o={abstract:!0,name:"Fragment",props:{name:{type:String,default:function(){return Math.floor(Date.now()*Math.random()).toString(16)}}},mounted:function(){var e=this.$el,t=e.parentNode,o=document.createComment("fragment#".concat(this.name,"#head")),i=document.createComment("fragment#".concat(this.name,"#tail"));t.insertBefore(o,e),t.insertBefore(i,e),e.appendChild=function(r){t.insertBefore(r,i),n(r,"parentNode",e)},e.insertBefore=function(r,o){t.insertBefore(r,o),n(r,"parentNode",e)},e.removeChild=function(e){t.removeChild(e),r(e,"parentNode")},Array.from(e.childNodes).forEach(function(t){return e.appendChild(t)}),t.removeChild(e),n(e,"parentNode",t),n(e,"nextSibling",i.nextSibling);var a=t.insertBefore;t.insertBefore=function(n,r){a.call(t,n,r!==e?r:o)};var c=t.removeChild;t.removeChild=function(n){if(n===e){for(;o.nextSibling!==i;)e.removeChild(o.nextSibling);t.removeChild(o),t.removeChild(i),r(e,"parentNode"),t.insertBefore=a,t.removeChild=c}else c.call(t,n)}},render:function(e){var n=this,r=this.$slots.default;return r&&r.length&&r.forEach(function(e){return e.data=t({},e.data,{attrs:t({fragment:n.name},(e.data||{}).attrs)})}),e("div",{attrs:{fragment:this.name}},r)}};function i(e,t){}var a=o,c=i,f={install:function(e){e.component("fragment",o)}},l={Fragment:o,Plugin:f,SSR:i};exports.Plugin=f,exports.SSR=c,exports.Fragment=a;var u=l;exports.default=u;
|
45 |
},{}],"pxbx":[function(require,module,exports) {
|
46 |
function e(e,n){var r,t,l=0;function u(){var u,v,a=r,p=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(v=0;v<p;v++)if(a.args[v]!==arguments[v]){a=a.next;continue e}return a!==r&&(a===t&&(t=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=r,a.prev=null,r.prev=a,r=a),a.val}a=a.next}for(u=new Array(p),v=0;v<p;v++)u[v]=arguments[v];return a={args:u,val:e.apply(null,u)},r?(r.prev=a,a.next=r):t=a,l===n.maxSize?(t=t.prev).next=null:l++,r=a,a.val}return n=n||{},u.clear=function(){r=null,t=null,l=0},u}module.exports=e;
|
69 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={sprintf:!0,setLocaleData:!0,__:!0,_x:!0,_n:!0,_nx:!0,isRTL:!0};Object.defineProperty(exports,"sprintf",{enumerable:!0,get:function(){return t.sprintf}}),Object.defineProperty(exports,"setLocaleData",{enumerable:!0,get:function(){return n.setLocaleData}}),Object.defineProperty(exports,"__",{enumerable:!0,get:function(){return n.__}}),Object.defineProperty(exports,"_x",{enumerable:!0,get:function(){return n._x}}),Object.defineProperty(exports,"_n",{enumerable:!0,get:function(){return n._n}}),Object.defineProperty(exports,"_nx",{enumerable:!0,get:function(){return n._nx}}),Object.defineProperty(exports,"isRTL",{enumerable:!0,get:function(){return n.isRTL}});var t=require("./sprintf"),r=require("./create-i18n");Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return r[t]}}))});var n=require("./default-i18n");
|
70 |
},{"./sprintf":"jmTT","./create-i18n":"bf97","./default-i18n":"C7H9"}],"FPuA":[function(require,module,exports) {
|
71 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("vue-fragment"),t=require("@wordpress/i18n"),r=s(require("../components/MenuButton.vue")),n=s(require("../functions/importOperations.js")),o=s(require("../mixins/withMessage"));function s(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c={props:["options"],mixins:[o.default],components:{MenuButton:r.default,Fragment:e.Fragment},data:function(){return{supportedPlugins:{"table-press":"TablePress"},importedTables:{},selectedReplaceRows:[]}},watch:{fetching:function(e){this.$emit("fetching",e)}},mounted:function(){var e=this;document.addEventListener("table:imported:saved",function(t){var r=t.detail;e.setMessage({type:"ok",message:e.isDocumentEventPoorlyImplemented(r)?e.strings.operationSuccess:r}),e.setBusy(!1)}),document.addEventListener("table:imported:error",function(t){var r=t.detail;e.setMessage({type:"error",message:e.isDocumentEventPoorlyImplemented(r)?e.strings.errorOccured:r}),e.setBusy(!1)}),document.addEventListener("table:imported:list",function(t){var r=t.detail;e.setBusy(!1),e.importedTables=r}),document.addEventListener("table:shortcode:replace",function(t){var r=t.detail;e.setMessage({type:"ok",message:"".concat(e.strings.replacedShortcodes,": ").concat(!0===r?0:r)}),e.setBusy(!1)})},methods:{isDocumentEventPoorlyImplemented:function(e){return"boolean"==typeof e},handleImportFromPlugin:function(e){var t=(0,n.default)(a({},this.options,{type:e}));this.setBusy(),t.importFromPlugin(e)},selectAllCheckbox:function(e){this.selectedReplaceRows===this.importedTables[e]?this.selectedReplaceRows=[]:this.selectedReplaceRows=this.importedTables[e]},replaceShortcodes:function(){if(0!==this.selectedReplaceRows.length){var e=this.selectedReplaceRows.map(function(e){return{search:e[0],replace:e[1]}}),t=(0,n.default)(this.options);this.setBusy(),t.replaceShortcodesAjax(e,!0)}},importButtonText:function(e){return(0,t.sprintf)((0,t._x)("import from %s","%s is a format variable for a name of WordPress plugin",this.options.textDomain),e)},importedTablesCountInfo:function(e){return(0,t.sprintf)((0,t._nx)("%u table imported","%u tables imported","number of tables imported",this.options.textDomain),this.importedTables[e].length)},isPluginInstalled:function(e){return this.options.installedSupportedPlugins.includes(e)}},computed:{showImportedTables:function(){var e=this,t=Object.keys(this.importedTables).map(function(t){return Object.prototype.hasOwnProperty.call(e.importedTables,t)?t:null});return!!Array.isArray(t)&&t.length>0}}};exports.default=c;
|
72 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t._l(t.supportedPlugins,function(e,a){return s("menu-button",{key:a,staticClass:"wptb-text-transform-cap",attrs:{disabled:!t.isPluginInstalled(e)||t.isBusy(),title:t.isPluginInstalled(e)?"":t.getTranslation("plugin not installed")},on:{click:function(e){return t.handleImportFromPlugin(a)}}},[t._v(" "+t._s(t.importButtonText(e))+" ")])}),t._v(" "),s("div",{staticStyle:{display:"none"},attrs:{id:"wptb-importIframeSection"}}),t._v(" "),s("transition",{attrs:{name:"wptb-fade",mode:"out-in"}},[t.showImportedTables?s("div",{staticClass:"wptb-flex wptb-flex-align-center wptb-flex-col"},[s("div",{staticClass:"wptb-import-tables-wrapper"},t._l(t.importedTables,function(e,a){return s("div",{key:a,staticClass:"wptb-import-tables-list"},[s("div",{staticClass:"wptb-import-table-count-info"},[t._v(t._s(t.importedTablesCountInfo(a)))]),t._v(" "),s("table",{staticClass:"wptb-import-table"},[s("thead",[s("tr",[s("th",[s("input",{attrs:{type:"checkbox"},on:{click:function(e){return t.selectAllCheckbox(a)}}})]),t._v(" "),s("th",{staticClass:"wptb-text-transform-cap"},[t._v(" "+t._s(t.supportedPlugins[a])+" ")]),t._v(" "),s("th",{staticClass:"wptb-text-transform-cap"},[t._v(" wp table builder ")])])]),t._v(" "),s("tbody",t._l(e,function(e){return s("fragment",{key:e[0]},[s("tr",[s("td",[s("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedReplaceRows,expression:"selectedReplaceRows"}],attrs:{type:"checkbox"},domProps:{value:e,checked:Array.isArray(t.selectedReplaceRows)?t._i(t.selectedReplaceRows,e)>-1:t.selectedReplaceRows},on:{change:function(s){var a=t.selectedReplaceRows,i=s.target,l=!!i.checked;if(Array.isArray(a)){var r=e,c=t._i(a,r);i.checked?c<0&&(t.selectedReplaceRows=a.concat([r])):c>-1&&(t.selectedReplaceRows=a.slice(0,c).concat(a.slice(c+1)))}else t.selectedReplaceRows=l}}})]),t._v(" "),s("td",[t._v(" "+t._s(e[0])+" ")]),t._v(" "),s("td",[t._v(" "+t._s(e[1])+" ")])])])}),1)])])}),0),t._v(" "),s("menu-button",{staticClass:"wptb-text-transform-cap",attrs:{disabled:0===t.selectedReplaceRows.length,size:"small"},on:{click:t.replaceShortcodes}},[t._v(" "+t._s(t.getTranslation("replace short codes"))+" ")])],1):t._e()]),t._v(" "),t._m(0)],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"wptb-importPBarContainer",staticStyle:{visibility:"hidden"}},[e("div",{staticClass:"wptb-importPBarProgress"},[e("div",{staticClass:"wptb-nameProcessInBarProgress"}),this._v(" "),e("div",{attrs:{id:"wptb-pBarPercent"}},[e("span",[this._v("0%")])])])])}],_compiled:!0,_scopeId:null,functional:void 0});})();
|
73 |
+
},{"vue-fragment":"CDb8","@wordpress/i18n":"e20f","../components/MenuButton.vue":"ksMR","../functions/importOperations.js":"bsz0","../mixins/withMessage":"wm3G"}],"qRIs":[function(require,module,exports) {
|
74 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("../components/Sections.vue")),t=r(require("../components/SectionItem.vue")),n=r(require("../components/MenuContent.vue")),u=r(require("./CSVImportMenu.vue")),o=r(require("./PluginsImportMenu.vue"));function r(e){return e&&e.__esModule?e:{default:e}}var c={props:["options"],components:{Sections:e.default,SectionItem:t.default,MenuContent:n.default},data:function(){return{currentSection:"csv"}},methods:{setSection:function(e){this.currentSection!==e&&(this.currentSection=e)}},computed:{currentTemplate:function(){return"csv"===this.currentSection?u.default:o.default}}};exports.default=c;
|
75 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("portal",{attrs:{to:"childSections"}},[n("sections",{attrs:{child:!0,items:["csv",t.strings.plugins]},model:{value:t.currentSection,callback:function(e){t.currentSection=e},expression:"currentSection"}})],1),t._v(" "),n("menu-content",{attrs:{center:!0}},[n(t.currentTemplate,{tag:"component",staticClass:"wptb-flex wptb-flex-col wptb-flex-align-center",attrs:{options:t.options}})],1)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
76 |
+
},{"../components/Sections.vue":"yPIx","../components/SectionItem.vue":"bosS","../components/MenuContent.vue":"vTRD","./CSVImportMenu.vue":"ACYA","./PluginsImportMenu.vue":"FPuA"}],"BOOO":[function(require,module,exports) {
|
77 |
|
78 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"wptb-menu-empty-cover"},[this._t("default")],2)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
79 |
+
},{}],"UuSu":[function(require,module,exports) {
|
80 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:["message"],data:function(){return{top:0,left:0}},mounted:function(){this.calculatePopupPosition()},methods:{toPx:function(t){return"".concat(t,"px")},calculatePopupPosition:function(){var t=this.$refs.wrapper.getBoundingClientRect(),e=this.$refs.popup.getBoundingClientRect(),o=this.$refs.arrow.getBoundingClientRect();this.left=this.toPx(t.left-e.width/2+t.width/2),this.top=this.toPx(t.top-(e.height+o.height/2))}}};exports.default=t;
|
81 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,p=e._self._c||t;return p("div",[p("div",{ref:"wrapper",staticClass:"wptb-menu-popup-wrapper",on:{mouseover:e.calculatePopupPosition}},[e._t("default")],2),e._v(" "),p("div",{ref:"popup",staticClass:"wptb-menu-popup-message",style:{top:e.top,left:e.left}},[p("div",{staticClass:"wptb-menu-popup-inner-holder"},[p("div",{ref:"arrow",staticClass:"wptb-menu-popup-arrow"}),e._v(" "),p("span",{domProps:{innerHTML:e._s(e.message)}})])])])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
82 |
+
},{}],"hl0g":[function(require,module,exports) {
|
83 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:["label","index"],data:function(){return{currentDirection:1}},methods:{sort:function(){this.currentDirection*=-1,this.$emit("sort",this.index,this.currentDirection)}}};exports.default=t;
|
84 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("td",{on:{click:function(t){return t.preventDefault(),e.sort(t)}}},[e._v(" "+e._s(e.label)+"\n")])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
85 |
+
},{}],"AF9R":[function(require,module,exports) {
|
86 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("./ColumnSort"));function e(t){return t&&t.__esModule?t:{default:t}}var o={props:{rowLabels:Array,rowData:Array,modelBind:Object,sortType:Object},components:{ColumnSort:t.default},data:function(){return{innerRowData:[],sortOptions:{index:0,direction:1}}},watch:{rowData:function(t){this.innerRowData=t,this.sortOptions&&this.sort(this.sortOptions.index,this.sortOptions.direction)}},methods:{sort:function(t,e){this.sortOptions.index=t,this.sortOptions.direction=e;var o,r={dateSort:function(o,r){var a=0,s=new Date(o.fieldDatas[t].toLowerCase()).getTime(),i=new Date(r.fieldDatas[t].toLowerCase()).getTime();return s<i&&(a=1),s>i&&(a=-1),a*e},defaultSort:function(o,r){var a=0,s=o.fieldDatas[t].toLowerCase(),i=r.fieldDatas[t].toLowerCase();return s<i&&(a=1),s>i&&(a=-1),a*e}},a=this.sortType[t];o=a&&r["".concat(a,"Sort")]?r["".concat(a,"Sort")]:r.defaultSort,this.innerRowData.sort(o)}}};exports.default=o;
|
87 |
+
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("table",{staticClass:"wptb-menu-list-table"},[n("thead",[n("tr",[n("td"),e._v(" "),e._l(e.rowLabels,function(t,o){return n("column-sort",{key:t,attrs:{label:t,index:o},on:{sort:e.sort}})})],2)]),e._v(" "),n("transition-group",{attrs:{tag:"tbody",name:"wptb-fade",mode:"out-in"}},e._l(e.innerRowData,function(t){return n("tr",{key:t.ID},[n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.modelBind[t.ID],expression:"modelBind[row.ID]"}],attrs:{id:t.ID,type:"checkbox"},domProps:{checked:Array.isArray(e.modelBind[t.ID])?e._i(e.modelBind[t.ID],null)>-1:e.modelBind[t.ID]},on:{change:function(n){var o=e.modelBind[t.ID],r=n.target,d=!!r.checked;if(Array.isArray(o)){var i=e._i(o,null);r.checked?i<0&&e.$set(e.modelBind,t.ID,o.concat([null])):i>-1&&e.$set(e.modelBind,t.ID,o.slice(0,i).concat(o.slice(i+1)))}else e.$set(e.modelBind,t.ID,d)}}})]),e._v(" "),e._l(t.fieldDatas,function(o){return n("td",{key:o},[n("label",{attrs:{for:t.ID}},[e._v(e._s(o))])])})],2)}),0)],1)])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
88 |
+
},{"./ColumnSort":"hl0g"}],"UipM":[function(require,module,exports) {
|
89 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("../components/MenuButton")),t=i(require("../components/ControlItem")),r=i(require("../components/EmptyCover")),n=i(require("../components/PopUp")),o=i(require("../components/ListTable")),s=i(require("../mixins/withMessage"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u={props:["options","pluginInfo"],mixins:[s.default],components:{ListTable:o.default,PopUp:n.default,MenuButton:e.default,ControlItem:t.default,EmptyCover:r.default},data:function(){return{userTables:[],selectedTables:{},exportType:"CSV",exportTypeControlOptions:{id:"exportType",type:"dropdown",label:"export type",options:[{label:"csv",value:"CSV"},{label:"xml",value:"XML"}]},filename:""}},mounted:function(){this.getUserTables()},computed:{exportTypeDescription:function(){var e={csvDescription:"<b>CSV:</b> ".concat(this.getTranslation("only text content of your tables will be exported, ideal for usage within other apps/plugins.")),xmlDescription:"<b>XML:</b> ".concat(this.getTranslation("an exact copy of your tables will be exported, ideal for backing up and sharing your tables with your other WordPress sites that uses WP Table Builder."))};return this.getTranslation(e["".concat(this.exportType.toLowerCase(),"Description")])},remainingTables:function(){var e=this;return this.userTables.filter(function(t){return!e.selectedTables[t.ID]})},parsedSelectedTables:function(){var e=this;return this.userTables.filter(function(t){return e.selectedTables[t.ID]})},exportDisabled:function(){return this.isBusy()||this.isSelectedEmpty()}},methods:{selectAll:function(){var e={};this.userTables.map(function(t){e[t.ID]=!0}),this.selectedTables=l({},this.selectedTables,{},e)},deselectAll:function(){this.selectedTables={}},isSelectedEmpty:function(){var e=this;return!Object.keys(this.selectedTables).filter(function(t){return!!Object.prototype.hasOwnProperty.call(e.selectedTables,t)&&e.selectedTables[t]}).length>0},getSelectedIds:function(){var e=this,t=[];return Object.keys(this.selectedTables).map(function(r){Object.prototype.hasOwnProperty.call(e.selectedTables,r)&&e.selectedTables[r]&&t.push(r)}),t},fieldLabel:function(e){return""===e.post_title?"Table #".concat(e.ID):e.post_title},getUserTables:function(){var e=this,t=this.options,r=t.ajaxUrl,n=t.fetchNonce,o=t.fetchAjaxAction,s=new FormData;s.append("nonce",n),s.append("action",o),this.setBusy(),fetch(r,{method:"POST",body:s}).then(function(t){if(t.ok)return t.json();throw new Error(e.getTranslation("an error occurred, try again later"))}).then(function(t){if(t.error)throw new Error(t.error);var r=[];e.userTables=t.data.userTables.map(function(t){var n=new Intl.DateTimeFormat("default",{year:"numeric",month:"long",day:"numeric"}).format(new Date(t.post_date)),o={ID:t.ID,fieldDatas:[e.fieldLabel(t),n,t.ID]};r.push(o)}),e.userTables=r}).catch(function(t){e.setMessage({type:"error",message:t})}).finally(function(){e.setBusy(!1)})},parseFilename:function(e){var t=new RegExp(/filename="(.+\..+)"/,"g").exec(e);if(null===t)throw new Error(this.getTranslation("invalid file name header"));return t[1]},exportTables:function(){var e=this,t=this.options,r=t.ajaxUrl,n=t.exportAjaxAction,o=t.exportNonce,s=new FormData;s.append("nonce",o),s.append("action",n),s.append("ids",JSON.stringify(this.getSelectedIds())),s.append("export_type",this.exportType),this.setBusy(),fetch(r,{method:"POST",body:s}).then(function(t){if(t.ok)return"application/octet-stream"===t.headers.get("content-type")?(e.filename=e.parseFilename(t.headers.get("content-disposition")),t.blob()):t.json();throw new Error(e.getTranslation("an error occurred, try again later"))}).then(function(t){if(t.error)throw new Error(t.error);var r=window.URL.createObjectURL(t);e.$refs.filesave.href=r,e.$refs.filesave.click(),window.URL.revokeObjectURL(r),e.resetSelections()}).catch(function(t){e.setMessage({type:"error",message:t})}).finally(function(){e.setBusy(!1)})},resetSelections:function(){this.selectedTables=[]}}};exports.default=u;
|
90 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"wptb-menu-export-wrapper"},[s("div",{staticClass:"wptb-menu-export-card"},[s("div",{staticClass:"wptb-menu-export-control-title"},[t._v(t._s(t.getTranslation("all tables")))]),t._v(" "),s("list-table",{attrs:{"row-labels":["Title","Created","ID"].map(t.getTranslation),"row-data":t.remainingTables,"model-bind":t.selectedTables,"sort-type":{1:"date"}}}),t._v(" "),s("empty-cover",{directives:[{name:"show",rawName:"v-show",value:!t.userTables.length>0,expression:"!userTables.length > 0"}]},[t._v(" "+t._s(t.getTranslation("no tables found"))+" ")])],1),t._v(" "),s("div",{staticClass:"wptb-menu-export-middle-section"},[s("div",{staticClass:"arrow-holder"},[s("img",{attrs:{src:t.pluginInfo.plainArrow,title:t.getTranslation("select all"),alt:t.getTranslation("arrow")},on:{click:function(e){return e.preventDefault(),t.selectAll(e)}}})]),t._v(" "),s("div",[s("control-item",{staticClass:"wptb-flex wptb-flex-align-center wptb-flex-justify-center",attrs:{"field-data":t.exportTypeControlOptions,"model-bind":this}},[s("pop-up",{attrs:{message:t.exportTypeDescription}},[t._v("?")])],1)],1),t._v(" "),s("div",{staticClass:"arrow-holder flip"},[s("img",{attrs:{src:t.pluginInfo.plainArrow,title:t.getTranslation("deselect all"),alt:t.getTranslation("arrow")},on:{click:function(e){return e.preventDefault(),t.deselectAll(e)}}})])]),t._v(" "),s("div",{staticClass:"wptb-menu-export-card"},[s("div",{staticClass:"wptb-menu-export-control-title",staticStyle:{"text-align":"end"}},[t._v(" "+t._s(t.getTranslation("selected tables"))+" ")]),t._v(" "),s("list-table",{attrs:{"row-labels":["Title","Created","ID"].map(t.getTranslation),"row-data":t.parsedSelectedTables,"model-bind":t.selectedTables,"sort-type":{1:"date"}}}),t._v(" "),s("empty-cover",{directives:[{name:"show",rawName:"v-show",value:t.isSelectedEmpty(),expression:"isSelectedEmpty()"}]},[t._v(" "+t._s(t.getTranslation("no table selected"))+" ")])],1),t._v(" "),s("portal",{attrs:{to:"footerButtons"}},[s("a",{ref:"filesave",staticStyle:{display:"none"},attrs:{download:t.filename}},[t._v("_filesave")]),t._v(" "),s("div",{staticClass:"wptb-settings-button-container"},[s("menu-button",{attrs:{disabled:t.isBusy()},on:{click:t.getUserTables}},[t._v(t._s(t.getTranslation("refresh")))]),t._v(" "),s("menu-button",{attrs:{disabled:t.exportDisabled},on:{click:t.exportTables}},[t._v(t._s(t.strings.exportSection))])],1)])],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
91 |
+
},{"../components/MenuButton":"ksMR","../components/ControlItem":"yXWm","../components/EmptyCover":"BOOO","../components/PopUp":"UuSu","../components/ListTable":"AF9R","../mixins/withMessage":"wm3G"}],"l9Oj":[function(require,module,exports) {
|
92 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=c(require("../components/MenuHeader")),t=c(require("../components/Sections")),n=c(require("../components/SectionItem")),r=c(require("../components/MenuFooter")),o=c(require("../mixins/withMessage")),u=c(require("./ImportApp")),p=c(require("./ExportApp")),i=c(require("../components/MenuContent"));function c(e){return e&&e.__esModule?e:{default:e}}var s={props:["pluginInfo","options"],mixins:[o.default],components:{ExportApp:p.default,MenuContent:i.default,ImportApp:u.default,MenuHeader:e.default,SectionItem:n.default,Sections:t.default,MenuFooter:r.default},data:function(){return{currentSection:"Import"}},computed:{currentTemplate:function(){return"".concat(this.currentSection,"App")}}};exports.default=s;
|
93 |
+
(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wptb-settings-wrapper"},[n("menu-header",{attrs:{"logo-src":t.pluginInfo.logo,"logo-alt":t.strings.logoAlt,"plugin-name":t.pluginInfo.pluginName}},[n("a",{attrs:{href:t.pluginInfo.pluginHomepage}},[t._v(t._s(t.strings.homepage))])]),t._v(" "),n("sections",{attrs:{items:[t.strings.importSection,t.strings.exportSection]},model:{value:t.currentSection,callback:function(e){t.currentSection=e},expression:"currentSection"}},[n("portal-target",{attrs:{name:"childSections"}})],1),t._v(" "),n("menu-content",{attrs:{center:!0}},[n(t.currentTemplate,{tag:"component",attrs:{options:t.options,"plugin-info":t.pluginInfo}})],1),t._v(" "),n("menu-footer",[n("portal-target",{attrs:{name:"footerButtons"}})],1)],1)},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})();
|
94 |
+
},{"../components/MenuHeader":"vi91","../components/Sections":"yPIx","../components/SectionItem":"bosS","../components/MenuFooter":"nwtb","../mixins/withMessage":"wm3G","./ImportApp":"qRIs","./ExportApp":"UipM","../components/MenuContent":"vTRD"}],"yEip":[function(require,module,exports) {
|
95 |
"use strict";function t(t,e){t.mixin({data:function(){return{strings:e.strings}}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={install:t};exports.default=e;
|
96 |
},{}],"XomE":[function(require,module,exports) {
|
97 |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("@wordpress/i18n");function t(t,r){var i=r.textDomain;t.mixin({methods:{getTranslation:function(t){return(0,e.__)(t,i)}}})}var r={install:t};exports.default=r;
|
98 |
},{"@wordpress/i18n":"e20f"}],"NIwa":[function(require,module,exports) {
|
99 |
"use strict";var e=u(require("vue")),t=u(require("portal-vue")),r=u(require("./containers/ImportExportApp")),n=u(require("./plugins/strings")),o=u(require("./plugins/translations"));function u(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=p({},wptbImportMenuData);wptbImportMenuData=void 0,e.default.config.productionTip=!1,e.default.use(n.default,{strings:s.strings}),e.default.use(o.default,{textDomain:s.options.textDomain}),e.default.use(t.default),new e.default({components:{ImportExportApp:r.default},data:{pluginInfo:s.pluginInfo,options:s.options}}).$mount("#wptb-import-menu");
|
100 |
+
},{"vue":"HYXJ","portal-vue":"Lue2","./containers/ImportExportApp":"l9Oj","./plugins/strings":"yEip","./plugins/translations":"XomE"}]},{},["NIwa"], null)
|
|
|
|
|
|
inc/admin/js/WPTB_ResponsiveFrontend.js
CHANGED
@@ -225,7 +225,9 @@
|
|
225 |
|
226 |
// set visibility of connected merge group cells to false to not render them since we added necessary span values to main cell which will leak into their position
|
227 |
for (let mc = 0; mc < valueToApply - 1; mc += 1) {
|
228 |
-
this.mergedCells[spanType][mc]
|
|
|
|
|
229 |
}
|
230 |
|
231 |
return true;
|
@@ -420,8 +422,19 @@
|
|
420 |
logToConsole('no rows are found to parse their colors', 'error');
|
421 |
}
|
422 |
|
|
|
|
|
|
|
|
|
|
|
423 |
// header row color
|
424 |
-
this.rowColors.header =
|
|
|
|
|
|
|
|
|
|
|
|
|
425 |
|
426 |
// calculate needed number of rows to get even and odd row background colors
|
427 |
// eslint-disable-next-line no-nested-ternary
|
@@ -436,8 +449,9 @@
|
|
436 |
}
|
437 |
|
438 |
// even & odd row colors
|
439 |
-
|
440 |
-
this.rowColors.
|
|
|
441 |
|
442 |
// remove created rows from DOM
|
443 |
for (let r = 0; r < rowsNeeded; r += 1) {
|
@@ -719,19 +733,22 @@
|
|
719 |
* @param {TableObject} tableObj table object
|
720 |
*/
|
721 |
this.autoBuild = (tableEl, sizeRange, autoOption, tableObj) => {
|
|
|
722 |
const direction = autoOption.cellStackDirection[sizeRange];
|
723 |
// eslint-disable-next-line prefer-destructuring
|
724 |
const topRowAsHeader = autoOption.topRowAsHeader[sizeRange];
|
725 |
-
|
726 |
const cellsPerRow = autoOption.cellsPerRow[sizeRange];
|
727 |
|
|
|
|
|
|
|
728 |
tableObj.clearTable();
|
729 |
|
730 |
if (sizeRange === 'desktop') {
|
731 |
this.buildDefault(tableObj);
|
732 |
this.removeDefaultClasses(tableEl);
|
733 |
} else {
|
734 |
-
this.autoDirectionBuild(tableObj, direction, topRowAsHeader, cellsPerRow);
|
735 |
this.addDefaultClasses(tableEl);
|
736 |
}
|
737 |
};
|
@@ -746,9 +763,16 @@
|
|
746 |
* @param {TableObject} tableObj table object
|
747 |
* @param {string} direction direction to read cells, possible options [row, column]
|
748 |
* @param {boolean} topRowAsHeader use top row as header
|
|
|
749 |
* @param {number} cellsPerRow cells per row
|
750 |
*/
|
751 |
-
this.autoDirectionBuild = (
|
|
|
|
|
|
|
|
|
|
|
|
|
752 |
const rows = tableObj.maxRows();
|
753 |
const columns = tableObj.maxColumns();
|
754 |
const isRowStacked = direction === 'row';
|
@@ -762,9 +786,28 @@
|
|
762 |
// eslint-disable-next-line no-lonely-if
|
763 |
if (isRowStacked) {
|
764 |
const allCellsByRow = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
765 |
|
766 |
// get cells by reading row by row
|
767 |
-
for (let r =
|
768 |
// eslint-disable-next-line no-loop-func
|
769 |
tableObj.getCellsAtRow(r, true).forEach((c) => allCellsByRow.push(c));
|
770 |
}
|
@@ -796,7 +839,25 @@
|
|
796 |
// cell stack direction is selected as column
|
797 |
else {
|
798 |
const allCellsByCol = [];
|
799 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
800 |
|
801 |
// read all cells column by column
|
802 |
for (let c = 0; c < columns; c += 1) {
|
225 |
|
226 |
// set visibility of connected merge group cells to false to not render them since we added necessary span values to main cell which will leak into their position
|
227 |
for (let mc = 0; mc < valueToApply - 1; mc += 1) {
|
228 |
+
if (this.mergedCells[spanType] && this.mergedCells[spanType][mc]) {
|
229 |
+
this.mergedCells[spanType][mc].setMergedRenderStatus(false);
|
230 |
+
}
|
231 |
}
|
232 |
|
233 |
return true;
|
422 |
logToConsole('no rows are found to parse their colors', 'error');
|
423 |
}
|
424 |
|
425 |
+
// get row colors if they are defined as datasets on table element
|
426 |
+
const headerDatasetColor = this.tableElement.dataset.wptbHeaderBackgroundColor;
|
427 |
+
const evenRowDatasetColor = this.tableElement.dataset.wptbEvenRowBackgroundColor;
|
428 |
+
const oddRowDatasetColor = this.tableElement.dataset.wptbOddRowBackgroundColor;
|
429 |
+
|
430 |
// header row color
|
431 |
+
this.rowColors.header =
|
432 |
+
// eslint-disable-next-line no-nested-ternary
|
433 |
+
headerDatasetColor !== undefined
|
434 |
+
? headerDatasetColor
|
435 |
+
: rows[0].style.backgroundColor === ''
|
436 |
+
? null
|
437 |
+
: rows[0].style.backgroundColor;
|
438 |
|
439 |
// calculate needed number of rows to get even and odd row background colors
|
440 |
// eslint-disable-next-line no-nested-ternary
|
449 |
}
|
450 |
|
451 |
// even & odd row colors
|
452 |
+
// dataset colors have priority over colors gathered from computed row styles
|
453 |
+
this.rowColors.even = evenRowDatasetColor || getComputedStyle(rows[1]).backgroundColor;
|
454 |
+
this.rowColors.odd = evenRowDatasetColor ? oddRowDatasetColor : getComputedStyle(rows[2]).backgroundColor;
|
455 |
|
456 |
// remove created rows from DOM
|
457 |
for (let r = 0; r < rowsNeeded; r += 1) {
|
733 |
* @param {TableObject} tableObj table object
|
734 |
*/
|
735 |
this.autoBuild = (tableEl, sizeRange, autoOption, tableObj) => {
|
736 |
+
// base options
|
737 |
const direction = autoOption.cellStackDirection[sizeRange];
|
738 |
// eslint-disable-next-line prefer-destructuring
|
739 |
const topRowAsHeader = autoOption.topRowAsHeader[sizeRange];
|
|
|
740 |
const cellsPerRow = autoOption.cellsPerRow[sizeRange];
|
741 |
|
742 |
+
// new options
|
743 |
+
const staticTopRow = autoOption.staticTopRow ? autoOption.staticTopRow[sizeRange] : false;
|
744 |
+
|
745 |
tableObj.clearTable();
|
746 |
|
747 |
if (sizeRange === 'desktop') {
|
748 |
this.buildDefault(tableObj);
|
749 |
this.removeDefaultClasses(tableEl);
|
750 |
} else {
|
751 |
+
this.autoDirectionBuild(tableObj, direction, topRowAsHeader, staticTopRow, cellsPerRow);
|
752 |
this.addDefaultClasses(tableEl);
|
753 |
}
|
754 |
};
|
763 |
* @param {TableObject} tableObj table object
|
764 |
* @param {string} direction direction to read cells, possible options [row, column]
|
765 |
* @param {boolean} topRowAsHeader use top row as header
|
766 |
+
* @param {boolean} staticTopRow use top row as static
|
767 |
* @param {number} cellsPerRow cells per row
|
768 |
*/
|
769 |
+
this.autoDirectionBuild = (
|
770 |
+
tableObj,
|
771 |
+
direction,
|
772 |
+
topRowAsHeader = false,
|
773 |
+
staticTopRow = false,
|
774 |
+
cellsPerRow = 1
|
775 |
+
) => {
|
776 |
const rows = tableObj.maxRows();
|
777 |
const columns = tableObj.maxColumns();
|
778 |
const isRowStacked = direction === 'row';
|
786 |
// eslint-disable-next-line no-lonely-if
|
787 |
if (isRowStacked) {
|
788 |
const allCellsByRow = [];
|
789 |
+
let rowStartIndex = 0;
|
790 |
+
|
791 |
+
// static top row option is enabled
|
792 |
+
if (staticTopRow) {
|
793 |
+
const topCells = tableObj.getCellsAtRow(0, true);
|
794 |
+
|
795 |
+
const baseCells = topCells.filter((c) => !c.isReference());
|
796 |
+
|
797 |
+
// eslint-disable-next-line array-callback-return
|
798 |
+
baseCells.map((b) => {
|
799 |
+
rowStartIndex += 1;
|
800 |
+
const rowObj = tableObj.addRow('wptb-row');
|
801 |
+
rowObj.el.style.backgroundColor = tableObj.rowColors.header;
|
802 |
+
|
803 |
+
tableObj.appendObjectToRow(b, rowObj.id);
|
804 |
+
|
805 |
+
b.setAttribute('colSpan', cellsPerRow);
|
806 |
+
});
|
807 |
+
}
|
808 |
|
809 |
// get cells by reading row by row
|
810 |
+
for (let r = rowStartIndex; r < rows; r += 1) {
|
811 |
// eslint-disable-next-line no-loop-func
|
812 |
tableObj.getCellsAtRow(r, true).forEach((c) => allCellsByRow.push(c));
|
813 |
}
|
839 |
// cell stack direction is selected as column
|
840 |
else {
|
841 |
const allCellsByCol = [];
|
842 |
+
let rowStartIndex = 0;
|
843 |
+
|
844 |
+
// static top row option is enabled
|
845 |
+
if (staticTopRow) {
|
846 |
+
const topCells = tableObj.getCellsAtRow(0, true);
|
847 |
+
|
848 |
+
const baseCells = topCells.filter((t) => !t.isReference());
|
849 |
+
|
850 |
+
// eslint-disable-next-line array-callback-return
|
851 |
+
baseCells.map((b) => {
|
852 |
+
rowStartIndex += 1;
|
853 |
+
const rowObj = tableObj.addRow('wptb-row');
|
854 |
+
rowObj.el.style.backgroundColor = tableObj.rowColors.header;
|
855 |
+
|
856 |
+
tableObj.appendObjectToRow(b, rowObj.id);
|
857 |
+
|
858 |
+
b.setAttribute('colSpan', cellsPerRow);
|
859 |
+
});
|
860 |
+
}
|
861 |
|
862 |
// read all cells column by column
|
863 |
for (let c = 0; c < columns; c += 1) {
|
inc/admin/js/admin.js
CHANGED
@@ -672,6 +672,8 @@ var WPTB_Cell = function WPTB_Cell(callback, DOMElement) {
|
|
672 |
return this;
|
673 |
};
|
674 |
var WPTB_DropHandle = function WPTB_DropHandle(thisElem, e) {
|
|
|
|
|
675 |
|
676 |
var wptbDropHandle = void 0,
|
677 |
wptbDropBorderMarker = void 0,
|
@@ -679,6 +681,54 @@ var WPTB_DropHandle = function WPTB_DropHandle(thisElem, e) {
|
|
679 |
wptbDropBorderMarkerRight = void 0,
|
680 |
wptbDropBorderMarkerBottom = void 0,
|
681 |
wptbDropBorderMarkerLeft = void 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
682 |
if (document.getElementsByClassName('wptb-drop-handle').length == 0) {
|
683 |
wptbDropHandle = document.createElement('div');
|
684 |
wptbDropHandle.classList.add('wptb-drop-handle');
|
@@ -704,7 +754,12 @@ var WPTB_DropHandle = function WPTB_DropHandle(thisElem, e) {
|
|
704 |
body[0].appendChild(wptbDropBorderMarker);
|
705 |
}
|
706 |
|
707 |
-
wptbDropHandle.ondragenter = function () {
|
|
|
|
|
|
|
|
|
|
|
708 |
|
709 |
wptbDropHandle.ondragover = function (e) {
|
710 |
e.preventDefault();
|
@@ -731,6 +786,7 @@ var WPTB_DropHandle = function WPTB_DropHandle(thisElem, e) {
|
|
731 |
if (thisElem.nodeName.toLowerCase() == 'td') {
|
732 |
td = wptbDropHandle.getDOMParentElement();
|
733 |
td.appendChild(element);
|
|
|
734 |
}
|
735 |
} else {
|
736 |
var innerElement = wptbDropHandle.getDOMParentElement();
|
@@ -738,9 +794,11 @@ var WPTB_DropHandle = function WPTB_DropHandle(thisElem, e) {
|
|
738 |
|
739 |
if (wptbDropHandle.dataset.text == 'Above Element') {
|
740 |
td.insertBefore(element, innerElement);
|
|
|
741 |
} else if (wptbDropHandle.dataset.text == 'Below Element') {
|
742 |
var innerElementNext = innerElement.nextSibling;
|
743 |
td.insertBefore(element, innerElementNext);
|
|
|
744 |
}
|
745 |
}
|
746 |
|
@@ -776,6 +834,10 @@ var WPTB_DropHandle = function WPTB_DropHandle(thisElem, e) {
|
|
776 |
return;
|
777 |
}
|
778 |
|
|
|
|
|
|
|
|
|
779 |
var thisRow = void 0;
|
780 |
if (thisElem.localName == 'td') {
|
781 |
thisRow = thisElem.parentNode;
|
@@ -1413,7 +1475,9 @@ var WPTB_Helper = {
|
|
1413 |
},
|
1414 |
// function which set handler for event of changes of control
|
1415 |
controlsInclude: function controlsInclude(element, functionHandler) {
|
1416 |
-
|
|
|
|
|
1417 |
element.addEventListener('element:controls:active', function () {
|
1418 |
if (!element.hasOwnProperty('controlConnectFunctionsName') || !Array.isArray(element.controlConnectFunctionsName) || element.controlConnectFunctionsName.indexOf(functionHandler.name) == -1) {
|
1419 |
(function () {
|
@@ -1469,16 +1533,22 @@ var WPTB_Helper = {
|
|
1469 |
if (controlInfArr && Array.isArray(controlInfArr)) {
|
1470 |
var controlUnicClassName = controlInfArr[0];
|
1471 |
|
1472 |
-
element.addEventListener('wptb-control:' + controlUnicClassName, function () {
|
1473 |
var controls = {};
|
1474 |
var controlName = controlInfArr[2];
|
1475 |
var control = document.getElementsByClassName(controlUnicClassName);
|
1476 |
if (control.length > 0 && controlName) {
|
1477 |
var targetControlValue = WPTB_Helper.targetControlValueGet(control);
|
1478 |
|
1479 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1480 |
}
|
1481 |
-
|
1482 |
functionHandler(controls, element);
|
1483 |
}, false);
|
1484 |
}
|
@@ -1617,6 +1687,10 @@ var WPTB_Helper = {
|
|
1617 |
|
1618 |
if (dependOn[1] && Array.isArray(dependOn[1]) && dependOn[1].indexOf(targetControlValue) !== -1) {
|
1619 |
controlContainerElem.style.display = 'block';
|
|
|
|
|
|
|
|
|
1620 |
} else if (dependOn[2] && Array.isArray(dependOn[2]) && dependOn[2].indexOf(targetControlValue) !== -1) {
|
1621 |
controlContainerElem.style.display = 'none';
|
1622 |
}
|
@@ -1902,7 +1976,6 @@ var WPTB_Helper = {
|
|
1902 |
data.elemContainer = elementContainerClass;
|
1903 |
data.elementControlTargetUnicClass = 'wptb-el-' + elementOptionClassIndic + '-' + data.controlKey;
|
1904 |
var controlTemplate = tmplControlTemplate(data);
|
1905 |
-
|
1906 |
if ('appearDependOnControl' in data) {
|
1907 |
if (Array.isArray(data.appearDependOnControl)) {
|
1908 |
controlappearDependOnControl.push([data.appearDependOnControl, data.elementControlTargetUnicClass]);
|
@@ -2831,6 +2904,34 @@ var WPTB_Helper = {
|
|
2831 |
WPTB_Helper.wptbDocumentEventGenerate('controlColor:change', tableOddRowBackground, _details2);
|
2832 |
}
|
2833 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2834 |
}
|
2835 |
};
|
2836 |
var WPTB_Initializer = function WPTB_Initializer() {
|
@@ -2914,7 +3015,9 @@ var WPTB_innerElementSet = function WPTB_innerElementSet(element) {
|
|
2914 |
e.preventDefault();
|
2915 |
WPTB_DropHandle(this, e);
|
2916 |
};
|
2917 |
-
element.ondragleave = function () {
|
|
|
|
|
2918 |
element.ondrop = function (e) {
|
2919 |
this.classList.remove('wptb-ondragenter');
|
2920 |
var element = void 0,
|
@@ -2943,20 +3046,29 @@ var WPTB_innerElementSet = function WPTB_innerElementSet(element) {
|
|
2943 |
//element.classList.remove( 'wptb-moving-mode' );
|
2944 |
}
|
2945 |
|
2946 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
2947 |
var td = void 0;
|
2948 |
if (wptbDropHandle.dataset.text == 'Drop Here') {
|
2949 |
td = wptbDropHandle.getDOMParentElement();
|
2950 |
td.appendChild(element);
|
|
|
2951 |
} else {
|
2952 |
var innerElement = wptbDropHandle.getDOMParentElement();
|
2953 |
td = innerElement.parentNode;
|
2954 |
|
2955 |
if (wptbDropHandle.dataset.text == 'Above Element') {
|
2956 |
td.insertBefore(element, innerElement);
|
|
|
2957 |
} else if (wptbDropHandle.dataset.text == 'Below Element') {
|
2958 |
var innerElementNext = innerElement.nextSibling;
|
2959 |
td.insertBefore(element, innerElementNext);
|
|
|
2960 |
}
|
2961 |
}
|
2962 |
|
@@ -2979,8 +3091,10 @@ var WPTB_innerElementSet = function WPTB_innerElementSet(element) {
|
|
2979 |
return;
|
2980 |
}
|
2981 |
|
2982 |
-
wptbDropHandle
|
2983 |
-
|
|
|
|
|
2984 |
|
2985 |
WPTB_innerElementSet(element);
|
2986 |
|
@@ -3266,6 +3380,9 @@ var WPTB_Settings = function WPTB_Settings() {
|
|
3266 |
event.dataTransfer.effectAllowed = 'move';
|
3267 |
event.dataTransfer.setData('wptbElement', event.target.dataset.wptbElement);
|
3268 |
event.dataTransfer.setData('wptbElIndic-' + event.target.dataset.wptbElement, 'wptbElIndic-' + event.target.dataset.wptbElement);
|
|
|
|
|
|
|
3269 |
};
|
3270 |
elems[i].ondragend = function () {
|
3271 |
WPTB_Helper.elementDragEndClear();
|
@@ -3557,13 +3674,13 @@ var array = [],
|
|
3557 |
cellHighlighted = cellHighlighted[0];
|
3558 |
WPTB_Helper.elementOptionsSet('table_cell_setting', cellHighlighted);
|
3559 |
|
3560 |
-
var
|
3561 |
|
3562 |
var controlElemIds = ['cellWidth', 'cellHeight'];
|
3563 |
|
3564 |
controlElemIds.map(function (s) {
|
3565 |
-
var elementControlSizeUnicClass = 'wptb-el-' +
|
3566 |
-
elementControlSizeFixedUnicClass = 'wptb-el-' +
|
3567 |
if (s === 'cellWidth' || s === 'cellHeight') {
|
3568 |
var sizeName = '',
|
3569 |
getSizeFunctionName = '';
|
@@ -3622,6 +3739,20 @@ var array = [],
|
|
3622 |
cellSettings.classList.remove('visible');
|
3623 |
}
|
3624 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3625 |
var details = { countMarkedCells: markedCells };
|
3626 |
WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/cell/mark', thisElem, details);
|
3627 |
};
|
672 |
return this;
|
673 |
};
|
674 |
var WPTB_DropHandle = function WPTB_DropHandle(thisElem, e) {
|
675 |
+
var hide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
676 |
+
|
677 |
|
678 |
var wptbDropHandle = void 0,
|
679 |
wptbDropBorderMarker = void 0,
|
681 |
wptbDropBorderMarkerRight = void 0,
|
682 |
wptbDropBorderMarkerBottom = void 0,
|
683 |
wptbDropBorderMarkerLeft = void 0;
|
684 |
+
|
685 |
+
/**
|
686 |
+
* Add px suffix to a value
|
687 |
+
*
|
688 |
+
* @param {any} val value
|
689 |
+
* @returns {string} string value suffixed with px
|
690 |
+
*/
|
691 |
+
function toPx(val) {
|
692 |
+
return val + 'px';
|
693 |
+
}
|
694 |
+
|
695 |
+
if (WPTB_Helper.getDragRelativeType() === 'td_relative') {
|
696 |
+
var cellRelatedDropHandle = document.querySelector('.wptb-cell-related-drop-handle');
|
697 |
+
if (hide && cellRelatedDropHandle) {
|
698 |
+
cellRelatedDropHandle.style.display = 'none';
|
699 |
+
return;
|
700 |
+
}
|
701 |
+
if (cellRelatedDropHandle === null) {
|
702 |
+
var range = document.createRange();
|
703 |
+
range.setStart(document.body, 0);
|
704 |
+
|
705 |
+
var shadowRoot = range.createContextualFragment('<div class="wptb-cell-related-drop-handle">Add to cell</div>').children[0];
|
706 |
+
|
707 |
+
document.body.appendChild(shadowRoot);
|
708 |
+
cellRelatedDropHandle = shadowRoot.children[0];
|
709 |
+
}
|
710 |
+
|
711 |
+
var parentTd = WPTB_Helper.getParentOfType('td', thisElem);
|
712 |
+
|
713 |
+
var _parentTd$getBounding = parentTd.getBoundingClientRect(),
|
714 |
+
_top = _parentTd$getBounding.top,
|
715 |
+
_left = _parentTd$getBounding.left,
|
716 |
+
width = _parentTd$getBounding.width,
|
717 |
+
_height = _parentTd$getBounding.height;
|
718 |
+
|
719 |
+
if (!cellRelatedDropHandle) {
|
720 |
+
return;
|
721 |
+
}
|
722 |
+
|
723 |
+
cellRelatedDropHandle.style.display = 'flex';
|
724 |
+
cellRelatedDropHandle.style.top = toPx(_top);
|
725 |
+
cellRelatedDropHandle.style.width = toPx(width);
|
726 |
+
cellRelatedDropHandle.style.height = toPx(_height);
|
727 |
+
cellRelatedDropHandle.style.left = toPx(_left);
|
728 |
+
|
729 |
+
return;
|
730 |
+
}
|
731 |
+
|
732 |
if (document.getElementsByClassName('wptb-drop-handle').length == 0) {
|
733 |
wptbDropHandle = document.createElement('div');
|
734 |
wptbDropHandle.classList.add('wptb-drop-handle');
|
754 |
body[0].appendChild(wptbDropBorderMarker);
|
755 |
}
|
756 |
|
757 |
+
wptbDropHandle.ondragenter = function () {
|
758 |
+
if (e.target.classList.contains('wptb-empty')) {
|
759 |
+
e.preventDefault();
|
760 |
+
return false;
|
761 |
+
}
|
762 |
+
};
|
763 |
|
764 |
wptbDropHandle.ondragover = function (e) {
|
765 |
e.preventDefault();
|
786 |
if (thisElem.nodeName.toLowerCase() == 'td') {
|
787 |
td = wptbDropHandle.getDOMParentElement();
|
788 |
td.appendChild(element);
|
789 |
+
WPTB_Helper.wptbDocumentEventGenerate('element:mounted:dom', element);
|
790 |
}
|
791 |
} else {
|
792 |
var innerElement = wptbDropHandle.getDOMParentElement();
|
794 |
|
795 |
if (wptbDropHandle.dataset.text == 'Above Element') {
|
796 |
td.insertBefore(element, innerElement);
|
797 |
+
WPTB_Helper.wptbDocumentEventGenerate('element:mounted:dom', element);
|
798 |
} else if (wptbDropHandle.dataset.text == 'Below Element') {
|
799 |
var innerElementNext = innerElement.nextSibling;
|
800 |
td.insertBefore(element, innerElementNext);
|
801 |
+
WPTB_Helper.wptbDocumentEventGenerate('element:mounted:dom', element);
|
802 |
}
|
803 |
}
|
804 |
|
834 |
return;
|
835 |
}
|
836 |
|
837 |
+
if (thisElem && thisElem.nodeName.toLowerCase() == 'td' && thisElem.classList.contains('wptb-empty')) {
|
838 |
+
return;
|
839 |
+
}
|
840 |
+
|
841 |
var thisRow = void 0;
|
842 |
if (thisElem.localName == 'td') {
|
843 |
thisRow = thisElem.parentNode;
|
1475 |
},
|
1476 |
// function which set handler for event of changes of control
|
1477 |
controlsInclude: function controlsInclude(element, functionHandler) {
|
1478 |
+
var acceptEventValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
1479 |
+
|
1480 |
+
if (element && (typeof element === 'undefined' ? 'undefined' : _typeof(element)) === 'object' && typeof functionHandler === 'function') {
|
1481 |
element.addEventListener('element:controls:active', function () {
|
1482 |
if (!element.hasOwnProperty('controlConnectFunctionsName') || !Array.isArray(element.controlConnectFunctionsName) || element.controlConnectFunctionsName.indexOf(functionHandler.name) == -1) {
|
1483 |
(function () {
|
1533 |
if (controlInfArr && Array.isArray(controlInfArr)) {
|
1534 |
var controlUnicClassName = controlInfArr[0];
|
1535 |
|
1536 |
+
element.addEventListener('wptb-control:' + controlUnicClassName, function (e) {
|
1537 |
var controls = {};
|
1538 |
var controlName = controlInfArr[2];
|
1539 |
var control = document.getElementsByClassName(controlUnicClassName);
|
1540 |
if (control.length > 0 && controlName) {
|
1541 |
var targetControlValue = WPTB_Helper.targetControlValueGet(control);
|
1542 |
|
1543 |
+
if (acceptEventValues) {
|
1544 |
+
controls[controlName] = {
|
1545 |
+
targetValue: targetControlValue,
|
1546 |
+
eventValue: e.detail.value
|
1547 |
+
};
|
1548 |
+
} else {
|
1549 |
+
controls[controlName] = targetControlValue;
|
1550 |
+
}
|
1551 |
}
|
|
|
1552 |
functionHandler(controls, element);
|
1553 |
}, false);
|
1554 |
}
|
1687 |
|
1688 |
if (dependOn[1] && Array.isArray(dependOn[1]) && dependOn[1].indexOf(targetControlValue) !== -1) {
|
1689 |
controlContainerElem.style.display = 'block';
|
1690 |
+
var childCheck = controlContainerElem.querySelector('input[type="checkbox"]');
|
1691 |
+
if (childCheck) {
|
1692 |
+
childCheck.checked = true;
|
1693 |
+
}
|
1694 |
} else if (dependOn[2] && Array.isArray(dependOn[2]) && dependOn[2].indexOf(targetControlValue) !== -1) {
|
1695 |
controlContainerElem.style.display = 'none';
|
1696 |
}
|
1976 |
data.elemContainer = elementContainerClass;
|
1977 |
data.elementControlTargetUnicClass = 'wptb-el-' + elementOptionClassIndic + '-' + data.controlKey;
|
1978 |
var controlTemplate = tmplControlTemplate(data);
|
|
|
1979 |
if ('appearDependOnControl' in data) {
|
1980 |
if (Array.isArray(data.appearDependOnControl)) {
|
1981 |
controlappearDependOnControl.push([data.appearDependOnControl, data.elementControlTargetUnicClass]);
|
2904 |
WPTB_Helper.wptbDocumentEventGenerate('controlColor:change', tableOddRowBackground, _details2);
|
2905 |
}
|
2906 |
}
|
2907 |
+
},
|
2908 |
+
/**
|
2909 |
+
* Get parent html element of given type
|
2910 |
+
*
|
2911 |
+
* @param {string} parentType type of parent element
|
2912 |
+
* @param {HTMLElement} el current element
|
2913 |
+
* @returns {*} html element of type
|
2914 |
+
*/
|
2915 |
+
getParentOfType: function getParentOfType(parentType, el) {
|
2916 |
+
if (el.nodeName === parentType.toUpperCase()) {
|
2917 |
+
return el;
|
2918 |
+
}
|
2919 |
+
|
2920 |
+
return WPTB_Helper.getParentOfType(parentType, el.parentElement);
|
2921 |
+
},
|
2922 |
+
// current relative type of drag element
|
2923 |
+
// this type is used on differentiating certain elements based on their positioning on table
|
2924 |
+
dragRelativeType: '',
|
2925 |
+
/**
|
2926 |
+
*
|
2927 |
+
* @param {string} val drag relative type
|
2928 |
+
*/
|
2929 |
+
setDragRelativeType: function setDragRelativeType(val) {
|
2930 |
+
this.dragRelativeType = val;
|
2931 |
+
},
|
2932 |
+
// get drag relative type
|
2933 |
+
getDragRelativeType: function getDragRelativeType() {
|
2934 |
+
return this.dragRelativeType;
|
2935 |
}
|
2936 |
};
|
2937 |
var WPTB_Initializer = function WPTB_Initializer() {
|
3015 |
e.preventDefault();
|
3016 |
WPTB_DropHandle(this, e);
|
3017 |
};
|
3018 |
+
element.ondragleave = function (e) {
|
3019 |
+
WPTB_DropHandle(this, e, true);
|
3020 |
+
};
|
3021 |
element.ondrop = function (e) {
|
3022 |
this.classList.remove('wptb-ondragenter');
|
3023 |
var element = void 0,
|
3046 |
//element.classList.remove( 'wptb-moving-mode' );
|
3047 |
}
|
3048 |
|
3049 |
+
if (WPTB_Helper.getDragRelativeType() === 'td_relative') {
|
3050 |
+
WPTB_DropHandle(this, e, true);
|
3051 |
+
var parentCell = WPTB_Helper.getParentOfType('td', e.target);
|
3052 |
+
|
3053 |
+
parentCell.appendChild(element);
|
3054 |
+
WPTB_Helper.wptbDocumentEventGenerate('element:mounted:dom', element);
|
3055 |
+
} else if (wptbDropHandle.style.display == 'block') {
|
3056 |
var td = void 0;
|
3057 |
if (wptbDropHandle.dataset.text == 'Drop Here') {
|
3058 |
td = wptbDropHandle.getDOMParentElement();
|
3059 |
td.appendChild(element);
|
3060 |
+
WPTB_Helper.wptbDocumentEventGenerate('element:mounted:dom', element);
|
3061 |
} else {
|
3062 |
var innerElement = wptbDropHandle.getDOMParentElement();
|
3063 |
td = innerElement.parentNode;
|
3064 |
|
3065 |
if (wptbDropHandle.dataset.text == 'Above Element') {
|
3066 |
td.insertBefore(element, innerElement);
|
3067 |
+
WPTB_Helper.wptbDocumentEventGenerate('element:mounted:dom', element);
|
3068 |
} else if (wptbDropHandle.dataset.text == 'Below Element') {
|
3069 |
var innerElementNext = innerElement.nextSibling;
|
3070 |
td.insertBefore(element, innerElementNext);
|
3071 |
+
WPTB_Helper.wptbDocumentEventGenerate('element:mounted:dom', element);
|
3072 |
}
|
3073 |
}
|
3074 |
|
3091 |
return;
|
3092 |
}
|
3093 |
|
3094 |
+
if (wptbDropHandle) {
|
3095 |
+
wptbDropHandle.style.display = 'none';
|
3096 |
+
wptbDropBorderMarker.style.display = 'none';
|
3097 |
+
}
|
3098 |
|
3099 |
WPTB_innerElementSet(element);
|
3100 |
|
3380 |
event.dataTransfer.effectAllowed = 'move';
|
3381 |
event.dataTransfer.setData('wptbElement', event.target.dataset.wptbElement);
|
3382 |
event.dataTransfer.setData('wptbElIndic-' + event.target.dataset.wptbElement, 'wptbElIndic-' + event.target.dataset.wptbElement);
|
3383 |
+
|
3384 |
+
// set drag relative helper field for future use
|
3385 |
+
WPTB_Helper.setDragRelativeType(this.dataset.wptbRelativeElements || '');
|
3386 |
};
|
3387 |
elems[i].ondragend = function () {
|
3388 |
WPTB_Helper.elementDragEndClear();
|
3674 |
cellHighlighted = cellHighlighted[0];
|
3675 |
WPTB_Helper.elementOptionsSet('table_cell_setting', cellHighlighted);
|
3676 |
|
3677 |
+
var _infArr = cellHighlighted.className.match(/wptb-element-((.+-)\d+)/i);
|
3678 |
|
3679 |
var controlElemIds = ['cellWidth', 'cellHeight'];
|
3680 |
|
3681 |
controlElemIds.map(function (s) {
|
3682 |
+
var elementControlSizeUnicClass = 'wptb-el-' + _infArr[1] + '-' + s,
|
3683 |
+
elementControlSizeFixedUnicClass = 'wptb-el-' + _infArr[1] + '-' + s + 'Fixed';
|
3684 |
if (s === 'cellWidth' || s === 'cellHeight') {
|
3685 |
var sizeName = '',
|
3686 |
getSizeFunctionName = '';
|
3739 |
cellSettings.classList.remove('visible');
|
3740 |
}
|
3741 |
|
3742 |
+
/**
|
3743 |
+
* empty cell setting
|
3744 |
+
*/
|
3745 |
+
// let emptySetting = document.
|
3746 |
+
var infArr = thisElem.className.match(/wptb-element-table_cell_setting-((.+-)\d+)/i);
|
3747 |
+
if (infArr && infArr.length > 1) {
|
3748 |
+
var controlKey = 'emptyCell';
|
3749 |
+
var settingId = 'wptb-el-table_cell_setting-' + infArr[1] + '-' + controlKey;
|
3750 |
+
var settingElem = document.getElementById(settingId);
|
3751 |
+
if (settingElem) {
|
3752 |
+
settingElem.querySelector('input[type="checkbox"]').checked = thisElem.classList.contains('wptb-empty');
|
3753 |
+
}
|
3754 |
+
}
|
3755 |
+
|
3756 |
var details = { countMarkedCells: markedCells };
|
3757 |
WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/cell/mark', thisElem, details);
|
3758 |
};
|
inc/admin/js/admin.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sources":["applyGenericItemSettings.js","WPTB_ActionsField.js","WPTB_Builder.js","WPTB_Cell.js","WPTB_DropHandle.js","WPTB_ElementCounters.js","WPTB_ElementObject.js","WPTB_ElementOptions.js","WPTB_Helper.js","WPTB_Initializer.js","WPTB_innerElementSet.js","WPTB_LeftPanel.js","WPTB_MultipleSelect.js","WPTB_Parser.js","WPTB_Polyfills.js","WPTB_Responsive.js","WPTB_Settings.js","WPTB_Stringifier.js","WPTB_Table.js","WPTB_TableStateSaveManager.js"],"names":["applyGenericItemSettings","element","kindIndexProt","copy","node","getDOMElement","index","classList","contains","undefined","wptbElements","document","getElementsByClassName","elementIndexesArr","i","length","regex","RegExp","kind","infArr","className","match","push","elementIndexMax","Math","max","wptbNodeattributes","attributes","nodeName","regularText","attr","Array","isArray","newDataAttributeName","replace","newDataAttributeValue","nodeValue","removeAttribute","setAttribute","kindIndexProtArr","split","node_wptb_element_kind_num","remove","add","WPTB_Helper","elementStartScript","WPTB_ElementOptions","counter","increment","onmouseenter","event","target","wptbActionsField","WPTB_ActionsField","addActionField","setParameters","onmouseleave","leaveFromField","wptbActions","actionType","thisNode","body","getElementsByTagName","actions","previousNode","activeElem","parentNode","removeChild","btnDelete","btnCopy","createElement","appendChild","type","onclick","act","el","hasOwnProperty","thisRow","rowIsTop","table","findAncestor","dataTitleColumnSet","actionsRemove","wptbTableStateSaveManager","WPTB_TableStateSaveManager","tableStateSet","activeElement","activeElemParent","data","elemProt","tinyMceClear","WPTB_ElementObject","insertBefore","nextSibling","elementCopy","cloneNode","wptbDocumentEventGenerate","WPTB_innerElementSet","btnMove","draggable","ondragstart","wptbElementIconsDirectories","tmplIconsDirectories","wp","template","jsonIconsDirectories","IconsDirectories","JSON","parse","dragImages","getElementIcon","dataTransfer","effectAllowed","setDragImage","setData","style","display","actionsHide","ondragend","elementDragEndClear","coordinatesElement","getBoundingClientRect","wptbContainer","correctTop","top","parseFloat","removeEventListener","left","right","clientWidth","addEventListener","relatedTarget","opacity","WPTB_Builder","table_id","detectMode","http","XMLHttpRequest","urlSet","ajaxurl","open","setRequestHeader","onreadystatechange","d","readyState","status","ans","responseText","getElementById","value","wptbTableSetupEl","WPTB_Parser","WPTB_Table","querySelector","dataset","wptbTableContainerMaxWidth","maxWidth","tdDefaultWidth","WPTB_Settings","send","ElementCounters","select","MultipleSelect","initializer","WPTB_Initializer","settings","url","window","location","href","results","exec","WPTB_Cell","callback","DOMElement","highlightRow","td","parentRow","columnCount","parseInt","tds","classToAdd","ttd","highlightColumn","rowCount","tr","padding","jQuery","val","innerBorderWidth","border","ondblclick","stopPropagation","currentTarget","newElementProxy","wptbPhElement","wptbElementTypeClass","wptbTypeElementArr","wptbInternalActiveElement","j","wptbInternalActiveElementObj","setCoords","y","x","yIndex","xIndex","getCoords","coords","appendElement","getCellDimensions","tdStyleObj","getComputedStyle","tdPaddingLeft","getPropertyValue","tdPaddingRight","tdBorderLeftWidth","tdBorderRightWidth","tdPaddingTop","tdPaddingBottom","tdBorderTopWidth","tdBorderBottomWidth","width","offsetWidth","height","offsetHeight","borderCollapse","tableFullStyleObj","tableBorderLeft","tableBorderRight","tableBorderTop","tableBorderBottom","toLowerCase","firstChild","lastChild","WPTB_DropHandle","thisElem","e","wptbDropHandle","wptbDropBorderMarker","wptbDropBorderMarkerTop","wptbDropBorderMarkerRight","wptbDropBorderMarkerBottom","wptbDropBorderMarkerLeft","ondragenter","ondragover","preventDefault","ondragleave","ondrop","getData","wptbMovingMode","text","getDOMParentElement","innerElement","innerElementNext","onscroll","localName","indics","types","notDragEnter","indexOf","elementDrag","offsetY","layerY","bottom","priv","key","nextIndex","wpTemplateId","itemHtml","trim","innerHTML","wptbElementMutch","elementClearFromTinyMce","inElems","querySelectorAll","inElemObj","elementOptionsSet","capture","hexToRgb","hex","result","rgbToHex","rgb","isHex","rgbm","round","toString","toUpperCase","slice","test","icon_directory","hostName","protocol","hostname","img","src","wptbDropHandles","wptbDropBorderMarkers","linkHttpCheckChange","link","convertToAbs","currentLocation","origin","linkArr","linkClean","cls","parentElement","row","parent","children","getSelectionText","txt","getSelection","selection","createRange","elementOptionsPanelClear","elementOptionsGroup","wpColorPickerCheckChangeForTableStateSaving","originalEvent","wpPickerContainer","irisStripMouseUpStateSaveManager","wpColorPickerClear","attribute","isId","input","newInput","decodeURIComponent","getColumnWidth","cell","xIndexes","cellWidth","getRowHeight","yIndexes","cellHeight","wpColorPickerChange","ui","uiColor","color","classe","ps","number","affectedEl","backgroundColor","ratingStar","span","fill","wptbTextMessageSize","numberImputSize","wptbNumberInputs","maxCount","maxValue","onkeydown","thisValue","String","substring","onkeyup","ucfirst","str","charAt","eventName","details","CustomEvent","detail","bubbles","dispatchEvent","WPTB_ElementsScriptsLauncher","deleteEventHandlers","off","elementChildren","replaceAll","string","search","join","mceContentBodys","k","dataMceStyle","mceEditFocus","contentEditable","spellCheck","mceIds","elementOptionContainerCustomClassSet","targetInput","customClassForContainer","containerElement","elementOptionContainerAdditionalStyles","containerAdditionalStyles","containerStylesArrOne","containerStylesSet","containerStyleStr","containerStyleStrArr","controlsInclude","functionHandler","controlConnectFunctionsName","name","elementKind","elementOptionsGroupIds","optionsGroupIds","elementOptionsGroupId","controlActiveElements","map","controlInfArr","controlActiveElement","controlUnicClassName","controls","controlName","control","targetControlValue","targetControlValueGet","oneControlInclude","wptbContrlStacksConfigId","tmplControlsConfig","container","jsonControlsConfigJson","jsonControlsConfig","controlClassName","innerElementCopyIncludeHandler","appearDependOnControl","dependOn","targetControlElementClass","dependOnControlName","dependOnControlElementClass","dependOnControlElement","targetControlElement","controlContainerElem","showHideDependOnControlElement","dependOnControlElements","controlsStateManager","targetControlClass","controlChangeIndic","targetControls","selectorElement","elementsSettingsTemplatesJs","elementSettings","elementsSettings","stringify","checked","alignmentValue","elementControlsStateCopy","elementProt","copyElem","infArrProt","infArrCopy","elemProtKind","elemCopyKind","elementsSettingsTemplateJs","elementSettingsProt","elementSettingsCopy","Object","keys","forEach","elementSettingValue","elementSettingKeyCopy","elementControlsStateDelete","nameControl","wptbElementDatas","elementContainerClass","elementOptionClassIndic","controlElementParent","elementOptionsScriptsContainer","cellEditActiveClass","activateSection","wptbelementOptionClass","childNodes","elementOptionsGroupIdsInvolved","elementOptionsGroupInvolved","elementOptionsContainerInvolved","controlScriptsObj","controlappearDependOnControl","elementOptionsScriptsContainerIndic","controlKey","tmplControlTemplate","elemContainer","elementControlTargetUnicClass","controlTemplate","elementOptionsContainerInvolvedGet","elementOptionsContainer","elementOptionsGroupChildren","elementOptionsContainerOn","elementOptionContainerOn","elementOptionContainer","elementOptionClass","helperJavascriptElem","helperJavascriptCode","innerText","script","controlScriptsArr","managerExternalCssStyles","elementContainer","selector","cssName","cssValue","head","cssForThisElement","cssText","cssTextArrFirst","pop","selectorExists","cssTextArrSecond","cssTextArrThird","cssNameExists","cssTextArrFourth","splice","registerSections","sections","currentSection","sectionElement","s","sectionDataId","displayType","triggerSectionEvent","prototype","call","visibility","getCurrentSection","getSectionFromUrl","parsedUrl","URL","urlSection","searchParams","get","some","setupSectionButtons","sectionButtons","from","vm","sectionName","wptbSectionButton","wptbSectionDisplayType","setupPanelToggleButtons","$","each","find","click","slideToggle","toggleClass","sectionEvent","setupSidebarToggle","toggleSelector","toggleButton","toggle","externalCssStylesDelete","externalCssStylesCopy","copyElement","activeElemClass","cssForActiveElement","cssForNewElement","infArrCopyEl","cssForActiveElementInnerHTML","cssForNewElementInnerHTML","elementsStylesConvertToObject","stylesElements","stylesObj","styleElemId","getAttribute","elementsStylesSetFromObject","jsonObject","styleCss","saveTable","startSaving","previewSaving","wptbTableStateNumberSave","wptbTableStateNumberShow","bar","toggleTableEditMode","wptb_admin_object","t","messagingArea","code","datas","postId","rs","wptbId","paramIdsNecessaryChange","codeClone","wptbTableSetup","columns","WPTB_Stringifier","outerHTML","datas_containers","styleObjJson","messagingAreaText","setTimeout","params","title","content","elements_datas","elements_styles","security_code","preview_saving","id","action","builderPageUrl","history","pushState","wptbPreviewTable","wptbPreviewBtn","wptbPreviewBtnHref","previewHref","wptbSaveBtn","clickOnFreeSpace","cellModeBackground","wpcdFixedToolbar","hasAttribute","elementAjax","dataAjaxData","element_name","element_ajax_data","close","leftScrollPanelCurtain","leftScrollPanelCellSettings","toggleEditMode","deactivateMultipleSelectMode","wptbPreviewTableTds","activateMultipleSelectMode","checkingDimensionValue","dimension","searchIndex","checkSetGetStyleSizeValue","styleName","computedStyleName","elemStyleValue","elementStyles","checkSetGetStyleColorValue","set","elemStyleColorValue","checkSetGetStyleValue","getValueMaxCountSameElementsInArray","arr","check","maxPropName","recalculateIndexes","trs","maxCols","maxColsFull","tdsArr","jMainIter","colSpan","rowSpan","z","tableRowsColorsReinstall","tableIndex","tableHeaderBackground","tableEvenRowBackground","tableOddRowBackground","MIN_COLUMNS","MIN_ROWS","MAX_COLUMNS","MAX_ROWS","tableGenerator","columnsDecrementButton","columnsIncrementButton","rowsDecrementButton","rowsIncrementButton","columnsInput","rowsInput","rows","WptbResponsive","div","classId","elemKind","onmouseover","WPTB_LeftPanel","wptbElementButtons","wptbElement","wptbTablesEditModeCloseButton","addRowToTheEnd","addRowToTheStart","addRowBefore","addRowAfter","addColumnEnd","addColumnStart","addColumnBefore","addColumnAfter","deleteColumn","deleteRow","mergeCells","splitCell","wptbBuilderPanel","wptbHeader","selectedCells","multipleCellMode","isActivated","pushSelectedCell","flushSelectedCells","getFirst","minXIndex","minYIndex","first","getLast","maxXIndex","maxYIndex","last","removeAllButFirst","columnTitleMobile","hasDontEnumBug","propertyIsEnumerable","dontEnums","dontEnumsLength","obj","TypeError","prop","responsiveWrapperId","mainContainerQuery","responsiveTable","loaded","addContainerToDom","responsiveContainer","mainContainer","Error","range","setStart","responsiveElement","createContextualFragment","load","WPTB_ControlsManager","callControlScript","startUp","tablePreview","elems","wptbUndo","tableStateGet","wptbUndoredo","wptbUndoRedoContainer","wptbRedo","shortcodePopupWindow","onbeforeunload","wptbSaveDisabled","previewId","floor","random","newHref","tableTitleField","onchange","codeMain","tableColumns","minWidth","innerElements","wptbActionsLength","dataMceBogus","array","wptb_preview_table","maxAmountOfCells","maxAmountOfRows","mark","cs","noCells","singleCells","multipleCells","cellSettings","position","column","cellHighlighted","markedCells","controlElemIds","elementControlSizeUnicClass","elementControlSizeFixedUnicClass","sizeName","getSizeFunctionName","size","cellSizeInputs","cellSizeFixedInput","isSquare","countMarkedCells","realTimeArray","carried","cols","matriz","items","justAssigned","amount","carriedRowspans","cellsBuffer","cellPointer","xPosition","stepsToMove","celda","drawTable","a","undoSelect","fillTableArray","colspansSums","cells","colspanSumInRow","apply","getActualPointsInRow","points","skipInCols","reconstraction","insertRow","borderWidth","setMaxAmountOfCells","getMaxAmountOfCells","addColumnWidth","cleaner","highlighted","dataXIndex","tableTdsFor","colspan","tableRows","widthIsSet","arrayTdsFromPreviousRow","wptbFixedWidth","tableTdsSumMaxWidth","tableTdsSumMaxWidthFixed","tableTdsSumMaxWidthAuto","wptbTableSetupWidth","arrayCellsWidthFixedHelper","arrayCellsWidthAutoHelper","tdPaddingCommon","tableTdBorderCommonWidth","cssForTdsWidthAuto","borderLeftWidth","borderRightWidth","tableBorderCommon","wptbTdWidthAuto","wptbCssTdAutoWidth","tableTdBorderLeftWidth","tableTdBorderRightWidth","CellsWidthAutoCount","wptbTableTdsSumMaxWidth","wptbCellsWidthAutoCount","mergingСellsHorizontally","wptbFixedWidthSize","styleElementCreate","tableTdWidthAuto","tableTdsWidthAutoCommon","cssForTdsWidthAutoOld","wptbTableAlignment","float","addRowHeight","dataYIndex","rowspan","heightIsSet","arrayTdsPrevious","wptbFixedHeight","mergingCellsVertically","forBreak","currentTable","currentTableTd","currentTdStyle","firstCell","c_pos","cellStyle","pos","newTd","nextSib","r","aux","cellNew","rowChildren","rowChildrenLength","cellRowSpan","rowAfter","cellsColSpan","tableRowsIChildren","tableRIChildrenLength","rowIRowSpan","rNext","rNextChildren","rNextChildrenLength","rowStart","columnStart","rowEnd","columnEnd","itemsEstimate","dimensions","tdsChildrenNew","tdsInternalElements","tdsIntElemLength","p","firstWidth","firstDataFixedWidth","firstHeight","firstDataFixedHeight","cellStyles","cellXIndex","rowChildInsertBefore","rowNext","Number","findRowspannedCells","difference","actualPoints","addLackingCells","sumRows","totalColspan","thisRowChildren","nextRow","nextRowChildren","nextRowChildrenLength","tdArr","nextRowChildrenK","jRowChildren","onresize","generate","wptbTableStateSaving","wptbNewTableSetup","wptbHighlighted","wptbDirectlyhovered","cssForTdsWidthAutoValue","wptbTableTitle","wptbSetupName","datawptbUndoredo","wptbTableSetupNew","wptbLeftScrollPanelCellSetting","tableStateClear"],"mappings":";;;;AAAA,IAAIA,2BAA2B,SAA3BA,wBAA2B,CAAWC,OAAX,EAAoBC,aAApB,EAAkD;AAAA,QAAfC,IAAe,uEAAR,KAAQ;;AAC7E,QAAIC,OAAOH,QAAQI,aAAR,EAAX;AAAA,QACIC,KADJ;AAAA,QAEIH,IAFJ;AAGA,QAAIC,KAAKG,SAAL,CAAeC,QAAf,CAAyB,iBAAzB,CAAJ,EAAmD;AAC/C,YAAKN,iBAAiBO,SAAjB,IAA8BN,QAAQ,IAA3C,EAAkD;AAC9C;AACA,gBAAIO,eAAeC,SAASC,sBAAT,CAAiC,iBAAjC,CAAnB;AACA,gBAAIC,oBAAoB,EAAxB;AACA,iBAAK,IAAIC,IAAI,CAAb,EAAgBA,IAAIJ,aAAaK,MAAjC,EAAyCD,GAAzC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DjB,4BAAY+Q,wBAAZ;AACA0V;;AAEA,oBAAIkP,iCAAiC53B,SAASyI,cAAT,CAAyB,sCAAzB,CAArC;AACA,oBAAImvB,8BAAJ,EAAqC;AACjCA,mDAA+Bh4B,SAA/B,CAAyCmC,MAAzC,CAAiD,SAAjD;AACH;AACJ;AACJ;AACJ,KA5HD;;AA8HA,SAAK81B,eAAL,GAAuB,YAAW;AAC9B,eAAOjuB,OAAOutB,oBAAd;AACA,eAAOvtB,OAAO0Y,wBAAd;;AAEA,YAAIqC,cAAc3kB,SAASC,sBAAT,CAAiC,eAAjC,CAAlB;AACA,YAAI0kB,YAAYvkB,MAAZ,GAAqB,CAAzB,EAA6B;AACzBukB,0BAAcA,YAAY,CAAZ,CAAd;;AAEAA,wBAAYjjB,eAAZ,CAA6B,mCAA7B;AACH;;AAED,YAAI0qB,WAAWpsB,SAASC,sBAAT,CAAiC,WAAjC,CAAf;AACA,YAAImsB,SAAShsB,MAAT,GAAkB,CAAtB,EAA0B;AACtBgsB,uBAAWA,SAAS,CAAT,CAAX;;AAEAA,qBAASxsB,SAAT,CAAmBoC,GAAnB,CAAwB,wBAAxB;AACH;;AAED,YAAIwqB,WAAWxsB,SAASC,sBAAT,CAAiC,WAAjC,CAAf;AACA,YAAIusB,SAASpsB,MAAT,GAAkB,CAAtB,EAA0B;AACtBosB,uBAAWA,SAAS,CAAT,CAAX;;AAEAA,qBAAS5sB,SAAT,CAAmBoC,GAAnB,CAAwB,wBAAxB;AACH;AACJ,KAxBD;AAyBH,CAzQD","file":"admin.js","sourcesContent":["var applyGenericItemSettings = function ( element, kindIndexProt, copy = false ) {\r\n var node = element.getDOMElement(),\r\n index,\r\n copy;\r\n if( node.classList.contains( 'wptb-ph-element' ) ) {\r\n if ( kindIndexProt == undefined || copy == true ) {\r\n //index = document.counter.nextIndex( element.kind );\r\n let wptbElements = document.getElementsByClassName( 'wptb-ph-element' );\r\n let elementIndexesArr = [];\r\n for( let i = 0; i < wptbElements.length; i++ ) {\r\n var regex = new RegExp( 'wptb-element-' + element.kind + '-(\\\\d+)', \"i\" );\r\n let infArr = wptbElements[i].className.match( regex );\r\n if( infArr ) {\r\n elementIndexesArr.push( infArr[1] );\r\n }\r\n }\r\n if( elementIndexesArr.length > 0 ) {\r\n let elementIndexMax = Math.max( ...elementIndexesArr );\r\n index = elementIndexMax + 1;\r\n } else { \r\n index = 1;\r\n }\r\n\r\n if( copy ) {\r\n // change all data-elements which save parameters for different controls\r\n let wptbNodeattributes = [...node.attributes];\r\n for( let i = 0; i < wptbNodeattributes.length; i++ ) {\r\n if( wptbNodeattributes[i] && typeof wptbNodeattributes[i] === 'object' && wptbNodeattributes[i].nodeName ) {\r\n let regularText = new RegExp( 'data-wptb-el-' + element.kind + '-(\\\\d+)-([a-zA-Z0-9_-]+)', \"i\" );\r\n let attr = wptbNodeattributes[i].nodeName.match( regularText );\r\n if( attr && Array.isArray( attr ) ) {\r\n let newDataAttributeName = wptbNodeattributes[i].nodeName.replace( element.kind + '-' + attr[1], element.kind + '-' + index );\r\n let newDataAttributeValue = wptbNodeattributes[i].nodeValue;\r\n node.removeAttribute( wptbNodeattributes[i].nodeName );\r\n node.setAttribute( newDataAttributeName, newDataAttributeValue );\r\n }\r\n }\r\n }\r\n }\r\n } else if ( kindIndexProt && ! copy ) {\r\n let kindIndexProtArr = kindIndexProt.split('-');\r\n index = kindIndexProtArr[kindIndexProtArr.length - 1];\r\n // start element javascript if element is new\r\n \r\n }\r\n\r\n let node_wptb_element_kind_num = node.className.match(/wptb-element-(.+)-(\\d+)/i);\r\n if ( node_wptb_element_kind_num ) {\r\n node.classList.remove( node_wptb_element_kind_num[0] );\r\n }\r\n if ( ! node.classList.contains( 'wptb-ph-element' ) ) {\r\n node.classList.add( 'wptb-ph-element' );\r\n if( ! node.classList.contains( 'wptb-element-' + element.kind + '-' + index ) ) {\r\n node.classList.add( 'wptb-element-' + element.kind + '-' + index );\r\n }\r\n } else {\r\n if( ! node.classList.contains( 'wptb-element-' + element.kind + '-' + index ) ) {\r\n node.classList.add( 'wptb-element-' + element.kind + '-' + index );\r\n }\r\n }\r\n WPTB_Helper.elementStartScript( element.getDOMElement() );\r\n new WPTB_ElementOptions( element, index, kindIndexProt );\r\n document.counter.increment(element.kind);\r\n }\r\n \r\n node.onmouseenter = function ( event ) {\r\n if( event.target.classList.contains( 'wptb-moving-mode' ) ) {\r\n return;\r\n }\r\n \r\n let wptbActionsField = new WPTB_ActionsField();\r\n \r\n wptbActionsField.addActionField( 1, node );\r\n \r\n wptbActionsField.setParameters( node );\r\n \r\n node.classList.remove( 'wptb-ondragenter' );\r\n };\r\n \r\n node.onmouseleave = function ( event ) {\r\n let wptbActionsField = new WPTB_ActionsField();\r\n \r\n wptbActionsField.leaveFromField( event, node );\r\n };\r\n};","var WPTB_ActionsField = function() {\r\n //this.wptbBorderMarker;\r\n this.wptbActions;\r\n if( document.getElementsByClassName( 'wptb-actions' ).length != 0 ) {\r\n this.wptbActions = document.getElementsByClassName( 'wptb-actions' )[0];\r\n }\r\n \r\n this.addActionField = ( actionType, thisNode ) => {\r\n let body = document.getElementsByTagName( 'body' )[0];\r\n \r\n let actions = document.getElementsByClassName( 'wptb-actions' );\r\n if( actions.length != 0 ) {\r\n let previousNode = actions[0].activeElem;\r\n if( previousNode ) {\r\n previousNode.classList.remove( 'wptb-directlyhovered' );\r\n }\r\n \r\n while( actions.length != 0 ) {\r\n actions[0].parentNode.removeChild( actions[0] );\r\n }\r\n }\r\n \r\n if( actionType == 1 ) {\r\n \r\n let btnDelete, btnCopy;\r\n\r\n btnDelete = document.createElement( 'span' ),\r\n btnCopy = document.createElement( 'span' ),\r\n actions = document.createElement( 'div' );\r\n\r\n actions.classList.add( 'wptb-actions' );\r\n btnDelete.classList.add( 'dashicons', 'dashicons-trash', 'wptb-delete-action' );\r\n btnCopy.classList.add( 'dashicons', 'dashicons-admin-page', 'wptb-duplicate-action' );\r\n \r\n actions.appendChild( btnCopy );\r\n actions.appendChild( btnDelete );\r\n \r\n body.appendChild( actions );\r\n\r\n actions.activeElem = thisNode;\r\n\r\n actions.type = 1;\r\n\r\n btnDelete.onclick = function( event ) {\r\n let act = event.target.parentNode.activeElem,\r\n el = act.parentNode;\r\n let infArr = act.className.match( /wptb-element-(.+)-(\\d+)/i );\r\n// if( act && infArr && Array.isArray( infArr ) ) {\r\n// WPTB_Helper.elementControlsStateDelete( act );\r\n// WPTB_Helper.externalCssStylesDelete( infArr[0] );\r\n// }\r\n \r\n if( act ) {\r\n el.removeChild( act );\r\n }\r\n\r\n if( act && typeof act === 'object' && act.hasOwnProperty( 'kind' ) && act.kind == 'text' ) {\r\n let thisRow = el.parentNode;\r\n \r\n if( WPTB_Helper.rowIsTop( thisRow ) ) {\r\n let table = WPTB_Helper.findAncestor( thisRow, 'wptb-preview-table' );\r\n\r\n if( table.classList.contains( 'wptb-table-preview-head' ) ) {\r\n WPTB_Helper.dataTitleColumnSet( table );\r\n }\r\n }\r\n }\r\n\r\n let wptbActionsField = new WPTB_ActionsField();\r\n wptbActionsField.actionsRemove();\r\n \r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n };\r\n\r\n btnCopy.onclick = ( event ) => {\r\n let copy,\r\n infArr,\r\n type;\r\n let activeElement = event.target.parentNode.activeElem;\r\n let activeElemParent = activeElement.parentNode;\r\n infArr = activeElement.className.match( /wptb-element-(.+)-(\\d+)/i );\r\n if( infArr && Array.isArray( infArr ) ) {\r\n type = infArr[1];\r\n let data = {};\r\n data.kind = type;\r\n data.elemProt = activeElement;\r\n data.tinyMceClear = true;\r\n copy = new WPTB_ElementObject( data );\r\n //WPTB_Helper.elementControlsStateCopy( activeElement, copy.getDOMElement() );\r\n //WPTB_Helper.externalCssStylesCopy( activeElement, copy.getDOMElement() );\r\n //WPTB_Helper.elementStartScript( copy.getDOMElement() );\r\n \r\n activeElemParent.insertBefore( copy.getDOMElement(), activeElement.nextSibling );\r\n } else {\r\n copy = {};\r\n let elementCopy = activeElement.cloneNode( true );\r\n elementCopy.classList.remove( 'wptb-directlyhovered' );\r\n \r\n copy.getDOMElement = function() {\r\n return elementCopy;\r\n }\r\n \r\n applyGenericItemSettings( copy );\r\n \r\n activeElemParent.insertBefore( copy.getDOMElement(), activeElement.nextSibling );\r\n \r\n WPTB_Helper.wptbDocumentEventGenerate( 'wptb-inner-element:copy', activeElement, copy.getDOMElement() );\r\n }\r\n \r\n WPTB_innerElementSet( copy.getDOMElement() );\r\n\r\n let wptbActionsField = new WPTB_ActionsField( 1, activeElement );\r\n wptbActionsField.setParameters( activeElement );\r\n \r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n };\r\n \r\n \r\n if( thisNode.classList.contains( 'wptb-ph-element' ) ) {\r\n let btnMove;\r\n btnMove = document.createElement( 'span' );\r\n btnMove.classList.add( \"dashicons\", \"dashicons-move\", 'wptb-move-action' );\r\n btnMove.draggable = true;\r\n actions.appendChild( btnMove );\r\n \r\n btnMove.ondragstart = ( event ) => {\r\n let wptbElementIconsDirectories = 'wptb-element-icons-directories';\r\n let tmplIconsDirectories = wp.template( wptbElementIconsDirectories );\r\n let data = {};\r\n let jsonIconsDirectories = tmplIconsDirectories( data );\r\n let IconsDirectories = JSON.parse( jsonIconsDirectories );\r\n\r\n let dragImages,\r\n actions = event.target.parentNode,\r\n activeElem = actions.activeElem,\r\n infArr,\r\n type;\r\n infArr = activeElem.className.match( /wptb-element-(.+)-(\\d+)/i );\r\n if( infArr && Array.isArray( infArr ) ) {\r\n type = infArr[1];\r\n activeElem.classList.add( 'wptb-moving-mode' );\r\n\r\n if( IconsDirectories && typeof IconsDirectories === 'object' && IconsDirectories[type] ) {\r\n dragImages = WPTB_Helper.getElementIcon( IconsDirectories[type] );\r\n }\r\n\r\n event.dataTransfer.effectAllowed = 'move';\r\n event.dataTransfer.setDragImage( dragImages, 0, 0 );\r\n event.dataTransfer.setData( 'node', 'wptb-element-' + infArr[1] + '-' + infArr[2] );\r\n event.dataTransfer.setData( 'wptb-moving-mode', 'wptb-element-' + infArr[1] + '-' + infArr[2] );\r\n event.dataTransfer.setData( 'wptbElIndic-' + infArr[1], 'wptbElIndic-' + infArr[1] );\r\n let act = event.target.parentNode.activeElem;\r\n if( act.kind == 'text' ) {\r\n let thisRow = act.parentNode.parentNode;\r\n \r\n if( WPTB_Helper.rowIsTop( thisRow ) ) {\r\n let table = WPTB_Helper.findAncestor( thisRow, 'wptb-preview-table' );\r\n\r\n if( table.classList.contains( 'wptb-table-preview-head' ) ) {\r\n WPTB_Helper.dataTitleColumnSet( table );\r\n }\r\n }\r\n }\r\n } else {\r\n this.style.display = 'none';\r\n }\r\n\r\n this.actionsHide();\r\n };\r\n\r\n btnMove.ondragend = ( event ) => {\r\n WPTB_Helper.elementDragEndClear();\r\n }\r\n }\r\n\r\n actions.style.display = 'flex';\r\n\r\n this.wptbActions = actions;\r\n } \r\n }\r\n \r\n this.setParameters = ( thisNode ) => {\r\n \r\n if( ! this.wptbActions ) {\r\n let actions = document.getElementsByClassName( 'wptb-actions' );\r\n if( actions.length > 0 ) {\r\n this.wptbActions = actions[0];\r\n } else {\r\n this.wptbActions = false;\r\n }\r\n }\r\n \r\n if( this.wptbActions && this.wptbActions.classList.contains( 'wptb-actions' ) ) {\r\n this.wptbActions.style.display = 'flex';\r\n } else {\r\n return;\r\n }\r\n \r\n let coordinatesElement = thisNode.getBoundingClientRect();\r\n \r\n let wptbContainer = document.getElementsByClassName( 'wptb-container' )[0];\r\n let correctTop = () => {\r\n let coordinatesElement = thisNode.getBoundingClientRect();\r\n this.wptbActions.style.top = parseFloat( coordinatesElement.top ) - 15 + 'px';\r\n }\r\n wptbContainer.removeEventListener( 'scroll', correctTop, false );\r\n \r\n this.wptbActions.style.top = parseFloat( coordinatesElement.top ) - 15 + 'px';\r\n this.wptbActions.style.left = ( parseFloat( coordinatesElement.right ) - parseFloat( this.wptbActions.clientWidth ) ) + 1 + 'px';\r\n \r\n this.wptbActions.style.display = 'flex';\r\n thisNode.classList.add( 'wptb-directlyhovered' );\r\n \r\n wptbContainer.addEventListener( 'scroll', correctTop, false );\r\n }\r\n \r\n this.leaveFromField = ( event, node, actionType ) => {\r\n if( ! this.wptbActions ) {\r\n let actions = document.getElementsByClassName( 'wptb-actions' );\r\n if( actions.length > 0 ) {\r\n this.wptbActions = actions[0];\r\n } else {\r\n this.wptbActions = false;\r\n }\r\n }\r\n \r\n if( ! this.wptbActions ) {\r\n return;\r\n }\r\n \r\n if( event.relatedTarget ) {\r\n if ( event.relatedTarget.classList.contains( 'wptb-actions' ) ||\r\n event.relatedTarget.classList.contains( 'wptb-move-action' ) ||\r\n event.relatedTarget.classList.contains( 'wptb-duplicate-action' ) ||\r\n event.relatedTarget.classList.contains( 'wptb-delete-action' ) ) {\r\n if( ! this.wptbActions ) {\r\n this.wptbActions = document.getElementsByClassName( 'wptb-actions' )[0];\r\n }\r\n this.wptbActions.onmouseleave = ( event ) => {\r\n if( event.relatedTarget != null && ( event.relatedTarget.classList.contains( 'wptb-ph-element' ) || \r\n WPTB_Helper.findAncestor( event.relatedTarget, 'wptb-ph-element') ) && event.relatedTarget != this.wptbActions.activeElem &&\r\n WPTB_Helper.findAncestor( event.relatedTarget, 'wptb-directlyhovered' ) != this.wptbActions.activeElem ) {\r\n \r\n// this.wptbActions.style.display = 'none';\r\n// event.relatedTarget.parentNode.parentNode.classList.remove( 'wptb-directlyhovered' );\r\n//\r\n// let wptbActionsField = new WPTB_ActionsField();\r\n//\r\n// wptbActionsField.addActionField( 1, event.relatedTarget.parentNode.parentNode );\r\n//\r\n// wptbActionsField.setParameters( event.relatedTarget.parentNode.parentNode );\r\n } else {\r\n \r\n }\r\n \r\n let wptbActionsField = new WPTB_ActionsField();\r\n\r\n wptbActionsField.leaveFromField( event, event.relatedTarget.parentNode.parentNode );\r\n \r\n event.target.activeElem.classList.remove( 'wptb-directlyhovered' );\r\n }\r\n\r\n return;\r\n } \r\n }\r\n \r\n node.classList.remove( 'wptb-directlyhovered' );\r\n this.wptbActions.style.display = 'none';\r\n \r\n if( event.relatedTarget ) {\r\n if( event.relatedTarget.classList.contains( 'wptb-ph-element' ) || WPTB_Helper.findAncestor( event.relatedTarget, 'wptb-ph-element' ) ) {\r\n this.addActionField( 1, event.relatedTarget.parentNode );\r\n\r\n this.setParameters( event.relatedTarget.parentNode );\r\n }\r\n }\r\n }\r\n \r\n this.actionsRemove = () => {\r\n if( ! this.wptbActions ) {\r\n let actions = document.getElementsByClassName( 'wptb-actions' );\r\n if( actions.length > 0 ) {\r\n this.wptbActions = actions[0];\r\n }\r\n }\r\n \r\n if( this.wptbActions ) {\r\n this.wptbActions.parentNode.removeChild( this.wptbActions );\r\n }\r\n }\r\n \r\n this.actionsHide = () => {\r\n if( ! this.wptbActions ) {\r\n let actions = document.getElementsByClassName( 'wptb-actions' );\r\n if( actions.length > 0 ) {\r\n this.wptbActions = actions[0];\r\n }\r\n }\r\n \r\n if( this.wptbActions ) {\r\n this.wptbActions.style.opacity = 0;\r\n }\r\n }\r\n}","(function () {\r\n var WPTB_Builder = function () {\r\n var table_id = WPTB_Helper.detectMode();\r\n if ( table_id ) {\r\n var http = new XMLHttpRequest(),\r\n urlSet = ajaxurl + \"?action=get_table\" + '&id=' + table_id;\r\n http.open('GET', urlSet, true);\r\n http.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');\r\n http.onreadystatechange = function (d) {\r\n if (this.readyState == 4 && this.status == 200) {\r\n var ans = JSON.parse( http.responseText );\r\n document.getElementById('wptb-setup-name').value = ans[0];\r\n \r\n if( ans[1] ) {\r\n document.getElementsByClassName('wptb-table-generator')[0].style.display = 'none';\r\n let wptbTableSetupEl = document.getElementsByClassName('wptb-table-setup')[0];\r\n wptbTableSetupEl.appendChild( WPTB_Parser( ans[1] ) );\r\n \r\n let body = document.getElementsByTagName('body')[0];\r\n \r\n WPTB_Table();\r\n let element = document.querySelector( '.wptb-preview-table' );\r\n if( element ) {\r\n let infArr = element.className.match( /wptb-element-((.+-)\\d+)/i );\r\n if( ! infArr ) {\r\n element.classList.add( 'wptb-element-main-table_setting-' + table_id );\r\n }\r\n \r\n if( element.dataset.wptbTableContainerMaxWidth ) {\r\n wptbTableSetupEl.style.maxWidth = element.dataset.wptbTableContainerMaxWidth + 'px';\r\n \r\n element.tdDefaultWidth();\r\n }\r\n }\r\n \r\n //WPTB_LeftPanel();\r\n WPTB_Settings();\r\n \r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n } else {\r\n document.getElementsByClassName('wptb-table-generator')[0].style.display = 'table';\r\n }\r\n \r\n return;\r\n }\r\n };\r\n http.send(null);\r\n } else {\r\n document.getElementsByClassName('wptb-table-generator')[0].style.display = 'table';\r\n\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n }\r\n document.counter = new ElementCounters();\r\n document.select = new MultipleSelect();\r\n\r\n var initializer = WPTB_Initializer();\r\n settings = WPTB_Settings();\r\n };\r\n\r\n let url = window.location.href,\r\n regex = new RegExp('[?&]page=wptb-builder'),\r\n results = regex.exec( url );\r\n if ( results ) {\r\n document.addEventListener('DOMContentLoaded', WPTB_Builder);\r\n }\r\n})();","var WPTB_Cell = function ( callback, DOMElement ) {\r\n\r\n function highlightRow(td) {\r\n var parentRow = td.parentNode,\r\n columnCount = parseInt(document.getElementById('wptb-columns-number').value),\r\n tds = document.getElementsByClassName('wptb-preview-table')[0].getElementsByTagName('td');\r\n for (var i = 0; i < tds.length; i++) {\r\n tds[i].classList.remove('wptb-highlighted-row-first', 'wptb-highlighted-row-last', 'wptb-highlighted-row-inner', 'wptb-highlighted-column-first', 'wptb-highlighted-column-last', 'wptb-highlighted-column-inner');\r\n }\r\n for (var i = 0; i < columnCount; i++) {\r\n\r\n var classToAdd = i == 0 ? 'wptb-highlighted-row-first' : i == columnCount - 1 ? 'wptb-highlighted-row-last' : 'wptb-highlighted-row-inner';\r\n var ttd = parentRow.getElementsByTagName('td')[i];\r\n if (ttd !== td) {\r\n ttd.classList.add(classToAdd);\r\n }\r\n }\r\n }\r\n\r\n function highlightColumn(td) {\r\n\r\n var index,\r\n parentRow = td.parentNode;\r\n columnCount = parseInt(document.getElementById('wptb-columns-number').value), rowCount = parseInt(document.getElementById('wptb-rows-number').value), table = document.getElementsByClassName('wptb-preview-table')[0];\r\n for (var i = 0; i < columnCount; i++) {\r\n if (parentRow.getElementsByTagName('td')[i] === td) {\r\n index = i;\r\n break;\r\n }\r\n }\r\n\r\n for (var i = 0; i < rowCount; i++) {\r\n var classToAdd = i == 0 ? 'wptb-highlighted-column-first' : i == rowCount - 1 ? 'wptb-highlighted-column-last' : 'wptb-highlighted-column-inner';\r\n var tr = table.getElementsByTagName('tr')[i];\r\n if (tr.getElementsByTagName('td')[index] !== td) {\r\n tr.getElementsByTagName('td')[index].classList.add(classToAdd);\r\n }\r\n }\r\n }\r\n \r\n if( ! DOMElement ) {\r\n DOMElement = document.createElement(\"td\");\r\n\r\n DOMElement.style.padding = jQuery('#wptb-table-padding-number').val() + 'px';\r\n\r\n var innerBorderWidth = jQuery('#wptb-table-inner-border-number').val();\r\n\r\n if (innerBorderWidth != '' && parseInt(innerBorderWidth) != 0) {\r\n DOMElement.style.border = innerBorderWidth + 'px solid ' + jQuery('#wptb-table-border-color').val();\r\n } \r\n\r\n DOMElement.classList.add('wptb-droppable', 'wptb-cell');\r\n }\r\n\r\n DOMElement.draggable = false;\r\n if ( callback ) {\r\n DOMElement.onclick = callback;\r\n }\r\n \r\n // Cell double click handler\r\n DOMElement.ondblclick = function( event ) {\r\n event.stopPropagation();\r\n if( ! WPTB_Helper.findAncestor( DOMElement, 'wptb-preview-table-manage-cells' ) && event.target == event.currentTarget ) {\r\n \r\n WPTB_Helper.wptbDocumentEventGenerate( 'table:cell:dblclick', event.target );\r\n \r\n let element = WPTB_Helper.newElementProxy( 'text' );\r\n element = element.getDOMElement();\r\n \r\n DOMElement.appendChild( element );\r\n \r\n WPTB_innerElementSet( element );\r\n }\r\n }\r\n \r\n WPTB_innerElementSet( DOMElement );\r\n\r\n WPTB_Helper.elementStartScript( DOMElement, 'table_cell_setting' );\r\n\r\n let wptbPhElement = DOMElement.getElementsByClassName( 'wptb-ph-element' );\r\n \r\n if ( wptbPhElement.length > 0 ) {\r\n for( let i = 0; i < wptbPhElement.length; i++ ) {\r\n wptbPhElement[i].getDOMElement = function() {\r\n return wptbPhElement[i];\r\n }\r\n \r\n WPTB_innerElementSet( wptbPhElement[i] );\r\n \r\n let wptbElementTypeClass = wptbPhElement[i].className.match( /wptb-element-((.+-)\\d+)/i );\r\n if( wptbElementTypeClass && Array.isArray( wptbElementTypeClass ) ) {\r\n let wptbTypeElementArr = wptbElementTypeClass[1].split( '-' );\r\n wptbPhElement[i].kind = wptbTypeElementArr[0];\r\n applyGenericItemSettings( wptbPhElement[i], wptbElementTypeClass[1] );\r\n let wptbInternalActiveElement = wptbPhElement[i].getElementsByClassName( 'wptb-in-element' );\r\n if ( wptbInternalActiveElement.length > 0 ) {\r\n for ( let j = 0; j < wptbInternalActiveElement.length; j++ ) {\r\n let wptbInternalActiveElementObj = {};\r\n wptbInternalActiveElementObj.getDOMElement = function() {\r\n return wptbInternalActiveElement[j];\r\n }\r\n \r\n applyGenericItemSettings( wptbInternalActiveElementObj );\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n this.getDOMElement = function () {\r\n return DOMElement;\r\n };\r\n\r\n this.setCoords = function (y, x) {\r\n var el = this.getDOMElement();\r\n el.dataset.yIndex = y;\r\n el.dataset.xIndex = x;\r\n };\r\n\r\n this.getCoords = function () {\r\n var coords,\r\n el = this.getDOMElement();\r\n coords.x = el.dataset.xIndex;\r\n coords.y = el.dataset.yIndex;\r\n return coords;\r\n };\r\n\r\n this.appendElement = function (node) {\r\n getDOMElement().appendChild(node);\r\n };\r\n \r\n DOMElement.getCellDimensions = function() {\r\n\r\n let tdStyleObj = window.getComputedStyle( this, null );\r\n\r\n let tdPaddingLeft = tdStyleObj.getPropertyValue( 'padding-left' );\r\n let tdPaddingRight = tdStyleObj.getPropertyValue( 'padding-right' );\r\n\r\n let tdBorderLeftWidth = tdStyleObj.getPropertyValue( 'border-left-width' );\r\n let tdBorderRightWidth = tdStyleObj.getPropertyValue( 'border-right-width' );\r\n\r\n let tdPaddingTop = tdStyleObj.getPropertyValue( 'padding-top' );\r\n let tdPaddingBottom = tdStyleObj.getPropertyValue( 'padding-bottom' );\r\n\r\n let tdBorderTopWidth = tdStyleObj.getPropertyValue( 'border-top-width' );\r\n let tdBorderBottomWidth = tdStyleObj.getPropertyValue( 'border-bottom-width' );\r\n\r\n let width = parseInt( this.offsetWidth, 10 ) -\r\n parseInt( tdPaddingLeft, 10 ) -\r\n parseInt( tdPaddingRight, 10 );\r\n\r\n let height = parseInt( this.offsetHeight, 10 ) -\r\n parseInt( tdPaddingTop, 10 ) -\r\n parseInt( tdPaddingBottom, 10 );\r\n let table = WPTB_Helper.findAncestor( this, 'wptb-preview-table' );\r\n if(table) {\r\n if(table.style.borderCollapse === 'collapse') {\r\n width = width - ( parseInt( tdBorderLeftWidth, 10 ) / 2 ) -\r\n ( parseInt( tdBorderRightWidth, 10 ) / 2 );\r\n height = height - ( parseInt( tdBorderTopWidth, 10 ) / 2 ) -\r\n ( parseInt( tdBorderBottomWidth, 10 ) / 2 );\r\n let tableFullStyleObj = window.getComputedStyle( table, null );\r\n let tableBorderLeft = tableFullStyleObj.getPropertyValue( 'border-left-width' );\r\n let tableBorderRight = tableFullStyleObj.getPropertyValue( 'border-right-width' );\r\n let tableBorderTop = tableFullStyleObj.getPropertyValue( 'border-top-width' );\r\n let tableBorderBottom = tableFullStyleObj.getPropertyValue( 'border-bottom-width' );\r\n\r\n let tr = this.parentNode;\r\n if( tr && tr.nodeName.toLowerCase() === 'tr' ) {\r\n if( tr.firstChild && tr.firstChild.dataset.xIndex === this.dataset.xIndex ) {\r\n if( parseInt( tableBorderLeft, 10 ) > parseInt( tdBorderLeftWidth, 10 ) ) {\r\n width += -( parseInt( tableBorderLeft, 10 ) - parseInt( tdBorderLeftWidth, 10 ) ) / 2;\r\n }\r\n }\r\n\r\n if( tr.lastChild && tr.lastChild.dataset.xIndex === this.dataset.xIndex ) {\r\n if( parseInt( tableBorderRight, 10 ) > parseInt( tdBorderRightWidth, 10 ) ) {\r\n width += -( parseInt( tableBorderRight, 10 ) - parseInt( tdBorderRightWidth, 10 ) ) / 2;\r\n }\r\n }\r\n\r\n let body = tr.parentNode;\r\n if( body && body.nodeName.toLowerCase() === 'body' ) {\r\n if( body.firstChild && body.firstChild.firstChild.dataset.yIndex === this.dataset.yIndex ) {\r\n if( parseInt( tableBorderTop, 10 ) > parseInt( tdBorderTopWidth, 10 ) ) {\r\n height += ( parseInt( tableBorderTop, 10 ) - parseInt( tdBorderTopWidth, 10 ) ) / 2;\r\n }\r\n }\r\n\r\n if( body.lastChild && body.lastChild.firstChild.dataset.yIndex === this.dataset.yIndex ) {\r\n if( parseInt( tableBorderBottom, 10 ) > parseInt( tdBorderBottomWidth, 10 ) ) {\r\n height += ( parseInt( tableBorderBottom, 10 ) - parseInt( tdBorderBottomWidth, 10 ) ) / 2;\r\n }\r\n }\r\n }\r\n }\r\n } else if(table.style.borderCollapse === 'separate') {\r\n width = width - parseInt( tdBorderLeftWidth, 10 ) -\r\n parseInt( tdBorderRightWidth, 10 );\r\n height = height - parseInt( tdBorderTopWidth, 10 ) -\r\n parseInt( tdBorderBottomWidth, 10 );\r\n }\r\n }\r\n\r\n return {\r\n width: parseInt( width ),\r\n height: parseInt( height )\r\n };\r\n }\r\n\r\n return this;\r\n};","var WPTB_DropHandle = function (thisElem, e) {\r\n \r\n let wptbDropHandle,\r\n wptbDropBorderMarker,\r\n wptbDropBorderMarkerTop,\r\n wptbDropBorderMarkerRight,\r\n wptbDropBorderMarkerBottom,\r\n wptbDropBorderMarkerLeft;\r\n if ( document.getElementsByClassName( 'wptb-drop-handle' ).length == 0 ) {\r\n wptbDropHandle = document.createElement( 'div' );\r\n wptbDropHandle.classList.add( 'wptb-drop-handle' );\r\n \r\n wptbDropBorderMarker = document.createElement( 'div' );\r\n wptbDropBorderMarker.classList.add( 'wptb-drop-border-marker' );\r\n \r\n wptbDropBorderMarkerTop = document.createElement( 'div' ),\r\n wptbDropBorderMarkerRight = document.createElement( 'div' ),\r\n wptbDropBorderMarkerBottom = document.createElement( 'div' ),\r\n wptbDropBorderMarkerLeft = document.createElement( 'div' );\r\n \r\n wptbDropBorderMarkerTop.classList.add( 'wptb-drop-border-marker-top' );\r\n wptbDropBorderMarkerRight.classList.add( 'wptb-drop-border-marker-right' );\r\n wptbDropBorderMarkerBottom.classList.add( 'wptb-drop-border-marker-bottom' );\r\n wptbDropBorderMarkerLeft.classList.add( 'wptb-drop-border-marker-left' );\r\n \r\n wptbDropBorderMarker.appendChild( wptbDropBorderMarkerTop );\r\n wptbDropBorderMarker.appendChild( wptbDropBorderMarkerRight );\r\n wptbDropBorderMarker.appendChild( wptbDropBorderMarkerBottom );\r\n wptbDropBorderMarker.appendChild( wptbDropBorderMarkerLeft );\r\n \r\n let body = document.getElementsByTagName( 'body' );\r\n if ( body.length > 0 ) {\r\n body[0].appendChild( wptbDropHandle );\r\n body[0].appendChild( wptbDropBorderMarker );\r\n }\r\n \r\n wptbDropHandle.ondragenter = function () {\r\n\r\n }\r\n\r\n wptbDropHandle.ondragover = function (e) {\r\n e.preventDefault();\r\n }\r\n\r\n wptbDropHandle.ondragleave = function () {\r\n\r\n }\r\n wptbDropHandle.ondrop = function (e) {\r\n e.preventDefault();\r\n let element;\r\n \r\n if ( e.dataTransfer.getData('wptbElement') ) {\r\n element = WPTB_Helper.newElementProxy( e.dataTransfer.getData('wptbElement') );\r\n element = element.getDOMElement();\r\n } else {\r\n element = document.getElementsByClassName( e.dataTransfer.getData('node') )[0];\r\n element.classList.remove( 'wptb-moving-mode' );\r\n element.classList.remove( 'wptb-moving-into-same-elem' );\r\n element.wptbMovingMode = 1;\r\n }\r\n \r\n let td;\r\n if( wptbDropHandle.dataset.text == 'Drop Here' ) {\r\n thisElem = wptbDropHandle.getDOMParentElement();\r\n if ( thisElem.nodeName.toLowerCase() == 'td' ) {\r\n td = wptbDropHandle.getDOMParentElement();\r\n td.appendChild( element );\r\n }\r\n } else {\r\n let innerElement = wptbDropHandle.getDOMParentElement();\r\n td = innerElement.parentNode;\r\n \r\n if( wptbDropHandle.dataset.text == 'Above Element' ) {\r\n td.insertBefore( element, innerElement );\r\n } else if( wptbDropHandle.dataset.text == 'Below Element' ) {\r\n let innerElementNext = innerElement.nextSibling;\r\n td.insertBefore( element, innerElementNext );\r\n }\r\n }\r\n \r\n let thisRow = td.parentNode;\r\n if( WPTB_Helper.rowIsTop( thisRow ) ) {\r\n let table = WPTB_Helper.findAncestor( thisRow, 'wptb-preview-table' );\r\n\r\n if( table.classList.contains( 'wptb-table-preview-head' ) ) {\r\n WPTB_Helper.dataTitleColumnSet( table );\r\n }\r\n }\r\n \r\n wptbDropHandle.style.display = 'none';\r\n wptbDropBorderMarker.style.display = 'none';\r\n \r\n WPTB_innerElementSet( element );\r\n if( ! element.classList.contains( 'wptb-image-container' ) || element.wptbMovingMode == 1 ) {\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n element.wptbMovingMode == undefined;\r\n }\r\n }\r\n let wptbContainer = document.querySelector( '.wptb-container' );\r\n wptbContainer.onscroll = function() {\r\n wptbDropHandle.style.display = 'none';\r\n wptbDropBorderMarker.style.display = 'none';\r\n }\r\n } else {\r\n wptbDropHandle = document.getElementsByClassName( 'wptb-drop-handle' )[0];\r\n wptbDropBorderMarker = document.getElementsByClassName( 'wptb-drop-border-marker' )[0];\r\n }\r\n if( thisElem && thisElem.nodeName.toLowerCase() == 'td' && \r\n thisElem.getElementsByClassName( 'wptb-ph-element' ).length != 0 ) {\r\n return;\r\n }\r\n \r\n let thisRow;\r\n if ( thisElem.localName == 'td' ) {\r\n thisRow = thisElem.parentNode;\r\n } else if ( thisElem.localName == 'div' && thisElem.classList.contains( 'wptb-ph-element' ) ) {\r\n thisRow = thisElem.parentNode.parentNode;\r\n }\r\n \r\n if( WPTB_Helper.rowIsTop( thisRow ) ) {\r\n let table = WPTB_Helper.findAncestor( thisRow, 'wptb-preview-table' );\r\n \r\n if( table.classList.contains( 'wptb-table-preview-head' ) ) {\r\n let indics = e.dataTransfer.types;\r\n let notDragEnter = false;\r\n for ( let i = 0; i < indics.length; i++ ) {\r\n let infArr = indics[i].match( /wptbelindic-([a-z]+)/i );\r\n if ( infArr && infArr[1] != 'text' ) {\r\n notDragEnter = true;\r\n break;\r\n }\r\n }\r\n if( notDragEnter ) {\r\n return;\r\n }\r\n }\r\n }\r\n \r\n wptbDropHandle.style.width = thisElem.offsetWidth + 'px';\r\n let height = thisElem.offsetHeight,\r\n coordinatesElement = thisElem.getBoundingClientRect(),\r\n left = parseFloat( coordinatesElement.left ),\r\n top;\r\n wptbDropHandle.style.left = left + 'px';\r\n \r\n if( e.dataTransfer.types.indexOf( 'wptb-moving-mode' ) != -1 ) {\r\n let elementDrag = document.getElementsByClassName( 'wptb-moving-mode' )[0];\r\n if( thisElem == elementDrag ) {\r\n wptbDropHandle.classList.add('wptb-moving-into-same-elem');\r\n wptbDropBorderMarker.classList.add('wptb-moving-into-same-elem');\r\n } else {\r\n wptbDropHandle.classList.remove('wptb-moving-into-same-elem');\r\n wptbDropBorderMarker.classList.remove('wptb-moving-into-same-elem');\r\n }\r\n }\r\n \r\n wptbDropHandle.getDOMParentElement = function() {\r\n return thisElem;\r\n }\r\n \r\n wptbDropHandle.style.display = 'block';\r\n wptbDropBorderMarker.style.display = 'block';\r\n if( thisElem.nodeName.toLowerCase() != 'td' ) {\r\n let y = e.offsetY==undefined?e.layerY:e.offsetY;\r\n top = parseFloat( coordinatesElement.top ) - parseFloat( 11 );\r\n wptbDropHandle.dataset.text = 'Above Element';\r\n if ( y > height/2 ) {\r\n top = parseFloat( coordinatesElement.top ) + height - 1;\r\n wptbDropHandle.dataset.text = 'Below Element';\r\n }\r\n } else {\r\n wptbDropHandle.dataset.text = 'Drop Here';\r\n top = parseFloat( coordinatesElement.top ) + height/2 - 5;\r\n }\r\n wptbDropHandle.style.top = top + 'px';\r\n\r\n wptbDropBorderMarker.style.top = coordinatesElement.top + 'px';\r\n wptbDropBorderMarker.style.left = coordinatesElement.left + 'px';\r\n\r\n wptbDropBorderMarkerTop = wptbDropBorderMarker.querySelector( '.wptb-drop-border-marker-top' );\r\n wptbDropBorderMarkerTop.style.width = ( parseFloat( thisElem.offsetWidth ) - parseFloat( 1 ) ) + 'px';\r\n\r\n wptbDropBorderMarkerRight = wptbDropBorderMarker.querySelector( '.wptb-drop-border-marker-right' );\r\n wptbDropBorderMarkerRight.style.height = ( parseFloat( coordinatesElement.bottom ) - parseFloat( coordinatesElement.top ) - 1 ) + 'px';\r\n wptbDropBorderMarkerRight.style.left = wptbDropBorderMarkerTop.style.width;\r\n\r\n wptbDropBorderMarkerBottom = wptbDropBorderMarker.querySelector( '.wptb-drop-border-marker-bottom' );\r\n wptbDropBorderMarkerBottom.style.width = wptbDropBorderMarkerTop.style.width;\r\n wptbDropBorderMarkerBottom.style.top = wptbDropBorderMarkerRight.style.height;\r\n\r\n wptbDropBorderMarkerLeft = wptbDropBorderMarker.querySelector( '.wptb-drop-border-marker-left' );\r\n wptbDropBorderMarkerLeft.style.height = wptbDropBorderMarkerRight.style.height;\r\n}","var ElementCounters = function () {\r\n\r\n\tvar priv = [];\r\n\tpriv['text'] = 0;\r\n\tpriv['image'] = 0;\r\n\tpriv['list'] = 0;\r\n\tpriv['button'] = 0;\r\n\r\n\tthis.increment = function (key) {\r\n\t\tif (!(key in priv)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tpriv[key]++;\r\n\t}\r\n\r\n\tthis.nextIndex = function (key) {\r\n\t\tif (!(key in priv)) {\r\n\t\t\treturn undefined;\r\n\t\t}\r\n\t\treturn priv[key] + 1;\r\n\t}\r\n\r\n\treturn this;\r\n\r\n};","var WPTB_ElementObject = function ( data ) {\r\n let DOMElement, kindIndexProt, copy;\r\n if( ! data.elemProt ) {\r\n DOMElement = document.createElement('div'),\r\n kindIndexProt = undefined,\r\n copy = false;\r\n DOMElement.classList.add( 'wptb-' + data.kind + '-container', 'wptb-ph-element' );\r\n \r\n let wpTemplateId = 'wptb-' + data.kind + '-content';\r\n let template = wp.template( wpTemplateId );\r\n data.node = DOMElement;\r\n let itemHtml = template( data );\r\n\r\n itemHtml = itemHtml.replace(/\\r|\\n|\\t/g, '').trim();\r\n DOMElement.innerHTML = itemHtml;\r\n } else {\r\n DOMElement = data.elemProt.cloneNode( true );\r\n DOMElement.classList.remove( 'wptb-directlyhovered' );\r\n let wptbElementMutch = data.elemProt.className.match( /wptb-element-((.+-)\\d+)/i );\r\n if ( wptbElementMutch && Array.isArray( wptbElementMutch ) ) {\r\n kindIndexProt = wptbElementMutch[1];\r\n };\r\n copy = true;\r\n \r\n if( data.tinyMceClear ) {\r\n DOMElement = WPTB_Helper.elementClearFromTinyMce( DOMElement );\r\n }\r\n }\r\n \r\n let inElems = DOMElement.querySelectorAll( '.wptb-in-element' );\r\n if( inElems.length > 0 ) {\r\n for ( let i = 0; i < inElems.length; i++ ) {\r\n let inElemObj = {};\r\n inElemObj.getDOMElement = function() {\r\n return inElems[i];\r\n }\r\n \r\n applyGenericItemSettings( inElemObj );\r\n }\r\n }\r\n \r\n window.addEventListener( 'item:onmouseenter', function( event ) {\r\n //console.log( event );\r\n }, false);\r\n \r\n \r\n this.kind = data.kind;\r\n this.getDOMElement = function () {\r\n return DOMElement;\r\n };\r\n \r\n applyGenericItemSettings( this, kindIndexProt, copy );\r\n return this;\r\n}\r\n\r\n\r\n","var WPTB_ElementOptions = function ( element, index, kindIndexProt ) {\r\n\r\n var node = element.getDOMElement();\r\n node.addEventListener( 'click', function() {\r\n WPTB_Helper.elementOptionsSet( element.kind, this );\r\n }, {capture: true} );\r\n};","var WPTB_Helper = {\r\n hexToRgb: function( hex ) {\r\n var result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec( hex );\r\n return result ? 'rgb(' + parseInt( result[1], 16 ) + ',' + parseInt( result[2], 16 ) + ',' + parseInt( result[3], 16 ) + ')' : null;\r\n },\r\n rgbToHex: function ( rgb ) {\r\n if( rgb ) {\r\n if( WPTB_Helper.isHex( rgb ) ) return rgb;\r\n\r\n let rgbm = rgb.match(/^rgba?[\\s+]?\\([\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+)[\\s+]?,[\\s+]?((?:[0-9]*[.])?[0-9]+)[\\s+]?\\)/i);\r\n if ( rgbm && rgbm.length === 5) {\r\n return \"#\" +\r\n ('0' + Math.round(parseFloat(rgbm[4], 10) * 255).toString(16).toUpperCase()).slice(-2) +\r\n (\"0\" + parseInt(rgbm[1], 10).toString(16).toUpperCase()).slice(-2) +\r\n (\"0\" + parseInt(rgbm[2], 10).toString(16).toUpperCase()).slice(-2) +\r\n (\"0\" + parseInt(rgbm[3], 10).toString(16).toUpperCase()).slice(-2);\r\n } else {\r\n rgbm = rgb.match(/^rgba?[\\s+]?\\([\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+)[\\s+]?,[\\s+]?(\\d+)[\\s+]?/i);\r\n if (rgbm && rgbm.length === 4) {\r\n return \"#\" +\r\n (\"0\" + parseInt(rgbm[1], 10).toString(16).toUpperCase()).slice(-2) +\r\n (\"0\" + parseInt(rgbm[2], 10).toString(16).toUpperCase()).slice(-2) +\r\n (\"0\" + parseInt(rgbm[3], 10).toString(16).toUpperCase()).slice(-2);\r\n } else {\r\n return '';\r\n }\r\n }\r\n } else {\r\n return '';\r\n }\r\n\r\n },\r\n isHex: function( hex ) {\r\n let regex = new RegExp('^#(?:[A-Fa-f0-9]{3}){1,2}$');\r\n return regex.test( hex );\r\n },\r\n getElementIcon: function ( icon_directory ) {\r\n let hostName = location.protocol + '//' + location.hostname;\r\n let img = document.createElement( 'img' );\r\n img.src = icon_directory;\r\n return img;\r\n },\r\n elementDragEndClear: function() {\r\n let wptbMovingMode = document.getElementsByClassName( 'wptb-moving-mode' );\r\n if ( wptbMovingMode.length > 0 ) {\r\n for( let i = 0; i < wptbMovingMode.length; i++ ) {\r\n wptbMovingMode[i].classList.remove( 'wptb-moving-mode' );\r\n }\r\n }\r\n\r\n let wptbDropHandles = document.getElementsByClassName( 'wptb-drop-handle' );\r\n if ( wptbDropHandles.length > 0 ) {\r\n for( let i = 0; i < wptbDropHandles.length; i++ ) {\r\n wptbDropHandles[i].style.display = 'none';\r\n }\r\n }\r\n\r\n let wptbDropBorderMarkers = document.getElementsByClassName( 'wptb-drop-border-marker' );\r\n if ( wptbDropBorderMarkers.length > 0 ) {\r\n for( let i = 0; i < wptbDropBorderMarkers.length; i++ ) {\r\n wptbDropBorderMarkers[i].style.display = 'none';\r\n }\r\n }\r\n },\r\n linkHttpCheckChange: function( link, convertToAbs = false ) {\r\n if ( link ) {\r\n // even though it is not a best practice and a huge security risk, sometimes our users use javascript tag at href attributes, this check will make sure those tags will not be modified and returned as they are\r\n if(link.match(/^(javascript:)(.+)$/)){\r\n return link;\r\n }\r\n // relative link checking\r\n // if link starts with '/', assume it is a relative link to the origin of the current site\r\n else if( link.match(/^\\/([\\S]+)$/) ){\r\n if (convertToAbs) {\r\n const currentLocation = document.location;\r\n let {origin} = currentLocation;\r\n\r\n\r\n // strip out the '/' at the end of the origin name if there is any\r\n if (origin.match(/^(.+)\\/$/)) {\r\n origin = origin.slice(-1);\r\n }\r\n\r\n return `${origin}${link}`;\r\n }else{\r\n return link;\r\n }\r\n }\r\n else if ( link.indexOf( 'http://' ) == -1 && link.indexOf( 'https://' ) == -1 ) {\r\n let linkArr = link.split( '/' ),\r\n linkClean;\r\n if ( Array.isArray( linkArr ) && linkArr.length > 0 ) {\r\n linkClean = linkArr[linkArr.length - 1];\r\n }\r\n return document.location.protocol + '//' + linkClean;\r\n } else {\r\n return link;\r\n }\r\n } else {\r\n return '';\r\n }\r\n },\r\n dataTitleColumnSet: function( table ) {\r\n // TODO dataTitleColumnSet\r\n // let rows = table.rows,\r\n // rowHead = rows[0];\r\n // let computedStyleRowHead = getComputedStyle( rowHead );\r\n //\r\n // let rowHeadChildren = rowHead.children;\r\n // let contentsForHeader = {};\r\n // for( let i = 0; i < rowHeadChildren.length; i++ ) {\r\n // let tdElements = rowHeadChildren[i].children;\r\n //\r\n // for( let j = 0; j < tdElements.length; j++ ) {\r\n // let element = tdElements[j];\r\n // if( element.classList.contains( 'wptb-ph-element' ) ) {\r\n // let infArr = element.className.match( /wptb-element-(.+)-(\\d+)/i );\r\n // if( infArr[1] == 'text' ) {\r\n // let p = element.querySelector( 'p' ),\r\n // textContent = p.textContent,\r\n // textAlign = p.style.textAlign;\r\n // contentsForHeader[rowHeadChildren[i].dataset.xIndex] = [textContent, element.style.fontSize,\r\n // element.style.color, computedStyleRowHead.backgroundColor, textAlign];\r\n // break;\r\n // }\r\n // }\r\n // }\r\n // if( ! contentsForHeader[rowHeadChildren[i].dataset.xIndex] ) {\r\n // contentsForHeader[rowHeadChildren[i].dataset.xIndex] = ['', '',\r\n // '', computedStyleRowHead.backgroundColor, ''];\r\n // }\r\n // }\r\n // for ( let i = 1; i < rows.length; i++ ) {\r\n // let thisRow = rows[i],\r\n // thisRowChildren = thisRow.children;\r\n // for( let j = 0; j < thisRowChildren.length; j++ ) {\r\n // if ( contentsForHeader[thisRowChildren[j].dataset.xIndex] ) {\r\n // thisRowChildren[j].dataset.wptbTitleColumn = contentsForHeader[thisRowChildren[j].dataset.xIndex][0];\r\n // thisRowChildren[j].dataset.wptbTitleColumnFontSize = contentsForHeader[thisRowChildren[j].dataset.xIndex][1];\r\n // thisRowChildren[j].dataset.wptbTitleColumnColor = contentsForHeader[thisRowChildren[j].dataset.xIndex][2];\r\n // thisRowChildren[j].dataset.wptbTitleBackgroundColor = contentsForHeader[thisRowChildren[j].dataset.xIndex][3];\r\n // thisRowChildren[j].dataset.wptbTitleAlign = contentsForHeader[thisRowChildren[j].dataset.xIndex][4];\r\n // } else {\r\n // thisRowChildren[j].dataset.wptbTitleColumn = null;\r\n // thisRowChildren[j].dataset.wptbTitleColumnFontSize = null;\r\n // thisRowChildren[j].dataset.wptbTitleColumnColor = null;\r\n // thisRowChildren[j].dataset.wptbTitleBackgroundColor = null;\r\n // thisRowChildren[j].dataset.wptbTitleAlign = null;\r\n // }\r\n // }\r\n // }\r\n },\r\n findAncestor: function( el, cls ) {\r\n while ( ( el = el.parentElement ) && !el.classList.contains( cls ) );\r\n return el;\r\n },\r\n rowIsTop: function( row ) {\r\n var parent = row.parentNode;\r\n if( parent.children[0] == row ) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n },\r\n getSelectionText: function() {\r\n var txt = '';\r\n if (txt = window.getSelection) {\r\n txt = window.getSelection().toString();\r\n } else {\r\n txt = document.selection.createRange().text;\r\n }\r\n return txt;\r\n },\r\n elementOptionsPanelClear: function() {\r\n let elementOptionsGroup = document.getElementById( 'element-options-group' );\r\n if( elementOptionsGroup ) {\r\n elementOptionsGroup.innerHTML = '';\r\n }\r\n },\r\n wpColorPickerCheckChangeForTableStateSaving: function( event ) {\r\n if( event.originalEvent.type == 'external' ) {\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n } else {\r\n let wpPickerContainer = WPTB_Helper.findAncestor( event.target, 'wp-picker-container' );\r\n if( wpPickerContainer ) {\r\n if( event.originalEvent.type == 'square' || event.originalEvent.type == 'strip' ) {\r\n let body = document.getElementsByTagName( 'body' )[0];\r\n body.removeEventListener( 'mouseup', WPTB_Helper.irisStripMouseUpStateSaveManager, false );\r\n body.addEventListener( 'mouseup', WPTB_Helper.irisStripMouseUpStateSaveManager, false );\r\n }\r\n }\r\n }\r\n },\r\n irisStripMouseUpStateSaveManager: function() {\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n\r\n let body = document.getElementsByTagName( 'body' )[0];\r\n body.removeEventListener( 'mouseup', WPTB_Helper.irisStripMouseUpStateSaveManager, false );\r\n },\r\n wpColorPickerClear: function( attribute, isId ) {\r\n let input;\r\n if( isId ) {\r\n input = [document.getElementById( attribute )];\r\n input.length = 1;\r\n } else {\r\n input = document.getElementsByClassName( attribute );\r\n }\r\n for( let i = 0; i < input.length; i++ ) {\r\n let wpPickerContainer = WPTB_Helper.findAncestor( input[i], 'wp-picker-container' );\r\n if( wpPickerContainer ) {\r\n let parent = wpPickerContainer.parentNode;\r\n parent.removeChild( wpPickerContainer );\r\n let newInput = document.createElement( 'input' );\r\n if( isId ) {\r\n newInput.setAttribute( 'id', attribute );\r\n } else {\r\n newInput.classList.add( 'wptb-element-property', attribute );\r\n }\r\n newInput.value = \"\";\r\n parent.appendChild( newInput );\r\n }\r\n }\r\n },\r\n detectMode: function() {\r\n var url = window.location.href,\r\n regex = new RegExp('[?&]table(=([^&#]*)|&|#|$)'),\r\n results = regex.exec(url);\r\n if ( ! results ) return false;\r\n if ( ! results[2] ) return '';\r\n return decodeURIComponent( results[2].replace(/\\+/g, ' ') );\r\n },\r\n getColumnWidth: function( table, cell ) {\r\n let xIndex = cell.dataset.xIndex;\r\n let xIndexes = table.querySelectorAll( '[data-x-index=\"' + xIndex + '\"]' );\r\n let cellWidth = cell.getCellDimensions().width;\r\n for( let i = 0; i < xIndexes.length; i++ ) {\r\n if( cellWidth > xIndexes[i].getCellDimensions().width ) {\r\n cellWidth = xIndexes[i].getCellDimensions().width;\r\n }\r\n }\r\n return cellWidth;\r\n },\r\n getRowHeight: function( table, cell ) {\r\n let yIndex = cell.dataset.yIndex;\r\n let yIndexes = table.querySelectorAll( '[data-y-index=\"' + yIndex + '\"]' );\r\n let cellHeight = cell.getCellDimensions().height;\r\n for( let i = 0; i < yIndexes.length; i++ ) {\r\n if( cellHeight > yIndexes[i].getCellDimensions().height ) {\r\n cellHeight = yIndexes[i].getCellDimensions().height;\r\n }\r\n }\r\n return cellHeight;\r\n },\r\n newElementProxy: function( el ) {\r\n if( el ) {\r\n let data = {kind: el};\r\n return new WPTB_ElementObject( data );\r\n }\r\n },\r\n wpColorPickerChange: function( event, ui ) {\r\n let uiColor;\r\n if( ui ) {\r\n uiColor = ui.color.toString();\r\n } else {\r\n uiColor = '';\r\n }\r\n\r\n let parent = WPTB_Helper.findAncestor( event.target, 'wp-picker-input-wrap' ).getElementsByClassName( 'wptb-color-picker' )[0], classe, type, ps, number;\r\n classe = parent.dataset.element.match(/wptb-options-(.+)-(\\d+)/i);\r\n type = classe[1];\r\n number = classe[2];\r\n let affectedEl = document.getElementsByClassName( 'wptb-element-' + type + '-' + number )[0];\r\n if ( type == 'button' ) {\r\n if ( parent.dataset.type == 'button-text-color' ) {\r\n affectedEl.getElementsByClassName( 'wptb-button' )[0].style.color = uiColor;\r\n } else {\r\n affectedEl.getElementsByClassName( 'wptb-button' )[0].style.backgroundColor = uiColor;\r\n }\r\n } else if( type == 'list' ) {\r\n let ps = affectedEl.querySelectorAll( 'p' );\r\n if( ps.length > 0 ) {\r\n for ( let i = 0; i < ps.length; i++ ) {\r\n ps[i].style.color = uiColor;\r\n }\r\n }\r\n } else if( type == 'star_rating' ) {\r\n if ( parent.dataset.type == 'star-color' ) {\r\n let ratingStar = affectedEl.querySelectorAll('li');\r\n for( let i = 0; i < ratingStar.length; i++ ) {\r\n let span = ratingStar[i].getElementsByTagName( 'span' );\r\n for( let j = 0; j < span.length; j++ ) {\r\n span[j].style.fill = uiColor;\r\n }\r\n }\r\n } else if( parent.dataset.type == 'numeral-rating-color' ) {\r\n let wptbTextMessageSize = affectedEl.querySelector('.wptb-number-rating');\r\n wptbTextMessageSize.style.color = uiColor;\r\n }\r\n\r\n } else {\r\n affectedEl.style.color = uiColor;\r\n }\r\n },\r\n numberImputSize: function ( wptbNumberInputs, maxCount, maxValue ) {\r\n wptbNumberInputs.onkeydown = function() {\r\n let thisValue = this.value;\r\n thisValue = String( thisValue );\r\n if ( thisValue[0] == 0 ) {\r\n this.value = \"\";\r\n } else {\r\n thisValue = thisValue.substring( 0, maxCount );\r\n this.value = thisValue;\r\n }\r\n }\r\n wptbNumberInputs.onkeyup = function( ) {\r\n let thisValue = this.value;\r\n if ( parseInt( thisValue, 10 ) > parseInt( maxValue, 10 ) ) {\r\n this.value = maxValue;\r\n }\r\n\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n }\r\n },\r\n ucfirst: function( str ) {\r\n return str.charAt(0).toUpperCase() + str.slice(1);\r\n },\r\n wptbDocumentEventGenerate: function( eventName, element, details ) {\r\n if( eventName && element ) {\r\n if( ! details ) {\r\n details = true;\r\n }\r\n let event = new CustomEvent( eventName, { detail: details, bubbles: true } );\r\n element.dispatchEvent( event );\r\n }\r\n },\r\n // run script for the pointed element\r\n elementStartScript: function( element, kind ) {\r\n //let script = element.getElementsByTagName( 'script' );\r\n if(!kind) {\r\n let infArr = element.className.match(/wptb-element-(.+)-(\\d+)/i);\r\n if( infArr && Array.isArray( infArr ) ) {\r\n kind = infArr[1];\r\n }\r\n }\r\n\r\n if( kind ) {\r\n// let wpTemplateId = 'wptb-' + kind + '-script';\r\n// let template = wp.template( wpTemplateId );\r\n// let data = {elemClass: infArr[0]};\r\n// let elementScriptText = template( data );\r\n// elementScriptText = elementScriptText.replace(/\\r|\\n|\\t/g, '').trim();\r\n//\r\n// let scriptNew = document.createElement( 'script' );\r\n// scriptNew.setAttribute( 'type', 'text/javascript' );\r\n// scriptNew.innerHTML = elementScriptText;\r\n// element.parentNode.appendChild( scriptNew );\r\n\r\n// element.parentNode.removeChild( scriptNew );\r\n if( kind in WPTB_ElementsScriptsLauncher ) {\r\n WPTB_ElementsScriptsLauncher[kind]( element );\r\n }\r\n }\r\n },\r\n // deletes event handlers from the pointed option element and from all his daughter elements\r\n deleteEventHandlers: function( element ) {\r\n if( element ) {\r\n jQuery( element ).off();\r\n let elementChildren = element.children;\r\n if( elementChildren ) {\r\n for ( let i = 0; i < elementChildren.length; i++ ) {\r\n WPTB_Helper.deleteEventHandlers( elementChildren[i] );\r\n }\r\n }\r\n } else {\r\n return;\r\n }\r\n },\r\n // replace all occurrences in a string\r\n replaceAll: function( string, search, replace ){\r\n return string.split( search ).join( replace );\r\n },\r\n // clears code from TinyMCE attributes\r\n elementClearFromTinyMce: function( element ) {\r\n let mceContentBodys = element.querySelectorAll( '.mce-content-body' );\r\n if( mceContentBodys.length > 0 ) {\r\n for ( let k = 0; k < mceContentBodys.length; k++ ) {\r\n mceContentBodys[k].classList.remove( 'mce-content-body' );\r\n }\r\n }\r\n\r\n let dataMceStyle = element.querySelectorAll( '[data-mce-style]' );\r\n if ( dataMceStyle.length > 0 ) {\r\n for ( let k = 0; k < dataMceStyle.length; k++ ) {\r\n dataMceStyle[k].removeAttribute( 'data-mce-style' );\r\n }\r\n }\r\n\r\n let mceEditFocus = element.querySelectorAll( '.mce-edit-focus' );\r\n if( mceEditFocus.length > 0 ) {\r\n for ( let k = 0; k < mceEditFocus.length; k++ ) {\r\n mceEditFocus[k].classList.remove( 'mce-edit-focus' );\r\n }\r\n }\r\n\r\n let contentEditable = element.querySelectorAll( '[contenteditable]' );\r\n if ( contentEditable.length > 0 ) {\r\n for ( let k = 0; k < contentEditable.length; k++ ) {\r\n contentEditable[k].removeAttribute( 'contenteditable' );\r\n }\r\n }\r\n\r\n let spellCheck = element.querySelectorAll( '[spellcheck]' );\r\n if ( spellCheck.length > 0 ) {\r\n for ( let k = 0; k < spellCheck.length; k++ ) {\r\n spellCheck[k].removeAttribute( 'spellcheck' );\r\n }\r\n }\r\n\r\n let mceIds = element.querySelectorAll( '[id^=mce_]' );\r\n if ( mceIds.length > 0 ) {\r\n for ( let k = 0; k < mceIds.length; k++ ) {\r\n mceIds[k].removeAttribute( 'id' );\r\n }\r\n }\r\n\r\n return element;\r\n },\r\n elementOptionContainerCustomClassSet: function( targetInput, customClassForContainer ) {\r\n if( targetInput && customClassForContainer ) {\r\n let containerElement = WPTB_Helper.findAncestor( targetInput, 'wptb-element-option' );\r\n if( containerElement ) {\r\n containerElement.classList.add( customClassForContainer );\r\n }\r\n }\r\n },\r\n elementOptionContainerAdditionalStyles: function( targetInput, containerAdditionalStyles ) {\r\n if( targetInput && containerAdditionalStyles ) {\r\n let containerElement = WPTB_Helper.findAncestor( targetInput, 'wptb-element-option' );\r\n let containerStylesArrOne = containerAdditionalStyles.split( ';' );\r\n\r\n if( containerElement && containerStylesArrOne ) {\r\n function containerStylesSet( containerStyleStr, containerElement ) {\r\n if( containerStyleStr ) {\r\n containerStyleStrArr = containerStyleStr.split( ':' );\r\n\r\n if( containerStyleStrArr && Array.isArray( containerStyleStrArr ) ) {\r\n containerElement.style[containerStyleStrArr[0]] = containerStyleStrArr[1];\r\n }\r\n }\r\n }\r\n if( containerStylesArrOne && Array.isArray( containerStylesArrOne ) ) {\r\n for( let i = 0; i < containerStylesArrOne.length; i++ ) {\r\n if( containerStylesArrOne[i] ) {\r\n containerStylesSet( containerStylesArrOne[i], containerElement );\r\n }\r\n }\r\n } else {\r\n containerStylesSet( containerStylesArrOne, containerElement );\r\n }\r\n }\r\n }\r\n },\r\n // function which set handler for event of changes of control\r\n controlsInclude: function( element, functionHandler ) {\r\n if( element && typeof element === 'object' && functionHandler && typeof functionHandler === 'function' ) {\r\n element.addEventListener( 'element:controls:active', function() {\r\n if(!element.hasOwnProperty('controlConnectFunctionsName') ||\r\n !Array.isArray(element.controlConnectFunctionsName) ||\r\n element.controlConnectFunctionsName.indexOf(functionHandler.name) == -1) {\r\n let infArr = element.className.match( /wptb-element-(.+)-(\\d+)/i ),\r\n elementKind;\r\n\r\n if( infArr && Array.isArray( infArr ) ) {\r\n elementKind = infArr[1];\r\n }\r\n\r\n// if( ! element.hasOwnProperty( 'сontrolsConnectIndic' ) || element.сontrolsConnectIndic !== true && elementKind ) {\r\n// let elementsSettingsTemplateJs = document.getElementsByClassName( 'wptb-element-datas' );\r\n// if( elementsSettingsTemplateJs.length > 0 ) {\r\n// elementsSettingsTemplateJs = elementsSettingsTemplateJs[0];\r\n//\r\n// let elementsSettings = elementsSettingsTemplateJs.innerHTML;\r\n// let controlClassesNames = [];\r\n// if( elementsSettings ) {\r\n// elementsSettings = elementsSettings.trim();\r\n// elementsSettings = JSON.parse( elementsSettings );\r\n// if( elementsSettings && typeof elementsSettings === 'object' ) {\r\n// if( 'tmpl-wptb-el-datas-' + infArr[1] + '-' + infArr[2] in elementsSettings ) {\r\n// let elementSettings = elementsSettings['tmpl-wptb-el-datas-' + infArr[1] + '-' + infArr[2]];\r\n// if( elementSettings && typeof elementSettings === 'object' ) {\r\n// Object.keys( elementSettings ).forEach( function( key ) {\r\n// let regularText = new RegExp( 'data-wptb-el-' + elementKind + '-(\\\\d+)-([a-zA-Z0-9_-]+)', \"i\" );\r\n// let keyInfArr = key.match( regularText );\r\n// if( keyInfArr && Array.isArray( keyInfArr ) ) {\r\n// let controlClass = key.replace( 'data-', '' );\r\n// controlClassesNames.push( [controlClass, keyInfArr[2]] );\r\n// }\r\n// });\r\n// }\r\n// }\r\n// }\r\n// }\r\n// }\r\n// }\r\n if( elementKind ){\r\n let elementOptionsGroupIds = element.optionsGroupIds;\r\n if(elementOptionsGroupIds && Array.isArray(elementOptionsGroupIds)) {\r\n for(let i = 0; i < elementOptionsGroupIds.length; i++) {\r\n let elementOptionsGroupId = elementOptionsGroupIds[i];\r\n\r\n let elementOptionsGroup = document.getElementById(elementOptionsGroupId);\r\n\r\n let controlActiveElements = elementOptionsGroup.querySelectorAll('.wptb-element-property');\r\n controlActiveElements = [...controlActiveElements];\r\n\r\n controlActiveElements.map(controlActiveElement => {\r\n let regularText = new RegExp( 'wptb-el-' + elementKind + '-(\\\\d+)-([a-zA-Z0-9_-]+)', \"i\" );\r\n let controlInfArr = controlActiveElement.className.match( regularText );\r\n if( controlInfArr && Array.isArray( controlInfArr ) ) {\r\n let controlUnicClassName = controlInfArr[0];\r\n\r\n element.addEventListener( 'wptb-control:' + controlUnicClassName, function() {\r\n let controls = {};\r\n let controlName = controlInfArr[2];\r\n let control = document.getElementsByClassName( controlUnicClassName );\r\n if( control.length > 0 && controlName ) {\r\n let targetControlValue = WPTB_Helper.targetControlValueGet( control );\r\n\r\n controls[controlName] = targetControlValue;\r\n }\r\n\r\n functionHandler( controls, element );\r\n }, false );\r\n }\r\n });\r\n }\r\n }\r\n //let elementOptionsContainer = document.querySelector( '.wptb-element-options.wptb-options-' + infArr[1] + '-' + infArr[2] );\r\n\r\n // from time to time depend on table cells hierarchy, cell td items may catch mouse clicks which are intended for elements. since the active section is not cell management, this will gives and unharmfull error of not found element, simple check for null equality will be sufficient for now.\r\n // if(!elementOptionsContainer){\r\n // return;\r\n // }\r\n\r\n // let elementOptions = elementOptionsContainer.querySelectorAll( '.wptb-element-option' );\r\n // let controlActiveElements = elementOptions[i].querySelector( '.wptb-element-property' );\r\n //\r\n //\r\n // for( let i = 0; i < elementOptions.length; i++ ) {\r\n // let controlActiveElement = elementOptions[i].querySelector( '.wptb-element-property' );\r\n // if( controlActiveElement ) {\r\n //\r\n // }\r\n // }\r\n\r\n if(!element.controlConnectFunctionsName && !Array.isArray(element.controlConnectFunctionsName)) {\r\n element.controlConnectFunctionsName = [];\r\n }\r\n\r\n element.controlConnectFunctionsName.push( functionHandler.name );\r\n }\r\n }\r\n }, false );\r\n }\r\n },\r\n oneControlInclude: function( element, functionHandler, controlName ) {\r\n if( element && typeof element === 'object' && typeof functionHandler === 'function' && typeof controlName === 'string' ) {\r\n let infArr = element.className.match( /wptb-element-((.+-)\\d+)/i ),\r\n elementKind;\r\n\r\n if( infArr && Array.isArray( infArr ) ) {\r\n elementKind = infArr[1].split( '-' )[0];\r\n\r\n let wptbContrlStacksConfigId = 'wptb-' + elementKind + '-control-stack';\r\n let tmplControlsConfig = wp.template( wptbContrlStacksConfigId );\r\n let data = {\r\n container: '.' + infArr[0]\r\n };\r\n let jsonControlsConfigJson = tmplControlsConfig( data );\r\n let jsonControlsConfig = JSON.parse( jsonControlsConfigJson );\r\n\r\n if( jsonControlsConfig && typeof jsonControlsConfig === 'object' && jsonControlsConfig.hasOwnProperty( controlName ) ) {\r\n let controlClassName = 'wptb-el-' + infArr[1] + '-' + controlName;\r\n\r\n element.addEventListener( 'wptb-control:' + controlClassName, function( event ) {\r\n let control = document.getElementsByClassName( controlClassName );\r\n if( control.length > 0 ) {\r\n let targetControlValue = WPTB_Helper.targetControlValueGet( control );\r\n\r\n functionHandler( targetControlValue, element );\r\n }\r\n }, false );\r\n }\r\n }\r\n } else {\r\n return false;\r\n }\r\n },\r\n //\r\n innerElementCopyIncludeHandler: function( element, functionHandler ) {\r\n if( element && typeof element === 'object' && typeof functionHandler === 'function' ) {\r\n element.addEventListener( 'wptb-inner-element:copy', function( event ) {\r\n let innerElement = event.detail;\r\n if( innerElement ) {\r\n WPTB_Helper.elementClearFromTinyMce( innerElement );\r\n functionHandler( innerElement, element );\r\n }\r\n }, false );\r\n }\r\n },\r\n //\r\n appearDependOnControl: function( dependOn, targetControlElementClass ) {\r\n if( Array.isArray( dependOn ) ) {\r\n let dependOnControlName = dependOn[0];\r\n let infArr = targetControlElementClass.match( /wptb-el-((.+-)\\d+)-(.+)/i );\r\n\r\n if( infArr && Array.isArray( infArr ) ) {\r\n let controlName = infArr[3];\r\n\r\n let dependOnControlElementClass = targetControlElementClass.replace( controlName, dependOnControlName );\r\n\r\n let dependOnControlElement = document.getElementsByClassName( dependOnControlElementClass );\r\n\r\n if( dependOnControlElement.length > 0 ) {\r\n dependOnControlElement = dependOnControlElement[0];\r\n let targetControlElement = document.getElementsByClassName( targetControlElementClass );\r\n if( targetControlElement.length > 0 ) {\r\n targetControlElement = targetControlElement[0];\r\n let controlContainerElem = WPTB_Helper.findAncestor( targetControlElement, 'wptb-element-option' );\r\n\r\n if( controlContainerElem ) {\r\n function showHideDependOnControlElement( dependOnControlElementClass, dependOn ) {\r\n\r\n// let elementsSettingsTemplateJs = document.getElementsByClassName( 'wptb-element-datas' );\r\n// if( elementsSettingsTemplateJs.length > 0 ) {\r\n// elementsSettingsTemplateJs = elementsSettingsTemplateJs[0];\r\n//\r\n// let elementsSettings = elementsSettingsTemplateJs.innerHTML;\r\n// if( elementsSettings ) {\r\n// elementsSettings = elementsSettings.trim();\r\n// elementsSettings = JSON.parse( elementsSettings );\r\n// if( elementsSettings && typeof elementsSettings === 'object' &&\r\n// ( 'tmpl-wptb-el-datas-' + dependOnControlElementKind ) in elementsSettings ) {\r\n// let elementSettings = elementsSettings['tmpl-wptb-el-datas-' + dependOnControlElementKind];\r\n// if( elementSettings && typeof elementSettings === 'object' &&\r\n// ( 'data-wptb-el-' + dependOnControlElementKind + '-' + dependOnControlName ) in elementSettings ) {\r\n// let elementSettingValue = elementSettings['data-wptb-el-' + dependOnControlElementKind + '-' + dependOnControlName];\r\n//\r\n// if( elementSettingValue ) {\r\n// if( dependOn[1] && Array.isArray( dependOn[1] ) &&\r\n// ( dependOn[1].indexOf( elementSettingValue ) !== -1 ) ) {\r\n// controlContainerElem.style.display = 'block';\r\n// } else if( dependOn[2] && Array.isArray( dependOn[2] ) &&\r\n// ( dependOn[2].indexOf( elementSettingValue ) !== -1 ) ) {\r\n// controlContainerElem.style.display = 'none';\r\n// }\r\n// }\r\n// }\r\n// }\r\n// }\r\n// }\r\n if( dependOnControlElementClass ) {\r\n let dependOnControlElements = document.getElementsByClassName( dependOnControlElementClass );\r\n if( dependOnControlElements.length > 0 ) {\r\n let targetControlValue = WPTB_Helper.targetControlValueGet( dependOnControlElements );\r\n\r\n if( dependOn[1] && Array.isArray( dependOn[1] ) &&\r\n ( dependOn[1].indexOf( targetControlValue ) !== -1 ) ) {\r\n controlContainerElem.style.display = 'block';\r\n } else if( dependOn[2] && Array.isArray( dependOn[2] ) &&\r\n ( dependOn[2].indexOf( targetControlValue ) !== -1 ) ) {\r\n controlContainerElem.style.display = 'none';\r\n }\r\n }\r\n }\r\n }\r\n\r\n showHideDependOnControlElement( dependOnControlElementClass, dependOn );\r\n\r\n dependOnControlElement.addEventListener( 'change', function( event ) {\r\n showHideDependOnControlElement( dependOnControlElementClass, dependOn );\r\n }, false );\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n //\r\n controlsStateManager: function ( targetControlClass, controlChangeIndic ) {\r\n let targetControls = document.getElementsByClassName( targetControlClass );\r\n if( targetControls.length > 0 ) {\r\n //targetControls = targetControls[0];\r\n\r\n let infArr = targetControlClass.match( /wptb-el-((.+-)\\d+)-(.+)/i );\r\n\r\n if( infArr && Array.isArray( infArr ) ) {\r\n let selectorElement;\r\n selectorElement = document.querySelector( '.wptb-element-' + infArr[1] );\r\n\r\n if( selectorElement ) {\r\n let elementsSettingsTemplatesJs;\r\n let elementSettings = {};\r\n let elementsSettings;\r\n elementsSettingsTemplatesJs = document.getElementsByClassName( 'wptb-element-datas' );\r\n if( elementsSettingsTemplatesJs.length == 0 || elementsSettingsTemplatesJs[0].innerHTML == '' ) {\r\n let targetControlValue = WPTB_Helper.targetControlValueGet( targetControls );\r\n elementSettings['data-' + targetControlClass] = targetControlValue;\r\n\r\n elementsSettings = {};\r\n elementsSettings['tmpl-wptb-el-datas-' + infArr[1]] = elementSettings;\r\n elementsSettings = JSON.stringify( elementsSettings );\r\n\r\n if( elementsSettingsTemplatesJs.length == 0 ) {\r\n elementsSettingsTemplatesJs = document.createElement( 'script' );\r\n elementsSettingsTemplatesJs.setAttribute( 'type', 'text/html' );\r\n elementsSettingsTemplatesJs.setAttribute( 'class', 'wptb-element-datas' );\r\n } else {\r\n elementsSettingsTemplatesJs = elementsSettingsTemplatesJs[0];\r\n }\r\n\r\n elementsSettingsTemplatesJs.innerHTML = elementsSettings;\r\n\r\n let body = document.getElementsByTagName('body')[0];\r\n body.appendChild( elementsSettingsTemplatesJs );\r\n } else {\r\n elementsSettingsTemplatesJs = elementsSettingsTemplatesJs[0];\r\n elementsSettings = elementsSettingsTemplatesJs.innerHTML;\r\n if( elementsSettings ) {\r\n elementsSettings = elementsSettings.trim();\r\n elementsSettings = JSON.parse( elementsSettings );\r\n\r\n if( elementsSettings && typeof elementsSettings === 'object' ) {\r\n\r\n\r\n if( controlChangeIndic ) {\r\n let targetControlValue = WPTB_Helper.targetControlValueGet( targetControls );\r\n if( ! ( ( 'tmpl-wptb-el-datas-' + infArr[1] ) in elementsSettings ) ||\r\n typeof elementsSettings['tmpl-wptb-el-datas-' + infArr[1]] !== 'object') {\r\n elementsSettings['tmpl-wptb-el-datas-' + infArr[1]] = {};\r\n }\r\n elementsSettings['tmpl-wptb-el-datas-' + infArr[1]]['data-' + targetControlClass] = targetControlValue;\r\n elementsSettingsTemplatesJs.innerHTML = JSON.stringify( elementsSettings );\r\n } else if( ! ( ( ( 'tmpl-wptb-el-datas-' + infArr[1] ) in elementsSettings ) &&\r\n typeof elementsSettings['tmpl-wptb-el-datas-' + infArr[1]] === 'object' &&\r\n ( 'data-' + targetControlClass ) in elementsSettings['tmpl-wptb-el-datas-' + infArr[1]] ) ) {\r\n let targetControlValue = WPTB_Helper.targetControlValueGet( targetControls );\r\n if( ! ( ( 'tmpl-wptb-el-datas-' + infArr[1] ) in elementsSettings ) ||\r\n typeof elementsSettings['tmpl-wptb-el-datas-' + infArr[1]] !== 'object') {\r\n elementsSettings['tmpl-wptb-el-datas-' + infArr[1]] = {};\r\n }\r\n elementsSettings['tmpl-wptb-el-datas-' + infArr[1]]['data-' + targetControlClass] = targetControlValue;\r\n elementsSettingsTemplatesJs.innerHTML = JSON.stringify( elementsSettings );\r\n } else if( ( ( 'tmpl-wptb-el-datas-' + infArr[1] ) in elementsSettings ) &&\r\n typeof elementsSettings['tmpl-wptb-el-datas-' + infArr[1]] === 'object' &&\r\n ( 'data-' + targetControlClass ) in elementsSettings['tmpl-wptb-el-datas-' + infArr[1]] ) {\r\n for( let i = 0; i < targetControls.length; i++ ) {\r\n if( targetControls[i].type == 'checkbox' ) {\r\n let targetControlValue;\r\n if( targetControls[i].name ) {\r\n targetControlValue = elementsSettings['tmpl-wptb-el-datas-' + infArr[1]]['data-' + targetControlClass][targetControls[i].name];\r\n } else {\r\n targetControlValue = elementsSettings['tmpl-wptb-el-datas-' + infArr[1]]['data-' + targetControlClass];\r\n }\r\n\r\n if( targetControlValue == 'checked' ) {\r\n targetControls[i].checked = true;\r\n } else if( targetControlValue == 'unchecked' ) {\r\n targetControls[i].checked = false;\r\n }\r\n } else {\r\n targetControls[i].value = elementsSettings['tmpl-wptb-el-datas-' + infArr[1]]['data-' + targetControlClass];\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n //\r\n targetControlValueGet: function( targetControls ) {\r\n let targetControlValue;\r\n for( let i = 0; i < targetControls.length; i++ ) {\r\n if( targetControls[i].type == 'checkbox' && targetControls[i].name ) {\r\n if( ! targetControlValue ) targetControlValue = {};\r\n if( targetControls[i].checked == true ) {\r\n targetControlValue[targetControls[i].name] = 'checked';\r\n } else {\r\n targetControlValue[targetControls[i].name] = 'unchecked';\r\n }\r\n } else if( targetControls[i].type == 'checkbox' ) {\r\n if( targetControls[i].checked == true ) {\r\n targetControlValue = 'checked';\r\n } else {\r\n targetControlValue = 'unchecked';\r\n }\r\n } else if( targetControls[i].type ) {\r\n targetControlValue = targetControls[i].value;\r\n } else if( targetControls[i].dataset.alignmentValue && targetControls[i].classList.contains( 'selected' ) ){\r\n targetControlValue = targetControls[i].dataset.alignmentValue;\r\n }\r\n }\r\n return targetControlValue;\r\n },\r\n //\r\n elementControlsStateCopy: function( elementProt, copyElem ) {\r\n if( elementProt && copyElem ) {\r\n let infArrProt = elementProt.className.match( /wptb-element-((.+-)\\d+)/i );\r\n let infArrCopy = copyElem.className.match( /wptb-element-((.+-)\\d+)/i );\r\n if( infArrProt && Array.isArray( infArrProt ) &&\r\n infArrCopy && Array.isArray( infArrCopy )) {\r\n let elemProtKind = infArrProt[1];\r\n let elemCopyKind = infArrCopy[1];\r\n let elementsSettingsTemplateJs = document.getElementsByClassName( 'wptb-element-datas' );\r\n if( elementsSettingsTemplateJs.length > 0 ) {\r\n elementsSettingsTemplateJs = elementsSettingsTemplateJs[0];\r\n\r\n let elementsSettings = elementsSettingsTemplateJs.innerHTML;\r\n if( elementsSettings ) {\r\n elementsSettings = elementsSettings.trim();\r\n elementsSettings = JSON.parse( elementsSettings );\r\n\r\n if( elementsSettings && typeof elementsSettings === 'object' ) {\r\n let elementSettingsProt = elementsSettings['tmpl-wptb-el-datas-' + elemProtKind];\r\n if( elementSettingsProt && typeof elementSettingsProt === 'object' ) {\r\n let elementSettingsCopy = {};\r\n\r\n Object.keys( elementSettingsProt ).forEach( function( key ) {\r\n let elementSettingValue = elementSettingsProt[key];\r\n let elementSettingKeyCopy = key.replace( elemProtKind, elemCopyKind );\r\n elementSettingsCopy[elementSettingKeyCopy] = elementSettingValue;\r\n });\r\n\r\n if( Object.keys( elementSettingsCopy ).length > 0 ) {\r\n elementsSettings['tmpl-wptb-el-datas-' + elemCopyKind] = elementSettingsCopy;\r\n\r\n elementsSettings = JSON.stringify( elementsSettings );\r\n elementsSettingsTemplateJs.innerHTML = elementsSettings;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n //\r\n elementControlsStateDelete: function( element, nameControl ) {\r\n let infArr = element.className.match( /wptb-element-(.+)-(\\d+)/i );\r\n let body = document.getElementsByTagName( 'body' )[0];\r\n let wptbElementDatas = body.getElementsByClassName( 'wptb-element-datas' );\r\n if( infArr && Array.isArray( infArr ) && wptbElementDatas.length > 0 ) {\r\n wptbElementDatas = wptbElementDatas[0];\r\n let elementsSettings = wptbElementDatas.innerHTML;\r\n if( elementsSettings ) {\r\n elementsSettings = elementsSettings.trim();\r\n elementsSettings = JSON.parse( elementsSettings );\r\n if( elementsSettings && typeof elementsSettings === 'object' &&\r\n ( ( 'tmpl-wptb-el-datas-' + infArr[1] + '-' + infArr[2] ) in elementsSettings ) ) {\r\n if( ! nameControl ) {\r\n delete elementsSettings['tmpl-wptb-el-datas-' + infArr[1] + '-' + infArr[2]];\r\n } else {\r\n if( elementsSettings['tmpl-wptb-el-datas-' + infArr[1] + '-' + infArr[2]] &&\r\n typeof elementsSettings['tmpl-wptb-el-datas-' + infArr[1] + '-' + infArr[2]] === 'object' &&\r\n ( 'data-wptb-el-' + infArr[1] + '-' + infArr[2] + '-' + nameControl ) in elementsSettings['tmpl-wptb-el-datas-' + infArr[1] + '-' + infArr[2]] ) {\r\n delete elementsSettings['tmpl-wptb-el-datas-' + infArr[1] + '-' + infArr[2]]['data-wptb-el-' + infArr[1] + '-' + infArr[2] + '-' + nameControl];\r\n }\r\n }\r\n\r\n if( Object.keys( elementsSettings ).length == 0 ) {\r\n body.removeChild( wptbElementDatas );\r\n } else {\r\n elementsSettings = JSON.stringify( elementsSettings );\r\n wptbElementDatas.innerHTML = elementsSettings;\r\n }\r\n }\r\n }\r\n }\r\n },\r\n //\r\n elementOptionsSet: function( kind, element ) {\r\n // get controls config for this element\r\n let wptbContrlStacksConfigId = 'wptb-' + kind + '-control-stack';\r\n let tmplControlsConfig = wp.template( wptbContrlStacksConfigId );\r\n let data;\r\n let elementContainerClass;\r\n let elementOptionClassIndic;\r\n let elementOptionsGroup;\r\n\r\n let controlElementParent;\r\n let elementOptionsScriptsContainer;\r\n\r\n let infArr = element.className.match( /wptb-element-((.+-)\\d+)/i );\r\n if( ! infArr ) {\r\n let table_id = WPTB_Helper.detectMode();\r\n if (!table_id) {\r\n table_id = 'startedid-0';\r\n }\r\n if( element.classList.contains( 'wptb-preview-table' ) ) {\r\n element.classList.add( 'wptb-element-main-table_setting-' + table_id );\r\n } else if( element.classList.contains( 'wptb-cell' ) ) {\r\n let cellEditActiveClass = document.querySelector('.wptb-element-table_cell_setting-' + element.dataset.xIndex + '-' + element.dataset.yIndex);\r\n if( ! cellEditActiveClass ) element.classList.add('wptb-element-table_cell_setting-' + element.dataset.xIndex + '-' + element.dataset.yIndex);\r\n }else if (element.classList.contains('wptb-responsive')){\r\n element.classList.add('wptb-element-table_responsive_setting-' + table_id);\r\n }\r\n\r\n infArr = element.className.match( /wptb-element-((.+-)\\d+)/i );\r\n }\r\n\r\n data = {\r\n container: '.' + infArr[0]\r\n };\r\n\r\n elementContainerClass = infArr[0];\r\n elementOptionClassIndic = infArr[1];\r\n\r\n if( element.classList.contains( 'wptb-preview-table' ) ) {\r\n\r\n } else if( element.classList.contains( 'wptb-cell' ) ) {\r\n this.activateSection('cell_settings');\r\n }else if (element.classList.contains('wptb-responsive')){\r\n elementOptionsGroupId = 'table-responsive-group';\r\n wptbelementOptionClass = 'wptb-element-option';\r\n }\r\n else {\r\n let children = document.getElementById( 'element-options-group' ).childNodes;\r\n for ( let i = 0; i < children.length; i++) {\r\n if ( children[i].style )\r\n children[i].style.display = 'none';\r\n }\r\n\r\n // hide wptb-elements-container and wptb-settings-section\r\n // document.getElementsByClassName( 'wptb-elements-container' )[0].style.display = 'none';\r\n // document.getElementsByClassName( 'wptb-settings-section' )[0].style.display = 'none';\r\n\r\n // show element-options-group\r\n // document.getElementById( 'element-options-group' ).style.display = 'block';\r\n this.activateSection('options_group');\r\n }\r\n\r\n let jsonControlsConfigJson = tmplControlsConfig( data );\r\n let jsonControlsConfig = JSON.parse( jsonControlsConfigJson );\r\n\r\n let elementOptionsGroupIdsInvolved = [],\r\n elementOptionsGroupInvolved = {},\r\n elementOptionsContainerInvolved = {};\r\n\r\n // object for save all scrips for each controls\r\n let controlScriptsObj = {};\r\n\r\n // array for keep \"appear depend on\" parametrs\r\n let controlappearDependOnControl = [];\r\n\r\n // create controls\r\n let elementOptionsScriptsContainerIndic = false;\r\n let i = 0;\r\n Object.keys( jsonControlsConfig ).forEach( function( key ) {\r\n let data = jsonControlsConfig[key];\r\n data.controlKey = key;\r\n\r\n // get necessary wp js template\r\n let tmplControlTemplate = wp.template( 'wptb-' + data.type + '-control' );\r\n\r\n data.elemContainer = elementContainerClass;\r\n data.elementControlTargetUnicClass = 'wptb-el-' + elementOptionClassIndic + '-' + data.controlKey;\r\n let controlTemplate = tmplControlTemplate( data );\r\n\r\n if( 'appearDependOnControl' in data ) {\r\n if( Array.isArray( data.appearDependOnControl ) ) {\r\n controlappearDependOnControl.push( [data.appearDependOnControl, data.elementControlTargetUnicClass] );\r\n }\r\n }\r\n\r\n function elementOptionsContainerInvolvedGet(elementOptionsGroupId, elementOptionsContainerInvolved) {\r\n if(!elementOptionsContainerInvolved[elementOptionsGroupId]){\r\n let elementOptionsContainer = document.createElement( 'div' );\r\n elementOptionsContainer.classList.add( 'wptb-element-options', 'wptb-options-' + infArr[1] );\r\n document.getElementById( elementOptionsGroupId ).appendChild(elementOptionsContainer);\r\n elementOptionsContainerInvolved[elementOptionsGroupId] = elementOptionsContainer;\r\n }\r\n\r\n return elementOptionsContainerInvolved[elementOptionsGroupId];\r\n }\r\n\r\n if(elementOptionsGroupIdsInvolved.indexOf(data.elementOptionsGroupId) == -1) {\r\n elementOptionsGroupIdsInvolved.push(data.elementOptionsGroupId);\r\n // clear elements from options group\r\n //document.getElementById( 'element-options-group' ).innerHTML = '';\r\n elementOptionsGroup = document.getElementById(data.elementOptionsGroupId);\r\n let elementOptionsGroupChildren = [...elementOptionsGroup.children];\r\n for( let i = 0; i < elementOptionsGroupChildren.length; i++ ) {\r\n elementOptionsGroup.removeChild( elementOptionsGroupChildren[i] );\r\n }\r\n elementOptionsGroupInvolved[data.elementOptionsGroupId] = elementOptionsGroup;\r\n }\r\n\r\n controlElementParent = elementOptionsGroupInvolved[data.elementOptionsGroupId];\r\n\r\n if(data.elementOptionsContainerOn === 'true') {\r\n controlElementParent = elementOptionsContainerInvolvedGet(data.elementOptionsGroupId, elementOptionsContainerInvolved);\r\n }\r\n\r\n\r\n if(data.elementOptionContainerOn === 'true') {\r\n let elementOptionContainer = document.createElement( 'div' );\r\n elementOptionContainer.classList.add( data.elementOptionClass, 'wptb-settings-items' );\r\n\r\n if( data.customClassForContainer ) {\r\n elementOptionContainer.classList.add( data.customClassForContainer );\r\n }\r\n\r\n if( data.containerAdditionalStyles ) {\r\n elementOptionContainer.setAttribute( 'style', data.containerAdditionalStyles );\r\n }\r\n\r\n controlElementParent.appendChild( elementOptionContainer );\r\n\r\n controlElementParent = elementOptionContainer;\r\n }\r\n controlElementParent.innerHTML = controlElementParent.innerHTML + controlTemplate;\r\n\r\n let helperJavascriptElem = controlElementParent.getElementsByTagName( 'wptb-template-script' );\r\n if( helperJavascriptElem.length > 0 ) {\r\n helperJavascriptElem = helperJavascriptElem[0];\r\n let helperJavascriptCode = helperJavascriptElem.innerText;\r\n controlElementParent.removeChild( helperJavascriptElem );\r\n let script = document.createElement( 'script' );\r\n script.setAttribute( 'type', 'text/javascript' );\r\n script.innerHTML = helperJavascriptCode.replace(/\\r|\\n|\\t/g, '').trim();\r\n if(!controlScriptsObj[data.elementOptionsGroupId] || !Array.isArray(controlScriptsObj[data.elementOptionsGroupId])) {\r\n controlScriptsObj[data.elementOptionsGroupId] = [];\r\n }\r\n controlScriptsObj[data.elementOptionsGroupId].push( script );\r\n }\r\n\r\n i++;\r\n });\r\n\r\n element.optionsGroupIds = elementOptionsGroupIdsInvolved;\r\n\r\n Object.keys( controlScriptsObj ).forEach( function( elementOptionsGroupId ) {\r\n let controlScriptsArr = controlScriptsObj[elementOptionsGroupId];\r\n elementOptionsScriptsContainer = document.createElement( 'div' );\r\n elementOptionsScriptsContainer.classList.add( 'wptb-element-options-scripts', 'wptb-options-' + infArr[1] );\r\n elementOptionsGroupInvolved[elementOptionsGroupId].appendChild(elementOptionsScriptsContainer);\r\n if( controlScriptsArr.length > 0 ) {\r\n for( let i = 0; i < controlScriptsArr.length; i++ ) {\r\n elementOptionsScriptsContainer.appendChild(controlScriptsArr[i]);\r\n }\r\n }\r\n });\r\n\r\n\r\n\r\n // run the scripts of controls\r\n\r\n\r\n // run appearDependOnControl function\r\n for ( let i = 0; i < controlappearDependOnControl.length; i++ ) {\r\n WPTB_Helper.appearDependOnControl( controlappearDependOnControl[i][0], controlappearDependOnControl[i][1] );\r\n }\r\n\r\n WPTB_Helper.wptbDocumentEventGenerate( 'element:controls:active', element );\r\n },\r\n\r\n /**\r\n * function for create, update css for element\r\n *\r\n * @param elementContainer\r\n * @param selector\r\n * @param cssName\r\n * @param cssValue\r\n */\r\n managerExternalCssStyles: function( elementContainer, selector, cssName, cssValue ) {\r\n let infArr = elementContainer.match( /wptb-element-main(.+)-(\\d+)/i );\r\n if( ! infArr || ! Array.isArray( infArr ) ) {\r\n let table = document.getElementsByClassName( 'wptb-preview-table' );\r\n\r\n if( table.length > 0 ) {\r\n table = table[0];\r\n\r\n let infArr = table.className.match( /wptb-element-main(.+)-(\\d+)/i );\r\n if( infArr && Array.isArray( infArr ) ) {\r\n selector = '.' + infArr[0] + ' ' + selector;\r\n }\r\n }\r\n }\r\n\r\n let head = document.head;\r\n if( head ) {\r\n let cssForThisElement = head.querySelector( '#styles-' + elementContainer );\r\n if( cssForThisElement ) {\r\n let cssText = cssForThisElement.innerHTML;\r\n if( cssText ) {\r\n let cssTextArrFirst = cssText.split( '}' );\r\n cssTextArrFirst.pop();\r\n let selectorExists = false;\r\n for( let i = 0; i < cssTextArrFirst.length; i++ ) {\r\n let cssTextArrSecond = cssTextArrFirst[i].split( '{' );\r\n if( cssTextArrSecond[0] === selector ) {\r\n let cssTextArrThird = cssTextArrSecond[1].split( ';' );\r\n cssTextArrThird.pop();\r\n let cssNameExists = false;\r\n for( let j = 0; j < cssTextArrThird.length; j++ ) {\r\n let cssTextArrFourth = cssTextArrThird[j].split( ':' );\r\n if( cssTextArrFourth[0] === cssName ) {\r\n if( cssValue ) {\r\n cssTextArrThird[j] = cssName + ':' + cssValue;\r\n } else {\r\n cssTextArrThird.splice( j, 1 );\r\n }\r\n\r\n cssTextArrSecond[1] = cssTextArrThird.join( ';' ) ? cssTextArrThird.join( ';' ) + ';' : '';\r\n cssNameExists = true;\r\n break;\r\n }\r\n }\r\n if( ! cssNameExists ) {\r\n if( cssValue ) {\r\n cssTextArrSecond[1] += cssName + ':' + cssValue + ';';\r\n }\r\n }\r\n if( cssTextArrSecond[1] ) {\r\n cssTextArrFirst[i] = cssTextArrSecond[0] + '{' + cssTextArrSecond[1]\r\n } else {\r\n cssTextArrFirst.splice( i, 1 );\r\n }\r\n if( cssTextArrFirst.join( '}' ) ) {\r\n cssForThisElement.innerHTML = cssTextArrFirst.join( '}' ) + '}';\r\n } else {\r\n head.removeChild( cssForThisElement );\r\n }\r\n\r\n selectorExists = true;\r\n break;\r\n }\r\n }\r\n\r\n if( ! selectorExists ) {\r\n if( cssValue ) {\r\n cssForThisElement.innerHTML = cssText + selector + '{' + cssName + ':' + cssValue + ';}';\r\n } else {\r\n cssForThisElement.innerHTML = cssText;\r\n }\r\n }\r\n } else {\r\n if( cssValue ) {\r\n cssForThisElement.innerHTML = selector + '{' + cssName + ':' + cssValue + ';}';\r\n } else {\r\n head.removeChild( cssForThisElement );\r\n }\r\n }\r\n } else {\r\n if( cssValue ) {\r\n let cssForThisElement = document.createElement( 'style' );\r\n cssForThisElement.setAttribute( 'id', 'styles-' + elementContainer );\r\n cssForThisElement.classList.add( 'styles-wptb-elements' );\r\n cssForThisElement.innerHTML = selector + '{' + cssName + ':' + cssValue + ';}';\r\n head.appendChild( cssForThisElement );\r\n }\r\n }\r\n }\r\n },\r\n /**\r\n *\r\n * Register section parts for sidebar\r\n *\r\n * @param {array} sections an array of section names\r\n */\r\n registerSections(sections) {\r\n this.sections = {};\r\n this.currentSection = '';\r\n if (!Array.isArray(sections)) {\r\n sections = [sections];\r\n }\r\n\r\n sections.map(s => {\r\n const sectionElement = document.querySelector(`[data-wptb-section=${s}]`);\r\n if (sectionElement) {\r\n this.sections[s] = sectionElement;\r\n }\r\n })\r\n },\r\n /**\r\n * Activate a registered section and deactivates others\r\n *\r\n * @param {string} sectionDataId section name to be activated\r\n * @param {string} displayType display type override for section to be used in its display style property\r\n */\r\n activateSection(sectionDataId, displayType = 'block') {\r\n this.currentSection=sectionDataId;\r\n this.triggerSectionEvent(sectionDataId);\r\n Object.keys(this.sections).map(k => {\r\n if (Object.prototype.hasOwnProperty.call(this.sections, k)) {\r\n const visibility = sectionDataId === k ? displayType : 'none';\r\n this.sections[k].style = `display: ${visibility} !important`;\r\n }\r\n })\r\n },\r\n /**\r\n * Get id of current active section\r\n *\r\n * @returns {string} active section i\r\n */\r\n getCurrentSection(){\r\n return this.currentSection;\r\n },\r\n /**\r\n * Get current section from search parameter 'wptb-builder-section' of window location\r\n */\r\n getSectionFromUrl(){\r\n const parsedUrl = new URL(window.location.href);\r\n const urlSection = parsedUrl.searchParams.get('wptb-builder-section');\r\n if(urlSection){\r\n if(Object.keys(this.sections).some(key => key===urlSection)){\r\n this.activateSection(urlSection);\r\n }\r\n }\r\n },\r\n /**\r\n * Set up related buttons and links to trigger certain elements\r\n */\r\n setupSectionButtons() {\r\n const sectionButtons = Array.from( document.querySelectorAll('[data-wptb-section-button'));\r\n const vm = this;\r\n\r\n sectionButtons.map(s => {\r\n const sectionName = s.dataset.wptbSectionButton;\r\n s.addEventListener('click', function() {\r\n const displayType = s.dataset.wptbSectionDisplayType;\r\n vm.activateSection(sectionName, displayType);\r\n })\r\n\r\n document.addEventListener('wptbSectionChanged', (e)=> {\r\n if(e.detail === sectionName){\r\n s.classList.remove('disabled');\r\n s.classList.add('active');\r\n }else{\r\n s.classList.remove('active');\r\n s.classList.add('disabled');\r\n }\r\n })\r\n })\r\n },\r\n setupPanelToggleButtons(){\r\n const $ = jQuery;\r\n\r\n $('.wptb-panel-toggle-group').each(function(){\r\n const vm = $(this);\r\n $(this).find('.toggle-icon').click(() => {\r\n vm.find('.wptb-panel-toggle-target').slideToggle();\r\n vm.toggleClass('wptb-panel-toggle-content');\r\n })\r\n })\r\n },\r\n /**\r\n * Trigger a section change event\r\n *\r\n * @param {string} sectionName section name\r\n */\r\n triggerSectionEvent(sectionName){\r\n const sectionEvent = new CustomEvent('wptbSectionChanged', {detail: sectionName});\r\n\r\n document.dispatchEvent(sectionEvent);\r\n },\r\n /**\r\n * Setup sidebar toggle element\r\n *\r\n * @param {string} toggleSelector query selector for drawer toggle element\r\n */\r\n setupSidebarToggle(toggleSelector){\r\n const toggleButton = document.querySelector(toggleSelector);\r\n if(toggleButton){\r\n toggleButton.addEventListener('click', (e)=>{\r\n e.preventDefault();\r\n document.body.classList.toggle('collapsed');\r\n })\r\n }\r\n },\r\n // function for deleting all external CSS for the element\r\n externalCssStylesDelete: function( elementContainerClass ) {\r\n let head = document.head;\r\n if( head ) {\r\n let cssForThisElement = head.querySelector( '#styles-' + elementContainerClass );\r\n\r\n if( cssForThisElement ) {\r\n head.removeChild( cssForThisElement );\r\n }\r\n }\r\n },\r\n // function for copy all external CSS for the element\r\n externalCssStylesCopy: function( activeElement, copyElement ) {\r\n if( activeElement ) {\r\n let infArr = activeElement.className.match( /wptb-element-(.+)-(\\d+)/i );\r\n if( infArr && Array.isArray( infArr ) ) {\r\n let activeElemClass = infArr[0];\r\n\r\n let head = document.head;\r\n if( head ) {\r\n let cssForActiveElement = head.querySelector( '#styles-' + activeElemClass );\r\n\r\n if( cssForActiveElement ) {\r\n let cssForNewElement = cssForActiveElement.cloneNode( true );\r\n\r\n cssForNewElement.removeAttribute( 'id', 'styles-' + activeElemClass );\r\n\r\n let infArrCopyEl = copyElement.className.match( /wptb-element-(.+)-(\\d+)/i );\r\n if( infArrCopyEl && Array.isArray( infArrCopyEl ) ) {\r\n cssForNewElement.setAttribute( 'id', 'styles-' + infArrCopyEl[0] );\r\n let cssForActiveElementInnerHTML = cssForActiveElement.innerHTML;\r\n let cssForNewElementInnerHTML = WPTB_Helper.replaceAll( cssForActiveElementInnerHTML, activeElemClass, infArrCopyEl[0] );\r\n cssForNewElement.innerHTML = cssForNewElementInnerHTML;\r\n head.appendChild( cssForNewElement );\r\n }\r\n }\r\n }\r\n }\r\n }\r\n },\r\n // function for convertation elements stiles in json\r\n elementsStylesConvertToObject: function() {\r\n let head = document.head;\r\n let stylesElements = head.querySelectorAll( '.styles-wptb-elements' );\r\n let stylesObj = {};\r\n for( let i = 0; i < stylesElements.length; i++ ) {\r\n let styleElemId = stylesElements[i].getAttribute( 'id' );\r\n if( styleElemId && stylesElements[i].innerHTML ) {\r\n stylesObj[styleElemId] = stylesElements[i].innerHTML;\r\n }\r\n }\r\n\r\n if( Object.keys( stylesObj ).length != 0 ) {\r\n return JSON.stringify( stylesObj );\r\n }\r\n return '';\r\n },\r\n // function for set scc styles tags to head\r\n elementsStylesSetFromObject: function( jsonObject ) {\r\n let head = document.head;\r\n if( head ) {\r\n let stylesElements = head.querySelectorAll( '.styles-wptb-elements' );\r\n if( stylesElements.length > 0 ) {\r\n stylesElements = [...stylesElements];\r\n for( let i = 0; i < stylesElements.length; i++ ) {\r\n head.removeChild( stylesElements[i] );\r\n }\r\n }\r\n if( jsonObject ) {\r\n let stylesObj = JSON.parse( jsonObject );\r\n if( Object.keys( stylesObj ).length != 0 ) {\r\n Object.keys( stylesObj ).forEach( function( key ) {\r\n let cssText = stylesObj[key];\r\n let styleCss = document.createElement( 'style' );\r\n styleCss.setAttribute( 'id', key );\r\n styleCss.classList.add( 'styles-wptb-elements' );\r\n styleCss.innerHTML = cssText;\r\n head.appendChild( styleCss );\r\n });\r\n }\r\n }\r\n }\r\n },\r\n // function for table saving\r\n saveTable: function( event, startSaving, previewSaving ) {\r\n if( ! previewSaving && ! startSaving ) {\r\n if( ( ! event.target.dataset.wptbTableStateNumberSave && window.wptbTableStateNumberShow == 0 ) ||\r\n window.wptbTableStateNumberShow == event.target.dataset.wptbTableStateNumberSave ) {\r\n //return;\r\n }\r\n }\r\n\r\n if( ! previewSaving ) {\r\n let bar = document.querySelector( '.wptb-edit-bar' );\r\n if ( bar && bar.classList.contains( 'visible' ) ) {\r\n let table = document.getElementsByClassName( 'wptb-preview-table' )[0];\r\n WPTB_Helper.toggleTableEditMode();\r\n }\r\n }\r\n\r\n let http = new XMLHttpRequest(),\r\n url = ( wptb_admin_object ? wptb_admin_object.ajaxurl : ajaxurl ) + \"?action=save_table\",\r\n t = document.getElementById( 'wptb-setup-name' ).value.trim(),\r\n messagingArea,\r\n code,\r\n datas;\r\n\r\n code = document.getElementsByClassName( 'wptb-preview-table' );\r\n\r\n let postId;\r\n if (( rs = WPTB_Helper.detectMode() ) || ( rs = document.wptbId )) {\r\n postId = rs;\r\n }\r\n let paramIdsNecessaryChange = false;\r\n if( code.length > 0 ) {\r\n code = code[0];\r\n let codeClone = code.cloneNode( true );\r\n if( postId ) {\r\n if( codeClone.classList.contains( 'wptb-element-main-table_setting-startedid-0' ) ) {\r\n codeClone.classList.remove( 'wptb-element-main-table_setting-startedid-0' );\r\n codeClone.classList.add( 'wptb-element-main-table_setting-' + postId );\r\n let wptbTableSetup = document.querySelector('.wptb-table-setup');\r\n if(wptbTableSetup) {\r\n wptbTableSetup.innerHTML = '';\r\n wptbTableSetup.appendChild(codeClone);\r\n WPTB_Table();\r\n }\r\n paramIdsNecessaryChange = true;\r\n }\r\n }\r\n codeClone.columns = code.columns;\r\n code = WPTB_Stringifier( codeClone );\r\n code = code.outerHTML;\r\n } else {\r\n code = '';\r\n }\r\n\r\n if( ! previewSaving ) {\r\n datas = '';\r\n let datas_containers = document.getElementsByClassName( 'wptb-element-datas' );\r\n\r\n if( datas_containers.length > 0 ) {\r\n if( datas_containers[0].innerHTML ) {\r\n datas = datas_containers[0].innerHTML;\r\n\r\n if( paramIdsNecessaryChange ) {\r\n datas = WPTB_Helper.replaceAll( datas, 'tmpl-wptb-el-datas-main-table_setting-startedid-0',\r\n 'tmpl-wptb-el-datas-main-table_setting-' + postId );\r\n\r\n datas = WPTB_Helper.replaceAll( datas, 'data-wptb-el-main-table_setting-startedid-0',\r\n 'data-wptb-el-main-table_setting-' + postId );\r\n }\r\n }\r\n }\r\n }\r\n\r\n let styleObjJson = WPTB_Helper.elementsStylesConvertToObject();\r\n if( paramIdsNecessaryChange ) {\r\n styleObjJson = WPTB_Helper.replaceAll( styleObjJson, '.wptb-element-main-table_setting-startedid-0',\r\n '.wptb-element-main-table_setting-' + postId );\r\n }\r\n\r\n if ( t === '' && code === '' ) {\r\n let messagingAreaText = '';\r\n if( t === '' ) messagingAreaText += 'You must assign a name to the table before saving it.</br>';\r\n if( code === '' ) messagingAreaText += 'Table wasn\\'t created';\r\n messagingArea = document.getElementById( 'wptb-messaging-area' );\r\n messagingArea.innerHTML = '<div class=\"wptb-error wptb-message\">Error: ' + messagingAreaText + '</div>';\r\n messagingArea.classList.add( 'wptb-warning' );\r\n setTimeout(function () {\r\n messagingArea.removeChild( messagingArea.firstChild );\r\n }, 4000 );\r\n return;\r\n }\r\n\r\n let params = {\r\n title: t,\r\n content: code,\r\n elements_datas: datas,\r\n elements_styles: styleObjJson,\r\n security_code: wptb_admin_object.security_code\r\n };\r\n\r\n\r\n if( previewSaving ) {\r\n params.preview_saving = previewSaving;\r\n }\r\n\r\n if ( postId ) {\r\n params.id = postId;\r\n }\r\n params = JSON.stringify( params );\r\n\r\n http.open('POST', url, true);\r\n http.setRequestHeader( 'Content-type', 'application/json; charset=utf-8' );\r\n\r\n http.onreadystatechange = function ( action ) {\r\n if ( this.readyState == 4 && this.status == 200 ) {\r\n var data = JSON.parse( http.responseText );\r\n messagingArea = document.getElementById( 'wptb-messaging-area' );\r\n\r\n if ( data[0] == 'saved' ) {\r\n let builderPageUrl = document.location.href.replace( '#', '' );\r\n let regex = new RegExp( '&table=(.+)', \"i\" );\r\n builderPageUrl = builderPageUrl.replace( regex, '' );\r\n window.history.pushState( null, null, builderPageUrl + '&table=' + data[1] );\r\n\r\n WPTB_Helper.saveTable( event, true );\r\n return;\r\n } else if( data[0] == 'edited' && startSaving ) {\r\n document.wptbId = data[1];\r\n messagingArea.innerHTML = '<div class=\"wptb-success wptb-message\">Table \"' + t + '\" was successfully saved.</div>';\r\n document.getElementsByClassName( 'wptb-embed-btn' )[0].classList.remove( 'wptb-button-disable' );\r\n document.getElementById( 'wptb-embed-shortcode' ).value = '[wptb id=' + data[1] + ']';\r\n let wptbPreviewTable = document.querySelector( '.wptb-preview-table' );\r\n let wptbPreviewBtn = document.getElementsByClassName( 'wptb-preview-btn' );\r\n if( wptbPreviewBtn.length > 0 ) {\r\n wptbPreviewBtn = wptbPreviewBtn[0];\r\n wptbPreviewBtn.classList.remove( 'wptb-button-disable' );\r\n let wptbPreviewBtnHref = wptbPreviewBtn.dataset.previewHref;\r\n wptbPreviewBtnHref = wptbPreviewBtnHref.replace( 'empty', data[1] );\r\n wptbPreviewBtn.setAttribute( 'href', wptbPreviewBtnHref );\r\n }\r\n\r\n event.target.dataset.wptbTableStateNumberSave = window.wptbTableStateNumberShow;\r\n let wptbSaveBtn = document.getElementsByClassName( 'wptb-save-btn' );\r\n if( wptbSaveBtn.length > 0 ) {\r\n wptbSaveBtn = wptbSaveBtn[0];\r\n wptbSaveBtn.classList.add( 'wptb-save-disabled' );\r\n wptbSaveBtn.classList.remove('active');\r\n }\r\n } else if( data[0] == 'edited' ) {\r\n messagingArea.innerHTML = '<div class=\"wptb-success wptb-message\">Table \"' + t + '\" was successfully updated.</div>';\r\n event.target.dataset.wptbTableStateNumberSave = window.wptbTableStateNumberShow;\r\n\r\n let wptbSaveBtn = document.getElementsByClassName( 'wptb-save-btn' );\r\n if( wptbSaveBtn.length > 0 ) {\r\n wptbSaveBtn = wptbSaveBtn[0];\r\n wptbSaveBtn.classList.add( 'wptb-save-disabled' );\r\n wptbSaveBtn.classList.remove('active');\r\n }\r\n } else if( data[0] == 'preview_edited' ) {\r\n return;\r\n } else {\r\n messagingArea.innerHTML = '<div class=\"wptb-error wptb-message\">Safety problems</div>';\r\n }\r\n messagingArea.classList.add( 'wptb-success' );\r\n setTimeout( function () {\r\n messagingArea.removeChild( messagingArea.firstChild );\r\n }, 4000 );\r\n }\r\n }\r\n http.send( params );\r\n },\r\n //\r\n clickOnFreeSpace: function() {\r\n // if current active section is responsive menu, ignore this functionality\r\n if(this.getCurrentSection() === 'table_responsive_menu'){\r\n return;\r\n }\r\n\r\n let cellModeBackground = document.querySelector( '#wptb-cell_mode_background' );\r\n if( cellModeBackground && cellModeBackground.classList.contains( 'visible' ) ) {\r\n return;\r\n }\r\n // document.getElementsByClassName( 'wptb-elements-container' )[0].style.display = 'table';\r\n // document.getElementsByClassName( 'wptb-settings-section' )[0].style.display = 'block';\r\n // document.getElementById( 'element-options-group' ).style.display = 'none';\r\n this.activateSection('elements');\r\n\r\n let wpcdFixedToolbar = document.getElementById( 'wpcd_fixed_toolbar' );\r\n if( wpcdFixedToolbar.hasAttribute( 'data-toolbar-active-id' ) ) {\r\n document.getElementById( wpcdFixedToolbar.getAttribute( 'data-toolbar-active-id' ) ).classList.remove( 'toolbar-active' );\r\n }\r\n let element = document.querySelector( '.wptb-preview-table' );\r\n if( element ) {\r\n WPTB_Helper.elementOptionsSet( 'table_setting', element );\r\n }\r\n },\r\n\r\n /*\r\n * function for sending of element ajax request\r\n */\r\n elementAjax: function( dataAjaxData, element ) {\r\n let http = new XMLHttpRequest(),\r\n url = ( wptb_admin_object ? wptb_admin_object.ajaxurl : ajaxurl ) + \"?action=wptb_element_ajax\";\r\n let element_name;\r\n let infArr = element.className.match( /wptb-element-(.+)-(\\d+)/i );\r\n if( infArr && Array.isArray( infArr ) ) {\r\n element_name = infArr[1];\r\n }\r\n\r\n let params = {\r\n element_ajax_data: dataAjaxData,\r\n element_name: element_name,\r\n security_code: wptb_admin_object.security_code\r\n };\r\n params = JSON.stringify( params );\r\n\r\n http.open( 'POST', url, true );\r\n http.setRequestHeader( 'Content-type', 'application/json; charset=utf-8' );\r\n\r\n http.onreadystatechange = function ( action ) {\r\n if ( this.readyState == 4 && this.status == 200 ) {\r\n var data = JSON.parse( http.responseText );\r\n let detail;\r\n if ( data && Array.isArray( data ) && data[0] == 'element_ajax_responce' ) {\r\n detail = {value: data[1]};\r\n } else {\r\n detail = '';\r\n }\r\n WPTB_Helper.wptbDocumentEventGenerate( 'wptb-element:ajax-response', element, detail );\r\n }\r\n }\r\n http.send( params );\r\n },\r\n\r\n /*\r\n * This just toggles visibility of cell edit bar, and toggles\r\n * cell selecting mode.\r\n */\r\n toggleTableEditMode: function ( close = false ) {\r\n let bar = document.getElementsByClassName('wptb-edit-bar'),\r\n cellModeBackground = document.getElementById('wptb-cell_mode_background'),\r\n leftScrollPanelCurtain = document.getElementById('wptb-left-scroll-panel-curtain'),\r\n leftScrollPanelCellSettings = document.getElementById( 'wptb-left-scroll-panel-cell-settings' ),\r\n wptbPreviewTable = document.getElementsByClassName('wptb-preview-table');\r\n if (wptbPreviewTable.length > 0) {\r\n wptbPreviewTable = wptbPreviewTable[0];\r\n }\r\n\r\n if ( bar.length > 0 ) {\r\n let toggleEditMode = '';\r\n for ( let i = 0; i < bar.length; i++ ) {\r\n if ( bar[i].classList.contains( 'visible' ) ) {\r\n document.select.deactivateMultipleSelectMode();\r\n bar[i].classList.remove( 'visible' );\r\n cellModeBackground.classList.remove( 'visible' );\r\n leftScrollPanelCurtain.classList.remove( 'visible' );\r\n leftScrollPanelCellSettings.classList.remove( 'visible' );\r\n wptbPreviewTable.parentNode.classList.remove( 'wptb-preview-table-manage-cells' );\r\n let wptbPreviewTableTds = wptbPreviewTable.getElementsByTagName( 'td' );\r\n if ( wptbPreviewTableTds.length > 0 ) {\r\n for ( let i = 0; i < wptbPreviewTableTds.length; i++ ) {\r\n wptbPreviewTableTds[i].classList.remove( 'wptb-highlighted' );\r\n }\r\n }\r\n toggleEditMode = 'closed';\r\n\r\n } else if( ! close ) {\r\n document.select.activateMultipleSelectMode();\r\n bar[i].classList.add( 'visible' );\r\n cellModeBackground.classList.add( 'visible' );\r\n leftScrollPanelCurtain.classList.add( 'visible' );\r\n wptbPreviewTable.parentNode.classList.add( 'wptb-preview-table-manage-cells' );\r\n\r\n toggleEditMode = 'opened';\r\n }\r\n }\r\n\r\n WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/table-edit-mode/' + toggleEditMode, wptbPreviewTable)\r\n }\r\n },\r\n\r\n /*\r\n * checking of dimension of value\r\n */\r\n checkingDimensionValue: function ( value, dimension ) {\r\n value = String( value );\r\n dimension = String( dimension );\r\n if( value && dimension ) {\r\n let searchIndex = value.indexOf( dimension );\r\n if ( searchIndex != -1 && searchIndex == ( value.length - dimension.length ) ) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n } else {\r\n return false;\r\n }\r\n },\r\n\r\n /*\r\n * if dimension is included - checking and if it necessary setting value\r\n * without dimension - return value\r\n */\r\n checkSetGetStyleSizeValue: function( element, styleName, computedStyleName, dimension ) {\r\n let elemStyleValue = element.style[styleName];\r\n elemStyleValue = String( elemStyleValue );\r\n\r\n if( ! elemStyleValue || dimension ? ! ( WPTB_Helper.checkingDimensionValue( elemStyleValue, dimension ) ) : false ){\r\n let elementStyles = window.getComputedStyle( element );\r\n if( computedStyleName && elementStyles.getPropertyValue( computedStyleName ) && dimension ? WPTB_Helper.checkingDimensionValue( elementStyles.getPropertyValue( computedStyleName ), dimension ) : true ) {\r\n if( ! dimension ) {\r\n return elementStyles.getPropertyValue( computedStyleName );\r\n } else {\r\n element.style[styleName] = elementStyles.getPropertyValue( computedStyleName );\r\n }\r\n } else {\r\n if( ! dimension ) {\r\n return false;\r\n } else {\r\n element.style[styleName] = null;\r\n }\r\n }\r\n } else if( ! dimension ) {\r\n return elemStyleValue;\r\n }\r\n\r\n return element.style[styleName];\r\n },\r\n\r\n /*\r\n * function checking that element has the style\r\n * if this style is present - checking the format color\r\n * if param set is true - setting style for element (consider hex format of color)\r\n * if param set is false - getting style from element\r\n */\r\n checkSetGetStyleColorValue: function ( element, styleName, computedStyleName, set = false ) {\r\n let elemStyleColorValue = element.style[styleName];\r\n\r\n if( ! elemStyleColorValue ) {\r\n let elementStyles = window.getComputedStyle( element, null );\r\n\r\n if( elementStyles && elementStyles.getPropertyValue( computedStyleName ) ) {\r\n\r\n if( set ) {\r\n elemStyleColorValue = WPTB_Helper.rgbToHex( elementStyles.getPropertyValue( computedStyleName ) );\r\n if( WPTB_Helper.isHex( elemStyleColorValue ) ) {\r\n element.style[styleName] = elemStyleColorValue;\r\n } else {\r\n element.style[styleName] = '';\r\n }\r\n } else {\r\n return elementStyles.getPropertyValue( computedStyleName );\r\n }\r\n\r\n } else {\r\n if( set ) {\r\n element.style[styleName] = '';\r\n } else {\r\n return '';\r\n }\r\n }\r\n } else if( ! set ) {\r\n return elemStyleColorValue;\r\n }\r\n },\r\n\r\n /*\r\n * function checking that element has the style\r\n * if this style is present - checking the format color\r\n * if param set is true - setting style for element (consider hex format of color)\r\n * if param set is false - getting style from element\r\n */\r\n checkSetGetStyleValue: function ( element, styleName, computedStyleName, set = false ) {\r\n let elemStyleColorValue = element.style[styleName];\r\n\r\n if( ! elemStyleColorValue ) {\r\n let elementStyles = window.getComputedStyle( element, null );\r\n\r\n if( elementStyles && elementStyles.getPropertyValue( computedStyleName ) ) {\r\n\r\n if( set ) {\r\n element.style[styleName] = elementStyles.getPropertyValue( computedStyleName );\r\n } else {\r\n return elementStyles.getPropertyValue( computedStyleName );\r\n }\r\n\r\n } else if( ! set ) {\r\n return '';\r\n }\r\n } else if( ! set ) {\r\n return elemStyleColorValue;\r\n }\r\n },\r\n\r\n /*\r\n * get the value of the same elements that have the most count\r\n */\r\n getValueMaxCountSameElementsInArray: function ( arr ) {\r\n if( arr && Array.isArray( arr ) ) {\r\n let check = {};\r\n for( let i = 0; i < arr.length; i++ ) {\r\n if( check[arr[i]] ) {\r\n check[arr[i]]++;\r\n } else {\r\n check[arr[i]] = 1;\r\n }\r\n }\r\n\r\n let maxPropName;\r\n for ( let key in check ) {\r\n if( ! maxPropName ) {\r\n maxPropName = key;\r\n continue;\r\n } else {\r\n if( check[maxPropName] < check[key] ) {\r\n maxPropName = key;\r\n }\r\n }\r\n }\r\n\r\n return maxPropName;\r\n }\r\n },\r\n\r\n /*\r\n * For assigning to each cell xIndex and y Index attributes,\r\n * these are the column number and row number of cell in table.\r\n */\r\n recalculateIndexes: function ( table ) {\r\n let trs = table.getElementsByTagName( 'tr' ),\r\n tds, maxCols = 0, maxColsFull = 0, tdsArr = [];\r\n\r\n for ( let i = 0; i < trs.length; i++ ) {\r\n tds = trs[i].getElementsByTagName( 'td' );\r\n\r\n if ( tdsArr[i] == undefined ) {\r\n tdsArr[i] = [];\r\n }\r\n\r\n let jMainIter = 0;\r\n for ( let j = 0; j < tds.length; j++ ) {\r\n if ( tdsArr[i][j] != undefined ) {\r\n for ( let y = 0; y < 100; y++ ) {\r\n if ( tdsArr[i][jMainIter] != undefined ) {\r\n jMainIter++;\r\n continue;\r\n }\r\n tdsArr[i][jMainIter] = tds[j];\r\n tds[j].dataset.xIndex = jMainIter;\r\n break;\r\n }\r\n } else {\r\n tdsArr[i][j] = tds[j];\r\n tds[j].dataset.xIndex = jMainIter;\r\n }\r\n tds[j].dataset.yIndex = i;\r\n\r\n if ( tds[j].colSpan > 1 ) {\r\n for ( let k = 1; k < tds[j].colSpan; k++ ) {\r\n jMainIter++;\r\n tdsArr[i][jMainIter] = 'tdDummy';\r\n }\r\n }\r\n\r\n if ( tds[j].rowSpan > 1 ) {\r\n for ( let x = 1; x < tds[j].rowSpan; x++ ) {\r\n if ( tdsArr[i + x] == undefined ) {\r\n tdsArr[i + x] = [];\r\n }\r\n for ( let z = 0; z < tds[j].colSpan; z++ ) {\r\n tdsArr[i + x][jMainIter - tds[j].colSpan + 1 + z ] = 'tdDummy';\r\n }\r\n }\r\n }\r\n jMainIter++;\r\n\r\n if ( j > maxCols ) {\r\n maxCols = j;\r\n }\r\n }\r\n\r\n if( i == 0 ) {\r\n maxColsFull = jMainIter;\r\n }\r\n }\r\n table.columns = maxCols;\r\n table.maxCols = maxColsFull;\r\n },\r\n\r\n /**\r\n * Table Rows colors reinstall\r\n */\r\n tableRowsColorsReinstall: function ( table ) {\r\n let infArr = table.className.match( /wptb-element-main(.+)-(\\d+)/i );\r\n if( infArr && Array.isArray( infArr ) ) {\r\n let tableIndex = '';\r\n if( infArr[infArr.length -1] == '0' ) {\r\n tableIndex = 'startedid-0';\r\n } else {\r\n tableIndex = infArr[infArr.length -1];\r\n }\r\n\r\n let tableHeaderBackground = document.querySelector('.wptb-el-main-table_setting-' + tableIndex + '-tableHeaderBackground' );\r\n if( tableHeaderBackground ) {\r\n let details = {value: tableHeaderBackground.value};\r\n WPTB_Helper.wptbDocumentEventGenerate( 'controlColor:change', tableHeaderBackground, details );\r\n }\r\n\r\n let tableEvenRowBackground = document.querySelector('.wptb-el-main-table_setting-' + tableIndex + '-tableEvenRowBackground' );\r\n if( tableEvenRowBackground ) {\r\n let details = {value: tableEvenRowBackground.value};\r\n WPTB_Helper.wptbDocumentEventGenerate( 'controlColor:change', tableEvenRowBackground, details );\r\n }\r\n\r\n let tableOddRowBackground = document.querySelector('.wptb-el-main-table_setting-' + tableIndex + '-tableOddRowBackground' );\r\n if( tableOddRowBackground ) {\r\n let details = {value: tableOddRowBackground.value};\r\n WPTB_Helper.wptbDocumentEventGenerate( 'controlColor:change', tableOddRowBackground, details );\r\n }\r\n }\r\n }\r\n}\r\n","var WPTB_Initializer = function () {\r\n\r\n const MIN_COLUMNS = 1,\r\n MIN_ROWS = 1,\r\n MAX_COLUMNS = 30,\r\n MAX_ROWS = 30;\r\n\r\n var tableGenerator = document.body;\r\n columnsDecrementButton = tableGenerator.getElementsByClassName('wptb-input-number-decrement')[0],\r\n columnsIncrementButton = tableGenerator.getElementsByClassName('wptb-input-number-increment')[0],\r\n rowsDecrementButton = tableGenerator.getElementsByClassName('wptb-input-number-decrement')[1],\r\n rowsIncrementButton = tableGenerator.getElementsByClassName('wptb-input-number-increment')[1],\r\n columnsInput = document.getElementById('wptb-columns-number'),\r\n rowsInput = document.getElementById('wptb-rows-number');\r\n \r\n columnsDecrementButton.onclick = function () {\r\n if (columnsInput.value > MIN_COLUMNS) {\r\n columnsInput.value--;\r\n }\r\n };\r\n\r\n columnsIncrementButton.onclick = function () {\r\n if (columnsInput.value < MAX_COLUMNS) {\r\n columnsInput.value++;\r\n }\r\n };\r\n\r\n rowsDecrementButton.onclick = function () {\r\n if (rowsInput.value > MIN_ROWS) {\r\n rowsInput.value--;\r\n }\r\n };\r\n\r\n rowsIncrementButton.onclick = function () {\r\n if (rowsInput.value < MAX_ROWS) {\r\n rowsInput.value++;\r\n }\r\n };\r\n\r\n document.getElementById( 'wptb-generate-table' ).onclick = function ( ) {\r\n var columns = document.getElementById('wptb-columns-number').value,\r\n rows = document.getElementById('wptb-rows-number').value;\r\n\r\n //wptbTableStateSaveManager.tableStateClear();\r\n \r\n WPTB_Table(columns, rows);\r\n\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n }\r\n\r\n // register and setup section buttons\r\n WPTB_Helper.registerSections(['elements', 'table_settings', 'cell_settings', 'options_group' , 'table_responsive_menu']);\r\n WPTB_Helper.setupSectionButtons();\r\n\r\n // activate elements section for startup\r\n WPTB_Helper.activateSection('elements');\r\n\r\n // side bar toggle setup\r\n // WPTB_Helper.setupSidebarToggle('.wptb-panel-drawer-toggle');\r\n WPTB_Helper.setupSidebarToggle('.wptb-panel-toggle-section .wptb-panel-drawer-icon');\r\n\r\n // setup panel sections that have the ability to be toggled on/off\r\n WPTB_Helper.setupPanelToggleButtons();\r\n\r\n // setup responsive menu both at left and builder panel\r\n new WptbResponsive('table_responsive_menu', 'wptbResponsiveApp', '.wptb-builder-content');\r\n\r\n // get builder section from url parameter for easy switch at page load\r\n WPTB_Helper.getSectionFromUrl();\r\n};\r\n","var WPTB_innerElementSet = function ( element ) {\r\n \r\n element.ondragenter = function (e) {\r\n var div;\r\n if ( e.dataTransfer.types.indexOf( 'wptbelement' ) == -1 && e.dataTransfer.types.indexOf( 'wptb-moving-mode' ) == -1 ) {\r\n return;\r\n }\r\n WPTB_DropHandle(this, e);\r\n \r\n element.classList.add( 'wptb-ondragenter' );\r\n }\r\n element.ondragover = function (e) {\r\n e.preventDefault();\r\n WPTB_DropHandle(this, e);\r\n }\r\n element.ondragleave = function () {\r\n \r\n }\r\n element.ondrop = function(e) {\r\n this.classList.remove( 'wptb-ondragenter' );\r\n let element, classId;\r\n e.preventDefault();\r\n e.stopPropagation();\r\n\r\n if (!e.dataTransfer.getData('wptbElement') && !e.dataTransfer.getData('node')) {\r\n return;\r\n }\r\n let wptbDropHandle,\r\n wptbDropBorderMarker;\r\n if ( document.getElementsByClassName( 'wptb-drop-handle' ).length > 0 ) {\r\n wptbDropHandle = document.getElementsByClassName( 'wptb-drop-handle' )[0];\r\n }\r\n if( document.getElementsByClassName( 'wptb-drop-border-marker' ).length > 0 ) {\r\n wptbDropBorderMarker = document.getElementsByClassName( 'wptb-drop-border-marker' )[0];\r\n }\r\n\r\n if ( e.dataTransfer.getData( 'wptbElement' ) ) {\r\n element = WPTB_Helper.newElementProxy( e.dataTransfer.getData( 'wptbElement' ) );\r\n element = element.getDOMElement();\r\n } else {\r\n classId = e.dataTransfer.getData( 'node' );\r\n element = document.getElementsByClassName( classId )[0];\r\n //element.classList.remove( 'wptb-moving-mode' );\r\n }\r\n \r\n if( wptbDropHandle.style.display == 'block' ) {\r\n let td;\r\n if( wptbDropHandle.dataset.text == 'Drop Here' ) {\r\n td = wptbDropHandle.getDOMParentElement();\r\n td.appendChild( element );\r\n } else {\r\n let innerElement = wptbDropHandle.getDOMParentElement();\r\n td = innerElement.parentNode;\r\n\r\n if( wptbDropHandle.dataset.text == 'Above Element' ) {\r\n td.insertBefore( element, innerElement );\r\n } else if( wptbDropHandle.dataset.text == 'Below Element' ) {\r\n let innerElementNext = innerElement.nextSibling;\r\n td.insertBefore( element, innerElementNext );\r\n }\r\n }\r\n \r\n let thisRow = td.parentNode;\r\n if( WPTB_Helper.rowIsTop( thisRow ) ) { \r\n let table = WPTB_Helper.findAncestor( thisRow, 'wptb-preview-table' );\r\n \r\n if( table.classList.contains( 'wptb-table-preview-head' ) ) {\r\n WPTB_Helper.dataTitleColumnSet( table );\r\n }\r\n }\r\n \r\n // start item javascript if item is new\r\n let infArr = element.className.match(/wptb-element-(.+)-(\\d+)/i);\r\n let elemKind = infArr[1];\r\n if ( e.dataTransfer.getData( 'wptbElement' ) && ( elemKind == 'text' || elemKind == 'button' || elemKind == 'image' || elemKind == 'star_rating' || elemKind == 'list' ) ) {\r\n //WPTB_Helper.elementStartScript( element );\r\n }\r\n } else {\r\n return;\r\n }\r\n \r\n wptbDropHandle.style.display = 'none';\r\n wptbDropBorderMarker.style.display = 'none';\r\n\r\n WPTB_innerElementSet( element );\r\n \r\n if( ! element.classList.contains( 'wptb-image-container' ) || element.classList.contains( 'wptb-moving-mode' ) ) {\r\n element.classList.remove( 'wptb-moving-mode' );\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n } \r\n return true;\r\n }\r\n element.onmouseover = function(e) {\r\n element.classList.remove( 'wptb-ondragenter' );\r\n }\r\n}","var WPTB_LeftPanel = function () {\r\n\r\n let table = document.getElementsByClassName('wptb-preview-table')[0],\r\n wptbElementButtons = document.getElementsByClassName('wptb-element');\r\n\r\n for (var i = 0; i < wptbElementButtons.length; i++) {\r\n wptbElementButtons[i].ondragstart = function (e) {\r\n e.dataTransfer.setData('wptbElement', this.dataset.wptbElement);\r\n e.dataTransfer.setData( 'wptbElIndic-' + this.dataset.wptbElement, 'wptbElIndic-' + this.dataset.wptbElement );\r\n }\r\n };\r\n \r\n if( table ) {\r\n let wptbTablesEditModeCloseButton = document.getElementsByClassName( 'wptb-table-edit-mode-close' );\r\n for ( let i = 0; i < wptbTablesEditModeCloseButton.length; i++ ) {\r\n wptbTablesEditModeCloseButton[i].onclick = WPTB_Helper.toggleTableEditMode;\r\n }\r\n document.getElementById('wptb-add-end-row').onclick = table.addRowToTheEnd;\r\n document.getElementById('wptb-add-start-row').onclick = table.addRowToTheStart;\r\n document.getElementById('wptb-add-row-before').onclick = table.addRowBefore;\r\n document.getElementById('wptb-add-row-after').onclick = table.addRowAfter;\r\n document.getElementById('wptb-add-end-column').onclick = table.addColumnEnd;\r\n document.getElementById('wptb-add-start-column').onclick = table.addColumnStart;\r\n document.getElementById('wptb-add-column-before').onclick = table.addColumnBefore;\r\n document.getElementById('wptb-add-column-after').onclick = table.addColumnAfter;\r\n document.getElementById('wptb-delete-column').onclick = table.deleteColumn;\r\n document.getElementById('wptb-delete-row').onclick = table.deleteRow;\r\n document.getElementById('wptb-merge-cells').onclick = table.mergeCells;\r\n document.getElementById('wptb-split-cell').onclick = table.splitCell;\r\n };\r\n\r\n // this code hides the \"element parameters\" area\r\n // when clicked outside this element and its \"tinymce\" toolbar \r\n let wptbBuilderPanel = document.getElementsByClassName( 'wptb-builder-panel' )[0];\r\n wptbBuilderPanel.onclick = function( e ) {\r\n if( ! e.target.classList.contains( 'wptb-ph-element' ) && ! WPTB_Helper.findAncestor( e.target, 'wptb-ph-element' ) && \r\n ! e.target.classList.contains( 'wptb-fixed-toolbar' ) && ! WPTB_Helper.findAncestor( e.target, 'wptb-fixed-toolbar' ) ) {\r\n WPTB_Helper.clickOnFreeSpace();\r\n } \r\n };\r\n \r\n let wptbHeader = document.getElementsByClassName( 'wptb-header' );\r\n if( wptbHeader.length > 0 ) wptbHeader = wptbHeader[0];\r\n wptbHeader.onclick = function() {\r\n WPTB_Helper.clickOnFreeSpace();\r\n };\r\n};","var MultipleSelect = function () {\r\n\r\n\tvar selectedCells = [],\r\n\t\tmultipleCellMode = false;\r\n\r\n\tthis.activateMultipleSelectMode = function () {\r\n\t\tselectedCells = [];\r\n\t\tvar tds = document.getElementsByClassName('wptb-preview-table')[0].getElementsByTagName('td');\r\n\t\tfor (var i = 0; i < tds.length; i++) {\r\n\t\t\ttds[i].classList.remove('wptb-highlighted');\r\n\t\t}\r\n\t\tmultipleCellMode = true;\r\n\t}\r\n\r\n\tthis.deactivateMultipleSelectMode = function () {\r\n\t\tmultipleCellMode = false;\r\n\t}\r\n\r\n\tthis.isActivated = function () {\r\n\t\treturn multipleCellMode;\r\n\t}\r\n\r\n\tthis.pushSelectedCell = function (cell) {\r\n\t\tif (!multipleCellMode) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tselectedCells.push(cell);\r\n\t\tcell.classList.add('wptb-highlighted');\r\n\t};\r\n\r\n\tthis.selectedCells = function () {\r\n\t\treturn selectedCells;\r\n\t}\r\n\r\n\tthis.flushSelectedCells = function () {\r\n\t\tselectedCells = [];\r\n\t}\r\n\r\n\tthis.getFirst = function () {\r\n\t\tvar minXIndex = 1000, minYIndex = 1000, first;\r\n\t\tfor (var i = selectedCells.length - 1; i >= 0; i--) {\r\n\t\t\tif (minXIndex >= selectedCells[i].dataset.xIndex\r\n\t\t\t\t&& minYIndex >= selectedCells[i].dataset.yIndex) {\r\n\t\t\t\tfirst = selectedCells[i];\r\n\t\t\t\tminXIndex = selectedCells[i].dataset.xIndex;\r\n\t\t\t\tminYIndex = selectedCells[i].dataset.yIndex;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn first;\r\n\t}\r\n\r\n\tthis.getLast = function () {\r\n\t\tvar maxXIndex = -1, maxYIndex = -1, last;\r\n\t\tfor (var i = selectedCells.length - 1; i >= 0; i--) {\r\n\t\t\tif (maxXIndex <= selectedCells[i].dataset.xIndex\r\n\t\t\t\t&& maxYIndex <= selectedCells[i].dataset.yIndex) {\r\n\t\t\t\tlast = selectedCells[i];\r\n\t\t\t\tmaxXIndex = selectedCells[i].dataset.xIndex;\r\n\t\t\t\tmaxYIndex = selectedCells[i].dataset.yIndex;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn last;\r\n\t}\r\n\r\n\tthis.removeAllButFirst = function () {\r\n\t\tvar td = this.getFirst();\r\n\t\tfor (var i = 1; i < selectedCells.length; i++) {\r\n\t\t\tselectedCells[i].classList.add('wptb-fused-cell-' + td.dataset.xIndex + '-' + td.dataset.yIndex);\r\n\t\t}\r\n\t}\r\n\r\n\treturn this;\r\n\r\n};","var WPTB_Parser = function ( code ) {\r\n let div = document.createElement( 'div' );\r\n div.innerHTML = code;\r\n \r\n let table = div.children[0];\r\n let columnTitleMobile = [...table.querySelectorAll( '.wptb-column-title-mobile-container' )];\r\n \r\n for( let i = 0; i < columnTitleMobile.length; i++ ) {\r\n let parent = columnTitleMobile[i].parentNode;\r\n parent.removeChild( columnTitleMobile[i] );\r\n }\r\n \r\n let tds = table.querySelectorAll( 'td' );\r\n for ( let i = 0; i < tds.length; i++ ) {\r\n tds[i].classList.add( 'wptb-droppable' );\r\n tds[i].classList.remove( 'wptb-column-title-mobile-not-elements' );\r\n }\r\n \r\n return table;\r\n}","// From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys\r\nif (!Object.keys) {\r\n Object.keys = (function () {\r\n 'use strict';\r\n var hasOwnProperty = Object.prototype.hasOwnProperty,\r\n hasDontEnumBug = !({toString: null}).propertyIsEnumerable('toString'),\r\n dontEnums = [\r\n 'toString',\r\n 'toLocaleString',\r\n 'valueOf',\r\n 'hasOwnProperty',\r\n 'isPrototypeOf',\r\n 'propertyIsEnumerable',\r\n 'constructor'\r\n ],\r\n dontEnumsLength = dontEnums.length;\r\n\r\n return function (obj) {\r\n if (typeof obj !== 'object' && (typeof obj !== 'function' || obj === null)) {\r\n throw new TypeError('Object.keys called on non-object');\r\n }\r\n\r\n var result = [], prop, i;\r\n\r\n for (prop in obj) {\r\n if (hasOwnProperty.call(obj, prop)) {\r\n result.push(prop);\r\n }\r\n }\r\n\r\n if (hasDontEnumBug) {\r\n for (i = 0; i < dontEnumsLength; i++) {\r\n if (hasOwnProperty.call(obj, dontEnums[i])) {\r\n result.push(dontEnums[i]);\r\n }\r\n }\r\n }\r\n return result;\r\n };\r\n }());\r\n}","/**\r\n * Responsive menu and options class.\r\n *\r\n * This class will be called and instanced at table builder menu to add it the responsive menu and its controls.\r\n *\r\n * @param {string} sectionName section name\r\n * @param {string} responsiveWrapperId id for mount point\r\n * @param {string} mainContainerQuery query to find parent container for responsive menu\r\n * @throws {Error} will throw an error if mainContainerQuery failed to find any element\r\n * @constructor\r\n */\r\n// eslint-disable-next-line no-unused-vars\r\nfunction WptbResponsive(sectionName, responsiveWrapperId, mainContainerQuery) {\r\n\tthis.sectionName = sectionName;\r\n\tthis.responsiveWrapperId = responsiveWrapperId;\r\n\tthis.responsiveTable = null;\r\n\tthis.loaded = false;\r\n\r\n\t/**\r\n\t * Add responsive container to dom.\r\n\t */\r\n\tthis.addContainerToDom = () => {\r\n\t\tconst responsiveContainer = document.querySelector(`#${this.responsiveWrapperId}`);\r\n\t\tif (!responsiveContainer) {\r\n\t\t\tconst mainContainer = document.querySelector(mainContainerQuery);\r\n\r\n\t\t\t// parent container not found, throw error\r\n\t\t\tif (!mainContainer) {\r\n\t\t\t\tthrow new Error(\r\n\t\t\t\t\t`[WPTB_Responsive]: no parent container is found with the given query of [${mainContainerQuery}]`\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t\tconst range = document.createRange();\r\n\t\t\trange.setStart(mainContainer, 0);\r\n\r\n\t\t\tconst responsiveElement = range.createContextualFragment(\r\n\t\t\t\t`<div class=\"wptb-responsive\" id=\"${this.responsiveWrapperId}\">responsive element</div>`\r\n\t\t\t);\r\n\t\t\tmainContainer.appendChild(responsiveElement);\r\n\t\t\tthis.loaded = true;\r\n\t\t}\r\n\r\n\t\tthis.responsiveTable = document.querySelector(`#${this.responsiveWrapperId}`);\r\n\t};\r\n\r\n\t/**\r\n\t * Load and make necessary mount preparations for component.\r\n\t */\r\n\tthis.load = () => {\r\n\t\tif (!this.loaded) {\r\n\t\t\tthis.addContainerToDom();\r\n\r\n\t\t\tWPTB_Helper.elementStartScript(this.responsiveTable, 'table_responsive_menu');\r\n\t\t\tWPTB_Helper.elementOptionsSet('table_responsive_menu', this.responsiveTable);\r\n\t\t\tWPTB_ControlsManager.callControlScript('ResponsiveTable', this.responsiveWrapperId);\r\n\t\t}\r\n\t};\r\n\r\n\t/**\r\n\t * Startup hook for the component.\r\n\t */\r\n\tthis.startUp = () => {\r\n\t\t// event listener for section change events\r\n\t\tdocument.addEventListener('wptbSectionChanged', (e) => {\r\n\t\t\tconst tablePreview = document.querySelector('.wptb-preview-table');\r\n\r\n\t\t\t// check if activated section is related to responsive and there is a main table already in the view\r\n\t\t\tif (e.detail === this.sectionName && tablePreview) {\r\n\t\t\t\tthis.load();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// event listener for table ready signal\r\n\t\tdocument.addEventListener('wptb:table:generated', () => {\r\n\t\t\t// check current section to be sure that responsive menu is the active one before calling load related scripts\r\n\t\t\tif (WPTB_Helper.getCurrentSection() === 'table_responsive_menu') {\r\n\t\t\t\tthis.load();\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\r\n\tthis.startUp();\r\n}\r\n","var WPTB_Settings = function () {\r\n var elems = document.getElementsByClassName('wptb-element');\r\n\r\n for ( var i = 0; i < elems.length; i++ ) {\r\n elems[i].ondragstart = function ( event ) {\r\n event.dataTransfer.effectAllowed = 'move';\r\n event.dataTransfer.setData( 'wptbElement', event.target.dataset.wptbElement );\r\n event.dataTransfer.setData( 'wptbElIndic-' + event.target.dataset.wptbElement, 'wptbElIndic-' + event.target.dataset.wptbElement );\r\n }\r\n elems[i].ondragend = function () {\r\n WPTB_Helper.elementDragEndClear();\r\n }\r\n };\r\n\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n let wptbUndo = document.getElementsByClassName( 'wptb-undo' );\r\n if( wptbUndo.length > 0 ) {\r\n wptbUndo = wptbUndo[0];\r\n \r\n wptbUndo.onclick = function( event ) {\r\n if( ! this.classList.contains( 'wptb-undoredo-disabled' ) ) {\r\n wptbTableStateSaveManager.tableStateGet( this.dataset.wptbUndoredo );\r\n let wptbUndoRedoContainer = document.getElementsByClassName( 'wptb-undo-redo-container' );\r\n if(wptbUndoRedoContainer.length > 0) {\r\n wptbUndoRedoContainer = wptbUndoRedoContainer[0];\r\n wptbUndoRedoContainer.onmouseleave = function( event ) {\r\n event.target.onmouseleave = '';\r\n let table = document.querySelector( '.wptb-preview-table' );\r\n WPTB_Table();\r\n }\r\n }\r\n }\r\n }\r\n }\r\n \r\n let wptbRedo = document.getElementsByClassName( 'wptb-redo' );\r\n if( wptbRedo.length > 0 ) {\r\n wptbRedo = wptbRedo[0];\r\n \r\n wptbRedo.onclick = function( event ) {\r\n if( ! this.classList.contains( 'wptb-undoredo-disabled' ) ) {\r\n wptbTableStateSaveManager.tableStateGet( this.dataset.wptbUndoredo );\r\n let wptbUndoRedoContainer = document.getElementsByClassName( 'wptb-undo-redo-container' );\r\n if(wptbUndoRedoContainer.length > 0) {\r\n wptbUndoRedoContainer = wptbUndoRedoContainer[0];\r\n wptbUndoRedoContainer.onmouseleave = function( event ) {\r\n event.target.onmouseleave = '';\r\n let table = document.querySelector( '.wptb-preview-table' );\r\n WPTB_Table();\r\n }\r\n }\r\n }\r\n \r\n }\r\n }\r\n \r\n let shortcodePopupWindow = document.getElementsByClassName( 'wptb-popup-window-modal' )[0];\r\n document.getElementsByClassName( 'wptb-embed-btn' )[0].onclick = function () {\r\n if( ! this.classList.contains( 'wptb-button-disable' ) ) {\r\n shortcodePopupWindow.classList.add( 'wptb-popup-show' );\r\n }\r\n }\r\n \r\n window.onbeforeunload = function(e) {\r\n let wptbSaveDisabled = document.getElementsByClassName( 'wptb-save-disabled' );\r\n if( wptbSaveDisabled.length == 0 ) {\r\n return true;\r\n } else {\r\n return null;\r\n }\r\n };\r\n \r\n \r\n document.getElementsByClassName( 'wptb-popup-dark-area' )[0].onclick = function () {\r\n shortcodePopupWindow.classList.remove( 'wptb-popup-show' );\r\n }\r\n \r\n document.getElementsByClassName( 'wptb-popup-window-close-icon' )[0].onclick = function () {\r\n shortcodePopupWindow.classList.remove( 'wptb-popup-show' );\r\n }\r\n \r\n document.getElementsByClassName( 'wptb-preview-btn' )[0].onclick = function ( event ) {\r\n if( this.classList.contains( 'wptb-button-disable' ) ) {\r\n return;\r\n } \r\n \r\n let previewId = Math.floor( Math.random() * 10000 );\r\n \r\n var newHref = new URL( event.target.href );\r\n newHref.searchParams.set( 'preview_id', previewId );\r\n event.target.href = newHref.toString();\r\n WPTB_Helper.saveTable( event, false, previewId );\r\n }\r\n\r\n document.getElementsByClassName( 'wptb-save-btn' )[0].onclick = function ( event ) {\r\n if( ! this.classList.contains( 'wptb-save-disabled' ) ) {\r\n WPTB_Helper.saveTable( event );\r\n }\r\n }\r\n\r\n let tableTitleField = document.querySelector( '#wptb-setup-name' );\r\n if( tableTitleField ) {\r\n tableTitleField.onchange = function () {\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n }\r\n }\r\n};\r\n","var WPTB_Stringifier = function ( codeMain ) {\r\n if ( codeMain ) {\r\n let code = codeMain.cloneNode( true );\r\n code.dataset.tableColumns = codeMain.columns;\r\n code.style.width = null;\r\n code.style.minWidth = null;\r\n code.style.maxWidth = null;\r\n \r\n let tds = code.getElementsByTagName( 'td' );\r\n if ( tds.length > 0 ) {\r\n for ( let i = 0; i < tds.length; i++ ) {\r\n\r\n tds[i].removeAttribute( 'data-x-index' );\r\n tds[i].removeAttribute( 'data-y-index' );\r\n tds[i].removeAttribute( 'draggable' );\r\n tds[i].classList.remove( 'wptb-droppable' );\r\n let infArr = tds[i].className.match( /wptb-element-((.+-)\\d+)/i );\r\n if(infArr) tds[i].classList.remove(infArr[0]);\r\n let innerElements = tds[i].getElementsByClassName( 'wptb-ph-element' );\r\n \r\n if ( innerElements.length > 0 ) {\r\n for ( let j = 0; j < innerElements.length; j++ ) {\r\n \r\n let mceContentBodys = innerElements[j].querySelectorAll( '.mce-content-body' );\r\n if( mceContentBodys.length > 0 ) {\r\n for ( let k = 0; k < mceContentBodys.length; k++ ) {\r\n mceContentBodys[k].classList.remove( 'mce-content-body' );\r\n }\r\n }\r\n \r\n let dataMceStyle = innerElements[j].querySelectorAll( '[data-mce-style]' );\r\n if ( dataMceStyle.length > 0 ) {\r\n for ( let k = 0; k < dataMceStyle.length; k++ ) {\r\n dataMceStyle[k].removeAttribute( 'data-mce-style' );\r\n }\r\n }\r\n \r\n let contentEditable = innerElements[j].querySelectorAll( '[contenteditable]' );\r\n if ( contentEditable.length > 0 ) {\r\n for ( let k = 0; k < contentEditable.length; k++ ) {\r\n contentEditable[k].removeAttribute( 'contenteditable' );\r\n }\r\n }\r\n \r\n let spellCheck = innerElements[j].querySelectorAll( '[spellcheck]' );\r\n if ( spellCheck.length > 0 ) {\r\n for ( let k = 0; k < spellCheck.length; k++ ) {\r\n spellCheck[k].removeAttribute( 'spellcheck' );\r\n }\r\n }\r\n \r\n let mceIds = innerElements[j].querySelectorAll( '[id^=mce_]' );\r\n if ( mceIds.length > 0 ) {\r\n for ( let k = 0; k < mceIds.length; k++ ) {\r\n mceIds[k].removeAttribute( 'id' );\r\n }\r\n }\r\n \r\n let wptbActions = innerElements[j].querySelectorAll( '.wptb-actions' );\r\n let wptbActionsLength = wptbActions.length;\r\n while ( wptbActionsLength > 0 ) {\r\n if( wptbActions[0] && wptbActions[0].parentNode ) {\r\n wptbActions[0].parentNode.removeChild( wptbActions[0] );\r\n wptbActionsLength--;\r\n } else {\r\n break;\r\n }\r\n \r\n } \r\n \r\n let dataMceBogus = innerElements[j].querySelectorAll( '[data-mce-bogus]' );\r\n if( dataMceBogus.length > 0 ) {\r\n dataMceBogus = [...dataMceBogus];\r\n for( let k = 0; k < dataMceBogus.length; k++ ) {\r\n if( dataMceBogus[k] && dataMceBogus[k].parentNode ) {\r\n dataMceBogus[k].parentNode.removeChild( dataMceBogus[k] );\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n // TODO dataTitleColumnSet\r\n // if( tds[i].hasAttribute( 'data-wptb-title-column' ) ) {\r\n // let columnNameDivContainer = document.createElement( 'div' ),\r\n // columnNameDiv = document.createElement( 'div' );\r\n // columnNameDivContainer.classList.add( 'wptb-column-title-mobile-container' );\r\n // columnNameDiv.classList.add( 'wptb-column-title-mobile' );\r\n // columnNameDiv.dataset.wptbTitleColumn = tds[i].dataset.wptbTitleColumn;\r\n // columnNameDiv.setAttribute( 'style', 'font-size:' + tds[i].dataset.wptbTitleColumnFontSize + '; \\n\\\r\n // color:' + tds[i].dataset.wptbTitleColumnColor + '; background-color:' + tds[i].dataset.wptbTitleBackgroundColor + '; text-align:' + tds[i].dataset.wptbTitleAlign + ';' );\r\n // columnNameDiv.style.padding = tds[i].style.padding;\r\n // if( tds[i].children.length == 0 ) {\r\n // tds[i].classList.add( 'wptb-column-title-mobile-not-elements' );\r\n // }\r\n // columnNameDivContainer.appendChild( columnNameDiv );\r\n // tds[i].insertBefore( columnNameDivContainer, tds[i].firstChild );\r\n // }\r\n }\r\n }\r\n \r\n return code;\r\n }\r\n}","var array = [], WPTB_Table = function ( columns, rows, wptb_preview_table ) {\r\n\r\n /* The members of the class */\r\n var settings = document.getElementsByClassName('wptb-settings-items'),\r\n wptbTableSetup = document.getElementsByClassName(\"wptb-table-setup\")[0],\r\n table, row, cell,\r\n maxAmountOfCells,\r\n maxAmountOfRows;\r\n\r\n //HERE ARE THE PRIVATE FUNCTIONS\r\n /*\r\n * This function toggles buttons visibility in cell edit mode\r\n * (according to the amount of currently selected cells), and\r\n * highlights visually the clicked cell if it is not highlighted, or\r\n * removes highlight if clicked cell is already highlighted. \r\n * It too toggles the bits of our abstract representation.\r\n * @param Event this is the event instance of the click performed over a cell.\r\n */\r\n var mark = function ( event ) {\r\n let thisElem = event.currentTarget;\r\n let rs = thisElem.rowSpan,\r\n cs = thisElem.colSpan,\r\n noCells = document.getElementsByClassName('wptb-no-cell-action'),\r\n singleCells = document.getElementsByClassName('wptb-single-action'),\r\n multipleCells = document.getElementsByClassName('wptb-multiple-select-action'),\r\n cellSettings = document.getElementById( 'wptb-left-scroll-panel-cell-settings' ),\r\n position = getCoords(thisElem),\r\n row = position[0],\r\n column = position[1];\r\n if ( ! document.select.isActivated() ) {\r\n return;\r\n }\r\n if (thisElem.className.match(/wptb-highlighted/)) {\r\n thisElem.classList.remove('wptb-highlighted');\r\n for (var i = 0; i < rs; i++) {\r\n for (var j = 0; j < cs; j++) {\r\n array[row + i][column + j] = 0;\r\n }\r\n }\r\n } else {\r\n thisElem.classList.add('wptb-highlighted');\r\n for (var i = 0; i < rs; i++) {\r\n for (var j = 0; j < cs; j++) {\r\n array[row + i][column + j] = 1;\r\n }\r\n }\r\n }\r\n\r\n let cellHighlighted = document.getElementsByClassName('wptb-highlighted'),\r\n markedCells = cellHighlighted.length;\r\n if (markedCells === 0) {\r\n for (var i = 0; i < multipleCells.length; i++) {\r\n multipleCells[i].classList.remove('visible');\r\n multipleCells[i].setAttribute('disabled', 'disabled');\r\n }\r\n for (var i = 0; i < noCells.length; i++) {\r\n noCells[i].classList.add('visible');\r\n noCells[i].removeAttribute('disabled');\r\n }\r\n for (var i = 0; i < singleCells.length; i++) {\r\n singleCells[i].classList.remove('visible');\r\n singleCells[i].setAttribute('disabled', 'disabled');\r\n }\r\n cellSettings.classList.remove( 'visible' );\r\n } else if (markedCells === 1) {\r\n for (var i = 0; i < multipleCells.length; i++) {\r\n multipleCells[i].classList.remove('visible');\r\n multipleCells[i].setAttribute('disabled', 'disabled');\r\n }\r\n for (var i = 0; i < noCells.length; i++) {\r\n noCells[i].classList.remove('visible');\r\n noCells[i].setAttribute('disabled', 'disabled');\r\n }\r\n for (var i = 0; i < singleCells.length; i++) {\r\n singleCells[i].classList.add('visible');\r\n singleCells[i].removeAttribute('disabled');\r\n }\r\n\r\n cellHighlighted = cellHighlighted[0];\r\n WPTB_Helper.elementOptionsSet( 'table_cell_setting', cellHighlighted );\r\n\r\n let infArr = cellHighlighted.className.match( /wptb-element-((.+-)\\d+)/i );\r\n\r\n const controlElemIds = ['cellWidth', 'cellHeight'];\r\n\r\n controlElemIds.map(s => {\r\n let elementControlSizeUnicClass = `wptb-el-${infArr[1]}-${s}`,\r\n elementControlSizeFixedUnicClass = `wptb-el-${infArr[1]}-${s}Fixed`;\r\n if(s === 'cellWidth' || s === 'cellHeight') {\r\n let sizeName = '',\r\n getSizeFunctionName = '';\r\n if(s === 'cellWidth') {\r\n sizeName = 'width';\r\n getSizeFunctionName = 'getColumnWidth';\r\n } else if(s === 'cellHeight') {\r\n sizeName = 'height';\r\n getSizeFunctionName = 'getRowHeight';\r\n }\r\n let size = cellHighlighted.style[sizeName],\r\n cellSizeInputs = document.querySelectorAll( '.' + elementControlSizeUnicClass ),\r\n cellSizeFixedInput = document.querySelector( '.' + elementControlSizeFixedUnicClass );\r\n cellSizeInputs = [...cellSizeInputs];\r\n\r\n if(!size && !cellHighlighted.dataset[`wptbFixed${sizeName.toUpperCase()}`]) {\r\n size = WPTB_Helper[getSizeFunctionName](table, cellHighlighted);\r\n cellSizeInputs.map(s => {\r\n s.value = size;\r\n });\r\n\r\n cellSizeFixedInput.checked = false;\r\n } else {\r\n cellSizeInputs.map(s => {\r\n if( size ) {\r\n s.value = parseFloat( size, 10 );\r\n } else if( cellHighlighted.dataset[`wptbFixed${sizeName.toUpperCase()}`] ) {\r\n s.value = cellHighlighted.dataset[`wptbFixed${sizeName.toUpperCase()}`];\r\n }\r\n });\r\n\r\n cellSizeFixedInput.checked = true;\r\n }\r\n }\r\n });\r\n\r\n cellSettings.classList.add( 'visible' );\r\n } else {\r\n for (var i = 0; i < multipleCells.length; i++) {\r\n if (table.isSquare(array)) {\r\n multipleCells[i].classList.add('visible');\r\n multipleCells[i].removeAttribute('disabled');\r\n } else {\r\n multipleCells[i].classList.remove('visible');\r\n multipleCells[i].setAttribute('disabled', 'disabled');\r\n }\r\n }\r\n for (var i = 0; i < noCells.length; i++) {\r\n noCells[i].classList.remove('visible');\r\n noCells[i].setAttribute('disabled', 'disabled');\r\n }\r\n for (var i = 0; i < singleCells.length; i++) {\r\n singleCells[i].classList.remove('visible');\r\n singleCells[i].setAttribute('disabled', 'disabled');\r\n }\r\n cellSettings.classList.remove( 'visible' );\r\n }\r\n\r\n let details = {countMarkedCells:markedCells};\r\n WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/cell/mark', thisElem, details);\r\n };\r\n\r\n /* \r\n * This function fills an array with 1's according to the actual design\r\n * of HTML table.\r\n * @returns an array of arrays containing an abstract representation\r\n * of HTML table.\r\n * @deprecated\r\n * */\r\n\r\n var realTimeArray = function () {\r\n var carried = [], tds, cols, matriz = [];\r\n\r\n for (var i = 0; i < maxAmountOfCells; i++) {\r\n carried[i] = 0;\r\n }\r\n\r\n for (var i = 0; i < table.rows.length; i++) {\r\n cols = [];\r\n\r\n var tds = table.rows[i].getElementsByTagName('td');\r\n\r\n for (items = 0; items < tds.length; items++) {\r\n\r\n for (var k = 0; k < tds[items].colSpan; k++) {\r\n cols.push(1);\r\n }\r\n\r\n if (tds[items].rowSpan > 1) {\r\n for (var k = 0; k < tds[items].colSpan; k++) {\r\n carried[items + k] = {\r\n justAssigned: true,\r\n amount: tds[items].rowSpan\r\n };\r\n }\r\n }\r\n }\r\n\r\n for (var k = 0; k < maxAmountOfCells; k++) {\r\n if (typeof carried[k] == 'object' && carried[k].amount > 0) {\r\n carried[k].amount--;\r\n if (carried[k].justAssigned) {\r\n carried[k].justAssigned = false;\r\n } else {\r\n cols.push(1);\r\n }\r\n }\r\n }\r\n\r\n matriz.push(cols);\r\n\r\n }\r\n return matriz;\r\n };\r\n\r\n /*\r\n * This function gets the number and position of cell spaces in current row that are occuped \r\n * by upper rowspanned cells.\r\n * @param number the number of row where we wish to calculate the carried rowspans up to.\r\n * @return an array with the remaining rowspans in each column.\r\n */\r\n var carriedRowspans = function (row) {\r\n var carried = [], tds, cols;\r\n\r\n for (var i = 0; i < maxAmountOfCells; i++) {\r\n carried[i] = 0;\r\n }\r\n\r\n if (row == -1) {\r\n return carried;\r\n }\r\n\r\n for (var i = 0; i <= row; i++) {\r\n cellsBuffer = table.rows[i].getElementsByTagName('td');\r\n cellPointer = 0;\r\n\r\n for (var xPosition = 0; xPosition < maxAmountOfCells; xPosition += stepsToMove) {\r\n stepsToMove = 1;\r\n\r\n if (carried[xPosition]) {\r\n carried[xPosition]--;\r\n } else {\r\n celda = cellsBuffer[cellPointer++];\r\n if (celda.rowSpan > 1) {\r\n for (k = 0; k < celda.colSpan; k++) {\r\n carried[xPosition + k] = celda.rowSpan - 1;\r\n }\r\n stepsToMove = celda.colSpan;\r\n } else if (celda.colSpan > 1) {\r\n stepsToMove = celda.colSpan;\r\n }\r\n }\r\n }\r\n\r\n }\r\n return carried;\r\n };\r\n\r\n /*\r\n * A helpful function for showing\r\n * the abstract table in console.\r\n * @param Array our abstract table.\r\n */\r\n var drawTable = function (a) {\r\n var string = 'DRAWING TABLE:\\n';\r\n for (var i = 0; i < a.length; i++) {\r\n\r\n for (var j = 0; j < a[i].length; j++) {\r\n string += ' ' + a[i][j];\r\n }\r\n string += '\\n';\r\n }\r\n table.isSquare(a);\r\n };\r\n\r\n /*\r\n * It resets all the bits of our abstract representation\r\n * to 0 and removes the highlighting class of all cells.\r\n */\r\n\r\n var undoSelect = function () {\r\n let noCells = document.getElementsByClassName('wptb-no-cell-action'),\r\n singleCells = document.getElementsByClassName('wptb-single-action'),\r\n multipleCells = document.getElementsByClassName('wptb-multiple-select-action'),\r\n cellSettings = document.getElementById( 'wptb-left-scroll-panel-cell-settings' ),\r\n tds = table.getElementsByClassName('wptb-highlighted');\r\n while (tds.length) {\r\n tds[0].classList.remove('wptb-highlighted');\r\n }\r\n cellSettings.classList.remove( 'visible' );\r\n for (let i = 0; i < array.length; i++) {\r\n for (let j = 0; j < array[i].length; j++) {\r\n array[i][j] = 0;\r\n }\r\n }\r\n for (let i = 0; i < multipleCells.length; i++) {\r\n multipleCells[i].classList.remove('visible');\r\n multipleCells[i].setAttribute('disabled', 'disabled');\r\n }\r\n for (let i = 0; i < noCells.length; i++) {\r\n noCells[i].classList.add('visible');\r\n noCells[i].removeAttribute('disabled');\r\n }\r\n for (let i = 0; i < singleCells.length; i++) {\r\n singleCells[i].classList.remove('visible');\r\n singleCells[i].setAttribute('disabled', 'disabled');\r\n }\r\n\r\n WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/undo-select/active', table);\r\n };\r\n\r\n /*\r\n * This fills the abstract representation of our table with \r\n * zeros, at the start. the max amount of cells is the greatest sum\r\n * of all colspans for row.\r\n */\r\n\r\n var fillTableArray = function () {\r\n var colspansSums = [], a = [];\r\n\r\n //calculate max amount of cells inside a row\r\n for (var i = 0; i < table.rows.length; i++) {\r\n var cells = table.rows[i].getElementsByTagName('td'),\r\n colspanSumInRow = 0;\r\n for (var j = 0; j < cells.length; j++) {\r\n colspanSumInRow += cells[j].colSpan;\r\n }\r\n colspansSums.push(colspanSumInRow);\r\n }\r\n\r\n maxAmountOfCells = Math.max.apply(null, colspansSums);\r\n //calculate max rows\r\n var maxAmountOfRows = table.rows.length;\r\n\r\n // fill with zeros from both values\r\n for (var i = 0; i < maxAmountOfRows; i++) {\r\n a[i] = [];\r\n for (var j = 0; j < maxAmountOfCells; j++) {\r\n a[i].push(0);\r\n }\r\n }\r\n drawTable(a);\r\n return a;\r\n };\r\n\r\n /*\r\n * This function gets the sum of all colspans in a row.\r\n * @param number the number of row to be used as reference.\r\n */\r\n var getActualPointsInRow = function (row) {\r\n var tds = table.rows[row].getElementsByTagName('td'),\r\n points = 0;\r\n for (var i = 0; i < tds.length; i++) {\r\n points += tds[i].colSpan;\r\n }\r\n return points;\r\n }\r\n\r\n /*\r\n * This function gets us the exact coordinates of\r\n * an exact cell, in a more reliable way than xIndex and yIndex,\r\n * these last ones were meant to be used for getting the cell trough them.\r\n * @param DOMElement the cell to get the coordinates.\r\n */\r\n var getCoords = function (search) {\r\n var skipInCols = [], cell;\r\n\r\n for (var i = 0; i < maxAmountOfCells; i++) {\r\n skipInCols[i] = 0;\r\n }\r\n\r\n for (var i = 0; i < table.rows.length; i++) {\r\n var cellsBuffer = table.rows[i].getElementsByTagName('td');\r\n cellPointer = 0;\r\n for (var xPosition = 0; xPosition < maxAmountOfCells; xPosition += stepsToMove) {\r\n stepsToMove = 1;\r\n\r\n if (skipInCols[xPosition]) {\r\n skipInCols[xPosition]--;\r\n } else {\r\n var td = cellsBuffer[cellPointer++];\r\n if (td == search) {\r\n return [i, xPosition];\r\n }\r\n if (td.rowSpan > 1) {\r\n for ( let k = 0; k < td.colSpan; k++ ) {\r\n skipInCols[xPosition + k] = td.rowSpan - 1;\r\n }\r\n stepsToMove = td.colSpan;\r\n } else if (td.colSpan > 1) {\r\n stepsToMove = td.colSpan;\r\n }\r\n }\r\n }\r\n }\r\n };\r\n\r\n jQuery('#wptb-table-border-color').val('');\r\n jQuery('#wptb-table-padding-number,#wptb-table-padding-slider').val('15');\r\n\r\n if ( columns || rows ) {\r\n //END OF PRIVATE FUNCTIONS\r\n for (var i = 0; i < settings.length; i++) {\r\n if (settings[i].id !== 'wptb-apply-inner-border') {\r\n settings[i].classList.add('visible');\r\n }\r\n }\r\n\r\n //Create a HTML Table element.\r\n table = document.createElement( 'table' );\r\n table.classList.add( 'wptb-preview-table', 'wptb-element-main-table_setting-startedid-0' );\r\n table.style.border = '0px solid';\r\n table.dataset.reconstraction = 1;\r\n //table.dataset.wptbAdaptiveTable = 1;\r\n //Add the data rows.\r\n for (var i = 0; i < rows; i++) {\r\n\r\n row = table.insertRow(-1);\r\n row.classList.add( 'wptb-row' );\r\n\r\n for (var j = 0; j < columns; j++) {\r\n cell = new WPTB_Cell(mark);\r\n cell.setCoords(i, j);\r\n cell.getDOMElement().style.borderWidth = '1px';\r\n row.appendChild(cell.getDOMElement());\r\n }\r\n }\r\n } else {\r\n if( ! wptb_preview_table ) wptb_preview_table = document.querySelector( '.wptb-preview-table' );\r\n\r\n if ( wptb_preview_table ) {\r\n table = wptb_preview_table;\r\n\r\n let cells = table.getElementsByTagName('td');\r\n\r\n if (cells.length > 0) {\r\n for (let i = 0; i < cells.length; i++) {\r\n WPTB_Cell(mark, cells[i]);\r\n }\r\n }\r\n } else {\r\n return;\r\n }\r\n }\r\n\r\n /**\r\n * this method run \"mark\" method of WPTB_Table object\r\n * @param event\r\n */\r\n table.mark = (event) => {\r\n mark(event);\r\n }\r\n\r\n /**\r\n * this method run \"undoSelect\" method of WPTB_Table object\r\n * @param event\r\n */\r\n table.undoSelect = () => {\r\n undoSelect();\r\n }\r\n\r\n /**\r\n * method for set value for maxAmountOfCells\r\n * @param value\r\n */\r\n table.setMaxAmountOfCells = (value) => {\r\n maxAmountOfCells = value;\r\n }\r\n\r\n /**\r\n * this method return maxAmountOfCells value\r\n * @returns {*}\r\n */\r\n table.getMaxAmountOfCells = () => {\r\n return maxAmountOfCells;\r\n }\r\n\r\n /**\r\n * this method run \"fillTableArray\" method of WPTB_Table object\r\n * @returns {[]}\r\n */\r\n table.fillTableArray = () => {\r\n return fillTableArray();\r\n }\r\n /*\r\n * For assigning to each cell xIndex and y Index attributes,\r\n * these are the column number and row number of cell in table. \r\n */\r\n\r\n table.recalculateIndexes = function () {\r\n WPTB_Helper.recalculateIndexes( this );\r\n }\r\n \r\n table.addColumnWidth = function( value, cleaner ) {\r\n let highlighted = table.getElementsByClassName( 'wptb-highlighted' );\r\n if( highlighted.length > 0 ) {\r\n for( let k = 0; k < highlighted.length; k++ ) {\r\n let dataXIndex = highlighted[k].dataset.xIndex;\r\n if( dataXIndex ) {\r\n function tableTdsFor( dataXIndex, colspan ) {\r\n let tableRows = table.rows;\r\n let widthIsSet = false;\r\n let arrayTdsFromPreviousRow = [];\r\n for( let i = 0; i < tableRows.length; i++ ) {\r\n let row = tableRows[i];\r\n let tds = row.children;\r\n for( let j = 0; j < tds.length; j++ ) {\r\n let td = tds[j];\r\n if( td.dataset.xIndex == dataXIndex ) {\r\n if( value ) {\r\n if( td.colSpan == colspan ) {\r\n td.style.width = value + 'px';\r\n td.removeAttribute( 'data-wptb-fixed-width' );\r\n widthIsSet = true;\r\n } else {\r\n td.style.width = null;\r\n td.dataset.wptbFixedWidth = value;\r\n if( i == tableRows.length - 1 && ! widthIsSet ) {\r\n tableTdsFor( dataXIndex, colspan + 1 );\r\n }\r\n }\r\n } else if( cleaner ) {\r\n td.style.width = null;\r\n td.removeAttribute( 'data-wptb-fixed-width' );\r\n } else {\r\n if( td.dataset.wptbFixedWidth ) {\r\n if( td.colSpan == colspan ) {\r\n td.style.width = td.dataset.wptbFixedWidth + 'px';\r\n td.removeAttribute( 'data-wptb-fixed-width' );\r\n } \r\n } else if( td.style.width ) {\r\n for( let z = 0; z < arrayTdsFromPreviousRow.length; z++ ) {\r\n arrayTdsFromPreviousRow[z].style.width = td.style.width;\r\n }\r\n arrayTdsFromPreviousRow = [];\r\n } else {\r\n arrayTdsFromPreviousRow.push( td );\r\n }\r\n }\r\n break;\r\n } \r\n }\r\n }\r\n }\r\n \r\n tableTdsFor( dataXIndex, 1 );\r\n }\r\n }\r\n \r\n table.tdDefaultWidth();\r\n\r\n WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/table-changed/after', table);\r\n }\r\n }\r\n \r\n table.tdDefaultWidth = function() {\r\n let rows = table.rows;\r\n \r\n let tableTdsSumMaxWidth = 0;\r\n let tableTdsSumMaxWidthFixed = 0;\r\n let tableTdsSumMaxWidthAuto = 0;\r\n \r\n let wptbTableSetup = document.getElementsByClassName( 'wptb-table-setup' )[0];\r\n let wptbTableSetupWidth = wptbTableSetup.offsetWidth;\r\n \r\n let arrayCellsWidthFixedHelper = [];\r\n let arrayCellsWidthAutoHelper = [];\r\n let tdPaddingCommon = 0;\r\n let tableTdBorderCommonWidth = 0;\r\n let cssForTdsWidthAuto = '';\r\n \r\n \r\n let tableFullStyleObj = window.getComputedStyle( table, null );\r\n let borderLeftWidth = tableFullStyleObj.getPropertyValue( 'border-left-width' );\r\n let borderRightWidth = tableFullStyleObj.getPropertyValue( 'border-right-width' );\r\n let tableBorderCommon = parseFloat( borderLeftWidth, 10 ) + parseFloat( borderRightWidth, 10 );\r\n \r\n for( let i = 0; i < rows.length; i++ ) {\r\n let tds = rows[i].children;\r\n for( let j = 0; j < tds.length; j++ ) {\r\n let td = tds[j];\r\n \r\n if( ! arrayCellsWidthFixedHelper[parseFloat( td.dataset.xIndex )] && ! arrayCellsWidthAutoHelper[parseFloat( td.dataset.xIndex )] ) {\r\n if( td.style.width ) {\r\n arrayCellsWidthFixedHelper[parseFloat( td.dataset.xIndex )] = parseFloat( td.style.width );\r\n td.removeAttribute( 'data-wptb-css-td-auto-width' );\r\n } else {\r\n if( ! td.dataset.wptbFixedWidth ) {\r\n arrayCellsWidthAutoHelper[parseFloat( td.dataset.xIndex )] = table.dataset.wptbTdWidthAuto ? parseFloat( table.dataset.wptbTdWidthAuto, 10 ) : 100;\r\n td.dataset.wptbCssTdAutoWidth = true;\r\n }\r\n }\r\n \r\n if( window.getComputedStyle( td, null ) ) {\r\n let tdStyleObj = window.getComputedStyle( td, null );\r\n let tdPaddingLeft = tdStyleObj.getPropertyValue( 'padding-left' );\r\n let tdPaddingRight = tdStyleObj.getPropertyValue( 'padding-right' );\r\n tdPaddingCommon = parseFloat( tdPaddingLeft, 10 ) + parseFloat( tdPaddingRight, 10 );\r\n\r\n let tableTdBorderLeftWidth = tdStyleObj.getPropertyValue( 'border-left-width' );\r\n let tableTdBorderRightWidth = tdStyleObj.getPropertyValue( 'border-right-width' );\r\n tableTdBorderCommonWidth = parseFloat( tableTdBorderLeftWidth, 10 ) + parseFloat( tableTdBorderRightWidth, 10 );\r\n tableTdBorderCommonWidth = tableTdBorderCommonWidth / 2;\r\n \r\n if( arrayCellsWidthFixedHelper[parseFloat( td.dataset.xIndex )] ) {\r\n arrayCellsWidthFixedHelper[parseFloat( td.dataset.xIndex )] += tdPaddingCommon;\r\n arrayCellsWidthFixedHelper[parseFloat( td.dataset.xIndex )] += tableTdBorderCommonWidth;\r\n \r\n if( j == 0 && ( tableBorderCommon / 2 ) <= parseFloat( tableTdBorderLeftWidth, 10 ) ) {\r\n arrayCellsWidthFixedHelper[parseFloat( td.dataset.xIndex )] += parseFloat( tableTdBorderLeftWidth, 10 ) / 2;\r\n } else if( j == 0 && ( tableBorderCommon / 2 ) > parseFloat( tableTdBorderLeftWidth, 10 ) ) {\r\n arrayCellsWidthFixedHelper[parseFloat( td.dataset.xIndex )] += ( ( tableBorderCommon / 2 ) - ( parseFloat( tableTdBorderRightWidth, 10 ) / 2 ) );\r\n }\r\n\r\n if( j == tds.length - 1 && ( tableBorderCommon / 2 ) <= parseFloat( tableTdBorderRightWidth, 10 ) ) {\r\n arrayCellsWidthFixedHelper[parseFloat( td.dataset.xIndex )] += parseFloat( tableTdBorderRightWidth, 10 ) / 2;\r\n } else if( j == tds.length - 1 && ( tableBorderCommon / 2 ) > parseFloat( tableTdBorderRightWidth, 10 ) ) {\r\n arrayCellsWidthFixedHelper[parseFloat( td.dataset.xIndex )] += ( ( tableBorderCommon / 2 ) - ( parseFloat( tableTdBorderRightWidth, 10 ) / 2 ) );\r\n }\r\n } else if( arrayCellsWidthAutoHelper[parseFloat( td.dataset.xIndex )] ) {\r\n arrayCellsWidthAutoHelper[parseFloat( td.dataset.xIndex )] += tdPaddingCommon;\r\n arrayCellsWidthAutoHelper[parseFloat( td.dataset.xIndex )] += tableTdBorderCommonWidth;\r\n \r\n if( j == 0 && ( tableBorderCommon / 2 ) <= parseFloat( tableTdBorderLeftWidth, 10 ) ) {\r\n arrayCellsWidthAutoHelper[parseFloat( td.dataset.xIndex )] += parseFloat( tableTdBorderLeftWidth, 10 ) / 2;\r\n } else if( j == 0 && ( tableBorderCommon / 2 ) > parseFloat( tableTdBorderLeftWidth, 10 ) ) {\r\n arrayCellsWidthAutoHelper[parseFloat( td.dataset.xIndex )] += ( ( tableBorderCommon / 2 ) - ( parseFloat( tableTdBorderLeftWidth, 10 ) / 2 ) );\r\n }\r\n\r\n if( j == tds.length - 1 && ( tableBorderCommon / 2 ) <= parseFloat( tableTdBorderRightWidth, 10 ) ) {\r\n arrayCellsWidthAutoHelper[parseFloat( td.dataset.xIndex )] += parseFloat( tableTdBorderRightWidth, 10 ) / 2;\r\n } else if( j == tds.length - 1 && ( tableBorderCommon / 2 ) > parseFloat( tableTdBorderRightWidth, 10 ) ) {\r\n arrayCellsWidthAutoHelper[parseFloat( td.dataset.xIndex )] += ( ( tableBorderCommon / 2 ) - ( parseFloat( tableTdBorderLeftWidth, 10 ) / 2 ) );\r\n }\r\n }\r\n }\r\n } else if( arrayCellsWidthAutoHelper[parseFloat( td.dataset.xIndex )] ) {\r\n if( ! td.dataset.wptbFixedWidth ) {\r\n td.dataset.wptbCssTdAutoWidth = true;\r\n }\r\n } else if( arrayCellsWidthFixedHelper[parseFloat( td.dataset.xIndex )] ) {\r\n td.removeAttribute( 'data-wptb-css-td-auto-width' );\r\n }\r\n }\r\n }\r\n \r\n for( let i = 0; i < arrayCellsWidthFixedHelper.length; i++ ) {\r\n if( arrayCellsWidthFixedHelper[i] ) {\r\n tableTdsSumMaxWidthFixed += arrayCellsWidthFixedHelper[i];\r\n }\r\n }\r\n \r\n let CellsWidthAutoCount = 0;\r\n for( let i = 0; i < arrayCellsWidthAutoHelper.length; i++ ) {\r\n if( arrayCellsWidthAutoHelper[i] ) {\r\n tableTdsSumMaxWidthAuto += arrayCellsWidthAutoHelper[i];\r\n CellsWidthAutoCount++;\r\n }\r\n }\r\n \r\n tableTdsSumMaxWidth = tableTdsSumMaxWidthFixed + tableTdsSumMaxWidthAuto;\r\n \r\n table.dataset.wptbTableTdsSumMaxWidth = tableTdsSumMaxWidth;\r\n if( CellsWidthAutoCount ) {\r\n table.dataset.wptbCellsWidthAutoCount = CellsWidthAutoCount;\r\n if( table.mergingСellsHorizontally ) {\r\n table.dataset.wptbFixedWidthSize = tableTdsSumMaxWidthFixed;\r\n } else {\r\n table.removeAttribute( 'data-wptb-fixed-width-size' );\r\n }\r\n } else {\r\n table.removeAttribute( 'data-wptb-fixed-width-size' );\r\n table.removeAttribute( 'data-wptb-cells-width-auto-count' );\r\n }\r\n \r\n let styleElementCreate = false;\r\n let tableTdWidthAuto;\r\n if( tableTdsSumMaxWidth < wptbTableSetupWidth ) {\r\n if( CellsWidthAutoCount ) {\r\n table.style.minWidth = '100%';\r\n if( table.mergingСellsHorizontally ) {\r\n table.style.width = 'auto';\r\n let tableTdsWidthAutoCommon = wptbTableSetupWidth - tableTdsSumMaxWidthFixed;\r\n tableTdWidthAuto = tableTdsWidthAutoCommon / CellsWidthAutoCount;\r\n tableTdWidthAuto = tableTdWidthAuto - tdPaddingCommon - tableTdBorderCommonWidth;\r\n styleElementCreate = true;\r\n } else {\r\n table.style.width = '100%';\r\n }\r\n } else {\r\n table.style.width = 'auto';\r\n table.style.minWidth = null;\r\n table.style.maxWidth = null;\r\n }\r\n } else {\r\n table.style.maxWidth = null;\r\n table.style.minWidth = tableTdsSumMaxWidth + 'px';\r\n table.style.width = 'auto';\r\n tableTdWidthAuto = table.dataset.wptbTdWidthAuto ? table.dataset.wptbTdWidthAuto : '100';\r\n styleElementCreate = true;\r\n }\r\n \r\n let head = document.head;\r\n if( head ) {\r\n let cssForTdsWidthAutoOld = head.querySelector( 'style[data-wptb-td-auto-width=\"true\"]' );\r\n if( cssForTdsWidthAutoOld ) {\r\n head.removeChild( cssForTdsWidthAutoOld );\r\n }\r\n }\r\n \r\n if( styleElementCreate ) {\r\n cssForTdsWidthAuto = document.createElement( 'style' );\r\n cssForTdsWidthAuto.setAttribute( 'data-wptb-td-auto-width', true );\r\n cssForTdsWidthAuto.innerHTML = '[data-wptb-css-td-auto-width=true]{width:' + tableTdWidthAuto + 'px}';\r\n if( head ) {\r\n head.appendChild( cssForTdsWidthAuto );\r\n }\r\n }\r\n \r\n if( table.dataset.wptbTableAlignment ) {\r\n let wptbTableAlignment = table.dataset.wptbTableAlignment;\r\n\r\n let wptbTableSetupWidth = wptbTableSetup.offsetWidth;\r\n if( wptbTableSetupWidth < table.offsetWidth ) {\r\n table.style.float = null;\r\n } else {\r\n if( wptbTableAlignment == 'center' ) {\r\n table.style.float = null;\r\n } else {\r\n table.style.float = wptbTableAlignment;\r\n }\r\n }\r\n\r\n if( wptbTableAlignment == 'center' ) {\r\n wptbTableSetup.style.float = null;\r\n } else {\r\n wptbTableSetup.style.float = wptbTableAlignment;\r\n }\r\n \r\n if( tableTdWidthAuto && table.dataset.wptbTableContainerMaxWidth && table.offsetWidth < table.dataset.wptbTableContainerMaxWidth ) {\r\n table.style.width = '100%';\r\n }\r\n } else {\r\n table.style.float = null;\r\n }\r\n }\r\n \r\n table.addRowHeight = function( value, cleaner ) {\r\n let highlighted = table.getElementsByClassName( 'wptb-highlighted' );\r\n if( highlighted.length > 0 ) {\r\n for( let k = 0; k < highlighted.length; k++ ) {\r\n let dataYIndex = highlighted[k].dataset.yIndex;\r\n if( dataYIndex ) {\r\n function tableTdsFor( dataYIndex, rowspan ) {\r\n let tableRows = table.rows;\r\n let heightIsSet = false;\r\n let arrayTdsPrevious = [];\r\n for( let i = 0; i < tableRows.length; i++ ) {\r\n let row = tableRows[i];\r\n let tds = row.children;\r\n for( let j = 0; j < tds.length; j++ ) {\r\n let td = tds[j];\r\n if( td.dataset.yIndex == dataYIndex ) {\r\n if( value ) {\r\n if( td.rowSpan == rowspan ) {\r\n td.style.height = value + 'px';\r\n td.removeAttribute( 'data-wptb-fixed-heidht' );\r\n heightIsSet = true;\r\n continue;\r\n } else {\r\n td.style.height = null;\r\n td.dataset.wptbFixedHeight = value;\r\n if( j == tds.length - 1 && ! heightIsSet ) {\r\n tableTdsFor( dataYIndex , rowspan + 1 );\r\n }\r\n }\r\n } else if( cleaner ) {\r\n td.style.height = null;\r\n td.removeAttribute( 'data-wptb-fixed-heidht' );\r\n } else {\r\n if( td.dataset.wptbFixedHeight ) {\r\n if( td.rowSpan = rowspan ) {\r\n td.style.height = td.dataset.wptbFixedHeight + 'px';\r\n td.removeAttribute( 'data-wptb-fixed-width' );\r\n }\r\n } else if( td.style.height ) {\r\n for( let z = 0; z < arrayTdsPrevious.length; z++ ) {\r\n arrayTdsPrevious[z].style.height = td.style.height;\r\n }\r\n arrayTdsPrevious = [];\r\n } else {\r\n arrayTdsPrevious.push( td );\r\n }\r\n }\r\n } \r\n }\r\n }\r\n }\r\n \r\n tableTdsFor( dataYIndex, 1 );\r\n }\r\n }\r\n\r\n WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/table-changed/after', table);\r\n }\r\n }\r\n \r\n table.reconstraction = function() {\r\n let tds = table.getElementsByTagName( 'td' );\r\n table.mergingСellsHorizontally = false;\r\n table.mergingCellsVertically = false;\r\n table.dataset.reconstraction = 1;\r\n let forBreak = 0;\r\n for( let i = 0; i < tds.length; i++ ) {\r\n if( tds[i].colSpan > 1 ) {\r\n table.dataset.reconstraction = 0;\r\n table.mergingСellsHorizontally = true;\r\n forBreak++;\r\n }\r\n \r\n if( tds[i].rowSpan > 1 ) {\r\n table.dataset.reconstraction = 0;\r\n table.mergingCellsVertically = true;\r\n forBreak++;\r\n }\r\n \r\n if( forBreak == 2 ) {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n /*\r\n * As simple as it is: adds a column to the end of table.\r\n */\r\n table.addColumnEnd = function () {\r\n let td,\r\n currentTable = document.getElementsByClassName('wptb-preview-table'),\r\n currentTableTd,\r\n currentTdStyle;\r\n if (currentTable.length > 0) {\r\n currentTableTd = currentTable[0].querySelector('td');\r\n }\r\n\r\n if (currentTableTd) {\r\n currentTdStyle = currentTableTd.getAttribute('style');\r\n }\r\n \r\n for (var i = 0; i < table.rows.length; i++) {\r\n td = new WPTB_Cell(mark);\r\n \r\n if (currentTdStyle) {\r\n td.getDOMElement().setAttribute('style', currentTdStyle);\r\n td.getDOMElement().style.width = null;\r\n td.getDOMElement().style.height = null;\r\n }\r\n \r\n table.rows[i].appendChild(td.getDOMElement());\r\n array[i].push(0);\r\n }\r\n \r\n maxAmountOfCells++;\r\n table.recalculateIndexes();\r\n table.tdDefaultWidth();\r\n table.addRowHeight();\r\n WPTB_Helper.dataTitleColumnSet( table );\r\n undoSelect();\r\n\r\n WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/table-changed/after', table);\r\n\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n };\r\n\r\n /*\r\n * As simple as it looks: adds a column to the start of table.\r\n */\r\n\r\n table.addColumnStart = function () {\r\n let td,\r\n firstCell,\r\n currentTable = document.getElementsByClassName('wptb-preview-table'),\r\n currentTableTd,\r\n currentTdStyle;\r\n if ( currentTable.length > 0 ) {\r\n currentTableTd = currentTable[0].querySelector('td');\r\n }\r\n\r\n if ( currentTableTd ) {\r\n currentTdStyle = currentTableTd.getAttribute('style');\r\n }\r\n \r\n for (var i = 0; i < table.rows.length; i++) {\r\n td = new WPTB_Cell(mark);\r\n if (currentTdStyle) {\r\n td.getDOMElement().setAttribute('style', currentTdStyle);\r\n td.getDOMElement().style.width = null;\r\n td.getDOMElement().style.height = null;\r\n }\r\n firstCell = table.rows[i].getElementsByTagName('td')[0];\r\n if (firstCell) {\r\n table.rows[i].insertBefore(td.getDOMElement(), firstCell);\r\n } else {\r\n table.rows[i].appendChild(td.getDOMElement());\r\n }\r\n array[i].push(0);\r\n }\r\n\r\n maxAmountOfCells++;\r\n table.recalculateIndexes();\r\n table.tdDefaultWidth();\r\n table.addRowHeight();\r\n WPTB_Helper.dataTitleColumnSet( table );\r\n undoSelect();\r\n\r\n WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/table-changed/after', table);\r\n\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n };\r\n\r\n /*\r\n * Well, not so simple as previous functions.\r\n * It adds a column after a certain column of reference.\r\n * @param integer the column number to be used as reference.\r\n *\tIf empty, then the first highlighted cell is used as reference.\r\n */\r\n\r\n table.addColumnAfter = function (c_pos) {\r\n let rows = table.rows,\r\n cell,\r\n cellStyle,\r\n pos;\r\n\r\n if(c_pos != undefined && typeof c_pos === 'number') {\r\n pos = c_pos;\r\n cell = document.querySelector('[data-x-index=\"' + pos + '\"]');\r\n } else {\r\n cell = document.querySelector('.wptb-highlighted');\r\n pos = getCoords(cell)[1];\r\n }\r\n\r\n if(cell) {\r\n cellStyle = cell.getAttribute('style');\r\n\r\n if( maxAmountOfCells - pos - cell.colSpan + 1 == 1 ) {\r\n table.addColumnEnd();\r\n } else {\r\n for(let i = 0; i < rows.length; i++) {\r\n let tds = rows[i].children;\r\n for(let j = 0; j < tds.length; j++) {\r\n if(parseInt(tds[j].dataset.xIndex) <= pos) {\r\n if(parseInt(tds[j].dataset.xIndex) + tds[j].colSpan == pos + cell.colSpan) {\r\n let td = newTd(cellStyle);\r\n let nextSib = tds[j].nextSibling;\r\n if (nextSib) {\r\n rows[i].insertBefore(td.getDOMElement(), nextSib);\r\n } else {\r\n rows[i].appendChild(td.getDOMElement());\r\n }\r\n\r\n break;\r\n } else if(parseInt(tds[j].dataset.xIndex) + tds[j].colSpan > pos + cell.colSpan) {\r\n tds[j].colSpan++;\r\n if(tds[j].rowSpan > 1) i += tds[j].rowSpan - 1;\r\n break;\r\n }\r\n } else if(parseInt(tds[j].dataset.xIndex) > pos) {\r\n let td = newTd(cellStyle);\r\n rows[i].insertBefore(td.getDOMElement(), tds[j]);\r\n break;\r\n }\r\n }\r\n }\r\n\r\n function newTd(cellStyle) {\r\n let td = new WPTB_Cell(mark);\r\n if (cellStyle) {\r\n td.getDOMElement().setAttribute('style', cellStyle);\r\n td.getDOMElement().style.width = null;\r\n td.getDOMElement().style.height = null;\r\n }\r\n return td;\r\n }\r\n\r\n for (var i = 0; i < array.length; i++) {\r\n array[i].push(0);\r\n }\r\n maxAmountOfCells++;\r\n drawTable(array);\r\n table.recalculateIndexes();\r\n table.addColumnWidth();\r\n table.addRowHeight();\r\n WPTB_Helper.dataTitleColumnSet( table );\r\n undoSelect();\r\n\r\n WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/table-changed/after', table);\r\n\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n }\r\n }\r\n };\r\n\r\n /*\r\n * For preventing us to take a lot of time,\r\n * This is just calling the function addColumnAfter, but\r\n * using the previous column to current one as reference.\r\n * @see addColumnAfter\r\n */\r\n\r\n table.addColumnBefore = function () {\r\n var cell = document.querySelector('.wptb-highlighted'),\r\n pos = getCoords(cell)[1];\r\n\r\n if (pos === 0) {\r\n table.addColumnStart();\r\n } else {\r\n table.addColumnAfter(pos - 1);\r\n }\r\n };\r\n\r\n /*\r\n * Luckily, thisfunction is simple, \r\n * it just add a row to the end of table.\r\n */\r\n\r\n table.addRowToTheEnd = function () {\r\n let r = table.insertRow(-1),\r\n td,\r\n aux,\r\n currentTable = document.getElementsByClassName('wptb-preview-table');\r\n r.classList.add( 'wptb-row' );\r\n if (currentTable.length > 0) {\r\n currentTable = currentTable[0];\r\n \r\n for (var i = 0; i < maxAmountOfCells; i++) {\r\n td = new WPTB_Cell(mark);\r\n let currentTableTd = currentTable.querySelector('[data-x-index=\"' + i + '\"]');\r\n if( currentTableTd ) {\r\n let currentTdStyle = currentTableTd.getAttribute( 'style' );\r\n \r\n td.getDOMElement().setAttribute( 'style', currentTdStyle );\r\n td.getDOMElement().style.height = null;\r\n }\r\n r.appendChild(td.getDOMElement());\r\n }\r\n \r\n aux = Array.from(array[0]);\r\n array.push(aux);\r\n drawTable(array);\r\n table.recalculateIndexes();\r\n WPTB_Helper.tableRowsColorsReinstall( table );\r\n table.addColumnWidth();\r\n WPTB_Helper.dataTitleColumnSet( table );\r\n undoSelect();\r\n\r\n WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/table-changed/after', table);\r\n\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n }\r\n };\r\n\r\n /*\r\n * Yet another simple function, \r\n * it just add a row to the start of table.\r\n */\r\n\r\n table.addRowToTheStart = function () {\r\n let r = table.insertRow(0),\r\n td,\r\n aux,\r\n currentTable = document.getElementsByClassName('wptb-preview-table'),\r\n currentTableTd,\r\n currentTdStyle;\r\n r.classList.add( 'wptb-row' );\r\n if (currentTable.length > 0) {\r\n currentTable = currentTable[0];\r\n \r\n for (var i = 0; i < maxAmountOfCells; i++) {\r\n td = new WPTB_Cell(mark);\r\n let currentTableTd = currentTable.querySelector('[data-x-index=\"' + i + '\"]');\r\n if( currentTableTd ) {\r\n let currentTdStyle = currentTableTd.getAttribute( 'style' );\r\n \r\n td.getDOMElement().setAttribute( 'style', currentTdStyle );\r\n td.getDOMElement().style.height = null;\r\n }\r\n r.appendChild(td.getDOMElement());\r\n }\r\n \r\n aux = Array.from(array[0]);\r\n array.push(aux);\r\n drawTable(array);\r\n table.recalculateIndexes();\r\n WPTB_Helper.tableRowsColorsReinstall( table );\r\n table.addColumnWidth();\r\n WPTB_Helper.dataTitleColumnSet( table );\r\n undoSelect();\r\n\r\n WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/table-changed/after', table);\r\n\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n }\r\n };\r\n\r\n /* \r\n * This function adds a row before the current one.\r\n * Since the biggest factor of problem is a not-started but ongoing rowspan,\r\n * the most of the troubles is not here.\r\n */\r\n\r\n table.addRowBefore = function () {\r\n let cell = document.querySelector('.wptb-highlighted'),\r\n cellStyle = cell.getAttribute('style'),\r\n row = getCoords(cell)[0],\r\n cellNew;\r\n for( let i = row - 1; i >= 0; i-- ) {\r\n let rowChildren = table.rows[i].children;\r\n let rowChildrenLength = rowChildren.length;\r\n if( rowChildrenLength > 0 ) {\r\n for( let j = 0; j < rowChildrenLength; j++ ) {\r\n if( rowChildren[j].rowSpan == 1 ) {\r\n row = i;\r\n cellNew = true;\r\n break;\r\n }\r\n }\r\n }\r\n if ( cellNew ) {\r\n break;\r\n }\r\n }\r\n\r\n if (row === 0) {\r\n table.addRowToTheStart();\r\n } else {\r\n table.addRowAfter( row, cellStyle );\r\n }\r\n };\r\n\r\n /*\r\n * Well... by the name convention of the previous 3 functions,\r\n * it's pretty obvious that this functions attaches a new\r\n * row after highlighted cell row. The greatest obstacle it was\r\n * the possibility of a TR not having the exact amount of columns\r\n * occuped by actual node but rowspanned upper cells. For that purpose\r\n * it was created the function realTimeArray.\r\n * @see realTimeArray\r\n */\r\n\r\n table.addRowAfter = function ( row, cellStyle ) {\r\n let cellRowSpan,\r\n rowAfter,\r\n aux;\r\n \r\n if ( ( row == undefined || typeof row !== 'number' ) && cellStyle == undefined ) {\r\n let cell = document.querySelector('.wptb-highlighted');\r\n cellStyle = cell.getAttribute('style'),\r\n row = getCoords(cell)[0],\r\n cellRowSpan = cell.rowSpan,\r\n rowAfter = row + cellRowSpan - 1;\r\n } else {\r\n rowAfter = row;\r\n }\r\n \r\n \r\n let cellsColSpan = 0;\r\n if ( rowAfter < table.rows.length -1 ) {\r\n for( let i = 0; i <= rowAfter ; i++ ) {\r\n let tableRowsIChildren = table.rows[i].children,\r\n tableRIChildrenLength = tableRowsIChildren.length;\r\n if( tableRIChildrenLength > 0 ) {\r\n for( let j = 0; j < tableRIChildrenLength; j++ ) {\r\n let rowIRowSpan = tableRowsIChildren[j].rowSpan;\r\n\r\n if ( rowIRowSpan - 1 + i > rowAfter ) {\r\n tableRowsIChildren[j].rowSpan++;\r\n }\r\n }\r\n }\r\n }\r\n \r\n let rNext = table.rows[rowAfter + 1],\r\n rNextChildren = rNext.children,\r\n rNextChildrenLength = rNextChildren.length;\r\n \r\n if( rNextChildrenLength > 0 ) {\r\n for ( let i = 0; i < rNextChildrenLength; i++ ) {\r\n cellsColSpan += rNextChildren[i].colSpan;\r\n }\r\n }\r\n } else {\r\n cellsColSpan = array[0].length;\r\n }\r\n \r\n let r = table.insertRow( rowAfter + 1 );\r\n r.classList.add( 'wptb-row' );\r\n \r\n for ( j = 0; j < cellsColSpan; j++ ) {\r\n let td = new WPTB_Cell( mark );\r\n td.getDOMElement().setAttribute( 'style', cellStyle );\r\n td.getDOMElement().style.width = null;\r\n td.getDOMElement().style.height = null;\r\n r.appendChild( td.getDOMElement() );\r\n }\r\n\r\n aux = Array.from(array[0]);\r\n array.push(aux);\r\n drawTable(array);\r\n table.recalculateIndexes();\r\n WPTB_Helper.tableRowsColorsReinstall( table );\r\n table.addColumnWidth();\r\n WPTB_Helper.dataTitleColumnSet( table );\r\n undoSelect();\r\n\r\n WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/table-changed/after');\r\n\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n };\r\n\r\n /*\r\n * This function checks the current selected cells\r\n * make a rectangular shape.\r\n * @param Array the abstract table.\r\n * @return false, if not making a rectangle, or\r\n *\tArray an array containing number of rows and columns, if selection makes a rectangle.\r\n */\r\n\r\n table.isSquare = function (a) {\r\n var rowStart = -1,\r\n columnStart = -1,\r\n rowEnd = -1,\r\n columnEnd = -1,\r\n height,\r\n width,\r\n itemsEstimate = 0,\r\n items = 0;\r\n\r\n for (var i = 0; i < a.length; i++) {\r\n for (var j = 0; j < a[i].length; j++) {\r\n if (a[i][j] == 1) {\r\n if ( j < columnStart || columnStart == -1 ) {\r\n columnStart = j;\r\n }\r\n if ( i < rowStart || rowStart == -1 ) {\r\n rowStart = i;\r\n }\r\n }\r\n }\r\n \r\n }\r\n\r\n for (var i = a.length - 1; i > -1; i--) {\r\n for (var j = a[i].length - 1; j > -1; j--) {\r\n if (a[i][j] == 1) {\r\n if ( j > columnEnd ) {\r\n columnEnd = j;\r\n }\r\n if ( i > rowEnd ) {\r\n rowEnd = i;\r\n }\r\n }\r\n }\r\n }\r\n\r\n for (var i = rowStart; i < rowEnd; i++) {\r\n for (var j = columnStart; j < columnEnd; j++) {\r\n if (a[i][j] == 0 || a[i][j] == undefined) {\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n for (var i = 0; i < a.length; i++) {\r\n for (var j = 0; j < a[i].length; j++) {\r\n if (a[i][j] == 1) {\r\n items++;\r\n }\r\n }\r\n }\r\n\r\n height = rowEnd - rowStart + 1;\r\n width = columnEnd - columnStart + 1;\r\n itemsEstimate = height * width;\r\n\r\n if (itemsEstimate !== items) {\r\n return false;\r\n }\r\n return [height, width];\r\n };\r\n\r\n /*\r\n * This function merges all selected cells.\r\n * Well, actually sets the colspan and rowspan of first \r\n * upper left cell in selection and deletes the another selected cells.\r\n */\r\n\r\n table.mergeCells = function () {\r\n var dimensions = table.isSquare(array),\r\n rowspan = dimensions[0],\r\n colspan = dimensions[1],\r\n first = document.querySelector('.wptb-highlighted'),\r\n tds = [].slice.call(document.getElementsByClassName('wptb-highlighted'), 1),\r\n tdsChildrenNew = [];\r\n\r\n for (let i = 0; i < tds.length; i++) {\r\n let tdsInternalElements = tds[i].getElementsByClassName('wptb-ph-element');\r\n if (tdsInternalElements.length > 0) {\r\n let tdsIntElemLength = tdsInternalElements.length;\r\n for (let j = 0; j < tdsIntElemLength; j++) {\r\n tdsChildrenNew.push(tdsInternalElements[j]);\r\n }\r\n }\r\n let p = tds[i].parentNode;\r\n p.removeChild(tds[i]);\r\n }\r\n if (tdsChildrenNew.length > 0) {\r\n for (let i = 0; i < tdsChildrenNew.length; i++) {\r\n first.appendChild(tdsChildrenNew[i]);\r\n }\r\n }\r\n\r\n first.colSpan = colspan;\r\n first.rowSpan = rowspan;\r\n table.recalculateIndexes();\r\n table.reconstraction();\r\n let firstWidth = first.style.width;\r\n let firstDataFixedWidth = first.dataset.wptbFixedWidth;\r\n if( firstWidth ) {\r\n table.addColumnWidth( parseFloat( firstWidth, 10 ) );\r\n } else if( firstDataFixedWidth ) {\r\n table.addColumnWidth();\r\n } else {\r\n table.addColumnWidth( false, true );\r\n }\r\n \r\n let firstHeight = first.style.height;\r\n let firstDataFixedHeight = first.dataset.wptbFixedHeight;\r\n if( firstHeight ) {\r\n table.addRowHeight( parseFloat( firstHeight, 10 ) );\r\n } else if( firstDataFixedHeight ) {\r\n table.addRowHeight();\r\n } else {\r\n table.addRowHeight( false, true );\r\n }\r\n WPTB_Helper.dataTitleColumnSet( table );\r\n undoSelect();\r\n\r\n WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/table-changed/after', table);\r\n\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n };\r\n\r\n /*\r\n * This functions makes the exact inverse as above.\r\n * It resets colspan and rowspan and appends \r\n * the same amount in cells to the table.\r\n * @bug\r\n */\r\n\r\n table.splitCell = function () {\r\n var cell = document.getElementsByClassName('wptb-highlighted')[0],\r\n rowspan = cell.rowSpan,\r\n colspan = cell.colSpan,\r\n cellStyles = cell.getAttribute('style'),\r\n row = getCoords(cell)[0],\r\n thisRow = table.rows[row],\r\n cellXIndex =cell.dataset.xIndex;\r\n \r\n cell.rowSpan = 1;\r\n cell.colSpan = 1;\r\n \r\n for (let i = 1; i < colspan; i++) {\r\n let td = new WPTB_Cell(mark);\r\n td.getDOMElement().setAttribute('style', cellStyles);\r\n td.getDOMElement().classList.add( 'wptb-highlighted' );\r\n if ( cell.nextSibling ) {\r\n thisRow.insertBefore( td.getDOMElement(), cell.nextSibling );\r\n } else {\r\n thisRow.appendChild( td.getDOMElement() );\r\n }\r\n \r\n }\r\n\r\n if (rowspan > 1) {\r\n for (let i = 1; i < rowspan; i++) {\r\n let rowChildInsertBefore = undefined,\r\n rowNext = table.rows[row + i],\r\n rowChildren = rowNext.children,\r\n rowChildrenLength = rowChildren.length;\r\n \r\n if ( rowChildrenLength > 0 ) {\r\n for ( let k = 0; k < rowChildrenLength; k++ ) {\r\n if ( Number( rowChildren[k].dataset.xIndex ) > Number( cellXIndex ) ) {\r\n rowChildInsertBefore = rowChildren[k];\r\n break;\r\n } \r\n }\r\n }\r\n for ( let j = 0; j < colspan; j++ ) {\r\n let td = new WPTB_Cell( mark );\r\n td.getDOMElement().setAttribute( 'style', cellStyles );\r\n if ( rowChildInsertBefore != undefined ) {\r\n rowNext.insertBefore( td.getDOMElement(), rowChildInsertBefore );\r\n } else {\r\n rowNext.appendChild( td.getDOMElement() );\r\n }\r\n }\r\n }\r\n }\r\n\r\n table.recalculateIndexes();\r\n table.reconstraction();\r\n table.addColumnWidth();\r\n table.addRowHeight();\r\n WPTB_Helper.dataTitleColumnSet( table );\r\n undoSelect();\r\n\r\n WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/table-changed/after', table);\r\n\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n };\r\n\r\n /*\r\n * Searches for rowspanned cells up to row number meeting it.\r\n * @param number the number of row where the function\r\n * must search up to.\r\n */\r\n\r\n table.findRowspannedCells = function (row) {\r\n var array = [],\r\n difference;\r\n actualPoints = getActualPointsInRow(row);\r\n if (actualPoints === maxAmountOfCells) {\r\n return [];\r\n }\r\n difference = maxAmountOfCells - actualPoints;\r\n\r\n for (var i = row - 1; i >= 0 && difference; i--) {\r\n var tds = table.rows[i].getElementsByTagName('td');\r\n for (var i = 0; i < tds.length; i++) {\r\n if (tds[i].rowSpan > 1) {\r\n array.push(tds[i]);\r\n difference -= tds[i].colSpan;\r\n }\r\n }\r\n }\r\n return array;\r\n\r\n }\r\n\r\n /*\r\n * This function explores the table and adds \r\n * a cell for each lacking one for each row\r\n * to meet an even amount of cells.\r\n */\r\n\r\n table.addLackingCells = function () {\r\n var sumRows = [];\r\n for (var i = 0; i < table.rows.length; i++) {\r\n sumRows.push(0);\r\n }\r\n\r\n for (var i = 0; i < table.rows.length; i++) {\r\n var tds = table.rows[i].getElementsByTagName('td');\r\n for (var j = 0; j < tds.length; j++) {\r\n if (tds[j].rowSpan > 1) {\r\n for (var k = 1; k < tds[j].rowSpan; k++) {\r\n sumRows[i + k]++;\r\n }\r\n }\r\n }\r\n }\r\n\r\n for (var i = 0; i < table.rows.length; i++) {\r\n var tds = table.rows[i].getElementsByTagName('td'),\r\n totalColspan = 0;\r\n for (var j = 0; j < tds.length; j++) {\r\n totalColspan += tds[j].colSpan;\r\n }\r\n totalColspan += sumRows[i];\r\n difference = maxAmountOfCells - totalColspan;\r\n for (var j = 0; j < difference; j++) {\r\n var td = new WPTB_Cell(mark);\r\n table.rows[i].appendChild(td.getDOMElement());\r\n //table.rows[i].insertBefore( td.getDOMElement(), rows[i].nextSibling );\r\n }\r\n }\r\n };\r\n\r\n /*\r\n * This function deletes the row of currently\r\n * selected cell. \r\n */\r\n\r\n table.deleteRow = function () {\r\n let cell = document.querySelector('.wptb-highlighted'),\r\n cellStyles = cell.getAttribute('style'),\r\n rowspan = cell.rowSpan,\r\n row = getCoords(cell)[0],\r\n thisRow,\r\n aux;\r\n \r\n if ( rowspan == undefined ) rowspan = 1;\r\n \r\n for ( let i = 0; i < rowspan; i++ ) {\r\n thisRow = table.rows[row];\r\n let thisRowChildren = thisRow.children,\r\n nextRow = table.rows[row + 1],\r\n nextRowChildren,\r\n nextRowChildrenLength,\r\n tdArr = [];\r\n\r\n if( nextRow != undefined ) {\r\n nextRowChildren = nextRow.children;\r\n nextRowChildrenLength = nextRowChildren.length;\r\n for (let j = 0; j < thisRowChildren.length; j++) {\r\n if ( thisRowChildren[j].rowSpan > 1 ) {\r\n let td = new WPTB_Cell(mark);\r\n td.getDOMElement().setAttribute('style', cellStyles);\r\n td.getDOMElement().colSpan = thisRowChildren[j].colSpan;\r\n td.getDOMElement().rowSpan = thisRowChildren[j].rowSpan - 1;\r\n\r\n let nextRowChildrenK = undefined;\r\n for ( let k = 0; k < nextRowChildrenLength; k++ ) {\r\n if ( Number( nextRowChildren[k].dataset.xIndex ) > Number( thisRowChildren[j].dataset.xIndex ) ) {\r\n nextRowChildrenK = nextRowChildren[k];\r\n break;\r\n } \r\n }\r\n\r\n if ( nextRowChildrenK ) {\r\n tdArr.push( [td, nextRowChildrenK] );\r\n } else {\r\n tdArr.push( [td] );\r\n }\r\n }\r\n }\r\n\r\n if ( tdArr.length > 0 ) {\r\n for ( let k = 0; k < tdArr.length; k++ ) {\r\n if ( tdArr[k][1] != undefined ) {\r\n nextRow.insertBefore( tdArr[k][0].getDOMElement(), tdArr[k][1] );\r\n } else {\r\n nextRow.appendChild( tdArr[k][0].getDOMElement() );\r\n }\r\n }\r\n }\r\n }\r\n \r\n let tableRows = table.rows;\r\n if ( tableRows.length > 0 ) {\r\n for ( let j = 0; j < row; j++ ) {\r\n let jRowChildren = tableRows[j].children;\r\n if ( jRowChildren.length > 0 ) {\r\n for ( let x = 0; x < jRowChildren.length; x++ ) {\r\n if ( jRowChildren[x].rowSpan - 1 >= row - j ) {\r\n jRowChildren[x].rowSpan--;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n aux = Array.from(array[0]);\r\n array.pop(aux);\r\n drawTable(array);\r\n table.getElementsByTagName('tbody')[0].removeChild(table.rows[row]);\r\n \r\n if( table.rows.length == 0 ) {\r\n WPTB_Helper.toggleTableEditMode();\r\n wptbTableSetup.innerHTML = '';\r\n document.getElementsByClassName('wptb-table-generator')[0].style.display = 'table';\r\n let wptbSaveBtn = document.getElementsByClassName( 'wptb-save-btn' );\r\n if( wptbSaveBtn.length > 0 ) {\r\n wptbSaveBtn = wptbSaveBtn[0];\r\n \r\n wptbSaveBtn.classList.add( 'wptb-save-disabled' );\r\n wptbSaveBtn.classList.remove('active');\r\n }\r\n } else {\r\n table.recalculateIndexes();\r\n WPTB_Helper.tableRowsColorsReinstall( table );\r\n WPTB_Helper.dataTitleColumnSet( table );\r\n table.reconstraction();\r\n }\r\n }\r\n \r\n undoSelect();\r\n\r\n WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/table-changed/after', table);\r\n\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n }\r\n\r\n /*\r\n * This function deletes the column of currently\r\n * selected cell. Again, this is way more complicated than\r\n * delete row case.\r\n */\r\n\r\n table.deleteColumn = function () {\r\n let cell = document.querySelector('.wptb-highlighted'),\r\n cellXIndex = cell.dataset.xIndex,\r\n colspan = cell.colSpan;\r\n \r\n for ( let i = 0; i < colspan; i++ ) {\r\n for ( let j = 0; j < table.rows.length; j++ ) {\r\n let rowChildren = table.rows[j].children;\r\n let rowChildrenLength = rowChildren.length;\r\n if( rowChildrenLength > 0 ) {\r\n for ( let k = rowChildrenLength - 1; k >= 0; k-- ) {\r\n if ( Number( rowChildren[k].dataset.xIndex ) == Number( cellXIndex ) ) {\r\n if ( rowChildren[k].colSpan > 1 ) {\r\n rowChildren[k].colSpan--;\r\n } else {\r\n table.rows[j].removeChild( rowChildren[k] );\r\n }\r\n break;\r\n } else if( Number( rowChildren[k].dataset.xIndex ) < Number( cellXIndex ) && \r\n Number( rowChildren[k].dataset.xIndex ) + \r\n Number( rowChildren[k].colSpan -1 ) >= cellXIndex ) {\r\n if ( rowChildren[k].colSpan > 1 ) {\r\n rowChildren[k].colSpan--;\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n \r\n for ( let j = 0; j < table.rows.length; j++ ) {\r\n if (array[j] != undefined)\r\n array[j].pop();\r\n }\r\n \r\n maxAmountOfCells--;\r\n \r\n if( table.querySelectorAll( 'td' ).length == 0 ) {\r\n WPTB_Helper.toggleTableEditMode();\r\n wptbTableSetup.innerHTML = '';\r\n document.getElementsByClassName('wptb-table-generator')[0].style.display = 'table';\r\n let wptbSaveBtn = document.getElementsByClassName( 'wptb-save-btn' );\r\n if( wptbSaveBtn.length > 0 ) {\r\n wptbSaveBtn = wptbSaveBtn[0];\r\n \r\n wptbSaveBtn.classList.add( 'wptb-save-disabled' );\r\n wptbSaveBtn.classList.remove('active');\r\n }\r\n } else {\r\n table.recalculateIndexes();\r\n table.tdDefaultWidth();\r\n WPTB_Helper.dataTitleColumnSet( table );\r\n table.reconstraction();\r\n }\r\n }\r\n \r\n undoSelect();\r\n\r\n WPTB_Helper.wptbDocumentEventGenerate('wp-table-builder/table-changed/after', table);\r\n\r\n let wptbTableStateSaveManager = new WPTB_TableStateSaveManager();\r\n wptbTableStateSaveManager.tableStateSet();\r\n };\r\n\r\n document.getElementsByClassName('wptb-table-generator')[0].style.display = 'none';\r\n\r\n array = fillTableArray();\r\n\r\n undoSelect();\r\n drawTable(array);\r\n\r\n wptbTableSetup.appendChild(table);\r\n //if (columns || rows) {\r\n table.recalculateIndexes( true );\r\n //}\r\n table.reconstraction();\r\n table.tdDefaultWidth();\r\n \r\n wptbTableSetup.onresize = function() {\r\n table.tdDefaultWidth();\r\n };\r\n\r\n WPTB_LeftPanel();\r\n\r\n // event hook to signal that table is generated and ready to be used\r\n WPTB_Helper.wptbDocumentEventGenerate('wptb:table:generated', document);\r\n\r\n WPTB_Helper.elementStartScript( table, 'table_setting' );\r\n WPTB_Helper.elementOptionsSet( 'table_setting', table );\r\n \r\n // this code gets the ID of the active element in the toolbar \r\n // and stores it in the data attribute of the common container element \"wpcd_fixed_toolbar\"\r\n// let wptbPhElement = document.getElementsByClassName( 'wptb-ph-element' );\r\n// let wpcdFixedToolbar = document.getElementById( 'wpcd_fixed_toolbar' );\r\n// for ( let i = 0; i < wptbPhElement.length; i++ ) {\r\n// wptbPhElement[i].addEventListener( 'click', function( e ) {\r\n// let wptbToolbar = document.getElementById( 'wpcd_fixed_toolbar' ).children;\r\n// for ( let j = 0; j < wptbToolbar.length; j++ ) {\r\n// let elementStyles = window.getComputedStyle( wptbToolbar[j], 'null' );\r\n// if( elementStyles.getPropertyValue( 'display' ) == 'block' ) {\r\n// wpcdFixedToolbar.dataset.toolbarActiveId = wptbToolbar[j].getAttribute( 'id' );\r\n// }\r\n// }\r\n// }, false );\r\n// }\r\n \r\n// let wptbPanelLeft = document.getElementsByClassName( 'wptb-panel-left' );\r\n// if( wptbPanelLeft.length > 0 ) {\r\n// wptbPanelLeft[0].addEventListener( 'click', function( e ) {\r\n// let toolbarActiveElementId = wpcdFixedToolbar.dataset.toolbarActiveId;\r\n// document.getElementById( toolbarActiveElementId ).style.display = '';\r\n// }, false );\r\n// }\r\n \r\n// let body = document.getElementsByTagName( 'body' );\r\n// if( body.length > 0 ) {\r\n// body[0].addEventListener( 'click', function( e ) {\r\n// if ( e.target.classList.contains( 'wptb-panel-left' ) || WPTB_Helper.findAncestor( e.target, 'wptb-panel-left' ) ) {\r\n// let toolbarActiveElementId = wpcdFixedToolbar.dataset.toolbarActiveId;\r\n// document.getElementById( toolbarActiveElementId ).style.display = '';\r\n// }\r\n// }, false );\r\n// }\r\n};","var WPTB_TableStateSaveManager = function() {\r\n this.tableStateSet = ( generate ) => {\r\n \r\n if( generate && window.wptbTableStateSaving && Array.isArray( window.wptbTableStateSaving ) ) {\r\n return;\r\n }\r\n \r\n // get table setup\r\n let wptbTableSetup = document.getElementsByClassName( 'wptb-table-setup' );\r\n let wptbPreviewTable = '';\r\n if( wptbTableSetup.length > 0 ) {\r\n wptbTableSetup = wptbTableSetup[0];\r\n\r\n wptbPreviewTable = wptbTableSetup.querySelector( '.wptb-preview-table' );\r\n } else {\r\n wptbTableSetup = '';\r\n }\r\n\r\n\r\n \r\n // check if a global array doesn't exist with saved versions of the table \r\n // them create it\r\n if( ! window.wptbTableStateSaving && ! Array.isArray( window.wptbTableStateSaving ) ) {\r\n window.wptbTableStateSaving = [];\r\n } \r\n\r\n // remove the extra part of the array after changing the table \r\n // when it is showed in the not last modified version\r\n if( window.wptbTableStateSaving.length > window.wptbTableStateNumberShow ) {\r\n window.wptbTableStateSaving = window.wptbTableStateSaving.slice( 0, window.wptbTableStateNumberShow + 1 );\r\n }\r\n\r\n //add new state of table\r\n let wptbNewTableSetup = '';\r\n if( wptbTableSetup ) {\r\n wptbNewTableSetup = wptbTableSetup.cloneNode( true );\r\n let wptbHighlighted = wptbNewTableSetup.getElementsByClassName( 'wptb-highlighted' );\r\n for( let i = 0; i < wptbHighlighted.length; i++ ) {\r\n wptbHighlighted[i].classList.remove( 'wptb-highlighted' );\r\n }\r\n let wptbDirectlyhovered = wptbNewTableSetup.getElementsByClassName( 'wptb-directlyhovered' );\r\n for( let i = 0; i < wptbDirectlyhovered.length; i++ ) {\r\n wptbDirectlyhovered[i].classList.remove( 'wptb-directlyhovered' );\r\n }\r\n let mceContentBodys = wptbNewTableSetup.querySelectorAll( '.mce-content-body' );\r\n if( mceContentBodys.length > 0 ) {\r\n for ( let k = 0; k < mceContentBodys.length; k++ ) {\r\n mceContentBodys[k].classList.remove( 'mce-content-body' );\r\n }\r\n }\r\n let dataMceStyle = wptbNewTableSetup.querySelectorAll( '[data-mce-style]' );\r\n if ( dataMceStyle.length > 0 ) {\r\n for ( let k = 0; k < dataMceStyle.length; k++ ) {\r\n dataMceStyle[k].removeAttribute( 'data-mce-style' );\r\n }\r\n }\r\n let mceIds = wptbNewTableSetup.querySelectorAll( '[id^=mce_]' );\r\n if ( mceIds.length > 0 ) {\r\n for ( let k = 0; k < mceIds.length; k++ ) {\r\n mceIds[k].removeAttribute( 'id' );\r\n }\r\n }\r\n }\r\n\r\n let cssForTdsWidthAutoValue = '';\r\n let head = document.head;\r\n if( head ) {\r\n let cssForTdsWidthAuto = head.querySelector( 'style[data-wptb-td-auto-width=\"true\"]' );\r\n if( cssForTdsWidthAuto ) {\r\n cssForTdsWidthAutoValue = cssForTdsWidthAuto.innerHTML;\r\n }\r\n }\r\n\r\n let wptbTableTitle = '';\r\n let wptbSetupName = document.getElementById( 'wptb-setup-name' );\r\n if( wptbSetupName ) wptbTableTitle = wptbSetupName.value;\r\n\r\n window.wptbTableStateSaving.push( [wptbNewTableSetup, cssForTdsWidthAutoValue, wptbTableTitle] );\r\n\r\n // set new number of state which is showed now\r\n window.wptbTableStateNumberShow = window.wptbTableStateSaving.length - 1;\r\n\r\n // make undo arrow active when the table was changed\r\n if( window.wptbTableStateSaving.length - 1 > 0 ) {\r\n let wptbUndo = document.getElementsByClassName( 'wptb-undo' );\r\n if( wptbUndo.length > 0 ) {\r\n wptbUndo = wptbUndo[0];\r\n\r\n wptbUndo.classList.remove( 'wptb-undoredo-disabled' );\r\n }\r\n }\r\n\r\n // make redo arrow not active when the table was changed\r\n let wptbRedo = document.getElementsByClassName( 'wptb-redo' );\r\n if( wptbRedo.length > 0 ) {\r\n wptbRedo = wptbRedo[0];\r\n\r\n wptbRedo.classList.add( 'wptb-undoredo-disabled' );\r\n }\r\n\r\n let wptbSaveBtn = document.getElementsByClassName( 'wptb-save-btn' );\r\n if( wptbSaveBtn.length > 0 ) {\r\n wptbSaveBtn = wptbSaveBtn[0];\r\n if( ( ! wptbSaveBtn.dataset.wptbTableStateNumberSave && window.wptbTableStateNumberShow == 0 ) || \r\n window.wptbTableStateNumberShow == wptbSaveBtn.dataset.wptbTableStateNumberSave || ! wptbPreviewTable ) {\r\n wptbSaveBtn.classList.add( 'wptb-save-disabled' );\r\n wptbSaveBtn.classList.remove('active');\r\n } else {\r\n wptbSaveBtn.classList.remove( 'wptb-save-disabled' );\r\n wptbSaveBtn.classList.add('active');\r\n }\r\n }\r\n }\r\n \r\n this.tableStateGet = ( datawptbUndoredo ) => {\r\n if( datawptbUndoredo && window.wptbTableStateSaving && window.wptbTableStateSaving.length > 0 ) {\r\n \r\n // changes the number of the state which displays now\r\n if( datawptbUndoredo == 'undo' ) {\r\n if( window.wptbTableStateNumberShow > 0 ) {\r\n window.wptbTableStateNumberShow--;\r\n } else {\r\n return false;\r\n }\r\n } else if( datawptbUndoredo == 'redo' ) {\r\n if( window.wptbTableStateNumberShow < window.wptbTableStateSaving.length ) {\r\n window.wptbTableStateNumberShow++;\r\n } else {\r\n return false;\r\n }\r\n }\r\n \r\n // add or delete class \"wptb-undoredo-disabled\" for undo button\r\n let wptbUndo = document.getElementsByClassName( 'wptb-undo' );\r\n if( wptbUndo.length > 0 ) {\r\n wptbUndo = wptbUndo[0];\r\n \r\n if( window.wptbTableStateNumberShow == 0 ) {\r\n if( wptbUndo ) {\r\n wptbUndo.classList.add( 'wptb-undoredo-disabled' );\r\n }\r\n } else if( window.wptbTableStateNumberShow > 0 ) {\r\n if( wptbUndo ) {\r\n wptbUndo.classList.remove( 'wptb-undoredo-disabled' );\r\n }\r\n }\r\n }\r\n \r\n // add or delete class \"wptb-undoredo-disabled\" for redo button\r\n let wptbRedo = document.getElementsByClassName( 'wptb-redo' );\r\n if( wptbRedo.length > 0 ) {\r\n wptbRedo = wptbRedo[0];\r\n \r\n if( window.wptbTableStateNumberShow == window.wptbTableStateSaving.length - 1 ) {\r\n if( wptbRedo ) {\r\n wptbRedo.classList.add( 'wptb-undoredo-disabled' );\r\n }\r\n } else if( window.wptbTableStateNumberShow < window.wptbTableStateSaving.length - 1 ) {\r\n if( wptbRedo ) {\r\n wptbRedo.classList.remove( 'wptb-undoredo-disabled' );\r\n }\r\n }\r\n }\r\n \r\n // add or delete class \"wptb-save-disabled\" for save button\r\n let wptbSaveBtn = document.getElementsByClassName( 'wptb-save-btn' );\r\n if( wptbSaveBtn.length > 0 ) {\r\n wptbSaveBtn = wptbSaveBtn[0];\r\n if( ( ! wptbSaveBtn.dataset.wptbTableStateNumberSave && window.wptbTableStateNumberShow == 0 ) || \r\n window.wptbTableStateNumberShow == wptbSaveBtn.dataset.wptbTableStateNumberSave ) {\r\n wptbSaveBtn.classList.add( 'wptb-save-disabled' );\r\n wptbSaveBtn.classList.remove('active');\r\n } else {\r\n wptbSaveBtn.classList.add('active');\r\n wptbSaveBtn.classList.remove( 'wptb-save-disabled' );\r\n }\r\n }\r\n \r\n // load necessary saved table state\r\n let wptbTableSetup = document.getElementsByClassName( 'wptb-table-setup' );\r\n if( wptbTableSetup.length > 0 ) {\r\n wptbTableSetup = wptbTableSetup[0];\r\n\r\n //wptbTableSetup.outerHTML = '';\r\n if( window.wptbTableStateSaving[window.wptbTableStateNumberShow] ) {\r\n if( window.wptbTableStateSaving[window.wptbTableStateNumberShow][0] && \r\n typeof window.wptbTableStateSaving[window.wptbTableStateNumberShow][0] === 'object' ) {\r\n if( 'outerHTML' in window.wptbTableStateSaving[window.wptbTableStateNumberShow][0] ) {\r\n wptbTableSetup.outerHTML = window.wptbTableStateSaving[window.wptbTableStateNumberShow][0].outerHTML;\r\n }\r\n }\r\n\r\n let wptbTableSetupNew = document.querySelector( '.wptb-table-setup' );\r\n if( wptbTableSetupNew && wptbTableSetupNew.children.length == 0 ) {\r\n document.getElementsByClassName('wptb-table-generator')[0].style.display = 'table';\r\n wptbSaveBtn.classList.add( 'wptb-save-disabled' );\r\n wptbSaveBtn.classList.remove('active');\r\n } else {\r\n document.getElementsByClassName('wptb-table-generator')[0].style.display = 'none';\r\n }\r\n\r\n // add or change or delete style element in the head for table cells who have auto width\r\n let head = document.head;\r\n if( head ) {\r\n let cssForTdsWidthAutoOld = head.querySelector( 'style[data-wptb-td-auto-width=\"true\"]' );\r\n if( cssForTdsWidthAutoOld ) {\r\n head.removeChild( cssForTdsWidthAutoOld );\r\n }\r\n\r\n if( window.wptbTableStateSaving[window.wptbTableStateNumberShow][1] ) {\r\n let cssForTdsWidthAuto = document.createElement( 'style' );\r\n cssForTdsWidthAuto.setAttribute( 'data-wptb-td-auto-width', true );\r\n cssForTdsWidthAuto.innerHTML = window.wptbTableStateSaving[window.wptbTableStateNumberShow][1];\r\n head.appendChild( cssForTdsWidthAuto );\r\n }\r\n }\r\n\r\n // change value of table title field\r\n let wptbSetupName = document.getElementById( 'wptb-setup-name' );\r\n if( typeof window.wptbTableStateSaving[window.wptbTableStateNumberShow][2] != 'undefined' ) {\r\n if( wptbSetupName ) wptbSetupName.value = window.wptbTableStateSaving[window.wptbTableStateNumberShow][2];\r\n }\r\n }\r\n \r\n let body = document.getElementsByTagName( 'body' );\r\n if( body.length > 0 ) {\r\n body = body[0];\r\n }\r\n\r\n WPTB_Helper.elementOptionsPanelClear();\r\n WPTB_LeftPanel();\r\n\r\n let wptbLeftScrollPanelCellSetting = document.getElementById( 'wptb-left-scroll-panel-cell-settings' ); \r\n if( wptbLeftScrollPanelCellSetting ) {\r\n wptbLeftScrollPanelCellSetting.classList.remove( 'visible' );\r\n }\r\n }\r\n }\r\n }\r\n \r\n this.tableStateClear = function() {\r\n delete window.wptbTableStateSaving;\r\n delete window.wptbTableStateNumberShow;\r\n \r\n let wptbSaveBtn = document.getElementsByClassName( 'wptb-save-btn' );\r\n if( wptbSaveBtn.length > 0 ) {\r\n wptbSaveBtn = wptbSaveBtn[0];\r\n \r\n wptbSaveBtn.removeAttribute( 'data-wptb-table-state-number-save' );\r\n }\r\n \r\n let wptbUndo = document.getElementsByClassName( 'wptb-undo' );\r\n if( wptbUndo.length > 0 ) {\r\n wptbUndo = wptbUndo[0];\r\n \r\n wptbUndo.classList.add( 'wptb-undoredo-disabled' );\r\n }\r\n \r\n let wptbRedo = document.getElementsByClassName( 'wptb-redo' );\r\n if( wptbRedo.length > 0 ) {\r\n wptbRedo = wptbRedo[0];\r\n\r\n wptbRedo.classList.add( 'wptb-undoredo-disabled' );\r\n }\r\n }\r\n}"]}
|
1 |
+
{"version":3,"sources":["applyGenericItemSettings.js","WPTB_ActionsField.js","WPTB_Builder.js","WPTB_Cell.js","WPTB_DropHandle.js","WPTB_ElementCounters.js","WPTB_ElementObject.js","WPTB_ElementOptions.js","WPTB_Helper.js","WPTB_Initializer.js","WPTB_innerElementSet.js","WPTB_LeftPanel.js","WPTB_MultipleSelect.js","WPTB_Parser.js","WPTB_Polyfills.js","WPTB_Responsive.js","WPTB_Settings.js","WPTB_Stringifier.js","WPTB_Table.js","WPTB_TableStateSaveManager.js"],"names":["applyGenericItemSettings","element","kindIndexProt","copy","node","getDOMElement","index","classList","contains","undefined","wptbElements","document","getElementsByClassName","elementIndexesArr","i","length","regex","RegExp","kind","infArr","className","match","push","elementIndexMax","Math","max","wptbNodeattributes","attributes","nodeName","regularText","attr","Array","isArray","newDataAttributeName","replace","newDataAttributeValue","nodeValue","removeAttribute","setAttribute","kindIndexProtArr","split","node_wptb_element_kind_num","remove","add","WPTB_Helper","elementStartScript","WPTB_ElementOptions","counter","increment","onmouseenter","event","target","wptbActionsField","WPTB_ActionsField","addActionField","setParameters","onmouseleave","leaveFromField","wptbActions","actionType","thisNode","body","getElementsByTagName","actions","previousNode","activeElem","parentNode","removeChild","btnDelete","btnCopy","createElement","appendChild","type","onclick","act","el","hasOwnProperty","thisRow","rowIsTop","table","findAncestor","dataTitleColumnSet","actionsRemove","wptbTableStateSaveManager","WPTB_TableStateSaveManager","tableStateSet","activeElement","activeElemParent","data","elemProt","tinyMceClear","WPTB_ElementObject","insertBefore","nextSibling","elementCopy","cloneNode","wptbDocumentEventGenerate","WPTB_innerElementSet","btnMove","draggable","ondragstart","wptbElementIconsDirectories","tmplIconsDirectories","wp","template","jsonIconsDirectories","IconsDirectories","JSON","parse","dragImages","getElementIcon","dataTransfer","effectAllowed","setDragImage","setData","style","display","actionsHide","ondragend","elementDragEndClear","coordinatesElement","getBoundingClientRect","wptbContainer","correctTop","top","parseFloat","removeEventListener","left","right","clientWidth","addEventListener","relatedTarget","opacity","WPTB_Builder","table_id","detectMode","http","XMLHttpRequest","urlSet","ajaxurl","open","setRequestHeader","onreadystatechange","d","readyState","status","ans","responseText","getElementById","value","wptbTableSetupEl","WPTB_Parser","WPTB_Table","querySelector","dataset","wptbTableContainerMaxWidth","maxWidth","tdDefaultWidth","WPTB_Settings","send","ElementCounters","select","MultipleSelect","initializer","WPTB_Initializer","settings","url","window","location","href","results","exec","WPTB_Cell","callback","DOMElement","highlightRow","td","parentRow","columnCount","parseInt","tds","classToAdd","ttd","highlightColumn","rowCount","tr","padding","jQuery","val","innerBorderWidth","border","ondblclick","stopPropagation","currentTarget","newElementProxy","wptbPhElement","wptbElementTypeClass","wptbTypeElementArr","wptbInternalActiveElement","j","wptbInternalActiveElementObj","setCoords","y","x","yIndex","xIndex","getCoords","coords","appendElement","getCellDimensions","tdStyleObj","getComputedStyle","tdPaddingLeft","getPropertyValue","tdPaddingRight","tdBorderLeftWidth","tdBorderRightWidth","tdPaddingTop","tdPaddingBottom","tdBorderTopWidth","tdBorderBottomWidth","width","offsetWidth","height","offsetHeight","borderCollapse","tableFullStyleObj","tableBorderLeft","tableBorderRight","tableBorderTop","tableBorderBottom","toLowerCase","firstChild","lastChild","WPTB_DropHandle","thisElem","e","hide","wptbDropHandle","wptbDropBorderMarker","wptbDropBorderMarkerTop","wptbDropBorderMarkerRight","wptbDropBorderMarkerBottom","wptbDropBorderMarkerLeft","toPx","getDragRelativeType","cellRelatedDropHandle","range","createRange","setStart","shadowRoot","createContextualFragment","children","parentTd","getParentOfType","ondragenter","preventDefault","ondragover","ondragleave","ondrop","getData","wptbMovingMode","text","getDOMParentElement","innerElement","innerElementNext","onscroll","localName","indics","types","notDragEnter","indexOf","elementDrag","offsetY","layerY","bottom","priv","key","nextIndex","wpTemplateId","itemHtml","trim","innerHTML","wptbElementMutch","elementClearFromTinyMce","inElems","querySelectorAll","inElemObj","elementOptionsSet","capture","hexToRgb","hex","result","rgbToHex","rgb","isHex","rgbm","round","toString","toUpperCase","slice","test","icon_directory","hostName","protocol","hostname","img","src","wptbDropHandles","wptbDropBorderMarkers","linkHttpCheckChange","link","convertToAbs","currentLocation","origin","linkArr","linkClean","cls","parentElement","row","parent","getSelectionText","txt","getSelection","selection","elementOptionsPanelClear","elementOptionsGroup","wpColorPickerCheckChangeForTableStateSaving","originalEvent","wpPickerContainer","irisStripMouseUpStateSaveManager","wpColorPickerClear","attribute","isId","input","newInput","decodeURIComponent","getColumnWidth","cell","xIndexes","cellWidth","getRowHeight","yIndexes","cellHeight","wpColorPickerChange","ui","uiColor","color","classe","ps","number","affectedEl","backgroundColor","ratingStar","span","fill","wptbTextMessageSize","numberImputSize","wptbNumberInputs","maxCount","maxValue","onkeydown","thisValue","String","substring","onkeyup","ucfirst","str","charAt","eventName","details","CustomEvent","detail","bubbles","dispatchEvent","WPTB_ElementsScriptsLauncher","deleteEventHandlers","off","elementChildren","replaceAll","string","search","join","mceContentBodys","k","dataMceStyle","mceEditFocus","contentEditable","spellCheck","mceIds","elementOptionContainerCustomClassSet","targetInput","customClassForContainer","containerElement","elementOptionContainerAdditionalStyles","containerAdditionalStyles","containerStylesArrOne","containerStylesSet","containerStyleStr","containerStyleStrArr","controlsInclude","functionHandler","acceptEventValues","controlConnectFunctionsName","name","elementKind","elementOptionsGroupIds","optionsGroupIds","elementOptionsGroupId","controlActiveElements","map","controlInfArr","controlActiveElement","controlUnicClassName","controls","controlName","control","targetControlValue","targetControlValueGet","targetValue","eventValue","oneControlInclude","wptbContrlStacksConfigId","tmplControlsConfig","container","jsonControlsConfigJson","jsonControlsConfig","controlClassName","innerElementCopyIncludeHandler","appearDependOnControl","dependOn","targetControlElementClass","dependOnControlName","dependOnControlElementClass","dependOnControlElement","targetControlElement","controlContainerElem","showHideDependOnControlElement","dependOnControlElements","childCheck","checked","controlsStateManager","targetControlClass","controlChangeIndic","targetControls","selectorElement","elementsSettingsTemplatesJs","elementSettings","elementsSettings","stringify","alignmentValue","elementControlsStateCopy","elementProt","copyElem","infArrProt","infArrCopy","elemProtKind","elemCopyKind","elementsSettingsTemplateJs","elementSettingsProt","elementSettingsCopy","Object","keys","forEach","elementSettingValue","elementSettingKeyCopy","elementControlsStateDelete","nameControl","wptbElementDatas","elementContainerClass","elementOptionClassIndic","controlElementParent","elementOptionsScriptsContainer","cellEditActiveClass","activateSection","wptbelementOptionClass","childNodes","elementOptionsGroupIdsInvolved","elementOptionsGroupInvolved","elementOptionsContainerInvolved","controlScriptsObj","controlappearDependOnControl","elementOptionsScriptsContainerIndic","controlKey","tmplControlTemplate","elemContainer","elementControlTargetUnicClass","controlTemplate","elementOptionsContainerInvolvedGet","elementOptionsContainer","elementOptionsGroupChildren","elementOptionsContainerOn","elementOptionContainerOn","elementOptionContainer","elementOptionClass","helperJavascriptElem","helperJavascriptCode","innerText","script","controlScriptsArr","managerExternalCssStyles","elementContainer","selector","cssName","cssValue","head","cssForThisElement","cssText","cssTextArrFirst","pop","selectorExists","cssTextArrSecond","cssTextArrThird","cssNameExists","cssTextArrFourth","splice","registerSections","sections","currentSection","sectionElement","s","sectionDataId","displayType","triggerSectionEvent","prototype","call","visibility","getCurrentSection","getSectionFromUrl","parsedUrl","URL","urlSection","searchParams","get","some","setupSectionButtons","sectionButtons","from","vm","sectionName","wptbSectionButton","wptbSectionDisplayType","setupPanelToggleButtons","$","each","find","click","slideToggle","toggleClass","sectionEvent","setupSidebarToggle","toggleSelector","toggleButton","toggle","externalCssStylesDelete","externalCssStylesCopy","copyElement","activeElemClass","cssForActiveElement","cssForNewElement","infArrCopyEl","cssForActiveElementInnerHTML","cssForNewElementInnerHTML","elementsStylesConvertToObject","stylesElements","stylesObj","styleElemId","getAttribute","elementsStylesSetFromObject","jsonObject","styleCss","saveTable","startSaving","previewSaving","wptbTableStateNumberSave","wptbTableStateNumberShow","bar","toggleTableEditMode","wptb_admin_object","t","messagingArea","code","datas","postId","rs","wptbId","paramIdsNecessaryChange","codeClone","wptbTableSetup","columns","WPTB_Stringifier","outerHTML","datas_containers","styleObjJson","messagingAreaText","setTimeout","params","title","content","elements_datas","elements_styles","security_code","preview_saving","id","action","builderPageUrl","history","pushState","wptbPreviewTable","wptbPreviewBtn","wptbPreviewBtnHref","previewHref","wptbSaveBtn","clickOnFreeSpace","cellModeBackground","wpcdFixedToolbar","hasAttribute","elementAjax","dataAjaxData","element_name","element_ajax_data","close","leftScrollPanelCurtain","leftScrollPanelCellSettings","toggleEditMode","deactivateMultipleSelectMode","wptbPreviewTableTds","activateMultipleSelectMode","checkingDimensionValue","dimension","searchIndex","checkSetGetStyleSizeValue","styleName","computedStyleName","elemStyleValue","elementStyles","checkSetGetStyleColorValue","set","elemStyleColorValue","checkSetGetStyleValue","getValueMaxCountSameElementsInArray","arr","check","maxPropName","recalculateIndexes","trs","maxCols","maxColsFull","tdsArr","jMainIter","colSpan","rowSpan","z","tableRowsColorsReinstall","tableIndex","tableHeaderBackground","tableEvenRowBackground","tableOddRowBackground","parentType","dragRelativeType","setDragRelativeType","MIN_COLUMNS","MIN_ROWS","MAX_COLUMNS","MAX_ROWS","tableGenerator","columnsDecrementButton","columnsIncrementButton","rowsDecrementButton","rowsIncrementButton","columnsInput","rowsInput","rows","WptbResponsive","div","classId","parentCell","elemKind","onmouseover","WPTB_LeftPanel","wptbElementButtons","wptbElement","wptbTablesEditModeCloseButton","addRowToTheEnd","addRowToTheStart","addRowBefore","addRowAfter","addColumnEnd","addColumnStart","addColumnBefore","addColumnAfter","deleteColumn","deleteRow","mergeCells","splitCell","wptbBuilderPanel","wptbHeader","selectedCells","multipleCellMode","isActivated","pushSelectedCell","flushSelectedCells","getFirst","minXIndex","minYIndex","first","getLast","maxXIndex","maxYIndex","last","removeAllButFirst","columnTitleMobile","hasDontEnumBug","propertyIsEnumerable","dontEnums","dontEnumsLength","obj","TypeError","prop","responsiveWrapperId","mainContainerQuery","responsiveTable","loaded","addContainerToDom","responsiveContainer","mainContainer","Error","responsiveElement","load","WPTB_ControlsManager","callControlScript","startUp","tablePreview","elems","wptbRelativeElements","wptbUndo","tableStateGet","wptbUndoredo","wptbUndoRedoContainer","wptbRedo","shortcodePopupWindow","onbeforeunload","wptbSaveDisabled","previewId","floor","random","newHref","tableTitleField","onchange","codeMain","tableColumns","minWidth","innerElements","wptbActionsLength","dataMceBogus","array","wptb_preview_table","maxAmountOfCells","maxAmountOfRows","mark","cs","noCells","singleCells","multipleCells","cellSettings","position","column","cellHighlighted","markedCells","controlElemIds","elementControlSizeUnicClass","elementControlSizeFixedUnicClass","sizeName","getSizeFunctionName","size","cellSizeInputs","cellSizeFixedInput","isSquare","settingId","settingElem","countMarkedCells","realTimeArray","carried","cols","matriz","items","justAssigned","amount","carriedRowspans","cellsBuffer","cellPointer","xPosition","stepsToMove","celda","drawTable","a","undoSelect","fillTableArray","colspansSums","cells","colspanSumInRow","apply","getActualPointsInRow","points","skipInCols","reconstraction","insertRow","borderWidth","setMaxAmountOfCells","getMaxAmountOfCells","addColumnWidth","cleaner","highlighted","dataXIndex","tableTdsFor","colspan","tableRows","widthIsSet","arrayTdsFromPreviousRow","wptbFixedWidth","tableTdsSumMaxWidth","tableTdsSumMaxWidthFixed","tableTdsSumMaxWidthAuto","wptbTableSetupWidth","arrayCellsWidthFixedHelper","arrayCellsWidthAutoHelper","tdPaddingCommon","tableTdBorderCommonWidth","cssForTdsWidthAuto","borderLeftWidth","borderRightWidth","tableBorderCommon","wptbTdWidthAuto","wptbCssTdAutoWidth","tableTdBorderLeftWidth","tableTdBorderRightWidth","CellsWidthAutoCount","wptbTableTdsSumMaxWidth","wptbCellsWidthAutoCount","mergingСellsHorizontally","wptbFixedWidthSize","styleElementCreate","tableTdWidthAuto","tableTdsWidthAutoCommon","cssForTdsWidthAutoOld","wptbTableAlignment","float","addRowHeight","dataYIndex","rowspan","heightIsSet","arrayTdsPrevious","wptbFixedHeight","mergingCellsVertically","forBreak","currentTable","currentTableTd","currentTdStyle","firstCell","c_pos","cellStyle","pos","newTd","nextSib","r","aux","cellNew","rowChildren","rowChildrenLength","cellRowSpan","rowAfter","cellsColSpan","tableRowsIChildren","tableRIChildrenLength","rowIRowSpan","rNext","rNextChildren","rNextChildrenLength","rowStart","columnStart","rowEnd","columnEnd","itemsEstimate","dimensions","tdsChildrenNew","tdsInternalElements","tdsIntElemLength","p","firstWidth","firstDataFixedWidth","firstHeight","firstDataFixedHeight","cellStyles","cellXIndex","rowChildInsertBefore","rowNext","Number","findRowspannedCells","difference","actualPoints","addLackingCells","sumRows","totalColspan","thisRowChildren","nextRow","nextRowChildren","nextRowChildrenLength","tdArr","nextRowChildrenK","jRowChildren","onresize","generate","wptbTableStateSaving","wptbNewTableSetup","wptbHighlighted","wptbDirectlyhovered","cssForTdsWidthAutoValue","wptbTableTitle","wptbSetupName","datawptbUndoredo","wptbTableSetupNew","wptbLeftScrollPanelCellSetting","tableStateClear"],"mappings":";;;;AAAA,IAAIA,2BAA2B,SAA3BA,wBAA2B,CAAWC,OAAX,EAAoBC,aAApB,EAAkD;AAAA,QAAfC,IAAe,uEAAR,KAAQ;;AAC7E,QAAIC,OAAOH,QAAQI,aAAR,EAAX;AAAA,QACIC,KADJ;AAAA,QAEIH,IAFJ;AAGA,QAAIC,KAAKG,SAAL,CAAeC,QAAf,CAAyB,iBAAzB,CAAJ,EAAmD;AAC/C,YAAKN,iBAAiBO,SAAjB,IAA8BN,QAAQ,IAA3C,EAAkD;AAC9C;AACA,gBAAIO,eAAeC,SAASC,sBAAT,CAAiC,iBAAjC,CAAnB;AACA,gBAAIC,oBAAoB,EAAxB;AACA,iBAAK,IAAIC,IAAI,CAAb,EAAgBA,IAAIJ,aAAaK,MAAjC,EAAyCD,GAAzC,EAA+C;AAC3C,oBAAIE,QAAQ,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