Orbit Fox by ThemeIsle - Version 2.9.7

Version Description

Download this release

Release Info

Developer themeisle
Plugin Icon 128x128 Orbit Fox by ThemeIsle
Version 2.9.7
Comparing to
See all releases

Code changes from version 2.9.6 to 2.9.7

CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
  ##### [Version 2.9.6](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.5...v2.9.6) (2020-04-06)
2
 
3
  * Update compatibility with WordPress 5.4
1
+ ##### [Version 2.9.7](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.6...v2.9.7) (2020-04-22)
2
+
3
+ - New Hidden field in the contact form widget
4
+ - Fix Mystock Import in the Gutenberg editor
5
+ - Fix overlapping widgets names with Beaver Builder Pro version
6
+ - Fix undefined index notice in Elementor Services widget
7
+ - Upgrade FontAwesome icons to FA5 for Hestia default content
8
+ - Make inline social icons round in Hestia
9
+ - Fix inline social icons not applying on pages in Hestia
10
+
11
  ##### [Version 2.9.6](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.5...v2.9.6) (2020-04-06)
12
 
13
  * Update compatibility with WordPress 5.4
core/includes/class-orbit-fox.php CHANGED
@@ -69,7 +69,7 @@ class Orbit_Fox {
69
 
70
  $this->plugin_name = 'orbit-fox';
71
 
72
- $this->version = '2.9.6';
73
 
74
  $this->load_dependencies();
75
  $this->set_locale();
69
 
70
  $this->plugin_name = 'orbit-fox';
71
 
72
+ $this->version = '2.9.7';
73
 
74
  $this->load_dependencies();
75
  $this->set_locale();
obfx_modules/beaver-widgets/init.php CHANGED
@@ -37,6 +37,7 @@ class Beaver_Widgets_OBFX_Module extends Orbit_Fox_Module_Abstract {
37
  * @return bool
38
  */
39
  public function enable_module() {
 
40
  require_once ABSPATH . 'wp-admin/includes/plugin.php';
41
  return is_plugin_active( 'beaver-builder-lite-version/fl-builder.php' ) || is_plugin_active( 'bb-plugin/fl-builder.php' );
42
  }
@@ -108,17 +109,71 @@ class Beaver_Widgets_OBFX_Module extends Orbit_Fox_Module_Abstract {
108
 
109
  return true;
110
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  /**
112
  * Require Beaver Builder modules
113
  *
114
  * @since 2.2.5
115
  * @access public
 
116
  */
117
  public function load_widgets_modules() {
118
- if ( class_exists( 'FLBuilder' ) ) {
119
- require_once 'modules/pricing-table/pricing-table.php';
120
- require_once 'modules/services/services.php';
121
- require_once 'modules/post-grid/post-grid.php';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  }
 
123
  }
 
124
  }
37
  * @return bool
38
  */
39
  public function enable_module() {
40
+ $this->check_new_user();
41
  require_once ABSPATH . 'wp-admin/includes/plugin.php';
42
  return is_plugin_active( 'beaver-builder-lite-version/fl-builder.php' ) || is_plugin_active( 'bb-plugin/fl-builder.php' );
43
  }
109
 
110
  return true;
111
  }
112
+
113
+
114
+ /**
115
+ * Check if it's a new user for orbit fox.
116
+ *
117
+ * @return bool
118
+ */
119
+ private function check_new_user() {
120
+ $is_new_user = get_option( 'obfx_new_user' );
121
+ if ( $is_new_user === 'yes' ) {
122
+ return true;
123
+ }
124
+
125
+ $install_time = get_option( 'themeisle_companion_install' );
126
+ $current_time = get_option( 'module_check_time' );
127
+ if ( empty( $current_time ) ) {
128
+ $current_time = time();
129
+ update_option( 'module_check_time', $current_time );
130
+ }
131
+ if ( empty( $install_time ) || empty( $current_time ) ) {
132
+ return false;
133
+ }
134
+
135
+ if ( ( $current_time - $install_time ) <= 60 ) {
136
+ update_option( 'obfx_new_user', 'yes' );
137
+ return true;
138
+ }
139
+
140
+ update_option( 'obfx_new_user', 'no' );
141
+ return false;
142
+ }
143
+
144
  /**
145
  * Require Beaver Builder modules
146
  *
147
  * @since 2.2.5
148
  * @access public
149
+ * @return bool
150
  */
151
  public function load_widgets_modules() {
152
+ if ( ! class_exists( 'FLBuilderModel' ) || ! class_exists( 'FLBuilder' ) ) {
153
+ return false;
154
+ }
155
+ $is_new_user = get_option( 'obfx_new_user' );
156
+ $modules_list = FLBuilderModel::$modules;
157
+
158
+ $modules_to_load = array(
159
+ 'pricing-table',
160
+ 'services',
161
+ 'post-grid',
162
+ );
163
+
164
+ $new_user_prefix = '';
165
+ if ( $is_new_user === 'yes' ) {
166
+ $new_user_prefix = 'obfx-';
167
+ }
168
+
169
+ foreach ( $modules_to_load as $module ) {
170
+ $prefix = $new_user_prefix;
171
+ if ( empty( $prefix ) && array_key_exists( $module, $modules_list ) ) {
172
+ $prefix = 'obfx-';
173
+ }
174
+ require_once 'modules/' . $module . '/' . $prefix . $module . '.php';
175
  }
176
+ return true;
177
  }
178
+
179
  }
obfx_modules/beaver-widgets/modules/post-grid/obfx-post-grid.php ADDED
@@ -0,0 +1,358 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is the same as post-grid.php. Beaver takes the name of the file and make it the id for the widget.
4
+ * There can't be two identical ID's so if Beaver Widgets Pro plugin is installed it adds a post grid widget,
5
+ * and the widget we add need to have another id. If we change the id from post-grid to obfx-post-grid,
6
+ * for users that are using beaver lite and OBFX the widgets will disappear so we need to have both files.
7
+ *
8
+ * Post grid widget.
9
+ *
10
+ * @package themeisle-companion
11
+ */
12
+ // Get the module directory.
13
+ $module_directory = $this->get_dir();
14
+
15
+ // Include custom fields
16
+ require_once $module_directory . '/custom-fields/toggle-field/toggle_field.php';
17
+
18
+ // Include common functions file.
19
+ require_once $module_directory . '/inc/common-functions.php';
20
+
21
+ /**
22
+ * Class PostGridModule
23
+ */
24
+ class PostGridModule extends FLBuilderModule {
25
+
26
+ /**
27
+ * Constructor function for the module. You must pass the
28
+ * name, description, dir and url in an array to the parent class.
29
+ *
30
+ * @method __construct
31
+ */
32
+ public function __construct() {
33
+ parent::__construct(
34
+ array(
35
+ 'name' => esc_html__( 'Post Grid', 'themeisle-companion' ),
36
+ 'description' => esc_html__( 'A method to display your posts.', 'themeisle-companion' ),
37
+ 'category' => esc_html__( 'Orbit Fox Modules', 'themeisle-companion' ),
38
+ 'dir' => BEAVER_WIDGETS_PATH . 'modules/post-grid/',
39
+ 'url' => BEAVER_WIDGETS_URL . 'modules/post-grid/',
40
+ )
41
+ );
42
+ }
43
+ }
44
+
45
+ /**
46
+ * Register the module and its form settings.
47
+ */
48
+ $image_sizes = get_intermediate_image_sizes(); //phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.get_intermediate_image_sizes_get_intermediate_image_sizes
49
+ $choices = array();
50
+ if ( ! empty( $image_sizes ) ) {
51
+ foreach ( $image_sizes as $size ) {
52
+ $name = str_replace( '_', ' ', $size );
53
+ $name = str_replace( '-', ' ', $name );
54
+ $choices[ $size ] = ucfirst( $name );
55
+ }
56
+ }
57
+ FLBuilder::register_module(
58
+ 'PostGridModule',
59
+ array(
60
+ 'loop_settings' => array(
61
+ 'title' => esc_html__( 'Loop Settings', 'themeisle-companion' ),
62
+ 'file' => BEAVER_WIDGETS_PATH . 'modules/post-grid/includes/loop-settings.php',
63
+ ),
64
+ 'image_options' => array(
65
+ 'title' => esc_html__( 'Image options', 'themeisle-companion' ), // Tab title
66
+ 'sections' => array(
67
+ 'general' => array(
68
+ 'title' => '',
69
+ 'fields' => array(
70
+ 'show_post_thumbnail' => array(
71
+ 'type' => 'obfx_toggle',
72
+ 'label' => esc_html__( 'Show post thumbnail', 'themeisle-companion' ),
73
+ 'default' => 'yes',
74
+ ),
75
+ 'show_thumbnail_link' => array(
76
+ 'type' => 'obfx_toggle',
77
+ 'label' => esc_html__( 'Link in thumbnail', 'themeisle-companion' ),
78
+ 'default' => 'no',
79
+ ),
80
+ 'thumbnail_shadow' => array(
81
+ 'type' => 'obfx_toggle',
82
+ 'label' => esc_html__( 'Enable thumbnail shadow', 'themeisle-companion' ),
83
+ 'default' => 'no',
84
+ ),
85
+ 'image_size' => array(
86
+ 'type' => 'select',
87
+ 'label' => esc_html__( 'Image size', 'themeisle-companion' ),
88
+ 'default' => 'medium_large',
89
+ 'options' => $choices,
90
+
91
+ ),
92
+ 'image_alignment' => array(
93
+ 'type' => 'select',
94
+ 'label' => esc_html__( 'Image alignment', 'themeisle-companion' ),
95
+ 'default' => 'center',
96
+ 'options' => array(
97
+ 'center' => esc_html__( 'Center', 'themeisle-companion' ),
98
+ 'left' => esc_html__( 'Left', 'themeisle-companion' ),
99
+ 'right' => esc_html__( 'Right', 'themeisle-companion' ),
100
+ ),
101
+ 'toggle' => array(
102
+ 'left' => array(
103
+ 'fields' => array( 'thumbnail_margin_left', 'thumbnail_margin_right' ),
104
+ ),
105
+ 'right' => array(
106
+ 'fields' => array( 'thumbnail_margin_left', 'thumbnail_margin_right' ),
107
+ ),
108
+ ),
109
+ ),
110
+ ),
111
+ ),
112
+ 'thumbnail_margins' => themeisle_four_fields_control(
113
+ array(
114
+ 'default' => array(
115
+ 'top' => 0,
116
+ 'bottom' => 30,
117
+ 'left' => 0,
118
+ 'right' => 0,
119
+ ),
120
+ 'selector' => '.obfx-post-grid-thumbnail',
121
+ 'field_name_prefix' => 'thumbnail_margin_',
122
+ 'type' => 'margin',
123
+ )
124
+ ),
125
+ ),
126
+ ),
127
+ 'title_options' => array(
128
+ 'title' => esc_html__( 'Title options', 'themeisle-companion' ), // Tab title
129
+ 'sections' => array(
130
+ 'general' => array(
131
+ 'title' => '',
132
+ 'fields' => array(
133
+ 'show_post_title' => array(
134
+ 'type' => 'obfx_toggle',
135
+ 'label' => esc_html__( 'Show post title', 'themeisle-companion' ),
136
+ 'default' => 'yes',
137
+ ),
138
+ 'show_title_link' => array(
139
+ 'type' => 'obfx_toggle',
140
+ 'label' => esc_html__( 'Link on title', 'themeisle-companion' ),
141
+ 'default' => 'yes',
142
+ ),
143
+ 'title_alignment' => array(
144
+ 'type' => 'select',
145
+ 'label' => esc_html__( 'Title alignment', 'themeisle-companion' ),
146
+ 'default' => 'center',
147
+ 'options' => array(
148
+ 'center' => esc_html__( 'Center', 'themeisle-companion' ),
149
+ 'left' => esc_html__( 'Left', 'themeisle-companion' ),
150
+ 'right' => esc_html__( 'Right', 'themeisle-companion' ),
151
+ ),
152
+
153
+ ),
154
+ 'title_tag' => array(
155
+ 'type' => 'select',
156
+ 'label' => esc_html__( 'Title tag', 'themeisle-companion' ),
157
+ 'default' => 'h5',
158
+ 'options' => array(
159
+ 'h1' => esc_html__( 'H1', 'themeisle-companion' ),
160
+ 'h2' => esc_html__( 'H2', 'themeisle-companion' ),
161
+ 'h3' => esc_html__( 'H3', 'themeisle-companion' ),
162
+ 'h4' => esc_html__( 'H4', 'themeisle-companion' ),
163
+ 'h5' => esc_html__( 'H5', 'themeisle-companion' ),
164
+ 'h6' => esc_html__( 'H6', 'themeisle-companion' ),
165
+ 'span' => esc_html__( 'span', 'themeisle-companion' ),
166
+ 'p' => esc_html__( 'p', 'themeisle-companion' ),
167
+ 'div' => esc_html__( 'div', 'themeisle-companion' ),
168
+ ),
169
+ ),
170
+ ),
171
+ ),
172
+ 'title_margins' => themeisle_four_fields_control(
173
+ array(
174
+ 'default' => array(
175
+ 'top' => 0,
176
+ 'bottom' => 0,
177
+ 'left' => 0,
178
+ 'right' => 0,
179
+ ),
180
+ 'selector' => '.obfx-post-grid-title',
181
+ 'field_name_prefix' => 'title_padding_',
182
+ 'type' => 'padding',
183
+ )
184
+ ),
185
+ 'title_typography' => themeisle_typography_settings(
186
+ array(
187
+ 'prefix' => 'title_',
188
+ 'selector' => '.obfx-post-grid-title',
189
+ 'font_size_default' => 25,
190
+ )
191
+ ),
192
+ ),
193
+ ),
194
+ 'meta_options' => array(
195
+ 'title' => esc_html__( 'Meta options', 'themeisle-companion' ), // Tab title
196
+ 'sections' => array(
197
+ 'general' => array(
198
+ 'title' => '',
199
+ 'fields' => array(
200
+ 'show_post_meta' => array(
201
+ 'type' => 'obfx_toggle',
202
+ 'label' => esc_html__( 'Show post meta', 'themeisle-companion' ),
203
+ 'default' => 'yes',
204
+ ),
205
+ 'show_icons' => array(
206
+ 'type' => 'obfx_toggle',
207
+ 'label' => esc_html__( 'Show icons', 'themeisle-companion' ),
208
+ 'default' => 'yes',
209
+ 'help' => esc_html__( 'If icons doesn\'t show you have to enqueue FontAwesome in your theme.', 'themeisle-companion' ),
210
+ ),
211
+ 'meta_data' => array(
212
+ 'type' => 'select',
213
+ 'label' => esc_html__( 'Display', 'themeisle-companion' ),
214
+ 'default' => array( 'author', 'date' ),
215
+ 'options' => array(
216
+ 'author' => esc_html__( 'Author', 'themeisle-companion' ),
217
+ 'date' => esc_html__( 'Date', 'themeisle-companion' ),
218
+ 'category' => esc_html__( 'Category', 'themeisle-companion' ),
219
+ 'tags' => esc_html__( 'Tags', 'themeisle-companion' ),
220
+ 'comments' => esc_html__( 'Comments', 'themeisle-companion' ),
221
+ ),
222
+ 'multi-select' => true,
223
+ ),
224
+ 'meta_alignment' => array(
225
+ 'type' => 'select',
226
+ 'label' => esc_html__( 'Meta alignment', 'themeisle-companion' ),
227
+ 'default' => 'center',
228
+ 'options' => array(
229
+ 'center' => esc_html__( 'Center', 'themeisle-companion' ),
230
+ 'left' => esc_html__( 'Left', 'themeisle-companion' ),
231
+ 'right' => esc_html__( 'Right', 'themeisle-companion' ),
232
+ ),
233
+ ),
234
+ ),
235
+ ),
236
+ 'meta_margins' => themeisle_four_fields_control(
237
+ array(
238
+ 'default' => array(
239
+ 'top' => 0,
240
+ 'bottom' => 0,
241
+ 'left' => 0,
242
+ 'right' => 0,
243
+ ),
244
+ 'selector' => '.obfx-post-grid-meta',
245
+ 'field_name_prefix' => 'meta_padding_',
246
+ 'type' => 'padding',
247
+ )
248
+ ),
249
+ 'meta_typography' => themeisle_typography_settings(
250
+ array(
251
+ 'prefix' => 'meta_',
252
+ 'selector' => '.obfx-post-grid-meta',
253
+ 'font_size_default' => 15,
254
+ )
255
+ ),
256
+ ),
257
+ ),
258
+ 'content_options' => array(
259
+ 'title' => esc_html__( 'Content options', 'themeisle-companion' ), // Tab title
260
+ 'sections' => array(
261
+ 'general' => array(
262
+ 'title' => '',
263
+ 'fields' => array(
264
+ 'show_post_content' => array(
265
+ 'type' => 'obfx_toggle',
266
+ 'label' => esc_html__( 'Show post content', 'themeisle-companion' ),
267
+ 'default' => 'yes',
268
+ ),
269
+ 'show_read_more' => array(
270
+ 'type' => 'obfx_toggle',
271
+ 'label' => esc_html__( 'Show read more', 'themeisle-companion' ),
272
+ 'default' => 'yes',
273
+ ),
274
+ 'content_length' => array(
275
+ 'type' => 'obfx_number',
276
+ 'label' => esc_html__( 'Number of words', 'themeisle-companion' ),
277
+ 'default' => '30',
278
+ 'min' => '1',
279
+ ),
280
+ 'read_more_text' => array(
281
+ 'type' => 'text',
282
+ 'label' => esc_html__( 'Read more text', 'themeisle-companion' ),
283
+ 'default' => esc_html__( 'Read more', 'themeisle-companion' ),
284
+ 'maxlength' => '70',
285
+ 'size' => '30',
286
+ 'preview' => array(
287
+ 'type' => 'text',
288
+ 'selector' => '.obfx-post-grid-read-more',
289
+ ),
290
+ ),
291
+ 'content_alignment' => array(
292
+ 'type' => 'select',
293
+ 'label' => esc_html__( 'Text alignment', 'themeisle-companion' ),
294
+ 'default' => 'left',
295
+ 'options' => array(
296
+ 'center' => esc_html__( 'Center', 'themeisle-companion' ),
297
+ 'left' => esc_html__( 'Left', 'themeisle-companion' ),
298
+ 'right' => esc_html__( 'Right', 'themeisle-companion' ),
299
+ ),
300
+
301
+ ),
302
+ ),
303
+ ),
304
+ 'content_margins' => themeisle_four_fields_control(
305
+ array(
306
+ 'default' => array(
307
+ 'top' => 0,
308
+ 'bottom' => 0,
309
+ 'left' => 15,
310
+ 'right' => 15,
311
+ ),
312
+ 'selector' => '.obfx-post-content',
313
+ 'field_name_prefix' => 'content_padding_',
314
+ 'type' => 'padding',
315
+ )
316
+ ),
317
+ 'content_typography' => themeisle_typography_settings(
318
+ array(
319
+ 'prefix' => 'content_',
320
+ 'selector' => '.obfx-post-content',
321
+ 'font_size_default' => 20,
322
+ )
323
+ ),
324
+ ),
325
+ ),
326
+ 'pagination_options' => array(
327
+ 'title' => esc_html__( 'Pagination options', 'themeisle-companion' ),
328
+ 'sections' => array(
329
+ 'general' => array(
330
+ 'title' => '',
331
+ 'fields' => array(
332
+ 'show_pagination' => array(
333
+ 'type' => 'obfx_toggle',
334
+ 'label' => esc_html__( 'Enable pagination', 'themeisle-companion' ),
335
+ ),
336
+ 'pagination_alignment' => array(
337
+ 'type' => 'select',
338
+ 'label' => esc_html__( 'Pagination alignment', 'themeisle-companion' ),
339
+ 'default' => 'center',
340
+ 'options' => array(
341
+ 'center' => esc_html__( 'Center', 'themeisle-companion' ),
342
+ 'left' => esc_html__( 'Left', 'themeisle-companion' ),
343
+ 'right' => esc_html__( 'Right', 'themeisle-companion' ),
344
+ ),
345
+ ),
346
+ ),
347
+ ),
348
+ 'pagination_typography' => themeisle_typography_settings(
349
+ array(
350
+ 'prefix' => 'pagination_',
351
+ 'selector' => '.obfx-post-grid-pagination',
352
+ 'font_size_default' => 20,
353
+ )
354
+ ),
355
+ ),
356
+ ),
357
+ )
358
+ );
obfx_modules/beaver-widgets/modules/post-grid/post-grid.php CHANGED
@@ -1,4 +1,9 @@
1
  <?php
 
 
 
 
 
2
 
3
  // Get the module directory.
4
  $module_directory = $this->get_dir();
1
  <?php
2
+ /**
3
+ * Post grid widget.
4
+ *
5
+ * @package themeisle-companion
6
+ */
7
 
8
  // Get the module directory.
9
  $module_directory = $this->get_dir();
obfx_modules/beaver-widgets/modules/pricing-table/obfx-pricing-table.php ADDED
@@ -0,0 +1,594 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is the same as pricing-table.php. Beaver takes the name of the file and make it the id for the widget.
4
+ * There can't be two identical ID's so if Beaver Widgets Pro plugin is installed it adds a pricing widget,
5
+ * and the widget we add need to have another id. If we change the id from pricing-table to obfx-pricing-table,
6
+ * for users that are using beaver lite and OBFX the widgets will disappear so we need to have both files.
7
+ *
8
+ * Pricing table module.
9
+ *
10
+ * @package themeisle-companion
11
+ */
12
+
13
+ // Get the module directory.
14
+ $module_directory = $this->get_dir();
15
+
16
+ // Include common functions file.
17
+ require_once $module_directory . '/inc/common-functions.php';
18
+
19
+ // Include custom fields
20
+ require_once $module_directory . '/custom-fields/toggle-field/toggle_field.php';
21
+
22
+ /**
23
+ * Class PricingTableModule
24
+ */
25
+ class PricingTableModule extends FLBuilderModule {
26
+
27
+ /**
28
+ * Constructor function for the module. You must pass the
29
+ * name, description, dir and url in an array to the parent class.
30
+ *
31
+ * @method __construct
32
+ */
33
+ public function __construct() {
34
+ parent::__construct(
35
+ array(
36
+ 'name' => esc_html__( 'Pricing table', 'themeisle-companion' ),
37
+ 'description' => esc_html__( 'Pricing Tables are the perfect option when showcasing services you have on offer.', 'themeisle-companion' ),
38
+ 'category' => esc_html__( 'Orbit Fox Modules', 'themeisle-companion' ),
39
+ 'dir' => BEAVER_WIDGETS_PATH . 'modules/pricing-table/',
40
+ 'url' => BEAVER_WIDGETS_URL . 'modules/pricing-table/',
41
+ 'editor_export' => true, // Defaults to true and can be omitted.
42
+ 'enabled' => true, // Defaults to true and can be omitted.
43
+ )
44
+ );
45
+ }
46
+ }
47
+
48
+ /**
49
+ * Register the module and its form settings.
50
+ */
51
+ FLBuilder::register_module(
52
+ 'PricingTableModule',
53
+ array(
54
+ 'content' => array(
55
+ 'title' => esc_html__( 'Content', 'themeisle-companion' ), // Tab title
56
+ 'sections' => array(
57
+ 'header' => array(
58
+ 'title' => esc_html__( 'Plan Header', 'themeisle-companion' ),
59
+ 'fields' => array(
60
+ 'plan_title' => array(
61
+ 'type' => 'text',
62
+ 'label' => esc_html__( 'Title', 'themeisle-companion' ),
63
+ 'default' => esc_html__( 'Plan title', 'themeisle-companion' ),
64
+ 'preview' => array(
65
+ 'type' => 'text',
66
+ 'selector' => '.obfx-plan-title',
67
+ ),
68
+ ),
69
+ 'plan_title_tag' => array(
70
+ 'type' => 'select',
71
+ 'label' => esc_html__( 'Title tag', 'themeisle-companion' ),
72
+ 'default' => 'h2',
73
+ 'options' => array(
74
+ 'h1' => esc_html__( 'h1', 'themeisle-companion' ),
75
+ 'h2' => esc_html__( 'h2', 'themeisle-companion' ),
76
+ 'h3' => esc_html__( 'h3', 'themeisle-companion' ),
77
+ 'h4' => esc_html__( 'h4', 'themeisle-companion' ),
78
+ 'h5' => esc_html__( 'h5', 'themeisle-companion' ),
79
+ 'h6' => esc_html__( 'h6', 'themeisle-companion' ),
80
+ 'p' => esc_html__( 'p', 'themeisle-companion' ),
81
+ ),
82
+ ),
83
+ 'plan_subtitle' => array(
84
+ 'type' => 'text',
85
+ 'label' => esc_html__( 'Subtitle', 'themeisle-companion' ),
86
+ 'default' => esc_html__( 'Plan subtitle', 'themeisle-companion' ),
87
+ 'preview' => array(
88
+ 'type' => 'text',
89
+ 'selector' => '.obfx-plan-subtitle',
90
+ ),
91
+ ),
92
+ 'plan_subtitle_tag' => array(
93
+ 'type' => 'select',
94
+ 'label' => esc_html__( 'Subtitle tag', 'themeisle-companion' ),
95
+ 'default' => 'p',
96
+ 'options' => array(
97
+ 'h1' => esc_html__( 'h1', 'themeisle-companion' ),
98
+ 'h2' => esc_html__( 'h2', 'themeisle-companion' ),
99
+ 'h3' => esc_html__( 'h3', 'themeisle-companion' ),
100
+ 'h4' => esc_html__( 'h4', 'themeisle-companion' ),
101
+ 'h5' => esc_html__( 'h5', 'themeisle-companion' ),
102
+ 'h6' => esc_html__( 'h6', 'themeisle-companion' ),
103
+ 'p' => esc_html__( 'p', 'themeisle-companion' ),
104
+ ),
105
+ ),
106
+ ),
107
+ ),
108
+ 'price' => array(
109
+ 'title' => esc_html__( 'Price Tag', 'themeisle-companion' ),
110
+ 'fields' => array(
111
+ 'price' => array(
112
+ 'type' => 'text',
113
+ 'label' => esc_html__( 'Price', 'themeisle-companion' ),
114
+ 'default' => '50',
115
+ 'preview' => array(
116
+ 'type' => 'text',
117
+ 'selector' => '.obfx-price',
118
+ ),
119
+ ),
120
+ 'currency' => array(
121
+ 'type' => 'text',
122
+ 'label' => esc_html__( 'Currency', 'themeisle-companion' ),
123
+ 'default' => '$',
124
+ 'preview' => array(
125
+ 'type' => 'text',
126
+ 'selector' => '.obfx-currency',
127
+ ),
128
+ ),
129
+ 'currency_position' => array(
130
+ 'type' => 'select',
131
+ 'label' => esc_html__( 'Currency position', 'themeisle-companion' ),
132
+ 'default' => 'after',
133
+ 'options' => array(
134
+ 'before' => esc_html__( 'Before', 'themeisle-companion' ),
135
+ 'after' => esc_html__( 'After', 'themeisle-companion' ),
136
+ ),
137
+ ),
138
+ 'period' => array(
139
+ 'type' => 'text',
140
+ 'label' => esc_html__( 'Period', 'themeisle-companion' ),
141
+ 'default' => esc_html__( '/month', 'themeisle-companion' ),
142
+ 'preview' => array(
143
+ 'type' => 'text',
144
+ 'selector' => '.obfx-period',
145
+ ),
146
+ ),
147
+ ),
148
+ ),
149
+ 'features' => array(
150
+ 'title' => esc_html__( 'Features list', 'themeisle-companion' ),
151
+ 'fields' => array(
152
+ 'features' => array(
153
+ 'multiple' => true,
154
+ 'type' => 'form',
155
+ 'label' => esc_html__( 'Feature', 'themeisle-companion' ),
156
+ 'form' => 'feature_field', // ID of a registered form.
157
+ 'preview_text' => 'text', // ID of a field to use for the preview text.
158
+ ),
159
+ ),
160
+ ),
161
+ 'button' => array(
162
+ 'title' => esc_html__( 'Button', 'themeisle-companion' ),
163
+ 'fields' => array(
164
+ 'text' => array(
165
+ 'type' => 'text',
166
+ 'label' => esc_html__( 'Button text', 'themeisle-companion' ),
167
+ 'default' => esc_html__( 'Button', 'themeisle-companion' ),
168
+ 'preview' => array(
169
+ 'type' => 'text',
170
+ 'selector' => '.obfx-plan-button',
171
+ ),
172
+ ),
173
+ 'link' => array(
174
+ 'type' => 'link',
175
+ 'label' => esc_html__( 'Button link', 'themeisle-companion' ),
176
+ ),
177
+ ),
178
+ ),
179
+ 'appearance' => array(
180
+ 'title' => esc_html__( 'Appearance', 'themeisle-companion' ),
181
+ 'fields' => array(
182
+ 'card_layout' => array(
183
+ 'type' => 'obfx_toggle',
184
+ 'label' => esc_html__( 'Card layout', 'themeisle-companion' ),
185
+ 'default' => 'yes',
186
+ ),
187
+ 'text_position' => array(
188
+ 'type' => 'select',
189
+ 'label' => esc_html__( 'Align', 'themeisle-companion' ),
190
+ 'default' => 'center',
191
+ 'options' => array(
192
+ 'center' => esc_html__( 'Center', 'themeisle-companion' ),
193
+ 'left' => esc_html__( 'Left', 'themeisle-companion' ),
194
+ 'right' => esc_html__( 'Right', 'themeisle-companion' ),
195
+ ),
196
+ ),
197
+ ),
198
+ ),
199
+ ),
200
+ ),
201
+ 'header_style' => array(
202
+ 'title' => esc_html__( 'Header Style', 'themeisle-companion' ),
203
+ 'sections' => array(
204
+ 'header_padding' => themeisle_four_fields_control(
205
+ array(
206
+ 'default' => array(
207
+ 'top' => 15,
208
+ 'bottom' => 15,
209
+ 'left' => 0,
210
+ 'right' => 0,
211
+ ),
212
+ 'selector' => '.obfx-pricing-header',
213
+ 'field_name_prefix' => '',
214
+ )
215
+ ),
216
+ 'colors' => array(
217
+ 'title' => esc_html__( 'Colors', 'themeisle-companion' ),
218
+ 'fields' => array(
219
+ 'title_color' => array(
220
+ 'type' => 'color',
221
+ 'label' => esc_html__( 'Title color', 'themeisle-companion' ),
222
+ 'preview' => array(
223
+ 'type' => 'css',
224
+ 'rules' => array(
225
+ array(
226
+ 'selector' => '.obfx-pricing-header *:first-child',
227
+ 'property' => 'color',
228
+ ),
229
+ ),
230
+ ),
231
+ ),
232
+ 'subtitle_color' => array(
233
+ 'type' => 'color',
234
+ 'label' => esc_html__( 'Subtitle color', 'themeisle-companion' ),
235
+ 'preview' => array(
236
+ 'type' => 'css',
237
+ 'rules' => array(
238
+ array(
239
+ 'selector' => '.obfx-pricing-header *:last-child',
240
+ 'property' => 'color',
241
+ ),
242
+ ),
243
+ ),
244
+ ),
245
+ ),
246
+ ),
247
+ 'title_typography' => themeisle_typography_settings(
248
+ array(
249
+ 'title' => esc_html__( 'Title typography', 'themeisle-companion' ),
250
+ 'prefix' => 'title_',
251
+ 'selector' => '.obfx-pricing-header *:first-child',
252
+ )
253
+ ),
254
+ 'subtitle_typography' => themeisle_typography_settings(
255
+ array(
256
+ 'title' => esc_html__( 'Subtitle typography', 'themeisle-companion' ),
257
+ 'prefix' => 'subtitle_',
258
+ 'selector' => '.obfx-pricing-header *:last-child',
259
+ )
260
+ ),
261
+ 'header_background' => array(
262
+ 'title' => esc_html__( 'Background', 'themeisle-companion' ),
263
+ 'fields' => array(
264
+ 'bg_type' => array(
265
+ 'type' => 'select',
266
+ 'label' => esc_html__( 'Type', 'themeisle-companion' ),
267
+ 'default' => 'color',
268
+ 'options' => array(
269
+ 'color' => esc_html__( 'Color', 'themeisle-companion' ),
270
+ 'image' => esc_html__( 'Background', 'themeisle-companion' ),
271
+ 'gradient' => esc_html__( 'Gradient', 'themeisle-companion' ),
272
+ ),
273
+ 'toggle' => array(
274
+ 'color' => array(
275
+ 'fields' => array( 'header_bg_color' ),
276
+ ),
277
+ 'image' => array(
278
+ 'fields' => array( 'header_bg_image' ),
279
+ ),
280
+ 'gradient' => array(
281
+ 'fields' => array( 'gradient_color1', 'gradient_color2', 'gradient_orientation' ),
282
+ ),
283
+ ),
284
+ ),
285
+ 'header_bg_color' => array(
286
+ 'type' => 'color',
287
+ 'label' => esc_html__( 'Background color', 'themeisle-companion' ),
288
+ 'show_reset' => true,
289
+ 'preview' => array(
290
+ 'type' => 'css',
291
+ 'rules' => array(
292
+ array(
293
+ 'selector' => '.obfx-pricing-header',
294
+ 'property' => 'background-color',
295
+ ),
296
+ ),
297
+ ),
298
+ ),
299
+ 'header_bg_image' => array(
300
+ 'type' => 'photo',
301
+ 'label' => esc_html__( 'Photo Field', 'themeisle-companion' ),
302
+ 'show_remove' => true,
303
+ ),
304
+ 'gradient_color1' => array(
305
+ 'type' => 'color',
306
+ 'label' => esc_html__( 'Gradient color 1', 'themeisle-companion' ),
307
+ 'show_reset' => true,
308
+ ),
309
+ 'gradient_color2' => array(
310
+ 'type' => 'color',
311
+ 'label' => esc_html__( 'Gradient color 2', 'themeisle-companion' ),
312
+ 'show_reset' => true,
313
+ ),
314
+ 'gradient_orientation' => array(
315
+ 'type' => 'select',
316
+ 'label' => esc_html__( 'Orientation', 'themeisle-companion' ),
317
+ 'default' => 'horizontal',
318
+ 'options' => array(
319
+ 'horizontal' => esc_html__( 'Horizontal', 'themeisle-companion' ),
320
+ 'vertical' => esc_html__( 'Vertical', 'themeisle-companion' ),
321
+ 'diagonal_bottom' => esc_html__( 'Diagonal bottom', 'themeisle-companion' ),
322
+ 'diagonal_top' => esc_html__( 'Diagonal top', 'themeisle-companion' ),
323
+ 'radial' => esc_html__( 'Radial', 'themeisle-companion' ),
324
+ ),
325
+ ),
326
+ ),
327
+ ),
328
+ ),
329
+ ),
330
+ 'price_style' => array(
331
+ 'title' => esc_html__( 'Price Style', 'themeisle-companion' ),
332
+ 'sections' => array(
333
+ 'price_padding' => themeisle_four_fields_control(
334
+ array(
335
+ 'default' => array(
336
+ 'top' => 15,
337
+ 'bottom' => 15,
338
+ 'left' => 0,
339
+ 'right' => 0,
340
+ ),
341
+ 'selector' => '.obfx-pricing-price',
342
+ 'field_name_prefix' => 'price_',
343
+ )
344
+ ),
345
+ 'price_colors' => array(
346
+ 'title' => esc_html__( 'Colors', 'themeisle-companion' ),
347
+ 'fields' => array(
348
+ 'price_color' => array(
349
+ 'type' => 'color',
350
+ 'label' => esc_html__( 'Price color', 'themeisle-companion' ),
351
+ 'preview' => array(
352
+ 'type' => 'css',
353
+ 'rules' => array(
354
+ array(
355
+ 'selector' => '.obfx-price',
356
+ 'property' => 'color',
357
+ ),
358
+ ),
359
+ ),
360
+ ),
361
+ 'currency_color' => array(
362
+ 'type' => 'color',
363
+ 'label' => esc_html__( 'Currency color', 'themeisle-companion' ),
364
+ 'preview' => array(
365
+ 'type' => 'css',
366
+ 'rules' => array(
367
+ array(
368
+ 'selector' => '.obfx-pricing-price sup',
369
+ 'property' => 'color',
370
+ ),
371
+ ),
372
+ ),
373
+ ),
374
+ 'period_color' => array(
375
+ 'type' => 'color',
376
+ 'label' => esc_html__( 'Period color', 'themeisle-companion' ),
377
+ 'preview' => array(
378
+ 'type' => 'css',
379
+ 'rules' => array(
380
+ array(
381
+ 'selector' => '.obfx-period',
382
+ 'property' => 'color',
383
+ ),
384
+ ),
385
+ ),
386
+ ),
387
+ ),
388
+ ),
389
+ 'price_typography' => themeisle_typography_settings(
390
+ array(
391
+ 'prefix' => 'price_',
392
+ 'selector' => '.obfx-pricing-price',
393
+ 'font_size_default' => 40,
394
+ )
395
+ ),
396
+ ),
397
+ ),
398
+ 'features_style' => array(
399
+ 'title' => esc_html__( 'Features Style', 'themeisle-companion' ),
400
+ 'sections' => array(
401
+ 'features_padding' => themeisle_four_fields_control(
402
+ array(
403
+ 'default' => array(
404
+ 'top' => 15,
405
+ 'bottom' => 15,
406
+ 'left' => 0,
407
+ 'right' => 0,
408
+ ),
409
+ 'selector' => '.obfx-pricing-price',
410
+ 'field_name_prefix' => 'features_',
411
+ )
412
+ ),
413
+ 'features_colors' => array(
414
+ 'title' => esc_html__( 'Colors', 'themeisle-companion' ),
415
+ 'fields' => array(
416
+ 'icon_color' => array(
417
+ 'type' => 'color',
418
+ 'label' => esc_html__( 'Icon color', 'themeisle-companion' ),
419
+ 'preview' => array(
420
+ 'type' => 'css',
421
+ 'rules' => array(
422
+ array(
423
+ 'selector' => '.obfx-pricing-feature-content i',
424
+ 'property' => 'color',
425
+ ),
426
+ ),
427
+ ),
428
+ ),
429
+ 'bold_color' => array(
430
+ 'type' => 'color',
431
+ 'label' => esc_html__( 'Bold text color', 'themeisle-companion' ),
432
+ 'preview' => array(
433
+ 'type' => 'css',
434
+ 'rules' => array(
435
+ array(
436
+ 'selector' => '.obfx-pricing-feature-content strong',
437
+ 'property' => 'color',
438
+ ),
439
+ ),
440
+ ),
441
+ ),
442
+ 'feature_color' => array(
443
+ 'type' => 'color',
444
+ 'label' => esc_html__( 'Text color', 'themeisle-companion' ),
445
+ 'preview' => array(
446
+ 'type' => 'css',
447
+ 'rules' => array(
448
+ array(
449
+ 'selector' => '.obfx-pricing-feature-content:not(i):not(strong)',
450
+ 'property' => 'color',
451
+ ),
452
+ ),
453
+ ),
454
+ ),
455
+ ),
456
+ ),
457
+ 'feature_typography' => themeisle_typography_settings(
458
+ array(
459
+ 'prefix' => 'feature_',
460
+ 'selector' => '.obfx-pricing-feature-content *',
461
+ 'font_size_default' => 17,
462
+ )
463
+ ),
464
+ ),
465
+ ),
466
+ 'button_style' => array(
467
+ 'title' => esc_html__( 'Button Style', 'themeisle-companion' ),
468
+ 'sections' => array(
469
+ 'button_margins' => themeisle_four_fields_control(
470
+ array(
471
+ 'default' => array(
472
+ 'top' => 15,
473
+ 'bottom' => 15,
474
+ 'left' => 0,
475
+ 'right' => 0,
476
+ ),
477
+ 'selector' => '.obfx-plan-bottom',
478
+ 'field_name_prefix' => 'button_margin_',
479
+ 'type' => 'margin',
480
+ )
481
+ ),
482
+ 'button_padding' => themeisle_four_fields_control(
483
+ array(
484
+ 'default' => array(
485
+ 'top' => 6,
486
+ 'bottom' => 6,
487
+ 'left' => 12,
488
+ 'right' => 12,
489
+ ),
490
+ 'selector' => '.obfx-plan-button',
491
+ 'field_name_prefix' => 'button_padding_',
492
+ )
493
+ ),
494
+ 'button_colors' => array(
495
+ 'title' => esc_html__( 'Colors', 'themeisle-companion' ),
496
+ 'fields' => array(
497
+ 'button_text_color' => array(
498
+ 'type' => 'color',
499
+ 'label' => esc_html__( 'Text', 'themeisle-companion' ),
500
+ 'preview' => array(
501
+ 'type' => 'css',
502
+ 'rules' => array(
503
+ array(
504
+ 'selector' => '.obfx-plan-button',
505
+ 'property' => 'color',
506
+ ),
507
+ ),
508
+ ),
509
+ ),
510
+ 'button_text_color_hover' => array(
511
+ 'type' => 'color',
512
+ 'label' => esc_html__( 'Text on hover', 'themeisle-companion' ),
513
+ 'preview' => array(
514
+ 'type' => 'css',
515
+ 'rules' => array(
516
+ array(
517
+ 'selector' => '.obfx-plan-button:hover',
518
+ 'property' => 'color',
519
+ ),
520
+ ),
521
+ ),
522
+ ),
523
+ 'button_bg_color' => array(
524
+ 'type' => 'color',
525
+ 'label' => esc_html__( 'Button background', 'themeisle-companion' ),
526
+ 'preview' => array(
527
+ 'type' => 'css',
528
+ 'rules' => array(
529
+ array(
530
+ 'selector' => '.obfx-plan-button',
531
+ 'property' => 'background-color',
532
+ ),
533
+ ),
534
+ ),
535
+ ),
536
+ 'button_bg_color_hover' => array(
537
+ 'type' => 'color',
538
+ 'label' => esc_html__( 'Button background on hover', 'themeisle-companion' ),
539
+ 'preview' => array(
540
+ 'type' => 'css',
541
+ 'rules' => array(
542
+ array(
543
+ 'selector' => '.obfx-plan-button:hover',
544
+ 'property' => 'background-color',
545
+ ),
546
+ ),
547
+ ),
548
+ ),
549
+ ),
550
+ ),
551
+ 'button_typography' => themeisle_typography_settings(
552
+ array(
553
+ 'prefix' => 'button_',
554
+ 'selector' => '.obfx-plan-button',
555
+ 'font_size_default' => 15,
556
+ )
557
+ ),
558
+ ),
559
+ ),
560
+ )
561
+ );
562
+
563
+
564
+ FLBuilder::register_settings_form(
565
+ 'feature_field',
566
+ array(
567
+ 'title' => __( 'Feature', 'themeisle-companion' ),
568
+ 'tabs' => array(
569
+ 'general' => array(
570
+ 'title' => esc_html__( 'General', 'themeisle-companion' ),
571
+ 'sections' => array(
572
+ 'general' => array(
573
+ 'title' => '',
574
+ 'fields' => array(
575
+ 'bold_text' => array(
576
+ 'type' => 'text',
577
+ 'label' => esc_html__( 'Bold text', 'themeisle-companion' ),
578
+ ),
579
+ 'text' => array(
580
+ 'type' => 'text',
581
+ 'label' => esc_html__( 'Text', 'themeisle-companion' ),
582
+ ),
583
+ 'icon' => array(
584
+ 'type' => 'icon',
585
+ 'label' => esc_html__( 'Icon', 'themeisle-companion' ),
586
+ 'show_remove' => true,
587
+ ),
588
+ ),
589
+ ),
590
+ ),
591
+ ),
592
+ ),
593
+ )
594
+ );
obfx_modules/beaver-widgets/modules/services/obfx-services.php ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is the same as services.php. Beaver takes the name of the file and make it the id for the widget.
4
+ * There can't be two identical ID's so if Beaver Widgets Pro plugin is installed it adds a services widget,
5
+ * and the widget we add need to have another id. If we change the id from services to obfx-services, for users
6
+ * that are using beaver lite and OBFX the widgets will disappear so we need to have both files.
7
+ *
8
+ * Services module.
9
+ *
10
+ * @package themeisle-companion
11
+ */
12
+
13
+ // Get the module directory.
14
+ $module_directory = $this->get_dir();
15
+
16
+ // Include common functions file.
17
+ require_once $module_directory . '/inc/common-functions.php';
18
+
19
+ // Include custom fields
20
+ require_once $module_directory . '/custom-fields/toggle-field/toggle_field.php';
21
+
22
+ /**
23
+ * Class PricingTableModule
24
+ */
25
+ class ServicesModule extends FLBuilderModule {
26
+
27
+ /**
28
+ * Constructor function for the module. You must pass the
29
+ * name, description, dir and url in an array to the parent class.
30
+ *
31
+ * @method __construct
32
+ */
33
+ public function __construct() {
34
+ parent::__construct(
35
+ array(
36
+ 'name' => esc_html__( 'Services', 'themeisle-companion' ),
37
+ 'description' => esc_html__( 'An overview of the products or services.', 'themeisle-companion' ),
38
+ 'category' => esc_html__( 'Orbit Fox Modules', 'themeisle-companion' ),
39
+ 'dir' => BEAVER_WIDGETS_PATH . 'modules/services/',
40
+ 'url' => BEAVER_WIDGETS_URL . 'modules/services/',
41
+ )
42
+ );
43
+ }
44
+ }
45
+
46
+ /**
47
+ * Register the module and its form settings.
48
+ */
49
+ FLBuilder::register_module(
50
+ 'ServicesModule',
51
+ array(
52
+ 'content' => array(
53
+ 'title' => esc_html__( 'Content', 'themeisle-companion' ), // Tab title
54
+ 'sections' => array(
55
+ 'content' => array(
56
+ 'title' => '',
57
+ 'fields' => array(
58
+ 'services' => array(
59
+ 'multiple' => true,
60
+ 'type' => 'form',
61
+ 'label' => esc_html__( 'Service', 'themeisle-companion' ),
62
+ 'form' => 'service_content', // ID of a registered form.
63
+ 'preview_text' => 'title', // ID of a field to use for the preview text.
64
+ ),
65
+ 'column_number' => array(
66
+ 'type' => 'select',
67
+ 'label' => esc_html__( 'Number of columns', 'themeisle-companion' ),
68
+ 'default' => '3',
69
+ 'options' => array(
70
+ '1' => esc_html__( '1', 'themeisle-companion' ),
71
+ '2' => esc_html__( '2', 'themeisle-companion' ),
72
+ '3' => esc_html__( '3', 'themeisle-companion' ),
73
+ '4' => esc_html__( '4', 'themeisle-companion' ),
74
+ '5' => esc_html__( '5', 'themeisle-companion' ),
75
+ ),
76
+ ),
77
+ 'card_layout' => array(
78
+ 'type' => 'obfx_toggle',
79
+ 'label' => esc_html__( 'Card layout', 'themeisle-companion' ),
80
+ 'default' => 'yes',
81
+ ),
82
+ 'background_color' => array(
83
+ 'type' => 'color',
84
+ 'label' => esc_html__( 'Background color', 'themeisle-companion' ),
85
+ 'default' => 'ffffff',
86
+ 'preview' => array(
87
+ 'type' => 'css',
88
+ 'rules' => array(
89
+ array(
90
+ 'selector' => '.obfx-service',
91
+ 'property' => 'background',
92
+ ),
93
+ ),
94
+ ),
95
+ ),
96
+
97
+ ),
98
+ ),
99
+ ),
100
+ ),
101
+ 'icon_style' => array(
102
+ 'title' => esc_html__( 'Icon style', 'themeisle-companion' ), // Tab title
103
+ 'sections' => array(
104
+ 'font' => array(
105
+ 'title' => esc_html__( 'General', 'themeisle-companion' ),
106
+ 'fields' => array(
107
+ 'icon_position' => array(
108
+ 'type' => 'select',
109
+ 'label' => esc_html__( 'Position', 'themeisle-companion' ),
110
+ 'default' => 'center',
111
+ 'options' => array(
112
+ 'left' => esc_html__( 'Left', 'themeisle-companion' ),
113
+ 'center' => esc_html__( 'Center', 'themeisle-companion' ),
114
+ 'right' => esc_html__( 'Right', 'themeisle-companion' ),
115
+ ),
116
+ ),
117
+ 'icon_size' => array(
118
+ 'type' => 'text',
119
+ 'label' => esc_html__( 'Size', 'themeisle-companion' ),
120
+ 'description' => esc_html__( 'px', 'themeisle-companion' ),
121
+ 'default' => '45',
122
+ 'maxlength' => '3',
123
+ 'size' => '4',
124
+ 'preview' => array(
125
+ 'type' => 'css',
126
+ 'rules' => array(
127
+ array(
128
+ 'selector' => '.obfx-service-icon',
129
+ 'property' => 'font-size',
130
+ 'unit' => 'px',
131
+ ),
132
+ ),
133
+ ),
134
+ ),
135
+ ),
136
+ ),
137
+ 'icon_padding' => themeisle_four_fields_control(
138
+ array(
139
+ 'default' => array(
140
+ 'top' => 30,
141
+ 'bottom' => 15,
142
+ 'left' => 25,
143
+ 'right' => 25,
144
+ ),
145
+ 'selector' => '.obfx-service-icon',
146
+ 'field_name_prefix' => 'icon_',
147
+ )
148
+ ),
149
+ ),
150
+ ),
151
+ 'title_style' => array(
152
+ 'title' => esc_html__( 'Title style', 'themeisle-companion' ),
153
+ 'sections' => array(
154
+ 'general' => array(
155
+ 'title' => esc_html__( 'General', 'themeisle-companion' ),
156
+ 'fields' => array(
157
+ 'title_color' => array(
158
+ 'type' => 'color',
159
+ 'label' => esc_html__( 'Color', 'themeisle-companion' ),
160
+ 'preview' => array(
161
+ 'type' => 'css',
162
+ 'rules' => array(
163
+ array(
164
+ 'selector' => '.obfx-service-title',
165
+ 'property' => 'color',
166
+ ),
167
+ ),
168
+ ),
169
+ ),
170
+ ),
171
+ ),
172
+ 'typography' => themeisle_typography_settings(
173
+ array(
174
+ 'prefix' => 'title_',
175
+ 'selector' => '.obfx-service-title',
176
+ )
177
+ ),
178
+ ),
179
+ ),
180
+ 'content_style' => array(
181
+ 'title' => esc_html__( 'Content style', 'themeisle-companion' ),
182
+ 'sections' => array(
183
+ 'general' => array(
184
+ 'title' => esc_html__( 'General', 'themeisle-companion' ),
185
+ 'fields' => array(
186
+ 'content_alignment' => array(
187
+ 'type' => 'select',
188
+ 'label' => esc_html__( 'Alignment', 'themeisle-companion' ),
189
+ 'default' => 'center',
190
+ 'options' => array(
191
+ 'left' => esc_html__( 'Left', 'themeisle-companion' ),
192
+ 'center' => esc_html__( 'Center', 'themeisle-companion' ),
193
+ 'right' => esc_html__( 'Right', 'themeisle-companion' ),
194
+ ),
195
+ ),
196
+ 'content_color' => array(
197
+ 'type' => 'color',
198
+ 'label' => esc_html__( 'Color', 'themeisle-companion' ),
199
+ 'preview' => array(
200
+ 'type' => 'css',
201
+ 'rules' => array(
202
+ array(
203
+ 'selector' => '.obfx-service-content',
204
+ 'property' => 'color',
205
+ ),
206
+ ),
207
+ ),
208
+ ),
209
+ ),
210
+ ),
211
+ 'typography' => themeisle_typography_settings(
212
+ array(
213
+ 'prefix' => 'content_',
214
+ 'selector' => '.obfx-service-content',
215
+ )
216
+ ),
217
+ ),
218
+ ),
219
+ )
220
+ );
221
+
222
+ FLBuilder::register_settings_form(
223
+ 'service_content',
224
+ array(
225
+ 'title' => __( 'Service', 'themeisle-companion' ),
226
+ 'tabs' => array(
227
+ 'general' => array(
228
+ 'title' => esc_html__( 'General', 'themeisle-companion' ),
229
+ 'sections' => array(
230
+ 'general' => array(
231
+ 'title' => '',
232
+ 'fields' => array(
233
+ 'title' => array(
234
+ 'type' => 'text',
235
+ 'label' => esc_html__( 'Title', 'themeisle-companion' ),
236
+ ),
237
+ 'text' => array(
238
+ 'type' => 'textarea',
239
+ 'label' => esc_html__( 'Text', 'themeisle-companion' ),
240
+ 'rows' => '6',
241
+ ),
242
+ 'icon' => array(
243
+ 'type' => 'icon',
244
+ 'label' => esc_html__( 'Icon', 'themeisle-companion' ),
245
+ 'show_remove' => true,
246
+ ),
247
+ 'icon_color' => array(
248
+ 'type' => 'color',
249
+ 'label' => esc_html__( 'Icon color', 'themeisle-companion' ),
250
+ 'default' => 'd6d6d6',
251
+ ),
252
+ 'link' => array(
253
+ 'type' => 'link',
254
+ 'label' => esc_html__( 'Link to', 'themeisle-companion' ),
255
+ ),
256
+ ),
257
+ ),
258
+ ),
259
+ ),
260
+ ),
261
+ )
262
+ );
obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-features-section.php CHANGED
@@ -195,21 +195,21 @@ function hestia_get_features_default() {
195
  json_encode(
196
  array(
197
  array(
198
- 'icon_value' => 'fa-wechat',
199
  'title' => esc_html__( 'Responsive', 'themeisle-companion' ),
200
  'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'themeisle-companion' ),
201
  'link' => '#',
202
  'color' => '#e91e63',
203
  ),
204
  array(
205
- 'icon_value' => 'fa-check',
206
  'title' => esc_html__( 'Quality', 'themeisle-companion' ),
207
  'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'themeisle-companion' ),
208
  'link' => '#',
209
  'color' => '#00bcd4',
210
  ),
211
  array(
212
- 'icon_value' => 'fa-support',
213
  'title' => esc_html__( 'Support', 'themeisle-companion' ),
214
  'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'themeisle-companion' ),
215
  'link' => '#',
195
  json_encode(
196
  array(
197
  array(
198
+ 'icon_value' => 'fab fa-weixin',
199
  'title' => esc_html__( 'Responsive', 'themeisle-companion' ),
200
  'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'themeisle-companion' ),
201
  'link' => '#',
202
  'color' => '#e91e63',
203
  ),
204
  array(
205
+ 'icon_value' => 'fas fa-check',
206
  'title' => esc_html__( 'Quality', 'themeisle-companion' ),
207
  'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'themeisle-companion' ),
208
  'link' => '#',
209
  'color' => '#00bcd4',
210
  ),
211
  array(
212
+ 'icon_value' => 'far fa-life-ring',
213
  'title' => esc_html__( 'Support', 'themeisle-companion' ),
214
  'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'themeisle-companion' ),
215
  'link' => '#',
obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php CHANGED
@@ -274,22 +274,22 @@ function hestia_get_team_default() {
274
  array(
275
  'id' => 'customizer-repeater-social-repeater-57fb908674e06',
276
  'link' => 'facebook.com',
277
- 'icon' => 'fa-facebook',
278
  ),
279
  array(
280
  'id' => 'customizer-repeater-social-repeater-57fb9148530ft',
281
  'link' => 'plus.google.com',
282
- 'icon' => 'fa-google-plus',
283
  ),
284
  array(
285
  'id' => 'customizer-repeater-social-repeater-57fb9148530fc',
286
  'link' => 'twitter.com',
287
- 'icon' => 'fa-twitter',
288
  ),
289
  array(
290
  'id' => 'customizer-repeater-social-repeater-57fb9150e1e89',
291
  'link' => 'linkedin.com',
292
- 'icon' => 'fa-linkedin',
293
  ),
294
  )
295
  ),
@@ -305,22 +305,22 @@ function hestia_get_team_default() {
305
  array(
306
  'id' => 'customizer-repeater-social-repeater-57fb9155a1072',
307
  'link' => 'facebook.com',
308
- 'icon' => 'fa-facebook',
309
  ),
310
  array(
311
  'id' => 'customizer-repeater-social-repeater-57fb9160ab683',
312
  'link' => 'twitter.com',
313
- 'icon' => 'fa-twitter',
314
  ),
315
  array(
316
  'id' => 'customizer-repeater-social-repeater-57fb9160ab484',
317
  'link' => 'pinterest.com',
318
- 'icon' => 'fa-pinterest',
319
  ),
320
  array(
321
  'id' => 'customizer-repeater-social-repeater-57fb916ddffc9',
322
  'link' => 'linkedin.com',
323
- 'icon' => 'fa-linkedin',
324
  ),
325
  )
326
  ),
@@ -336,22 +336,22 @@ function hestia_get_team_default() {
336
  array(
337
  'id' => 'customizer-repeater-social-repeater-57fb917e4c69e',
338
  'link' => 'facebook.com',
339
- 'icon' => 'fa-facebook',
340
  ),
341
  array(
342
  'id' => 'customizer-repeater-social-repeater-57fb91830825c',
343
  'link' => 'twitter.com',
344
- 'icon' => 'fa-twitter',
345
  ),
346
  array(
347
  'id' => 'customizer-repeater-social-repeater-57fb918d65f2e',
348
  'link' => 'linkedin.com',
349
- 'icon' => 'fa-linkedin',
350
  ),
351
  array(
352
  'id' => 'customizer-repeater-social-repeater-57fb918d65f2x',
353
  'link' => 'dribbble.com',
354
- 'icon' => 'fa-dribbble',
355
  ),
356
  )
357
  ),
@@ -367,22 +367,22 @@ function hestia_get_team_default() {
367
  array(
368
  'id' => 'customizer-repeater-social-repeater-57fb925cedcg5',
369
  'link' => 'github.com',
370
- 'icon' => 'fa-github-square',
371
  ),
372
  array(
373
  'id' => 'customizer-repeater-social-repeater-57fb925cedcb2',
374
  'link' => 'facebook.com',
375
- 'icon' => 'fa-facebook',
376
  ),
377
  array(
378
  'id' => 'customizer-repeater-social-repeater-57fb92615f030',
379
  'link' => 'twitter.com',
380
- 'icon' => 'fa-twitter',
381
  ),
382
  array(
383
  'id' => 'customizer-repeater-social-repeater-57fb9266c223a',
384
  'link' => 'linkedin.com',
385
- 'icon' => 'fa-linkedin',
386
  ),
387
  )
388
  ),
274
  array(
275
  'id' => 'customizer-repeater-social-repeater-57fb908674e06',
276
  'link' => 'facebook.com',
277
+ 'icon' => 'fab fa-facebook-f',
278
  ),
279
  array(
280
  'id' => 'customizer-repeater-social-repeater-57fb9148530ft',
281
  'link' => 'plus.google.com',
282
+ 'icon' => 'fab fa-google-plus-g',
283
  ),
284
  array(
285
  'id' => 'customizer-repeater-social-repeater-57fb9148530fc',
286
  'link' => 'twitter.com',
287
+ 'icon' => 'fab fa-twitter',
288
  ),
289
  array(
290
  'id' => 'customizer-repeater-social-repeater-57fb9150e1e89',
291
  'link' => 'linkedin.com',
292
+ 'icon' => 'fab fa-linkedin-in',
293
  ),
294
  )
295
  ),
305
  array(
306
  'id' => 'customizer-repeater-social-repeater-57fb9155a1072',
307
  'link' => 'facebook.com',
308
+ 'icon' => 'fab fa-facebook-f',
309
  ),
310
  array(
311
  'id' => 'customizer-repeater-social-repeater-57fb9160ab683',
312
  'link' => 'twitter.com',
313
+ 'icon' => 'fab fa-google-plus-g',
314
  ),
315
  array(
316
  'id' => 'customizer-repeater-social-repeater-57fb9160ab484',
317
  'link' => 'pinterest.com',
318
+ 'icon' => 'fab fa-twitter',
319
  ),
320
  array(
321
  'id' => 'customizer-repeater-social-repeater-57fb916ddffc9',
322
  'link' => 'linkedin.com',
323
+ 'icon' => 'fab fa-linkedin-in',
324
  ),
325
  )
326
  ),
336
  array(
337
  'id' => 'customizer-repeater-social-repeater-57fb917e4c69e',
338
  'link' => 'facebook.com',
339
+ 'icon' => 'fab fa-facebook-f',
340
  ),
341
  array(
342
  'id' => 'customizer-repeater-social-repeater-57fb91830825c',
343
  'link' => 'twitter.com',
344
+ 'icon' => 'fab fa-google-plus-g',
345
  ),
346
  array(
347
  'id' => 'customizer-repeater-social-repeater-57fb918d65f2e',
348
  'link' => 'linkedin.com',
349
+ 'icon' => 'fab fa-twitter',
350
  ),
351
  array(
352
  'id' => 'customizer-repeater-social-repeater-57fb918d65f2x',
353
  'link' => 'dribbble.com',
354
+ 'icon' => 'fab fa-linkedin-in',
355
  ),
356
  )
357
  ),
367
  array(
368
  'id' => 'customizer-repeater-social-repeater-57fb925cedcg5',
369
  'link' => 'github.com',
370
+ 'icon' => 'fab fa-facebook-f',
371
  ),
372
  array(
373
  'id' => 'customizer-repeater-social-repeater-57fb925cedcb2',
374
  'link' => 'facebook.com',
375
+ 'icon' => 'fab fa-google-plus-g',
376
  ),
377
  array(
378
  'id' => 'customizer-repeater-social-repeater-57fb92615f030',
379
  'link' => 'twitter.com',
380
+ 'icon' => 'fab fa-twitter',
381
  ),
382
  array(
383
  'id' => 'customizer-repeater-social-repeater-57fb9266c223a',
384
  'link' => 'linkedin.com',
385
+ 'icon' => 'fab fa-linkedin-in',
386
  ),
387
  )
388
  ),
obfx_modules/mystock-import/css/editor-style.css ADDED
@@ -0,0 +1,409 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .mystock-img-container .error-messaging {
2
+ display: none;
3
+ }
4
+
5
+ .mystock-img-container .error-messaging.active {
6
+ padding: 17px 17px 17px 57px;
7
+ -webkit-border-radius: 3px;
8
+ background: #df3333;
9
+ color: #fff;
10
+ font-size: 13px;
11
+ margin-bottom: 25px;
12
+ display: block;
13
+ position: relative;
14
+ }
15
+
16
+ .mystock-img-container .error-messaging.active:before {
17
+ font-family: 'dashicons';
18
+ content: '\f534';
19
+ display: block;
20
+ left: 17px;
21
+ top: 50%;
22
+ -webkit-transform: translateY(-50%);
23
+ -ms-transform: translateY(-50%);
24
+ transform: translateY(-50%);
25
+ position: absolute;
26
+ font-size: 30px;
27
+ opacity: 0.75;
28
+ }
29
+
30
+ .mystock-img-container .load-more-wrap {
31
+ margin: 1% 0 0;
32
+ padding: 25px 0;
33
+ text-align: center;
34
+ border-top: 1px solid #efefef;
35
+ }
36
+
37
+ #msp-photos .photo {
38
+ padding: 0 5px 10px;
39
+ }
40
+
41
+ #msp-photos .photo .photo-options {
42
+ width: 100%;
43
+ display: inline-block;
44
+ float: none;
45
+ max-width: 100%;
46
+ }
47
+
48
+ #msp-photos .photo.in-progress .photo-options,
49
+ #msp-photos .photo.uploaded .photo-options {
50
+ opacity: 0;
51
+ visibility: hidden;
52
+ }
53
+
54
+ #msp-photos .photo .img-wrap {
55
+
56
+ overflow: hidden;
57
+ position: relative;
58
+ }
59
+
60
+ #msp-photos .photo:focus a.upload img {
61
+ opacity: 0.6;
62
+ }
63
+
64
+ #msp-photos .photo:focus .user-controls {
65
+ opacity: 1;
66
+ visibility: visible;
67
+ }
68
+
69
+ #msp-photos .photo a.upload {
70
+ display: block;
71
+ background-color: #222;
72
+ }
73
+
74
+ #msp-photos .photo a.upload img {
75
+ -webkit-transition: all 0.5s ease;
76
+ -o-transition: all 0.5s ease;
77
+ transition: all 0.5s ease;
78
+ }
79
+
80
+ #msp-photos .photo a.upload .status {
81
+ visibility: hidden;
82
+ opacity: 0;
83
+ -webkit-transition: all 0.2575s ease-in-out;
84
+ -o-transition: all 0.2575s ease-in-out;
85
+ transition: all 0.2575s ease-in-out;
86
+ width: 60px;
87
+ height: 60px;
88
+ line-height: 60px;
89
+ -webkit-border-radius: 100%;
90
+ border-radius: 100%;
91
+ position: absolute;
92
+ left: 50%;
93
+ top: 50%;
94
+ z-index: 5;
95
+ -webkit-transform: translate(-50%, -50%) scale(1.5);
96
+ -ms-transform: translate(-50%, -50%) scale(1.5);
97
+ transform: translate(-50%, -50%) scale(1.5);
98
+ -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
99
+ box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
100
+ }
101
+
102
+ #msp-photos .photo a.upload .status:before {
103
+ font-family: 'dashicons';
104
+ display: block;
105
+ color: #fff;
106
+ font-size: 22px;
107
+ opacity: 0.8;
108
+ }
109
+
110
+ #msp-photos .photo a.upload .status a {
111
+ color: #fff;
112
+ }
113
+
114
+ #msp-photos .photo a.upload.uploading .status,
115
+ #msp-photos .photo a.upload.success .status,
116
+ #msp-photos .photo a.upload.errors .status {
117
+ text-align: center;
118
+ left: 50%;
119
+ top: 50%;
120
+ -webkit-transform: translate(-50%, -50%) scale(1);
121
+ -ms-transform: translate(-50%, -50%) scale(1);
122
+ transform: translate(-50%, -50%) scale(1);
123
+ }
124
+
125
+ #msp-photos .photo a.upload.uploading {
126
+ cursor: default;
127
+ }
128
+
129
+ #msp-photos .photo a.upload.uploading .status {
130
+ visibility: visible;
131
+ opacity: 1;
132
+ background-color: #5d72c3;
133
+ }
134
+
135
+ #msp-photos .photo a.upload.uploading .status:before {
136
+ content: '\f316';
137
+ }
138
+
139
+ #msp-photos .photo a.upload.success {
140
+ cursor: default !important;
141
+ }
142
+
143
+ #msp-photos .photo a.upload.success .status {
144
+ visibility: visible;
145
+ opacity: 1;
146
+ width: 70px;
147
+ height: 70px;
148
+ line-height: 70px;
149
+ background-color: #63d875;
150
+ -webkit-border-radius: 100%;
151
+ border-radius: 100%;
152
+ }
153
+
154
+ #msp-photos .photo a.upload.success .status:before {
155
+ content: '\f147';
156
+ color: #fff;
157
+ }
158
+
159
+ #msp-photos .photo a.upload.success img {
160
+ -webkit-transform: scale(1) !important;
161
+ -ms-transform: scale(1) !important;
162
+ transform: scale(1) !important;
163
+ }
164
+
165
+ #msp-photos .photo a.upload.errors {
166
+ cursor: help !important;
167
+ }
168
+
169
+ #msp-photos .photo a.upload.errors .status {
170
+ visibility: visible;
171
+ opacity: 1;
172
+ width: 60px;
173
+ height: 60px;
174
+ line-height: 60px;
175
+ background-color: #df3333;
176
+ -webkit-border-radius: 100%;
177
+ border-radius: 100%;
178
+ }
179
+
180
+ #msp-photos .photo a.upload.errors .status:before {
181
+ content: '';
182
+ color: #fff;
183
+ opacity: 0.8;
184
+ }
185
+
186
+ #msp-photos .photo.uploaded a.upload img {
187
+ opacity: 0.25 !important;
188
+ }
189
+
190
+ #msp-photos .photo:hover a.upload img,
191
+ #msp-photos .photo.in-progress a.upload img {
192
+ opacity: 0.6;
193
+ -webkit-transform: scale(1.075);
194
+ -ms-transform: scale(1.075);
195
+ transform: scale(1.075);
196
+ }
197
+
198
+ #msp-photos .photo:hover .options,
199
+ #msp-photos .photo.in-progress .options {
200
+ opacity: 1;
201
+ visibility: visible;
202
+ }
203
+
204
+ #msp-photos .photo:hover .user-controls:not(.disabled),
205
+ #msp-photos .photo.in-progress .user-controls {
206
+ opacity: 1;
207
+ visibility: visible;
208
+ }
209
+
210
+ #msp-photos .photo.in-progress .notice-msg {
211
+ top: 0;
212
+ opacity: 1;
213
+ }
214
+
215
+ #msp-photos .photo.uploaded .user-controls,
216
+ #msp-photos .photo.in-progress .user-controls {
217
+ opacity: 0;
218
+ }
219
+
220
+ #msp-photos .photo .user-controls {
221
+ text-align: center;
222
+ position: absolute;
223
+ z-index: 6;
224
+ width: 100%;
225
+ top: 50%;
226
+ transform: translateY(-50%);
227
+ left: 0;
228
+ padding: 0;
229
+ opacity: 0;
230
+ visibility: hidden;
231
+ -webkit-transition: all 0.3s ease;
232
+ -o-transition: all 0.3s ease;
233
+ transition: all 0.3s ease;
234
+ }
235
+
236
+ #msp-photos .photo .fade {
237
+ color: #fff;
238
+ background: transparent;
239
+ -webkit-border-radius: 1px;
240
+ border-radius: 1px;
241
+ height: 34px;
242
+ line-height: 34px;
243
+ font-size: 17px;
244
+ z-index: 6;
245
+ margin: 1px 1px 1px 0;
246
+ padding: 0;
247
+ color: rgba(255, 255, 255, 0.75);
248
+ }
249
+
250
+ #msp-photos .photo .fade.set-featured{
251
+ background-color: #eeb845;
252
+ }
253
+
254
+ #msp-photos .photo .fade.set-featured:hover,
255
+ #msp-photos .photo .fade.set-featured:focus{
256
+ background-color: #eeac30;
257
+ }
258
+
259
+ #msp-photos .photo .fade.insert {
260
+ background-color: #7eb4cd;
261
+ }
262
+ #msp-photos .photo .fade.insert:hover,
263
+ #msp-photos .photo .fade.insert:focus{
264
+ background-color: #499bcd;
265
+ }
266
+ #msp-photos .photo .fade.download {
267
+ background-color: #f3753b;
268
+ }
269
+ #msp-photos .photo .fade.download:hover,
270
+ #msp-photos .photo .fade.download:focus{
271
+ background-color: #f36424;
272
+ }
273
+
274
+ #msp-photos .photo.done .fade.download,
275
+ #msp-photos .photo.done .fade.download:hover{
276
+ opacity: 0.5;
277
+ cursor: not-allowed;
278
+ }
279
+
280
+ #msp-photos .photo .fade.set-featured:hover,
281
+ #msp-photos .photo .fade.set-featured:focus,
282
+ #msp-photos .photo .fade.insert:hover,
283
+ #msp-photos .photo .fade.insert:focus,
284
+ #msp-photos .photo .fade.download:hover,
285
+ #msp-photos .photo .fade.download:focus {
286
+ color: #fff;
287
+ }
288
+
289
+ #msp-photos .photo .fade.set-featured,
290
+ #msp-photos .photo .fade.insert,
291
+ #msp-photos .photo .fade.download {
292
+ display: inline-block;
293
+ text-align: center;
294
+ vertical-align: middle;
295
+ margin: 10px;
296
+ border-radius: 50%;
297
+ width: 50px;
298
+ height: 50px;
299
+ }
300
+
301
+ #msp-photos .photo .fade.set-featured span,
302
+ #msp-photos .photo .fade.insert span,
303
+ #msp-photos .photo .fade.download span {
304
+ text-decoration: none;
305
+ line-height: 50px;
306
+ margin: 0;
307
+ padding: 0;
308
+ transition: none;
309
+ }
310
+
311
+
312
+
313
+ #msp-photos .photo .fade.set-featured span {
314
+ top: 0;
315
+ left: 0;
316
+ }
317
+
318
+ #msp-photos .photo .notice-msg {
319
+ position: absolute;
320
+ top: -40px;
321
+ left: 0;
322
+ height: 40px;
323
+ line-height: 40px;
324
+ width: 100%;
325
+ background: rgba(0, 0, 0, 0.6);
326
+ text-align: center;
327
+ color: #e0e4f5;
328
+ font-size: 13px;
329
+ margin: 0;
330
+ padding: 0;
331
+ -webkit-transition: all 0.25s ease-in-out;
332
+ -o-transition: all 0.25s ease-in-out;
333
+ transition: all 0.25s ease-in-out;
334
+ opacity: 0;
335
+ z-index: 9999;
336
+ }
337
+
338
+ .mystock-img-container .search-field {
339
+ padding: 10px;
340
+ }
341
+
342
+ .mystock-img-container .search-field form {
343
+ position: relative;
344
+ }
345
+
346
+ .mystock-img-container .search-field #photo-search-submit,
347
+ .mystock-img-container .search-field #clear-search {
348
+ position: absolute;
349
+ top: 0;
350
+ width: 36px;
351
+ height: 36px;
352
+ z-index: 1;
353
+ border: none;
354
+ background: transparent;
355
+ cursor: pointer;
356
+ color: #666;
357
+ -webkit-transition: all 0.25s ease;
358
+ -o-transition: all 0.25s ease;
359
+ transition: all 0.25s ease;
360
+ opacity: 0.5;
361
+ margin: 0;
362
+ }
363
+ .mystock-img-container .search-field #photo-search-submit{
364
+ left: 0;
365
+ }
366
+ .mystock-img-container .search-field #clear-search{
367
+ right: 0;
368
+ }
369
+ .mystock-img-container .search-field input{
370
+ width: 100%;
371
+ background-color: #f7f7f7;
372
+ -webkit-transition: padding 0.15s ease;
373
+ -o-transition: padding 0.15s ease;
374
+ transition: padding 0.15s ease;
375
+ line-height: 36px;
376
+ height: 36px;
377
+ padding-right: 8px;
378
+ padding-left: 30px;
379
+ border-color: #e2e4e7;
380
+ font-size: 13px;
381
+ -webkit-border-radius: 3px;
382
+ border-radius: 3px;
383
+ }
384
+
385
+ .no-results {
386
+ display: none;
387
+ padding: 150px 0;
388
+ text-align: center;
389
+ }
390
+
391
+ .no-results.show {
392
+ display: block;
393
+ }
394
+
395
+ .no-results h3 {
396
+ font-size: 24px;
397
+ line-height: 29px;
398
+ margin: 0 0 10px;
399
+ }
400
+
401
+ .no-results p {
402
+ font-size: 16px;
403
+ margin: 0;
404
+ }
405
+
406
+ .loading-wrap {
407
+ text-align: center;
408
+ padding: 10px 0;
409
+ }
obfx_modules/mystock-import/init.php CHANGED
@@ -79,11 +79,9 @@ class Mystock_Import_OBFX_Module extends Orbit_Fox_Module_Abstract {
79
  * @access public
80
  */
81
  public function hooks() {
82
-
83
- /*Get tab content*/
84
  $this->loader->add_action( 'wp_ajax_get-tab-' . $this->slug, $this, 'get_tab_content' );
85
  $this->loader->add_action( 'wp_ajax_infinite-' . $this->slug, $this, 'infinite_scroll' );
86
- $this->loader->add_action( 'wp_ajax_handle-request-' . $this->slug, $this, 'handle_request' );
87
  $this->loader->add_filter( 'media_view_strings', $this, 'media_view_strings' );
88
  }
89
 
@@ -211,6 +209,30 @@ class Mystock_Import_OBFX_Module extends Orbit_Fox_Module_Abstract {
211
  return array();
212
  }
213
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
214
  $this->localized = array(
215
  'admin' => array(
216
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
@@ -239,6 +261,7 @@ class Mystock_Import_OBFX_Module extends Orbit_Fox_Module_Abstract {
239
  'media' => array(),
240
  ),
241
  );
 
242
  }
243
 
244
  /**
@@ -252,9 +275,16 @@ class Mystock_Import_OBFX_Module extends Orbit_Fox_Module_Abstract {
252
  return array();
253
  }
254
 
 
 
 
 
 
 
255
  public function media_view_strings( $strings ) {
256
  $this->strings = $strings;
257
 
258
  return $strings;
259
  }
 
260
  }
79
  * @access public
80
  */
81
  public function hooks() {
82
+ $this->loader->add_action( 'wp_ajax_handle-request-' . $this->slug, $this, 'handle_request' );
 
83
  $this->loader->add_action( 'wp_ajax_get-tab-' . $this->slug, $this, 'get_tab_content' );
84
  $this->loader->add_action( 'wp_ajax_infinite-' . $this->slug, $this, 'infinite_scroll' );
 
85
  $this->loader->add_filter( 'media_view_strings', $this, 'media_view_strings' );
86
  }
87
 
209
  return array();
210
  }
211
 
212
+
213
+ if ( method_exists( $current_screen, 'is_block_editor' ) && $current_screen->is_block_editor() ) {
214
+
215
+ $this->localized = array(
216
+ 'script' => array(
217
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
218
+ 'nonce' => wp_create_nonce( $this->slug . filter_input( INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP ) ),
219
+ 'slug' => $this->slug,
220
+ 'api_key' => self::API_KEY,
221
+ 'user_id' => self::USER_ID,
222
+ 'per_page' => 20,
223
+ ),
224
+ );
225
+
226
+ return array(
227
+ 'css' => array(
228
+ 'editor-style' => array(),
229
+ ),
230
+ 'js' => array(
231
+ 'script' => array( 'wp-plugins', 'wp-edit-post', 'wp-element', 'wp-api-fetch', 'wp-blocks' ),
232
+ ),
233
+ );
234
+ }
235
+
236
  $this->localized = array(
237
  'admin' => array(
238
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
261
  'media' => array(),
262
  ),
263
  );
264
+
265
  }
266
 
267
  /**
275
  return array();
276
  }
277
 
278
+ /**
279
+ * Media view strings
280
+ * @param array $strings Strings
281
+ *
282
+ * @return array
283
+ */
284
  public function media_view_strings( $strings ) {
285
  $this->strings = $strings;
286
 
287
  return $strings;
288
  }
289
+
290
  }
obfx_modules/mystock-import/js/script.js ADDED
@@ -0,0 +1,1181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /******/ (function(modules) { // webpackBootstrap
2
+ /******/ // The module cache
3
+ /******/ var installedModules = {};
4
+ /******/
5
+ /******/ // The require function
6
+ /******/ function __webpack_require__(moduleId) {
7
+ /******/
8
+ /******/ // Check if module is in cache
9
+ /******/ if(installedModules[moduleId]) {
10
+ /******/ return installedModules[moduleId].exports;
11
+ /******/ }
12
+ /******/ // Create a new module (and put it into the cache)
13
+ /******/ var module = installedModules[moduleId] = {
14
+ /******/ i: moduleId,
15
+ /******/ l: false,
16
+ /******/ exports: {}
17
+ /******/ };
18
+ /******/
19
+ /******/ // Execute the module function
20
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
+ /******/
22
+ /******/ // Flag the module as loaded
23
+ /******/ module.l = true;
24
+ /******/
25
+ /******/ // Return the exports of the module
26
+ /******/ return module.exports;
27
+ /******/ }
28
+ /******/
29
+ /******/
30
+ /******/ // expose the modules object (__webpack_modules__)
31
+ /******/ __webpack_require__.m = modules;
32
+ /******/
33
+ /******/ // expose the module cache
34
+ /******/ __webpack_require__.c = installedModules;
35
+ /******/
36
+ /******/ // define getter function for harmony exports
37
+ /******/ __webpack_require__.d = function(exports, name, getter) {
38
+ /******/ if(!__webpack_require__.o(exports, name)) {
39
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
40
+ /******/ }
41
+ /******/ };
42
+ /******/
43
+ /******/ // define __esModule on exports
44
+ /******/ __webpack_require__.r = function(exports) {
45
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
46
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
47
+ /******/ }
48
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
49
+ /******/ };
50
+ /******/
51
+ /******/ // create a fake namespace object
52
+ /******/ // mode & 1: value is a module id, require it
53
+ /******/ // mode & 2: merge all properties of value into the ns
54
+ /******/ // mode & 4: return value when already ns object
55
+ /******/ // mode & 8|1: behave like require
56
+ /******/ __webpack_require__.t = function(value, mode) {
57
+ /******/ if(mode & 1) value = __webpack_require__(value);
58
+ /******/ if(mode & 8) return value;
59
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
60
+ /******/ var ns = Object.create(null);
61
+ /******/ __webpack_require__.r(ns);
62
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
63
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
64
+ /******/ return ns;
65
+ /******/ };
66
+ /******/
67
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
68
+ /******/ __webpack_require__.n = function(module) {
69
+ /******/ var getter = module && module.__esModule ?
70
+ /******/ function getDefault() { return module['default']; } :
71
+ /******/ function getModuleExports() { return module; };
72
+ /******/ __webpack_require__.d(getter, 'a', getter);
73
+ /******/ return getter;
74
+ /******/ };
75
+ /******/
76
+ /******/ // Object.prototype.hasOwnProperty.call
77
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
78
+ /******/
79
+ /******/ // __webpack_public_path__
80
+ /******/ __webpack_require__.p = "";
81
+ /******/
82
+ /******/
83
+ /******/ // Load entry module and return exports
84
+ /******/ return __webpack_require__(__webpack_require__.s = "./obfx_modules/mystock-import/js/src/registerPlugin.js");
85
+ /******/ })
86
+ /************************************************************************/
87
+ /******/ ({
88
+
89
+ /***/ "./node_modules/base64-js/index.js":
90
+ /*!*****************************************!*\
91
+ !*** ./node_modules/base64-js/index.js ***!
92
+ \*****************************************/
93
+ /*! no static exports found */
94
+ /***/ (function(module, exports, __webpack_require__) {
95
+
96
+ "use strict";
97
+ eval("\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(\n uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)\n ))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n\n\n//# sourceURL=webpack:///./node_modules/base64-js/index.js?");
98
+
99
+ /***/ }),
100
+
101
+ /***/ "./node_modules/buffer/index.js":
102
+ /*!**************************************!*\
103
+ !*** ./node_modules/buffer/index.js ***!
104
+ \**************************************/
105
+ /*! no static exports found */
106
+ /***/ (function(module, exports, __webpack_require__) {
107
+
108
+ "use strict";
109
+ eval("/* WEBPACK VAR INJECTION */(function(global) {/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh <http://feross.org>\n * @license MIT\n */\n/* eslint-disable no-proto */\n\n\n\nvar base64 = __webpack_require__(/*! base64-js */ \"./node_modules/base64-js/index.js\")\nvar ieee754 = __webpack_require__(/*! ieee754 */ \"./node_modules/ieee754/index.js\")\nvar isArray = __webpack_require__(/*! isarray */ \"./node_modules/isarray/index.js\")\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : typedArraySupport()\n\n/*\n * Export kMaxLength after typed array support is determined.\n */\nexports.kMaxLength = kMaxLength()\n\nfunction typedArraySupport () {\n try {\n var arr = new Uint8Array(1)\n arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}\n return arr.foo() === 42 && // typed array instances can be augmented\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n } catch (e) {\n return false\n }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\nfunction createBuffer (that, length) {\n if (kMaxLength() < length) {\n throw new RangeError('Invalid typed array length')\n }\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = new Uint8Array(length)\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n if (that === null) {\n that = new Buffer(length)\n }\n that.length = length\n }\n\n return that\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n return new Buffer(arg, encodingOrOffset, length)\n }\n\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new Error(\n 'If encoding is specified then the first argument must be a string'\n )\n }\n return allocUnsafe(this, arg)\n }\n return from(this, arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\n// TODO: Legacy, not needed anymore. Remove in next major version.\nBuffer._augment = function (arr) {\n arr.__proto__ = Buffer.prototype\n return arr\n}\n\nfunction from (that, value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('\"value\" argument must not be a number')\n }\n\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return fromArrayBuffer(that, value, encodingOrOffset, length)\n }\n\n if (typeof value === 'string') {\n return fromString(that, value, encodingOrOffset)\n }\n\n return fromObject(that, value)\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(null, value, encodingOrOffset, length)\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n if (typeof Symbol !== 'undefined' && Symbol.species &&\n Buffer[Symbol.species] === Buffer) {\n // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n Object.defineProperty(Buffer, Symbol.species, {\n value: null,\n configurable: true\n })\n }\n}\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be a number')\n } else if (size < 0) {\n throw new RangeError('\"size\" argument must not be negative')\n }\n}\n\nfunction alloc (that, size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(that, size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(that, size).fill(fill, encoding)\n : createBuffer(that, size).fill(fill)\n }\n return createBuffer(that, size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(null, size, fill, encoding)\n}\n\nfunction allocUnsafe (that, size) {\n assertSize(size)\n that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < size; ++i) {\n that[i] = 0\n }\n }\n return that\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(null, size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(null, size)\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('\"encoding\" must be a valid string encoding')\n }\n\n var length = byteLength(string, encoding) | 0\n that = createBuffer(that, length)\n\n var actual = that.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n that = that.slice(0, actual)\n }\n\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0\n that = createBuffer(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array, byteOffset, length) {\n array.byteLength // this throws if `array` is not a valid ArrayBuffer\n\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\\'offset\\' is out of bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\\'length\\' is out of bounds')\n }\n\n if (byteOffset === undefined && length === undefined) {\n array = new Uint8Array(array)\n } else if (length === undefined) {\n array = new Uint8Array(array, byteOffset)\n } else {\n array = new Uint8Array(array, byteOffset, length)\n }\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = array\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromArrayLike(that, array)\n }\n return that\n}\n\nfunction fromObject (that, obj) {\n if (Buffer.isBuffer(obj)) {\n var len = checked(obj.length) | 0\n that = createBuffer(that, len)\n\n if (that.length === 0) {\n return that\n }\n\n obj.copy(that, 0, 0, len)\n return that\n }\n\n if (obj) {\n if ((typeof ArrayBuffer !== 'undefined' &&\n obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\n if (typeof obj.length !== 'number' || isnan(obj.length)) {\n return createBuffer(that, 0)\n }\n return fromArrayLike(that, obj)\n }\n\n if (obj.type === 'Buffer' && isArray(obj.data)) {\n return fromArrayLike(that, obj.data)\n }\n }\n\n throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength()` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n var buffer = Buffer.allocUnsafe(length)\n var pos = 0\n for (i = 0; i < list.length; ++i) {\n var buf = list[i]\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos)\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\n (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n string = '' + string\n }\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n case undefined:\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n var i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n var len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n var len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n var len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return '<Buffer ' + str + '>'\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (!Buffer.isBuffer(target)) {\n throw new TypeError('Argument must be a Buffer')\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart\n var y = end - start\n var len = Math.min(x, y)\n\n var thisCopy = this.slice(thisStart, thisEnd)\n var targetCopy = target.slice(start, end)\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (isNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (Buffer.TYPED_ARRAY_SUPPORT &&\n typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1\n var arrLength = arr.length\n var valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i\n if (dir) {\n var foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n var found = true\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = this.subarray(start, end)\n newBuf.__proto__ = Buffer.prototype\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; ++i) {\n newBuf[i] = this[i + start]\n }\n }\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; ++i) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, start + len),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0)\n if (code < 256) {\n val = code\n }\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n } else if (typeof val === 'number') {\n val = val & 255\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n var i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n var bytes = Buffer.isBuffer(val)\n ? val\n : utf8ToBytes(new Buffer(val, encoding).toString())\n var len = bytes.length\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\nfunction isnan (val) {\n return val !== val // eslint-disable-line no-self-compare\n}\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/buffer/index.js?");
110
+
111
+ /***/ }),
112
+
113
+ /***/ "./node_modules/component-emitter/index.js":
114
+ /*!*************************************************!*\
115
+ !*** ./node_modules/component-emitter/index.js ***!
116
+ \*************************************************/
117
+ /*! no static exports found */
118
+ /***/ (function(module, exports, __webpack_require__) {
119
+
120
+ eval("\r\n/**\r\n * Expose `Emitter`.\r\n */\r\n\r\nif (true) {\r\n module.exports = Emitter;\r\n}\r\n\r\n/**\r\n * Initialize a new `Emitter`.\r\n *\r\n * @api public\r\n */\r\n\r\nfunction Emitter(obj) {\r\n if (obj) return mixin(obj);\r\n};\r\n\r\n/**\r\n * Mixin the emitter properties.\r\n *\r\n * @param {Object} obj\r\n * @return {Object}\r\n * @api private\r\n */\r\n\r\nfunction mixin(obj) {\r\n for (var key in Emitter.prototype) {\r\n obj[key] = Emitter.prototype[key];\r\n }\r\n return obj;\r\n}\r\n\r\n/**\r\n * Listen on the given `event` with `fn`.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.on =\r\nEmitter.prototype.addEventListener = function(event, fn){\r\n this._callbacks = this._callbacks || {};\r\n (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\r\n .push(fn);\r\n return this;\r\n};\r\n\r\n/**\r\n * Adds an `event` listener that will be invoked a single\r\n * time then automatically removed.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.once = function(event, fn){\r\n function on() {\r\n this.off(event, on);\r\n fn.apply(this, arguments);\r\n }\r\n\r\n on.fn = fn;\r\n this.on(event, on);\r\n return this;\r\n};\r\n\r\n/**\r\n * Remove the given callback for `event` or all\r\n * registered callbacks.\r\n *\r\n * @param {String} event\r\n * @param {Function} fn\r\n * @return {Emitter}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.off =\r\nEmitter.prototype.removeListener =\r\nEmitter.prototype.removeAllListeners =\r\nEmitter.prototype.removeEventListener = function(event, fn){\r\n this._callbacks = this._callbacks || {};\r\n\r\n // all\r\n if (0 == arguments.length) {\r\n this._callbacks = {};\r\n return this;\r\n }\r\n\r\n // specific event\r\n var callbacks = this._callbacks['$' + event];\r\n if (!callbacks) return this;\r\n\r\n // remove all handlers\r\n if (1 == arguments.length) {\r\n delete this._callbacks['$' + event];\r\n return this;\r\n }\r\n\r\n // remove specific handler\r\n var cb;\r\n for (var i = 0; i < callbacks.length; i++) {\r\n cb = callbacks[i];\r\n if (cb === fn || cb.fn === fn) {\r\n callbacks.splice(i, 1);\r\n break;\r\n }\r\n }\r\n\r\n // Remove event specific arrays for event types that no\r\n // one is subscribed for to avoid memory leak.\r\n if (callbacks.length === 0) {\r\n delete this._callbacks['$' + event];\r\n }\r\n\r\n return this;\r\n};\r\n\r\n/**\r\n * Emit `event` with the given args.\r\n *\r\n * @param {String} event\r\n * @param {Mixed} ...\r\n * @return {Emitter}\r\n */\r\n\r\nEmitter.prototype.emit = function(event){\r\n this._callbacks = this._callbacks || {};\r\n\r\n var args = new Array(arguments.length - 1)\r\n , callbacks = this._callbacks['$' + event];\r\n\r\n for (var i = 1; i < arguments.length; i++) {\r\n args[i - 1] = arguments[i];\r\n }\r\n\r\n if (callbacks) {\r\n callbacks = callbacks.slice(0);\r\n for (var i = 0, len = callbacks.length; i < len; ++i) {\r\n callbacks[i].apply(this, args);\r\n }\r\n }\r\n\r\n return this;\r\n};\r\n\r\n/**\r\n * Return array of callbacks for `event`.\r\n *\r\n * @param {String} event\r\n * @return {Array}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.listeners = function(event){\r\n this._callbacks = this._callbacks || {};\r\n return this._callbacks['$' + event] || [];\r\n};\r\n\r\n/**\r\n * Check if this emitter has `event` handlers.\r\n *\r\n * @param {String} event\r\n * @return {Boolean}\r\n * @api public\r\n */\r\n\r\nEmitter.prototype.hasListeners = function(event){\r\n return !! this.listeners(event).length;\r\n};\r\n\n\n//# sourceURL=webpack:///./node_modules/component-emitter/index.js?");
121
+
122
+ /***/ }),
123
+
124
+ /***/ "./node_modules/core-util-is/lib/util.js":
125
+ /*!***********************************************!*\
126
+ !*** ./node_modules/core-util-is/lib/util.js ***!
127
+ \***********************************************/
128
+ /*! no static exports found */
129
+ /***/ (function(module, exports, __webpack_require__) {
130
+
131
+ eval("/* WEBPACK VAR INJECTION */(function(Buffer) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ \"./node_modules/buffer/index.js\").Buffer))\n\n//# sourceURL=webpack:///./node_modules/core-util-is/lib/util.js?");
132
+
133
+ /***/ }),
134
+
135
+ /***/ "./node_modules/events/events.js":
136
+ /*!***************************************!*\
137
+ !*** ./node_modules/events/events.js ***!
138
+ \***************************************/
139
+ /*! no static exports found */
140
+ /***/ (function(module, exports, __webpack_require__) {
141
+
142
+ "use strict";
143
+ eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\n\n//# sourceURL=webpack:///./node_modules/events/events.js?");
144
+
145
+ /***/ }),
146
+
147
+ /***/ "./node_modules/flickr-sdk/index.js":
148
+ /*!******************************************!*\
149
+ !*** ./node_modules/flickr-sdk/index.js ***!
150
+ \******************************************/
151
+ /*! no static exports found */
152
+ /***/ (function(module, exports, __webpack_require__) {
153
+
154
+ eval("/*!\n * Copyright 2017 Yahoo Holdings.\n * Licensed under the terms of the MIT license. Please see LICENSE file in the project root for terms.\n */\n\nexports = module.exports = __webpack_require__(/*! ./services/rest */ \"./node_modules/flickr-sdk/services/rest.js\");\n\n// Services\nexports.OAuth = __webpack_require__(/*! ./services/oauth */ \"./node_modules/flickr-sdk/services/oauth-browser.js\");\nexports.Feeds = __webpack_require__(/*! ./services/feeds */ \"./node_modules/flickr-sdk/services/feeds.js\");\nexports.Upload = __webpack_require__(/*! ./services/upload */ \"./node_modules/flickr-sdk/services/upload.js\");\nexports.Replace = __webpack_require__(/*! ./services/replace */ \"./node_modules/flickr-sdk/services/replace.js\");\n\n\n//# sourceURL=webpack:///./node_modules/flickr-sdk/index.js?");
155
+
156
+ /***/ }),
157
+
158
+ /***/ "./node_modules/flickr-sdk/lib/request.js":
159
+ /*!************************************************!*\
160
+ !*** ./node_modules/flickr-sdk/lib/request.js ***!
161
+ \************************************************/
162
+ /*! no static exports found */
163
+ /***/ (function(module, exports, __webpack_require__) {
164
+
165
+ eval("/*!\n * Copyright 2017 Yahoo Holdings.\n * Licensed under the terms of the MIT license. Please see LICENSE file in the project root for terms.\n */\n\nvar request = __webpack_require__(/*! superagent */ \"./node_modules/superagent/lib/client.js\");\nvar parse = __webpack_require__(/*! querystring */ \"./node_modules/querystring-es3/index.js\").parse;\n\n/**\n * Subclass superagent's Request class so that we can add\n * our own functionality to it.\n * @param {String} method\n * @param {String} url\n * @constructor\n */\n\nfunction Request(method, url) {\n\trequest.Request.call(this, method, url);\n\n\t// keep track of all request params for oauth signing\n\tthis.params = {};\n}\n\nRequest.prototype = Object.create(request.Request.prototype);\n\n/**\n * Override .query() to also add query string params to our params hash.\n * @param {String|Object} val\n * @returns {this}\n */\n\nRequest.prototype.query = function (val) {\n\tif (typeof val === 'string') {\n\t\tObject.assign(this.params, parse(val));\n\t} else {\n\t\tObject.assign(this.params, val);\n\t}\n\n\t// super\n\treturn request.Request.prototype.query.call(this, val);\n};\n\n/**\n * Override .field() to also add fields to our params hash.\n * @param {String|Object} key\n * @param {String} val\n * @returns {this}\n */\n\nRequest.prototype.field = function (key, val) {\n\tif (typeof key === 'string') {\n\t\tthis.params[key] = val;\n\t} else {\n\t\tObject.assign(this.params, key);\n\t}\n\n\t// super\n\treturn request.Request.prototype.field.call(this, key, val);\n};\n\n/**\n * Convenience method to either call .query() or .field()\n * based on this request's method.\n * @param {Object} obj\n * @returns {this}\n */\n\nRequest.prototype.param = function (obj) {\n\tswitch (this.method) {\n\tcase 'POST':\n\t\treturn this.field.call(this, obj);\n\tdefault:\n\t\treturn this.query.call(this, obj);\n\t}\n};\n\n/**\n * Mimic the request factory method that superagent exports.\n * @param {String} method\n * @param {String} url\n * @returns {Request}\n */\n\nexports = module.exports = function (method, url) {\n\t// callback\n\tif ('function' === typeof url) {\n\t\treturn new exports.Request('GET', method).end(url);\n\t}\n\n\t// url first\n\tif (1 === arguments.length) {\n\t\treturn new exports.Request('GET', method);\n\t}\n\n\treturn new exports.Request(method, url);\n};\n\n/**\n * Re-export all of the things superagent exports.\n */\n\nObject.assign(exports, request);\n\n/**\n * @module Request\n */\n\nexports.Request = Request;\n\n\n//# sourceURL=webpack:///./node_modules/flickr-sdk/lib/request.js?");
166
+
167
+ /***/ }),
168
+
169
+ /***/ "./node_modules/flickr-sdk/lib/validate.js":
170
+ /*!*************************************************!*\
171
+ !*** ./node_modules/flickr-sdk/lib/validate.js ***!
172
+ \*************************************************/
173
+ /*! no static exports found */
174
+ /***/ (function(module, exports) {
175
+
176
+ eval("/*!\n * Copyright 2017 Yahoo Holdings.\n * Licensed under the terms of the MIT license. Please see LICENSE file in the project root for terms.\n */\n\n/**\n * Asserts that any of the N keys passed in\n * are found in the obj\n * @param {Object} obj\n * @param {(String|String[])} keys\n * @throws {Error}\n */\n\nmodule.exports = function (obj, keys) {\n\tvar matches;\n\n\tif (!keys) {\n\t\t// you shouldn't be calling this function if you're\n\t\t// not providing keys, but we won't die if you do\n\t\treturn;\n\t}\n\n\tobj = obj || {};\n\n\tif (typeof keys === 'string') {\n\n\t\tif (!obj.hasOwnProperty(keys)) {\n\t\t\tthrow new Error('Missing required argument \"' + keys + '\"');\n\t\t}\n\t} else {\n\n\t\tmatches = keys.filter(function (key) {\n\t\t\treturn obj.hasOwnProperty(key);\n\t\t});\n\n\t\tif (matches.length === 0) {\n\t\t\tthrow new Error('Missing required argument, you must provide one of the following: \"' + keys.join('\", \"') + '\"');\n\t\t}\n\t}\n\n};\n\n\n//# sourceURL=webpack:///./node_modules/flickr-sdk/lib/validate.js?");
177
+
178
+ /***/ }),
179
+
180
+ /***/ "./node_modules/flickr-sdk/plugins/json.js":
181
+ /*!*************************************************!*\
182
+ !*** ./node_modules/flickr-sdk/plugins/json.js ***!
183
+ \*************************************************/
184
+ /*! no static exports found */
185
+ /***/ (function(module, exports) {
186
+
187
+ eval("/*!\n * Copyright 2017 Yahoo Holdings.\n * Licensed under the terms of the MIT license. Please see LICENSE file in the project root for terms.\n */\n\n/**\n * Custom response parser routine to handle Flickr API-style\n * error responses. The Flickr API has a whole bunch of client\n * error codes, but they all come back as HTTP 200 responses.\n * Here, we add in additional logic to accommodate this and check\n * for a Flickr API error. If we find one, craft a new error\n * out of that and throw it.\n * @param {Response} res\n * @returns {Boolean}\n * @throws {Error}\n */\n\nfunction parseFlickr(res) {\n\tvar body = res.body;\n\tvar err;\n\n\tif (body && body.stat === 'fail') {\n\t\terr = new Error(body.message);\n\t\terr.stat = body.stat;\n\t\terr.code = body.code;\n\n\t\tthrow err;\n\t}\n\n\treturn res.status >= 200 && res.status < 300;\n}\n\n/**\n * Superagent plugin-style function to request and parse\n * JSON responses from the Flickr REST API. We need to\n * specify content-type: text/plain here to appease CORS\n * since the API does not accept application/json.\n * @param {Request} req\n * @returns {undefined}\n */\n\nmodule.exports = function (req) {\n\treq.query({ format: 'json' });\n\treq.query({ nojsoncallback: 1 });\n\treq.type('text/plain');\n\treq.ok(parseFlickr);\n};\n\n\n//# sourceURL=webpack:///./node_modules/flickr-sdk/plugins/json.js?");
188
+
189
+ /***/ }),
190
+
191
+ /***/ "./node_modules/flickr-sdk/plugins/xml.js":
192
+ /*!************************************************!*\
193
+ !*** ./node_modules/flickr-sdk/plugins/xml.js ***!
194
+ \************************************************/
195
+ /*! no static exports found */
196
+ /***/ (function(module, exports, __webpack_require__) {
197
+
198
+ eval("/*!\n * Copyright 2017 Yahoo Holdings.\n * Licensed under the terms of the MIT license. Please see LICENSE file in the project root for terms.\n */\n\nvar xml2js = __webpack_require__(/*! xml2js */ \"./node_modules/xml2js/lib/xml2js.js\");\n\n/**\n * Custom response parse for parsing XML responses from Flickr.\n * Currently, the Upload and Replace APIs don't support JSON\n * as a response format. Until we fix this on the API side,\n * we need to parse the XML response so that the end user\n * can at least do something with it.\n * @param {Response} res\n * @param {Function} fn\n * @returns {null}\n */\n\nfunction parseXML(res, fn) {\n\t// palmtree pray box this approach from superagent's JSON parser\n\tres.text = '';\n\tres.setEncoding('utf8');\n\n\t// collect all the response text\n\tres.on('data', function (chunk) {\n\t\tres.text += chunk;\n\t});\n\n\tres.on('end', function () {\n\t\txml2js.parseString(res.text, {\n\t\t\tmergeAttrs: true,\n\t\t\texplicitArray: false,\n\t\t\texplicitRoot: false,\n\t\t\texplicitCharkey: true,\n\t\t\tcharkey: '_content'\n\t\t}, function (err, body) {\n\n\t\t\tif (err) {\n\t\t\t\treturn fn(new SyntaxError(err.message), body);\n\t\t\t}\n\n\t\t\tif (body.stat === 'fail' && body.err) {\n\t\t\t\terr = new Error(body.err.msg);\n\t\t\t\terr.stat = body.stat;\n\t\t\t\terr.code = body.err.code;\n\t\t\t}\n\n\t\t\tfn(err, body);\n\t\t});\n\t});\n}\n\n/**\n * Superagent plugin-style function to request and parse\n * XML responses from the Flickr Upload and Replace APIs.\n * @param {Request} req\n * @returns {undefined}\n */\n\nmodule.exports = function (req) {\n\treq.parse(parseXML);\n};\n\n\n//# sourceURL=webpack:///./node_modules/flickr-sdk/plugins/xml.js?");
199
+
200
+ /***/ }),
201
+
202
+ /***/ "./node_modules/flickr-sdk/services/feeds.js":
203
+ /*!***************************************************!*\
204
+ !*** ./node_modules/flickr-sdk/services/feeds.js ***!
205
+ \***************************************************/
206
+ /*! no static exports found */
207
+ /***/ (function(module, exports, __webpack_require__) {
208
+
209
+ eval("/*!\n * Copyright 2017 Yahoo Holdings.\n * Licensed under the terms of the MIT license. Please see LICENSE file in the project root for terms.\n */\n\nvar request = __webpack_require__(/*! ../lib/request */ \"./node_modules/flickr-sdk/lib/request.js\");\nvar validate = __webpack_require__(/*! ../lib/validate */ \"./node_modules/flickr-sdk/lib/validate.js\");\n\n/**\n * Creates a new Feeds service instance. You can use this instance\n * to explore and retrieve public Flickr API data.\n *\n * @constructor\n * @param {Object} [args] Arguments that will be passed along with every feed request\n * @param {String} [args.format=json] The feed response format\n * @param {String} [args.lang=en-us] The language to request for the feed\n * @memberof Flickr\n *\n * @example\n *\n * var feeds = new Flickr.Feeds();\n */\n\nfunction Feeds(args) {\n\n\t// allow creating a client without `new`\n\tif (!(this instanceof Feeds)) {\n\t\treturn new Feeds(args);\n\t}\n\n\t// default arguments\n\tthis._args = Object.assign({ format: 'json', nojsoncallback: 1 }, args);\n}\n\n/**\n * Factory method to create a new request for a feed.\n * @param {String} feed\n * @param {Object} [args]\n * @returns {Request}\n * @private\n */\n\nFeeds.prototype._ = function (feed, args) {\n\treturn request('GET', 'https://www.flickr.com/services/feeds/' + feed + '.gne')\n\t\t.query(this._args)\n\t\t.query(args);\n};\n\n/**\n * Returns a list of public content matching some criteria.\n *\n * @param {Object} [args]\n * @returns {Request}\n * @see https://www.flickr.com/services/feeds/docs/photos_public/\n */\n\nFeeds.prototype.publicPhotos = function (args) {\n\treturn this._('photos_public', args);\n};\n\n/**\n * Returns a list of public content from the contacts, friends & family of a given person.\n *\n * @param {Object} args\n * @param {Number|String} args.user_id The user ID of the user to fetch friends' photos and videos for.\n * @returns {Request}\n * @see https://www.flickr.com/services/feeds/docs/photos_friends/\n */\n\nFeeds.prototype.friendsPhotos = function (args) {\n\tvalidate(args, 'user_id');\n\n\treturn this._('photos_friends', args);\n};\n\n/**\n * Returns a list of public favorites for a given user.\n *\n * @param {Object} args\n * @param {Number|String} args.id A single user ID. This specifies a user to fetch for.\n * @returns {Request}\n * @see https://www.flickr.com/services/feeds/docs/photos_faves/\n */\n\nFeeds.prototype.favePhotos = function (args) {\n\t// This feed launched with support for id, but was\n\t// later changed to support `nsid`. This allows us to\n\t// check both, and fail if neither is specified\n\tvalidate(args, ['id', 'nsid']);\n\n\treturn this._('photos_faves', args);\n};\n\n/**\n * Returns a list of recent discussions in a given group.\n *\n * @param {Object} args\n * @param {Number} args.id The ID of the group to fetch discussions for.\n * @returns {Request}\n * @see https://www.flickr.com/services/feeds/docs/groups_discuss/\n */\n\nFeeds.prototype.groupDiscussions = function (args) {\n\tvalidate(args, 'id');\n\n\treturn this._('groups_discuss', args);\n};\n\n/**\n * Returns a list of things recently added to the pool of a given group.\n *\n * @param {Object} args\n * @param {Number} args.id The ID of the group to fetch for.\n * @returns {Request}\n * @see https://www.flickr.com/services/feeds/docs/groups_pool/\n */\n\nFeeds.prototype.groupPool = function (args) {\n\tvalidate(args, 'id');\n\n\treturn this._('groups_pool', args);\n};\n\n/**\n * Returns a list of recent topics from the forum.\n *\n * @param {Object} [args]\n * @returns {Request}\n * @see https://www.flickr.com/services/feeds/docs/forums/\n */\n\nFeeds.prototype.forum = function (args) {\n\treturn this._('forums', args);\n};\n\n/**\n * Returns a list of recent comments on photostream and sets belonging to a given user.\n *\n * @param {Object} args\n * @param {Number|String} args.user_id The user ID to fetch recent activity for.\n * @returns {Request}\n * @see https://www.flickr.com/services/feeds/docs/activity/\n */\n\nFeeds.prototype.recentActivity = function (args) {\n\tvalidate(args, 'user_id');\n\n\treturn this._('activity', args);\n};\n\n/**\n * Returns a list of recent comments that have been commented on by a given person.\n *\n * @param {Object} args\n * @param {Number|String} args.user_id The user ID to fetch recent comments for.\n * @returns {Request}\n * @see https://www.flickr.com/services/feeds/docs/photos_comments/\n */\n\nFeeds.prototype.recentComments = function (args) {\n\tvalidate(args, 'user_id');\n\n\treturn this._('photos_comments', args);\n};\n\nmodule.exports = Feeds;\n\n\n//# sourceURL=webpack:///./node_modules/flickr-sdk/services/feeds.js?");
210
+
211
+ /***/ }),
212
+
213
+ /***/ "./node_modules/flickr-sdk/services/oauth-browser.js":
214
+ /*!***********************************************************!*\
215
+ !*** ./node_modules/flickr-sdk/services/oauth-browser.js ***!
216
+ \***********************************************************/
217
+ /*! no static exports found */
218
+ /***/ (function(module, exports) {
219
+
220
+ eval("/*!\n * Copyright 2017 Yahoo Holdings.\n * Licensed under the terms of the MIT license. Please see LICENSE file in the project root for terms.\n */\n\n/**\n * OAuth 1.0 requires your consumer secret to sign calls,\n * and you should never expose secrets to the browser.\n * @constructor\n * @throws {Error}\n */\n\nfunction OAuth() {\n\tthrow new Error('OAuth 1.0 is not supported in the browser');\n}\n\n// also throw for static methods\nOAuth.createPlugin = OAuth;\n\nmodule.exports = OAuth;\n\n\n//# sourceURL=webpack:///./node_modules/flickr-sdk/services/oauth-browser.js?");
221
+
222
+ /***/ }),
223
+
224
+ /***/ "./node_modules/flickr-sdk/services/replace.js":
225
+ /*!*****************************************************!*\
226
+ !*** ./node_modules/flickr-sdk/services/replace.js ***!
227
+ \*****************************************************/
228
+ /*! no static exports found */
229
+ /***/ (function(module, exports, __webpack_require__) {
230
+
231
+ eval("/*!\n * Copyright 2017 Yahoo Holdings.\n * Licensed under the terms of the MIT license. Please see LICENSE file in the project root for terms.\n */\n\nvar Request = __webpack_require__(/*! ../lib/request */ \"./node_modules/flickr-sdk/lib/request.js\").Request;\nvar xml = __webpack_require__(/*! ../plugins/xml */ \"./node_modules/flickr-sdk/plugins/xml.js\");\n\n/**\n * Creates a new Replace service instance. Since the Replace API only\n * does one thing (replace files), an Replace instance is simply\n * a Request subclass.\n *\n * The Replace endpoint requires authentication. You should pass a configured\n * instance of the [OAuth plugin]{@link Flickr.OAuth.createPlugin} to replace\n * photos on behalf of another user.\n *\n * @param {Function} auth\n * @param {Number|String} photoID The ID of the photo to replace\n * @param {String|fs.ReadStream|Buffer} file\n * @param {Object} [args]\n * @constructor\n * @extends Request\n * @memberof Flickr\n *\n * @example\n *\n * var replace = new Flickr.Replace(auth, 41234567890, 'replace.png', {\n * title: 'Now in pink!'\n * });\n *\n * replace.then(function (res) {\n * console.log('yay!', res.body);\n * }).catch(function (err) {\n * console.error('bonk', err);\n * });\n *\n * @see https://www.flickr.com/services/api/replace.api.html\n */\n\nfunction Replace(auth, photoID, file, args) {\n\n\t// allow creating a client without `new`\n\tif (!(this instanceof Replace)) {\n\t\treturn new Replace(auth, photoID, file, args);\n\t}\n\n\tRequest.call(this, 'POST', 'https://up.flickr.com/services/replace');\n\n\tif (typeof auth !== 'function') {\n\t\tthrow new Error('Missing required argument \"auth\"');\n\t}\n\n\tif (typeof photoID === 'undefined') {\n\t\tthrow new Error('Missing required argument \"photoID\"');\n\t}\n\n\tif (typeof args === 'undefined') {\n\t\targs = {};\n\t}\n\n\tthis.attach('photo', file);\n\tthis.field('photo_id', photoID);\n\tthis.field(args);\n\tthis.use(xml);\n\tthis.use(auth);\n}\n\nReplace.prototype = Object.create(Request.prototype);\n\nmodule.exports = Replace;\n\n\n//# sourceURL=webpack:///./node_modules/flickr-sdk/services/replace.js?");
232
+
233
+ /***/ }),
234
+
235
+ /***/ "./node_modules/flickr-sdk/services/rest.js":
236
+ /*!**************************************************!*\
237
+ !*** ./node_modules/flickr-sdk/services/rest.js ***!
238
+ \**************************************************/
239
+ /*! no static exports found */
240
+ /***/ (function(module, exports, __webpack_require__) {
241
+
242
+ eval("/*!\n * Copyright 2017 Yahoo Holdings.\n * Licensed under the terms of the MIT license. Please see LICENSE file in the project root for terms.\n */\n\nvar request = __webpack_require__(/*! ../lib/request */ \"./node_modules/flickr-sdk/lib/request.js\");\nvar validate = __webpack_require__(/*! ../lib/validate */ \"./node_modules/flickr-sdk/lib/validate.js\");\nvar json = __webpack_require__(/*! ../plugins/json */ \"./node_modules/flickr-sdk/plugins/json.js\");\n\n/**\n * Creates a superagent plugin that simply adds api_key to\n * the query string of every request.\n * @param {String} str\n * @returns {Function}\n * @private\n */\n\nfunction createAPIKeyPlugin(str) {\n\treturn function (req) {\n\t\treturn req.query({ api_key: str });\n\t};\n}\n\n/**\n * Dedupes an array, set, or string of extras and returns\n * a comma separated version of it\n * @param {String|Array|Set} extras\n * @returns {Function}\n * @private\n */\n\nfunction processExtras(extras) {\n\tif (\n\t\ttypeof extras !== 'string' &&\n\t\t!Array.isArray(extras) &&\n\t\t!(extras instanceof Set)\n\t) {\n\t\tthrow new Error('Invalid type for argument \"extras\"');\n\t}\n\n\tif (typeof extras === 'string') {\n\t\textras = extras.split(',');\n\t}\n\n\tif (Array.isArray(extras)) {\n\t\textras = new Set(extras);\n\t}\n\n\tif (extras instanceof Set) {\n\t\treturn Array.from(extras).join(',');\n\t}\n}\n\n/**\n * Creates a new Flickr API client. This \"client\" is a factory\n * method that creates a new superagent request pre-configured\n * for talking to the Flickr API. You must pass an \"auth\"\n * supergent plugin.\n * @param {Function} auth\n * @returns {Function}\n * @private\n * @see https://github.com/visionmedia/superagent\n */\n\nfunction createClient(auth, opts) {\n\tvar host;\n\n\t// allow passing just an api key instead of a function\n\tif (typeof auth === 'string') {\n\t\tauth = createAPIKeyPlugin(auth);\n\t}\n\n\tif (typeof auth !== 'function') {\n\t\tthrow new Error('Missing required argument \"auth\"');\n\t}\n\n\t// options\n\topts = opts || {};\n\thost = opts.host || 'api.flickr.com';\n\n\tif (opts.port) {\n\t\thost += ':' + opts.port;\n\t}\n\n\treturn function (verb, method, args) {\n\t\tif (typeof args === 'undefined') {\n\t\t\targs = {};\n\t\t}\n\n\t\tif (args.extras) {\n\t\t\targs.extras = processExtras(args.extras);\n\t\t}\n\n\t\treturn request(verb, 'https://' + host + '/services/rest')\n\t\t\t.query({ method: method })\n\t\t\t.query(args)\n\t\t\t.use(json)\n\t\t\t.use(auth);\n\t};\n\n}\n\n/**\n * Creates a new Flickr REST API client.\n *\n * You **must** pass a superagent plugin or your API key as the first\n * parameter. For methods that don't require authentication, you can simply\n * provide your API key. For methods that do require authentication,\n * use the [OAuth plugin]{@link Flickr.OAuth.createPlugin}.\n *\n * @constructor\n * @param {Function|String} auth An authentication plugin function or an API key\n *\n * @example <caption>Get info about a public photo with your API key</caption>\n *\n * var flickr = new Flickr(process.env.FLICKR_API_KEY);\n *\n * flickr.photos.getInfo({\n * photo_id: 25825763 // sorry, @dokas\n * }).then(function (res) {\n * console.log('yay!', res.body);\n * }).catch(function (err) {\n * console.error('bonk', err);\n * });\n *\n * @example <caption>Searching for public photos with your API key</caption>\n *\n * var flickr = new Flickr(process.env.FLICKR_API_KEY);\n *\n * flickr.photos.search({\n * text: 'doggo'\n * }).then(function (res) {\n * console.log('yay!', res.body);\n * }).catch(function (err) {\n * console.error('bonk', err);\n * });\n *\n * @example <caption>Authenticate as a user with the OAuth plugin</caption>\n *\n * var flickr = new Flickr(Flickr.OAuth.createPlugin(\n * process.env.FLICKR_CONSUMER_KEY,\n * process.env.FLICKR_CONSUMER_SECRET,\n * process.env.FLICKR_OAUTH_TOKEN,\n * process.env.FLICKR_OAUTH_TOKEN_SECRET\n * ));\n *\n * flickr.test.login().then(function (res) {\n * console.log('yay!', res.body);\n * }).catch(function (err) {\n * console.error('bonk', err);\n * });\n *\n * @classdesc\n *\n * All of the [REST API][services/api] methods are available on the\n * [Flickr]{@link Flickr} prototype. Each method accepts a single parameter\n * which is an optional hash of arguments. Refer to the [REST API][services/api]\n * docs for the full list of methods and their supported arguments.\n *\n * | Method | Permissions | Required Arguments |\n * | --- | --- | --- |\n * | [flickr.activity.userComments](https://www.flickr.com/services/api/flickr.activity.userComments.html) | `read` :eyes: | |\n * | [flickr.activity.userPhotos](https://www.flickr.com/services/api/flickr.activity.userPhotos.html) | `read` :eyes: | |\n * | [flickr.auth.checkToken](https://www.flickr.com/services/api/flickr.auth.checkToken.html) | `none` | `auth_token` |\n * | [flickr.auth.getFrob](https://www.flickr.com/services/api/flickr.auth.getFrob.html) | `none` | |\n * | [flickr.auth.getFullToken](https://www.flickr.com/services/api/flickr.auth.getFullToken.html) | `none` | `mini_token` |\n * | [flickr.auth.getToken](https://www.flickr.com/services/api/flickr.auth.getToken.html) | `none` | `frob` |\n * | [flickr.auth.oauth.checkToken](https://www.flickr.com/services/api/flickr.auth.oauth.checkToken.html) | `none` | `oauth_token` |\n * | [flickr.auth.oauth.getAccessToken](https://www.flickr.com/services/api/flickr.auth.oauth.getAccessToken.html) | `none` | |\n * | [flickr.blogs.getList](https://www.flickr.com/services/api/flickr.blogs.getList.html) | `read` :eyes: | |\n * | [flickr.blogs.getServices](https://www.flickr.com/services/api/flickr.blogs.getServices.html) | `none` | |\n * | [flickr.blogs.postPhoto](https://www.flickr.com/services/api/flickr.blogs.postPhoto.html) | `write` :pencil2: | `photo_id`, `title`, `description` |\n * | [flickr.cameras.getBrandModels](https://www.flickr.com/services/api/flickr.cameras.getBrandModels.html) | `none` | `brand` |\n * | [flickr.cameras.getBrands](https://www.flickr.com/services/api/flickr.cameras.getBrands.html) | `none` | |\n * | [flickr.collections.getInfo](https://www.flickr.com/services/api/flickr.collections.getInfo.html) | `read` :eyes: | `collection_id` |\n * | [flickr.collections.getTree](https://www.flickr.com/services/api/flickr.collections.getTree.html) | `none` | |\n * | [flickr.commons.getInstitutions](https://www.flickr.com/services/api/flickr.commons.getInstitutions.html) | `none` | |\n * | [flickr.contacts.getList](https://www.flickr.com/services/api/flickr.contacts.getList.html) | `read` :eyes: | |\n * | [flickr.contacts.getListRecentlyUploaded](https://www.flickr.com/services/api/flickr.contacts.getListRecentlyUploaded.html) | `read` :eyes: | |\n * | [flickr.contacts.getPublicList](https://www.flickr.com/services/api/flickr.contacts.getPublicList.html) | `none` | `user_id` |\n * | [flickr.contacts.getTaggingSuggestions](https://www.flickr.com/services/api/flickr.contacts.getTaggingSuggestions.html) | `read` :eyes: | |\n * | [flickr.favorites.add](https://www.flickr.com/services/api/flickr.favorites.add.html) | `write` :pencil2: | `photo_id` |\n * | [flickr.favorites.getContext](https://www.flickr.com/services/api/flickr.favorites.getContext.html) | `none` | `photo_id`, `user_id` |\n * | [flickr.favorites.getList](https://www.flickr.com/services/api/flickr.favorites.getList.html) | `none` | |\n * | [flickr.favorites.getPublicList](https://www.flickr.com/services/api/flickr.favorites.getPublicList.html) | `none` | `user_id` |\n * | [flickr.favorites.remove](https://www.flickr.com/services/api/flickr.favorites.remove.html) | `write` :pencil2: | `photo_id` |\n * | [flickr.galleries.addPhoto](https://www.flickr.com/services/api/flickr.galleries.addPhoto.html) | `write` :pencil2: | `gallery_id`, `photo_id` |\n * | [flickr.galleries.create](https://www.flickr.com/services/api/flickr.galleries.create.html) | `write` :pencil2: | `title`, `description` |\n * | [flickr.galleries.editMeta](https://www.flickr.com/services/api/flickr.galleries.editMeta.html) | `write` :pencil2: | `gallery_id`, `title` |\n * | [flickr.galleries.editPhoto](https://www.flickr.com/services/api/flickr.galleries.editPhoto.html) | `write` :pencil2: | `gallery_id`, `photo_id`, `comment` |\n * | [flickr.galleries.editPhotos](https://www.flickr.com/services/api/flickr.galleries.editPhotos.html) | `write` :pencil2: | `gallery_id`, `primary_photo_id`, `photo_ids` |\n * | [flickr.galleries.getInfo](https://www.flickr.com/services/api/flickr.galleries.getInfo.html) | `none` | `gallery_id` |\n * | [flickr.galleries.getList](https://www.flickr.com/services/api/flickr.galleries.getList.html) | `none` | `user_id` |\n * | [flickr.galleries.getListForPhoto](https://www.flickr.com/services/api/flickr.galleries.getListForPhoto.html) | `none` | `photo_id` |\n * | [flickr.galleries.getPhotos](https://www.flickr.com/services/api/flickr.galleries.getPhotos.html) | `none` | `gallery_id` |\n * | [flickr.groups.browse](https://www.flickr.com/services/api/flickr.groups.browse.html) | `read` :eyes: | |\n * | [flickr.groups.getInfo](https://www.flickr.com/services/api/flickr.groups.getInfo.html) | `none` | `group_id` |\n * | [flickr.groups.join](https://www.flickr.com/services/api/flickr.groups.join.html) | `write` :pencil2: | `group_id` |\n * | [flickr.groups.joinRequest](https://www.flickr.com/services/api/flickr.groups.joinRequest.html) | `write` :pencil2: | `group_id`, `message`, `accept_rules` |\n * | [flickr.groups.leave](https://www.flickr.com/services/api/flickr.groups.leave.html) | `delete` :boom: | `group_id` |\n * | [flickr.groups.search](https://www.flickr.com/services/api/flickr.groups.search.html) | `none` | `text` |\n * | [flickr.groups.discuss.replies.add](https://www.flickr.com/services/api/flickr.groups.discuss.replies.add.html) | `write` :pencil2: | `group_id`, `topic_id`, `message` |\n * | [flickr.groups.discuss.replies.delete](https://www.flickr.com/services/api/flickr.groups.discuss.replies.delete.html) | `delete` :boom: | `group_id`, `topic_id`, `reply_id` |\n * | [flickr.groups.discuss.replies.edit](https://www.flickr.com/services/api/flickr.groups.discuss.replies.edit.html) | `write` :pencil2: | `group_id`, `topic_id`, `reply_id`, `message` |\n * | [flickr.groups.discuss.replies.getInfo](https://www.flickr.com/services/api/flickr.groups.discuss.replies.getInfo.html) | `none` | `group_id`, `topic_id`, `reply_id` |\n * | [flickr.groups.discuss.replies.getList](https://www.flickr.com/services/api/flickr.groups.discuss.replies.getList.html) | `none` | `group_id`, `topic_id`, `per_page` |\n * | [flickr.groups.discuss.topics.add](https://www.flickr.com/services/api/flickr.groups.discuss.topics.add.html) | `write` :pencil2: | `group_id`, `subject`, `message` |\n * | [flickr.groups.discuss.topics.getInfo](https://www.flickr.com/services/api/flickr.groups.discuss.topics.getInfo.html) | `none` | `group_id`, `topic_id` |\n * | [flickr.groups.discuss.topics.getList](https://www.flickr.com/services/api/flickr.groups.discuss.topics.getList.html) | `none` | `group_id` |\n * | [flickr.groups.members.getList](https://www.flickr.com/services/api/flickr.groups.members.getList.html) | `read` :eyes: | `group_id` |\n * | [flickr.groups.pools.add](https://www.flickr.com/services/api/flickr.groups.pools.add.html) | `write` :pencil2: | `photo_id`, `group_id` |\n * | [flickr.groups.pools.getContext](https://www.flickr.com/services/api/flickr.groups.pools.getContext.html) | `none` | `photo_id`, `group_id` |\n * | [flickr.groups.pools.getGroups](https://www.flickr.com/services/api/flickr.groups.pools.getGroups.html) | `read` :eyes: | |\n * | [flickr.groups.pools.getPhotos](https://www.flickr.com/services/api/flickr.groups.pools.getPhotos.html) | `none` | `group_id` |\n * | [flickr.groups.pools.remove](https://www.flickr.com/services/api/flickr.groups.pools.remove.html) | `write` :pencil2: | `photo_id`, `group_id` |\n * | [flickr.interestingness.getList](https://www.flickr.com/services/api/flickr.interestingness.getList.html) | `none` | |\n * | [flickr.machinetags.getNamespaces](https://www.flickr.com/services/api/flickr.machinetags.getNamespaces.html) | `none` | |\n * | [flickr.machinetags.getPairs](https://www.flickr.com/services/api/flickr.machinetags.getPairs.html) | `none` | |\n * | [flickr.machinetags.getPredicates](https://www.flickr.com/services/api/flickr.machinetags.getPredicates.html) | `none` | |\n * | [flickr.machinetags.getRecentValues](https://www.flickr.com/services/api/flickr.machinetags.getRecentValues.html) | `none` | |\n * | [flickr.machinetags.getValues](https://www.flickr.com/services/api/flickr.machinetags.getValues.html) | `none` | `namespace`, `predicate` |\n * | [flickr.panda.getList](https://www.flickr.com/services/api/flickr.panda.getList.html) | `none` | |\n * | [flickr.panda.getPhotos](https://www.flickr.com/services/api/flickr.panda.getPhotos.html) | `none` | `panda_name` |\n * | [flickr.people.findByEmail](https://www.flickr.com/services/api/flickr.people.findByEmail.html) | `none` | `find_email` |\n * | [flickr.people.findByUsername](https://www.flickr.com/services/api/flickr.people.findByUsername.html) | `none` | `username` |\n * | [flickr.people.getGroups](https://www.flickr.com/services/api/flickr.people.getGroups.html) | `read` :eyes: | `user_id` |\n * | [flickr.people.getInfo](https://www.flickr.com/services/api/flickr.people.getInfo.html) | `none` | `user_id` |\n * | [flickr.people.getLimits](https://www.flickr.com/services/api/flickr.people.getLimits.html) | `read` :eyes: | |\n * | [flickr.people.getPhotos](https://www.flickr.com/services/api/flickr.people.getPhotos.html) | `none` | `user_id` |\n * | [flickr.people.getPhotosOf](https://www.flickr.com/services/api/flickr.people.getPhotosOf.html) | `none` | `user_id` |\n * | [flickr.people.getPublicGroups](https://www.flickr.com/services/api/flickr.people.getPublicGroups.html) | `none` | `user_id` |\n * | [flickr.people.getPublicPhotos](https://www.flickr.com/services/api/flickr.people.getPublicPhotos.html) | `none` | `user_id` |\n * | [flickr.people.getUploadStatus](https://www.flickr.com/services/api/flickr.people.getUploadStatus.html) | `read` :eyes: | |\n * | [flickr.photos.addTags](https://www.flickr.com/services/api/flickr.photos.addTags.html) | `write` :pencil2: | `photo_id`, `tags` |\n * | [flickr.photos.delete](https://www.flickr.com/services/api/flickr.photos.delete.html) | `delete` :boom: | `photo_id` |\n * | [flickr.photos.getAllContexts](https://www.flickr.com/services/api/flickr.photos.getAllContexts.html) | `none` | `photo_id` |\n * | [flickr.photos.getContactsPhotos](https://www.flickr.com/services/api/flickr.photos.getContactsPhotos.html) | `read` :eyes: | |\n * | [flickr.photos.getContactsPublicPhotos](https://www.flickr.com/services/api/flickr.photos.getContactsPublicPhotos.html) | `none` | `user_id` |\n * | [flickr.photos.getContext](https://www.flickr.com/services/api/flickr.photos.getContext.html) | `none` | `photo_id` |\n * | [flickr.photos.getCounts](https://www.flickr.com/services/api/flickr.photos.getCounts.html) | `read` :eyes: | |\n * | [flickr.photos.getExif](https://www.flickr.com/services/api/flickr.photos.getExif.html) | `none` | `photo_id` |\n * | [flickr.photos.getFavorites](https://www.flickr.com/services/api/flickr.photos.getFavorites.html) | `none` | `photo_id` |\n * | [flickr.photos.getInfo](https://www.flickr.com/services/api/flickr.photos.getInfo.html) | `none` | `photo_id` |\n * | [flickr.photos.getNotInSet](https://www.flickr.com/services/api/flickr.photos.getNotInSet.html) | `read` :eyes: | |\n * | [flickr.photos.getPerms](https://www.flickr.com/services/api/flickr.photos.getPerms.html) | `read` :eyes: | `photo_id` |\n * | [flickr.photos.getPopular](https://www.flickr.com/services/api/flickr.photos.getPopular.html) | `none` | |\n * | [flickr.photos.getRecent](https://www.flickr.com/services/api/flickr.photos.getRecent.html) | `none` | |\n * | [flickr.photos.getSizes](https://www.flickr.com/services/api/flickr.photos.getSizes.html) | `none` | `photo_id` |\n * | [flickr.photos.getUntagged](https://www.flickr.com/services/api/flickr.photos.getUntagged.html) | `read` :eyes: | |\n * | [flickr.photos.getWithGeoData](https://www.flickr.com/services/api/flickr.photos.getWithGeoData.html) | `read` :eyes: | |\n * | [flickr.photos.getWithoutGeoData](https://www.flickr.com/services/api/flickr.photos.getWithoutGeoData.html) | `read` :eyes: | |\n * | [flickr.photos.recentlyUpdated](https://www.flickr.com/services/api/flickr.photos.recentlyUpdated.html) | `read` :eyes: | `min_date` |\n * | [flickr.photos.removeTag](https://www.flickr.com/services/api/flickr.photos.removeTag.html) | `write` :pencil2: | `tag_id` |\n * | [flickr.photos.search](https://www.flickr.com/services/api/flickr.photos.search.html) | `none` | |\n * | [flickr.photos.setContentType](https://www.flickr.com/services/api/flickr.photos.setContentType.html) | `write` :pencil2: | `photo_id`, `content_type` |\n * | [flickr.photos.setDates](https://www.flickr.com/services/api/flickr.photos.setDates.html) | `write` :pencil2: | `photo_id` |\n * | [flickr.photos.setMeta](https://www.flickr.com/services/api/flickr.photos.setMeta.html) | `write` :pencil2: | `photo_id` |\n * | [flickr.photos.setPerms](https://www.flickr.com/services/api/flickr.photos.setPerms.html) | `write` :pencil2: | `photo_id`, `is_public`, `is_friend`, `is_family` |\n * | [flickr.photos.setSafetyLevel](https://www.flickr.com/services/api/flickr.photos.setSafetyLevel.html) | `write` :pencil2: | `photo_id` |\n * | [flickr.photos.setTags](https://www.flickr.com/services/api/flickr.photos.setTags.html) | `write` :pencil2: | `photo_id`, `tags` |\n * | [flickr.photos.comments.addComment](https://www.flickr.com/services/api/flickr.photos.comments.addComment.html) | `write` :pencil2: | `photo_id`, `comment_text` |\n * | [flickr.photos.comments.deleteComment](https://www.flickr.com/services/api/flickr.photos.comments.deleteComment.html) | `write` :pencil2: | `comment_id` |\n * | [flickr.photos.comments.editComment](https://www.flickr.com/services/api/flickr.photos.comments.editComment.html) | `write` :pencil2: | `comment_id`, `comment_text` |\n * | [flickr.photos.comments.getList](https://www.flickr.com/services/api/flickr.photos.comments.getList.html) | `none` | `photo_id` |\n * | [flickr.photos.comments.getRecentForContacts](https://www.flickr.com/services/api/flickr.photos.comments.getRecentForContacts.html) | `read` :eyes: | |\n * | [flickr.photos.geo.batchCorrectLocation](https://www.flickr.com/services/api/flickr.photos.geo.batchCorrectLocation.html) | `write` :pencil2: | `lat`, `lon`, `accuracy` |\n * | [flickr.photos.geo.correctLocation](https://www.flickr.com/services/api/flickr.photos.geo.correctLocation.html) | `write` :pencil2: | `photo_id`, `foursquare_id` |\n * | [flickr.photos.geo.getLocation](https://www.flickr.com/services/api/flickr.photos.geo.getLocation.html) | `none` | `photo_id` |\n * | [flickr.photos.geo.getPerms](https://www.flickr.com/services/api/flickr.photos.geo.getPerms.html) | `read` :eyes: | `photo_id` |\n * | [flickr.photos.geo.photosForLocation](https://www.flickr.com/services/api/flickr.photos.geo.photosForLocation.html) | `read` :eyes: | `lat`, `lon` |\n * | [flickr.photos.geo.removeLocation](https://www.flickr.com/services/api/flickr.photos.geo.removeLocation.html) | `write` :pencil2: | `photo_id` |\n * | [flickr.photos.geo.setContext](https://www.flickr.com/services/api/flickr.photos.geo.setContext.html) | `write` :pencil2: | `photo_id`, `context` |\n * | [flickr.photos.geo.setLocation](https://www.flickr.com/services/api/flickr.photos.geo.setLocation.html) | `write` :pencil2: | `photo_id`, `lat`, `lon` |\n * | [flickr.photos.geo.setPerms](https://www.flickr.com/services/api/flickr.photos.geo.setPerms.html) | `write` :pencil2: | `is_public`, `is_contact`, `is_friend`, `is_family`, `photo_id` |\n * | [flickr.photos.licenses.getInfo](https://www.flickr.com/services/api/flickr.photos.licenses.getInfo.html) | `none` | |\n * | [flickr.photos.licenses.setLicense](https://www.flickr.com/services/api/flickr.photos.licenses.setLicense.html) | `write` :pencil2: | `photo_id`, `license_id` |\n * | [flickr.photos.notes.add](https://www.flickr.com/services/api/flickr.photos.notes.add.html) | `write` :pencil2: | `photo_id`, `note_x`, `note_y`, `note_w`, `note_h`, `note_text` |\n * | [flickr.photos.notes.delete](https://www.flickr.com/services/api/flickr.photos.notes.delete.html) | `write` :pencil2: | `note_id` |\n * | [flickr.photos.notes.edit](https://www.flickr.com/services/api/flickr.photos.notes.edit.html) | `write` :pencil2: | `note_id`, `note_x`, `note_y`, `note_w`, `note_h`, `note_text` |\n * | [flickr.photos.people.add](https://www.flickr.com/services/api/flickr.photos.people.add.html) | `write` :pencil2: | `photo_id`, `user_id` |\n * | [flickr.photos.people.delete](https://www.flickr.com/services/api/flickr.photos.people.delete.html) | `write` :pencil2: | `photo_id`, `user_id` |\n * | [flickr.photos.people.deleteCoords](https://www.flickr.com/services/api/flickr.photos.people.deleteCoords.html) | `write` :pencil2: | `photo_id`, `user_id` |\n * | [flickr.photos.people.editCoords](https://www.flickr.com/services/api/flickr.photos.people.editCoords.html) | `write` :pencil2: | `photo_id`, `user_id`, `person_x`, `person_y`, `person_w`, `person_h` |\n * | [flickr.photos.people.getList](https://www.flickr.com/services/api/flickr.photos.people.getList.html) | `none` | `photo_id` |\n * | [flickr.photos.suggestions.approveSuggestion](https://www.flickr.com/services/api/flickr.photos.suggestions.approveSuggestion.html) | `write` :pencil2: | `suggestion_id` |\n * | [flickr.photos.suggestions.getList](https://www.flickr.com/services/api/flickr.photos.suggestions.getList.html) | `read` :eyes: | |\n * | [flickr.photos.suggestions.rejectSuggestion](https://www.flickr.com/services/api/flickr.photos.suggestions.rejectSuggestion.html) | `write` :pencil2: | `suggestion_id` |\n * | [flickr.photos.suggestions.removeSuggestion](https://www.flickr.com/services/api/flickr.photos.suggestions.removeSuggestion.html) | `write` :pencil2: | `suggestion_id` |\n * | [flickr.photos.suggestions.suggestLocation](https://www.flickr.com/services/api/flickr.photos.suggestions.suggestLocation.html) | `write` :pencil2: | `photo_id`, `lat`, `lon` |\n * | [flickr.photos.transform.rotate](https://www.flickr.com/services/api/flickr.photos.transform.rotate.html) | `write` :pencil2: | `photo_id`, `degrees` |\n * | [flickr.photos.upload.checkTickets](https://www.flickr.com/services/api/flickr.photos.upload.checkTickets.html) | `none` | `tickets` |\n * | [flickr.photosets.addPhoto](https://www.flickr.com/services/api/flickr.photosets.addPhoto.html) | `write` :pencil2: | `photoset_id`, `photo_id` |\n * | [flickr.photosets.create](https://www.flickr.com/services/api/flickr.photosets.create.html) | `write` :pencil2: | `title`, `primary_photo_id` |\n * | [flickr.photosets.delete](https://www.flickr.com/services/api/flickr.photosets.delete.html) | `write` :pencil2: | `photoset_id` |\n * | [flickr.photosets.editMeta](https://www.flickr.com/services/api/flickr.photosets.editMeta.html) | `write` :pencil2: | `photoset_id`, `title` |\n * | [flickr.photosets.editPhotos](https://www.flickr.com/services/api/flickr.photosets.editPhotos.html) | `write` :pencil2: | `photoset_id`, `primary_photo_id`, `photo_ids` |\n * | [flickr.photosets.getContext](https://www.flickr.com/services/api/flickr.photosets.getContext.html) | `none` | `photo_id`, `photoset_id` |\n * | [flickr.photosets.getInfo](https://www.flickr.com/services/api/flickr.photosets.getInfo.html) | `none` | `photoset_id`, `user_id` |\n * | [flickr.photosets.getList](https://www.flickr.com/services/api/flickr.photosets.getList.html) | `none` | |\n * | [flickr.photosets.getPhotos](https://www.flickr.com/services/api/flickr.photosets.getPhotos.html) | `none` | `photoset_id`, `user_id` |\n * | [flickr.photosets.orderSets](https://www.flickr.com/services/api/flickr.photosets.orderSets.html) | `write` :pencil2: | `photoset_ids` |\n * | [flickr.photosets.removePhoto](https://www.flickr.com/services/api/flickr.photosets.removePhoto.html) | `write` :pencil2: | `photoset_id`, `photo_id` |\n * | [flickr.photosets.removePhotos](https://www.flickr.com/services/api/flickr.photosets.removePhotos.html) | `write` :pencil2: | `photoset_id`, `photo_ids` |\n * | [flickr.photosets.reorderPhotos](https://www.flickr.com/services/api/flickr.photosets.reorderPhotos.html) | `write` :pencil2: | `photoset_id`, `photo_ids` |\n * | [flickr.photosets.setPrimaryPhoto](https://www.flickr.com/services/api/flickr.photosets.setPrimaryPhoto.html) | `write` :pencil2: | `photoset_id`, `photo_id` |\n * | [flickr.photosets.comments.addComment](https://www.flickr.com/services/api/flickr.photosets.comments.addComment.html) | `write` :pencil2: | `photoset_id`, `comment_text` |\n * | [flickr.photosets.comments.deleteComment](https://www.flickr.com/services/api/flickr.photosets.comments.deleteComment.html) | `write` :pencil2: | `comment_id` |\n * | [flickr.photosets.comments.editComment](https://www.flickr.com/services/api/flickr.photosets.comments.editComment.html) | `write` :pencil2: | `comment_id`, `comment_text` |\n * | [flickr.photosets.comments.getList](https://www.flickr.com/services/api/flickr.photosets.comments.getList.html) | `none` | `photoset_id` |\n * | [flickr.places.find](https://www.flickr.com/services/api/flickr.places.find.html) | `none` | `query` |\n * | [flickr.places.findByLatLon](https://www.flickr.com/services/api/flickr.places.findByLatLon.html) | `none` | `lat`, `lon` |\n * | [flickr.places.getChildrenWithPhotosPublic](https://www.flickr.com/services/api/flickr.places.getChildrenWithPhotosPublic.html) | `none` | |\n * | [flickr.places.getInfo](https://www.flickr.com/services/api/flickr.places.getInfo.html) | `none` | |\n * | [flickr.places.getInfoByUrl](https://www.flickr.com/services/api/flickr.places.getInfoByUrl.html) | `none` | `url` |\n * | [flickr.places.getPlaceTypes](https://www.flickr.com/services/api/flickr.places.getPlaceTypes.html) | `none` | |\n * | [flickr.places.getShapeHistory](https://www.flickr.com/services/api/flickr.places.getShapeHistory.html) | `none` | |\n * | [flickr.places.getTopPlacesList](https://www.flickr.com/services/api/flickr.places.getTopPlacesList.html) | `none` | `place_type_id` |\n * | [flickr.places.placesForBoundingBox](https://www.flickr.com/services/api/flickr.places.placesForBoundingBox.html) | `none` | `bbox` |\n * | [flickr.places.placesForContacts](https://www.flickr.com/services/api/flickr.places.placesForContacts.html) | `read` :eyes: | |\n * | [flickr.places.placesForTags](https://www.flickr.com/services/api/flickr.places.placesForTags.html) | `none` | `place_type_id` |\n * | [flickr.places.placesForUser](https://www.flickr.com/services/api/flickr.places.placesForUser.html) | `read` :eyes: | |\n * | [flickr.places.resolvePlaceId](https://www.flickr.com/services/api/flickr.places.resolvePlaceId.html) | `none` | `place_id` |\n * | [flickr.places.resolvePlaceURL](https://www.flickr.com/services/api/flickr.places.resolvePlaceURL.html) | `none` | `url` |\n * | [flickr.places.tagsForPlace](https://www.flickr.com/services/api/flickr.places.tagsForPlace.html) | `none` | |\n * | [flickr.prefs.getContentType](https://www.flickr.com/services/api/flickr.prefs.getContentType.html) | `read` :eyes: | |\n * | [flickr.prefs.getGeoPerms](https://www.flickr.com/services/api/flickr.prefs.getGeoPerms.html) | `read` :eyes: | |\n * | [flickr.prefs.getHidden](https://www.flickr.com/services/api/flickr.prefs.getHidden.html) | `read` :eyes: | |\n * | [flickr.prefs.getPrivacy](https://www.flickr.com/services/api/flickr.prefs.getPrivacy.html) | `read` :eyes: | |\n * | [flickr.prefs.getSafetyLevel](https://www.flickr.com/services/api/flickr.prefs.getSafetyLevel.html) | `read` :eyes: | |\n * | [flickr.profile.getProfile](https://www.flickr.com/services/api/flickr.profile.getProfile.html) | `none` | `user_id` |\n * | [flickr.push.getSubscriptions](https://www.flickr.com/services/api/flickr.push.getSubscriptions.html) | `read` :eyes: | |\n * | [flickr.push.getTopics](https://www.flickr.com/services/api/flickr.push.getTopics.html) | `none` | |\n * | [flickr.push.subscribe](https://www.flickr.com/services/api/flickr.push.subscribe.html) | `read` :eyes: | `topic`, `callback`, `verify` |\n * | [flickr.push.unsubscribe](https://www.flickr.com/services/api/flickr.push.unsubscribe.html) | `read` :eyes: | `topic`, `callback`, `verify` |\n * | [flickr.reflection.getMethodInfo](https://www.flickr.com/services/api/flickr.reflection.getMethodInfo.html) | `none` | `method_name` |\n * | [flickr.reflection.getMethods](https://www.flickr.com/services/api/flickr.reflection.getMethods.html) | `none` | |\n * | [flickr.stats.getCSVFiles](https://www.flickr.com/services/api/flickr.stats.getCSVFiles.html) | `read` :eyes: | |\n * | [flickr.stats.getCollectionDomains](https://www.flickr.com/services/api/flickr.stats.getCollectionDomains.html) | `read` :eyes: | `date` |\n * | [flickr.stats.getCollectionReferrers](https://www.flickr.com/services/api/flickr.stats.getCollectionReferrers.html) | `read` :eyes: | `date`, `domain` |\n * | [flickr.stats.getCollectionStats](https://www.flickr.com/services/api/flickr.stats.getCollectionStats.html) | `read` :eyes: | `date`, `collection_id` |\n * | [flickr.stats.getPhotoDomains](https://www.flickr.com/services/api/flickr.stats.getPhotoDomains.html) | `read` :eyes: | `date` |\n * | [flickr.stats.getPhotoReferrers](https://www.flickr.com/services/api/flickr.stats.getPhotoReferrers.html) | `read` :eyes: | `date`, `domain` |\n * | [flickr.stats.getPhotoStats](https://www.flickr.com/services/api/flickr.stats.getPhotoStats.html) | `read` :eyes: | `date`, `photo_id` |\n * | [flickr.stats.getPhotosetDomains](https://www.flickr.com/services/api/flickr.stats.getPhotosetDomains.html) | `read` :eyes: | `date` |\n * | [flickr.stats.getPhotosetReferrers](https://www.flickr.com/services/api/flickr.stats.getPhotosetReferrers.html) | `read` :eyes: | `date`, `domain` |\n * | [flickr.stats.getPhotosetStats](https://www.flickr.com/services/api/flickr.stats.getPhotosetStats.html) | `read` :eyes: | `date`, `photoset_id` |\n * | [flickr.stats.getPhotostreamDomains](https://www.flickr.com/services/api/flickr.stats.getPhotostreamDomains.html) | `read` :eyes: | `date` |\n * | [flickr.stats.getPhotostreamReferrers](https://www.flickr.com/services/api/flickr.stats.getPhotostreamReferrers.html) | `read` :eyes: | `date`, `domain` |\n * | [flickr.stats.getPhotostreamStats](https://www.flickr.com/services/api/flickr.stats.getPhotostreamStats.html) | `read` :eyes: | `date` |\n * | [flickr.stats.getPopularPhotos](https://www.flickr.com/services/api/flickr.stats.getPopularPhotos.html) | `read` :eyes: | |\n * | [flickr.stats.getTotalViews](https://www.flickr.com/services/api/flickr.stats.getTotalViews.html) | `read` :eyes: | |\n * | [flickr.tags.getClusterPhotos](https://www.flickr.com/services/api/flickr.tags.getClusterPhotos.html) | `none` | `tag`, `cluster_id` |\n * | [flickr.tags.getClusters](https://www.flickr.com/services/api/flickr.tags.getClusters.html) | `none` | `tag` |\n * | [flickr.tags.getHotList](https://www.flickr.com/services/api/flickr.tags.getHotList.html) | `none` | |\n * | [flickr.tags.getListPhoto](https://www.flickr.com/services/api/flickr.tags.getListPhoto.html) | `none` | `photo_id` |\n * | [flickr.tags.getListUser](https://www.flickr.com/services/api/flickr.tags.getListUser.html) | `none` | |\n * | [flickr.tags.getListUserPopular](https://www.flickr.com/services/api/flickr.tags.getListUserPopular.html) | `none` | |\n * | [flickr.tags.getListUserRaw](https://www.flickr.com/services/api/flickr.tags.getListUserRaw.html) | `none` | |\n * | [flickr.tags.getMostFrequentlyUsed](https://www.flickr.com/services/api/flickr.tags.getMostFrequentlyUsed.html) | `read` :eyes: | |\n * | [flickr.tags.getRelated](https://www.flickr.com/services/api/flickr.tags.getRelated.html) | `none` | `tag` |\n * | [flickr.test.echo](https://www.flickr.com/services/api/flickr.test.echo.html) | `none` | |\n * | [flickr.test.login](https://www.flickr.com/services/api/flickr.test.login.html) | `read` :eyes: | |\n * | [flickr.test.null](https://www.flickr.com/services/api/flickr.test.null.html) | `read` :eyes: | |\n * | [flickr.testimonials.addTestimonial](https://www.flickr.com/services/api/flickr.testimonials.addTestimonial.html) | `write` :pencil2: | `user_id`, `testimonial_text` |\n * | [flickr.testimonials.approveTestimonial](https://www.flickr.com/services/api/flickr.testimonials.approveTestimonial.html) | `write` :pencil2: | `testimonial_id` |\n * | [flickr.testimonials.deleteTestimonial](https://www.flickr.com/services/api/flickr.testimonials.deleteTestimonial.html) | `write` :pencil2: | `testimonial_id` |\n * | [flickr.testimonials.editTestimonial](https://www.flickr.com/services/api/flickr.testimonials.editTestimonial.html) | `write` :pencil2: | `user_id`, `testimonial_id`, `testimonial_text` |\n * | [flickr.testimonials.getAllTestimonialsAbout](https://www.flickr.com/services/api/flickr.testimonials.getAllTestimonialsAbout.html) | `read` :eyes: | |\n * | [flickr.testimonials.getAllTestimonialsAboutBy](https://www.flickr.com/services/api/flickr.testimonials.getAllTestimonialsAboutBy.html) | `read` :eyes: | `user_id` |\n * | [flickr.testimonials.getAllTestimonialsBy](https://www.flickr.com/services/api/flickr.testimonials.getAllTestimonialsBy.html) | `read` :eyes: | |\n * | [flickr.testimonials.getPendingTestimonialsAbout](https://www.flickr.com/services/api/flickr.testimonials.getPendingTestimonialsAbout.html) | `read` :eyes: | |\n * | [flickr.testimonials.getPendingTestimonialsAboutBy](https://www.flickr.com/services/api/flickr.testimonials.getPendingTestimonialsAboutBy.html) | `read` :eyes: | `user_id` |\n * | [flickr.testimonials.getPendingTestimonialsBy](https://www.flickr.com/services/api/flickr.testimonials.getPendingTestimonialsBy.html) | `read` :eyes: | |\n * | [flickr.testimonials.getTestimonialsAbout](https://www.flickr.com/services/api/flickr.testimonials.getTestimonialsAbout.html) | `none` | `user_id` |\n * | [flickr.testimonials.getTestimonialsAboutBy](https://www.flickr.com/services/api/flickr.testimonials.getTestimonialsAboutBy.html) | `read` :eyes: | `user_id` |\n * | [flickr.testimonials.getTestimonialsBy](https://www.flickr.com/services/api/flickr.testimonials.getTestimonialsBy.html) | `none` | `user_id` |\n * | [flickr.urls.getGroup](https://www.flickr.com/services/api/flickr.urls.getGroup.html) | `none` | `group_id` |\n * | [flickr.urls.getUserPhotos](https://www.flickr.com/services/api/flickr.urls.getUserPhotos.html) | `none` | |\n * | [flickr.urls.getUserProfile](https://www.flickr.com/services/api/flickr.urls.getUserProfile.html) | `none` | |\n * | [flickr.urls.lookupGallery](https://www.flickr.com/services/api/flickr.urls.lookupGallery.html) | `none` | `url` |\n * | [flickr.urls.lookupGroup](https://www.flickr.com/services/api/flickr.urls.lookupGroup.html) | `none` | `url` |\n * | [flickr.urls.lookupUser](https://www.flickr.com/services/api/flickr.urls.lookupUser.html) | `none` | `url` |\n */\n\nfunction Flickr(auth, opts) {\n\n\t// allow creating a client without `new`\n\tif (!(this instanceof Flickr)) {\n\t\treturn new Flickr(auth);\n\t}\n\n\t// create a new client and assign it to all of our namespaces\n\tthis.activity._ =\n\tthis.auth._ =\n\tthis.auth.oauth._ =\n\tthis.blogs._ =\n\tthis.cameras._ =\n\tthis.collections._ =\n\tthis.commons._ =\n\tthis.contacts._ =\n\tthis.favorites._ =\n\tthis.galleries._ =\n\tthis.groups._ =\n\tthis.groups.discuss._ =\n\tthis.groups.discuss.replies._ =\n\tthis.groups.discuss.topics._ =\n\tthis.groups.members._ =\n\tthis.groups.pools._ =\n\tthis.interestingness._ =\n\tthis.machinetags._ =\n\tthis.panda._ =\n\tthis.people._ =\n\tthis.photos._ =\n\tthis.photos.comments._ =\n\tthis.photos.geo._ =\n\tthis.photos.licenses._ =\n\tthis.photos.notes._ =\n\tthis.photos.people._ =\n\tthis.photos.suggestions._ =\n\tthis.photos.transform._ =\n\tthis.photos.upload._ =\n\tthis.photosets._ =\n\tthis.photosets.comments._ =\n\tthis.places._ =\n\tthis.prefs._ =\n\tthis.profile._ =\n\tthis.push._ =\n\tthis.reflection._ =\n\tthis.stats._ =\n\tthis.tags._ =\n\tthis.test._ =\n\tthis.testimonials._ =\n\tthis.urls._ =\n\tthis._ = // create passthrough for future/undocumented endpoints\n\t\tcreateClient(auth, opts);\n}\n\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.activity = {};\n\n/**\n * flickr.activity.userComments\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.activity.userComments.html\n */\n\nFlickr.prototype.activity.userComments = function (args) {\n\treturn this._('GET', 'flickr.activity.userComments', args);\n};\n\n/**\n * flickr.activity.userPhotos\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.activity.userPhotos.html\n */\n\nFlickr.prototype.activity.userPhotos = function (args) {\n\treturn this._('GET', 'flickr.activity.userPhotos', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.auth = {};\n\n/**\n * flickr.auth.checkToken\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.auth.checkToken.html\n */\n\nFlickr.prototype.auth.checkToken = function (args) {\n\tvalidate(args, 'auth_token');\n\treturn this._('GET', 'flickr.auth.checkToken', args);\n};\n\n/**\n * flickr.auth.getFrob\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.auth.getFrob.html\n */\n\nFlickr.prototype.auth.getFrob = function (args) {\n\treturn this._('GET', 'flickr.auth.getFrob', args);\n};\n\n/**\n * flickr.auth.getFullToken\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.auth.getFullToken.html\n */\n\nFlickr.prototype.auth.getFullToken = function (args) {\n\tvalidate(args, 'mini_token');\n\treturn this._('GET', 'flickr.auth.getFullToken', args);\n};\n\n/**\n * flickr.auth.getToken\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.auth.getToken.html\n */\n\nFlickr.prototype.auth.getToken = function (args) {\n\tvalidate(args, 'frob');\n\treturn this._('GET', 'flickr.auth.getToken', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.auth.oauth = {};\n\n/**\n * flickr.auth.oauth.checkToken\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.auth.oauth.checkToken.html\n */\n\nFlickr.prototype.auth.oauth.checkToken = function (args) {\n\tvalidate(args, 'oauth_token');\n\treturn this._('GET', 'flickr.auth.oauth.checkToken', args);\n};\n\n/**\n * flickr.auth.oauth.getAccessToken\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.auth.oauth.getAccessToken.html\n */\n\nFlickr.prototype.auth.oauth.getAccessToken = function (args) {\n\treturn this._('GET', 'flickr.auth.oauth.getAccessToken', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.blogs = {};\n\n/**\n * flickr.blogs.getList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.blogs.getList.html\n */\n\nFlickr.prototype.blogs.getList = function (args) {\n\treturn this._('GET', 'flickr.blogs.getList', args);\n};\n\n/**\n * flickr.blogs.getServices\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.blogs.getServices.html\n */\n\nFlickr.prototype.blogs.getServices = function (args) {\n\treturn this._('GET', 'flickr.blogs.getServices', args);\n};\n\n/**\n * flickr.blogs.postPhoto\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.blogs.postPhoto.html\n */\n\nFlickr.prototype.blogs.postPhoto = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'title');\n\tvalidate(args, 'description');\n\treturn this._('POST', 'flickr.blogs.postPhoto', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.cameras = {};\n\n/**\n * flickr.cameras.getBrandModels\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.cameras.getBrandModels.html\n */\n\nFlickr.prototype.cameras.getBrandModels = function (args) {\n\tvalidate(args, 'brand');\n\treturn this._('GET', 'flickr.cameras.getBrandModels', args);\n};\n\n/**\n * flickr.cameras.getBrands\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.cameras.getBrands.html\n */\n\nFlickr.prototype.cameras.getBrands = function (args) {\n\treturn this._('GET', 'flickr.cameras.getBrands', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.collections = {};\n\n/**\n * flickr.collections.getInfo\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.collections.getInfo.html\n */\n\nFlickr.prototype.collections.getInfo = function (args) {\n\tvalidate(args, 'collection_id');\n\treturn this._('GET', 'flickr.collections.getInfo', args);\n};\n\n/**\n * flickr.collections.getTree\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.collections.getTree.html\n */\n\nFlickr.prototype.collections.getTree = function (args) {\n\treturn this._('GET', 'flickr.collections.getTree', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.commons = {};\n\n/**\n * flickr.commons.getInstitutions\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.commons.getInstitutions.html\n */\n\nFlickr.prototype.commons.getInstitutions = function (args) {\n\treturn this._('GET', 'flickr.commons.getInstitutions', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.contacts = {};\n\n/**\n * flickr.contacts.getList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.contacts.getList.html\n */\n\nFlickr.prototype.contacts.getList = function (args) {\n\treturn this._('GET', 'flickr.contacts.getList', args);\n};\n\n/**\n * flickr.contacts.getListRecentlyUploaded\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.contacts.getListRecentlyUploaded.html\n */\n\nFlickr.prototype.contacts.getListRecentlyUploaded = function (args) {\n\treturn this._('GET', 'flickr.contacts.getListRecentlyUploaded', args);\n};\n\n/**\n * flickr.contacts.getPublicList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.contacts.getPublicList.html\n */\n\nFlickr.prototype.contacts.getPublicList = function (args) {\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.contacts.getPublicList', args);\n};\n\n/**\n * flickr.contacts.getTaggingSuggestions\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.contacts.getTaggingSuggestions.html\n */\n\nFlickr.prototype.contacts.getTaggingSuggestions = function (args) {\n\treturn this._('GET', 'flickr.contacts.getTaggingSuggestions', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.favorites = {};\n\n/**\n * flickr.favorites.add\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.favorites.add.html\n */\n\nFlickr.prototype.favorites.add = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('POST', 'flickr.favorites.add', args);\n};\n\n/**\n * flickr.favorites.getContext\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.favorites.getContext.html\n */\n\nFlickr.prototype.favorites.getContext = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.favorites.getContext', args);\n};\n\n/**\n * flickr.favorites.getList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.favorites.getList.html\n */\n\nFlickr.prototype.favorites.getList = function (args) {\n\treturn this._('GET', 'flickr.favorites.getList', args);\n};\n\n/**\n * flickr.favorites.getPublicList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.favorites.getPublicList.html\n */\n\nFlickr.prototype.favorites.getPublicList = function (args) {\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.favorites.getPublicList', args);\n};\n\n/**\n * flickr.favorites.remove\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.favorites.remove.html\n */\n\nFlickr.prototype.favorites.remove = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('POST', 'flickr.favorites.remove', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.galleries = {};\n\n/**\n * flickr.galleries.addPhoto\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.galleries.addPhoto.html\n */\n\nFlickr.prototype.galleries.addPhoto = function (args) {\n\tvalidate(args, 'gallery_id');\n\tvalidate(args, 'photo_id');\n\treturn this._('POST', 'flickr.galleries.addPhoto', args);\n};\n\n/**\n * flickr.galleries.create\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.galleries.create.html\n */\n\nFlickr.prototype.galleries.create = function (args) {\n\tvalidate(args, 'title');\n\tvalidate(args, 'description');\n\treturn this._('POST', 'flickr.galleries.create', args);\n};\n\n/**\n * flickr.galleries.editMeta\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.galleries.editMeta.html\n */\n\nFlickr.prototype.galleries.editMeta = function (args) {\n\tvalidate(args, 'gallery_id');\n\tvalidate(args, 'title');\n\treturn this._('POST', 'flickr.galleries.editMeta', args);\n};\n\n/**\n * flickr.galleries.editPhoto\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.galleries.editPhoto.html\n */\n\nFlickr.prototype.galleries.editPhoto = function (args) {\n\tvalidate(args, 'gallery_id');\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'comment');\n\treturn this._('POST', 'flickr.galleries.editPhoto', args);\n};\n\n/**\n * flickr.galleries.editPhotos\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.galleries.editPhotos.html\n */\n\nFlickr.prototype.galleries.editPhotos = function (args) {\n\tvalidate(args, 'gallery_id');\n\tvalidate(args, 'primary_photo_id');\n\tvalidate(args, 'photo_ids');\n\treturn this._('POST', 'flickr.galleries.editPhotos', args);\n};\n\n/**\n * flickr.galleries.getInfo\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.galleries.getInfo.html\n */\n\nFlickr.prototype.galleries.getInfo = function (args) {\n\tvalidate(args, 'gallery_id');\n\treturn this._('GET', 'flickr.galleries.getInfo', args);\n};\n\n/**\n * flickr.galleries.getList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.galleries.getList.html\n */\n\nFlickr.prototype.galleries.getList = function (args) {\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.galleries.getList', args);\n};\n\n/**\n * flickr.galleries.getListForPhoto\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.galleries.getListForPhoto.html\n */\n\nFlickr.prototype.galleries.getListForPhoto = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('GET', 'flickr.galleries.getListForPhoto', args);\n};\n\n/**\n * flickr.galleries.getPhotos\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.galleries.getPhotos.html\n */\n\nFlickr.prototype.galleries.getPhotos = function (args) {\n\tvalidate(args, 'gallery_id');\n\treturn this._('GET', 'flickr.galleries.getPhotos', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.groups = {};\n\n/**\n * flickr.groups.browse\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.browse.html\n */\n\nFlickr.prototype.groups.browse = function (args) {\n\treturn this._('GET', 'flickr.groups.browse', args);\n};\n\n/**\n * flickr.groups.getInfo\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.getInfo.html\n */\n\nFlickr.prototype.groups.getInfo = function (args) {\n\tvalidate(args, 'group_id');\n\treturn this._('GET', 'flickr.groups.getInfo', args);\n};\n\n/**\n * flickr.groups.join\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.join.html\n */\n\nFlickr.prototype.groups.join = function (args) {\n\tvalidate(args, 'group_id');\n\treturn this._('POST', 'flickr.groups.join', args);\n};\n\n/**\n * flickr.groups.joinRequest\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.joinRequest.html\n */\n\nFlickr.prototype.groups.joinRequest = function (args) {\n\tvalidate(args, 'group_id');\n\tvalidate(args, 'message');\n\tvalidate(args, 'accept_rules');\n\treturn this._('POST', 'flickr.groups.joinRequest', args);\n};\n\n/**\n * flickr.groups.leave\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.leave.html\n */\n\nFlickr.prototype.groups.leave = function (args) {\n\tvalidate(args, 'group_id');\n\treturn this._('POST', 'flickr.groups.leave', args);\n};\n\n/**\n * flickr.groups.search\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.search.html\n */\n\nFlickr.prototype.groups.search = function (args) {\n\tvalidate(args, 'text');\n\treturn this._('GET', 'flickr.groups.search', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.groups.discuss = {};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.groups.discuss.replies = {};\n\n/**\n * flickr.groups.discuss.replies.add\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.discuss.replies.add.html\n */\n\nFlickr.prototype.groups.discuss.replies.add = function (args) {\n\tvalidate(args, 'group_id');\n\tvalidate(args, 'topic_id');\n\tvalidate(args, 'message');\n\treturn this._('POST', 'flickr.groups.discuss.replies.add', args);\n};\n\n/**\n * flickr.groups.discuss.replies.delete\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.discuss.replies.delete.html\n */\n\nFlickr.prototype.groups.discuss.replies.delete = function (args) {\n\tvalidate(args, 'group_id');\n\tvalidate(args, 'topic_id');\n\tvalidate(args, 'reply_id');\n\treturn this._('POST', 'flickr.groups.discuss.replies.delete', args);\n};\n\n/**\n * flickr.groups.discuss.replies.edit\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.discuss.replies.edit.html\n */\n\nFlickr.prototype.groups.discuss.replies.edit = function (args) {\n\tvalidate(args, 'group_id');\n\tvalidate(args, 'topic_id');\n\tvalidate(args, 'reply_id');\n\tvalidate(args, 'message');\n\treturn this._('POST', 'flickr.groups.discuss.replies.edit', args);\n};\n\n/**\n * flickr.groups.discuss.replies.getInfo\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.discuss.replies.getInfo.html\n */\n\nFlickr.prototype.groups.discuss.replies.getInfo = function (args) {\n\tvalidate(args, 'group_id');\n\tvalidate(args, 'topic_id');\n\tvalidate(args, 'reply_id');\n\treturn this._('GET', 'flickr.groups.discuss.replies.getInfo', args);\n};\n\n/**\n * flickr.groups.discuss.replies.getList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.discuss.replies.getList.html\n */\n\nFlickr.prototype.groups.discuss.replies.getList = function (args) {\n\tvalidate(args, 'group_id');\n\tvalidate(args, 'topic_id');\n\tvalidate(args, 'per_page');\n\treturn this._('GET', 'flickr.groups.discuss.replies.getList', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.groups.discuss.topics = {};\n\n/**\n * flickr.groups.discuss.topics.add\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.discuss.topics.add.html\n */\n\nFlickr.prototype.groups.discuss.topics.add = function (args) {\n\tvalidate(args, 'group_id');\n\tvalidate(args, 'subject');\n\tvalidate(args, 'message');\n\treturn this._('POST', 'flickr.groups.discuss.topics.add', args);\n};\n\n/**\n * flickr.groups.discuss.topics.getInfo\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.discuss.topics.getInfo.html\n */\n\nFlickr.prototype.groups.discuss.topics.getInfo = function (args) {\n\tvalidate(args, 'group_id');\n\tvalidate(args, 'topic_id');\n\treturn this._('GET', 'flickr.groups.discuss.topics.getInfo', args);\n};\n\n/**\n * flickr.groups.discuss.topics.getList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.discuss.topics.getList.html\n */\n\nFlickr.prototype.groups.discuss.topics.getList = function (args) {\n\tvalidate(args, 'group_id');\n\treturn this._('GET', 'flickr.groups.discuss.topics.getList', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.groups.members = {};\n\n/**\n * flickr.groups.members.getList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.members.getList.html\n */\n\nFlickr.prototype.groups.members.getList = function (args) {\n\tvalidate(args, 'group_id');\n\treturn this._('GET', 'flickr.groups.members.getList', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.groups.pools = {};\n\n/**\n * flickr.groups.pools.add\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.pools.add.html\n */\n\nFlickr.prototype.groups.pools.add = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'group_id');\n\treturn this._('POST', 'flickr.groups.pools.add', args);\n};\n\n/**\n * flickr.groups.pools.getContext\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.pools.getContext.html\n */\n\nFlickr.prototype.groups.pools.getContext = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'group_id');\n\treturn this._('GET', 'flickr.groups.pools.getContext', args);\n};\n\n/**\n * flickr.groups.pools.getGroups\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.pools.getGroups.html\n */\n\nFlickr.prototype.groups.pools.getGroups = function (args) {\n\treturn this._('GET', 'flickr.groups.pools.getGroups', args);\n};\n\n/**\n * flickr.groups.pools.getPhotos\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.pools.getPhotos.html\n */\n\nFlickr.prototype.groups.pools.getPhotos = function (args) {\n\tvalidate(args, 'group_id');\n\treturn this._('GET', 'flickr.groups.pools.getPhotos', args);\n};\n\n/**\n * flickr.groups.pools.remove\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.groups.pools.remove.html\n */\n\nFlickr.prototype.groups.pools.remove = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'group_id');\n\treturn this._('POST', 'flickr.groups.pools.remove', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.interestingness = {};\n\n/**\n * flickr.interestingness.getList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.interestingness.getList.html\n */\n\nFlickr.prototype.interestingness.getList = function (args) {\n\treturn this._('GET', 'flickr.interestingness.getList', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.machinetags = {};\n\n/**\n * flickr.machinetags.getNamespaces\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.machinetags.getNamespaces.html\n */\n\nFlickr.prototype.machinetags.getNamespaces = function (args) {\n\treturn this._('GET', 'flickr.machinetags.getNamespaces', args);\n};\n\n/**\n * flickr.machinetags.getPairs\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.machinetags.getPairs.html\n */\n\nFlickr.prototype.machinetags.getPairs = function (args) {\n\treturn this._('GET', 'flickr.machinetags.getPairs', args);\n};\n\n/**\n * flickr.machinetags.getPredicates\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.machinetags.getPredicates.html\n */\n\nFlickr.prototype.machinetags.getPredicates = function (args) {\n\treturn this._('GET', 'flickr.machinetags.getPredicates', args);\n};\n\n/**\n * flickr.machinetags.getRecentValues\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.machinetags.getRecentValues.html\n */\n\nFlickr.prototype.machinetags.getRecentValues = function (args) {\n\treturn this._('GET', 'flickr.machinetags.getRecentValues', args);\n};\n\n/**\n * flickr.machinetags.getValues\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.machinetags.getValues.html\n */\n\nFlickr.prototype.machinetags.getValues = function (args) {\n\tvalidate(args, 'namespace');\n\tvalidate(args, 'predicate');\n\treturn this._('GET', 'flickr.machinetags.getValues', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.panda = {};\n\n/**\n * flickr.panda.getList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.panda.getList.html\n */\n\nFlickr.prototype.panda.getList = function (args) {\n\treturn this._('GET', 'flickr.panda.getList', args);\n};\n\n/**\n * flickr.panda.getPhotos\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.panda.getPhotos.html\n */\n\nFlickr.prototype.panda.getPhotos = function (args) {\n\tvalidate(args, 'panda_name');\n\treturn this._('GET', 'flickr.panda.getPhotos', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.people = {};\n\n/**\n * flickr.people.findByEmail\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.people.findByEmail.html\n */\n\nFlickr.prototype.people.findByEmail = function (args) {\n\tvalidate(args, 'find_email');\n\treturn this._('GET', 'flickr.people.findByEmail', args);\n};\n\n/**\n * flickr.people.findByUsername\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.people.findByUsername.html\n */\n\nFlickr.prototype.people.findByUsername = function (args) {\n\tvalidate(args, 'username');\n\treturn this._('GET', 'flickr.people.findByUsername', args);\n};\n\n/**\n * flickr.people.getGroups\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.people.getGroups.html\n */\n\nFlickr.prototype.people.getGroups = function (args) {\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.people.getGroups', args);\n};\n\n/**\n * flickr.people.getInfo\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.people.getInfo.html\n */\n\nFlickr.prototype.people.getInfo = function (args) {\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.people.getInfo', args);\n};\n\n/**\n * flickr.people.getLimits\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.people.getLimits.html\n */\n\nFlickr.prototype.people.getLimits = function (args) {\n\treturn this._('GET', 'flickr.people.getLimits', args);\n};\n\n/**\n * flickr.people.getPhotos\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.people.getPhotos.html\n */\n\nFlickr.prototype.people.getPhotos = function (args) {\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.people.getPhotos', args);\n};\n\n/**\n * flickr.people.getPhotosOf\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.people.getPhotosOf.html\n */\n\nFlickr.prototype.people.getPhotosOf = function (args) {\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.people.getPhotosOf', args);\n};\n\n/**\n * flickr.people.getPublicGroups\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.people.getPublicGroups.html\n */\n\nFlickr.prototype.people.getPublicGroups = function (args) {\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.people.getPublicGroups', args);\n};\n\n/**\n * flickr.people.getPublicPhotos\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.people.getPublicPhotos.html\n */\n\nFlickr.prototype.people.getPublicPhotos = function (args) {\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.people.getPublicPhotos', args);\n};\n\n/**\n * flickr.people.getUploadStatus\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.people.getUploadStatus.html\n */\n\nFlickr.prototype.people.getUploadStatus = function (args) {\n\treturn this._('GET', 'flickr.people.getUploadStatus', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.photos = {};\n\n/**\n * flickr.photos.addTags\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.addTags.html\n */\n\nFlickr.prototype.photos.addTags = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'tags');\n\treturn this._('POST', 'flickr.photos.addTags', args);\n};\n\n/**\n * flickr.photos.delete\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.delete.html\n */\n\nFlickr.prototype.photos.delete = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('POST', 'flickr.photos.delete', args);\n};\n\n/**\n * flickr.photos.getAllContexts\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.getAllContexts.html\n */\n\nFlickr.prototype.photos.getAllContexts = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('GET', 'flickr.photos.getAllContexts', args);\n};\n\n/**\n * flickr.photos.getContactsPhotos\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.getContactsPhotos.html\n */\n\nFlickr.prototype.photos.getContactsPhotos = function (args) {\n\treturn this._('GET', 'flickr.photos.getContactsPhotos', args);\n};\n\n/**\n * flickr.photos.getContactsPublicPhotos\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.getContactsPublicPhotos.html\n */\n\nFlickr.prototype.photos.getContactsPublicPhotos = function (args) {\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.photos.getContactsPublicPhotos', args);\n};\n\n/**\n * flickr.photos.getContext\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.getContext.html\n */\n\nFlickr.prototype.photos.getContext = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('GET', 'flickr.photos.getContext', args);\n};\n\n/**\n * flickr.photos.getCounts\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.getCounts.html\n */\n\nFlickr.prototype.photos.getCounts = function (args) {\n\treturn this._('GET', 'flickr.photos.getCounts', args);\n};\n\n/**\n * flickr.photos.getExif\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.getExif.html\n */\n\nFlickr.prototype.photos.getExif = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('GET', 'flickr.photos.getExif', args);\n};\n\n/**\n * flickr.photos.getFavorites\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.getFavorites.html\n */\n\nFlickr.prototype.photos.getFavorites = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('GET', 'flickr.photos.getFavorites', args);\n};\n\n/**\n * flickr.photos.getInfo\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.getInfo.html\n */\n\nFlickr.prototype.photos.getInfo = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('GET', 'flickr.photos.getInfo', args);\n};\n\n/**\n * flickr.photos.getNotInSet\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.getNotInSet.html\n */\n\nFlickr.prototype.photos.getNotInSet = function (args) {\n\treturn this._('GET', 'flickr.photos.getNotInSet', args);\n};\n\n/**\n * flickr.photos.getPerms\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.getPerms.html\n */\n\nFlickr.prototype.photos.getPerms = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('GET', 'flickr.photos.getPerms', args);\n};\n\n/**\n * flickr.photos.getPopular\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.getPopular.html\n */\n\nFlickr.prototype.photos.getPopular = function (args) {\n\treturn this._('GET', 'flickr.photos.getPopular', args);\n};\n\n/**\n * flickr.photos.getRecent\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.getRecent.html\n */\n\nFlickr.prototype.photos.getRecent = function (args) {\n\treturn this._('GET', 'flickr.photos.getRecent', args);\n};\n\n/**\n * flickr.photos.getSizes\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.getSizes.html\n */\n\nFlickr.prototype.photos.getSizes = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('GET', 'flickr.photos.getSizes', args);\n};\n\n/**\n * flickr.photos.getUntagged\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.getUntagged.html\n */\n\nFlickr.prototype.photos.getUntagged = function (args) {\n\treturn this._('GET', 'flickr.photos.getUntagged', args);\n};\n\n/**\n * flickr.photos.getWithGeoData\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.getWithGeoData.html\n */\n\nFlickr.prototype.photos.getWithGeoData = function (args) {\n\treturn this._('GET', 'flickr.photos.getWithGeoData', args);\n};\n\n/**\n * flickr.photos.getWithoutGeoData\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.getWithoutGeoData.html\n */\n\nFlickr.prototype.photos.getWithoutGeoData = function (args) {\n\treturn this._('GET', 'flickr.photos.getWithoutGeoData', args);\n};\n\n/**\n * flickr.photos.recentlyUpdated\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.recentlyUpdated.html\n */\n\nFlickr.prototype.photos.recentlyUpdated = function (args) {\n\tvalidate(args, 'min_date');\n\treturn this._('GET', 'flickr.photos.recentlyUpdated', args);\n};\n\n/**\n * flickr.photos.removeTag\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.removeTag.html\n */\n\nFlickr.prototype.photos.removeTag = function (args) {\n\tvalidate(args, 'tag_id');\n\treturn this._('POST', 'flickr.photos.removeTag', args);\n};\n\n/**\n * flickr.photos.search\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.search.html\n */\n\nFlickr.prototype.photos.search = function (args) {\n\treturn this._('GET', 'flickr.photos.search', args);\n};\n\n/**\n * flickr.photos.setContentType\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.setContentType.html\n */\n\nFlickr.prototype.photos.setContentType = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'content_type');\n\treturn this._('POST', 'flickr.photos.setContentType', args);\n};\n\n/**\n * flickr.photos.setDates\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.setDates.html\n */\n\nFlickr.prototype.photos.setDates = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('POST', 'flickr.photos.setDates', args);\n};\n\n/**\n * flickr.photos.setMeta\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.setMeta.html\n */\n\nFlickr.prototype.photos.setMeta = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('POST', 'flickr.photos.setMeta', args);\n};\n\n/**\n * flickr.photos.setPerms\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.setPerms.html\n */\n\nFlickr.prototype.photos.setPerms = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'is_public');\n\tvalidate(args, 'is_friend');\n\tvalidate(args, 'is_family');\n\treturn this._('POST', 'flickr.photos.setPerms', args);\n};\n\n/**\n * flickr.photos.setSafetyLevel\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.setSafetyLevel.html\n */\n\nFlickr.prototype.photos.setSafetyLevel = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('POST', 'flickr.photos.setSafetyLevel', args);\n};\n\n/**\n * flickr.photos.setTags\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.setTags.html\n */\n\nFlickr.prototype.photos.setTags = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'tags');\n\treturn this._('POST', 'flickr.photos.setTags', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.photos.comments = {};\n\n/**\n * flickr.photos.comments.addComment\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.comments.addComment.html\n */\n\nFlickr.prototype.photos.comments.addComment = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'comment_text');\n\treturn this._('POST', 'flickr.photos.comments.addComment', args);\n};\n\n/**\n * flickr.photos.comments.deleteComment\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.comments.deleteComment.html\n */\n\nFlickr.prototype.photos.comments.deleteComment = function (args) {\n\tvalidate(args, 'comment_id');\n\treturn this._('POST', 'flickr.photos.comments.deleteComment', args);\n};\n\n/**\n * flickr.photos.comments.editComment\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.comments.editComment.html\n */\n\nFlickr.prototype.photos.comments.editComment = function (args) {\n\tvalidate(args, 'comment_id');\n\tvalidate(args, 'comment_text');\n\treturn this._('POST', 'flickr.photos.comments.editComment', args);\n};\n\n/**\n * flickr.photos.comments.getList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.comments.getList.html\n */\n\nFlickr.prototype.photos.comments.getList = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('GET', 'flickr.photos.comments.getList', args);\n};\n\n/**\n * flickr.photos.comments.getRecentForContacts\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.comments.getRecentForContacts.html\n */\n\nFlickr.prototype.photos.comments.getRecentForContacts = function (args) {\n\treturn this._('GET', 'flickr.photos.comments.getRecentForContacts', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.photos.geo = {};\n\n/**\n * flickr.photos.geo.batchCorrectLocation\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.geo.batchCorrectLocation.html\n */\n\nFlickr.prototype.photos.geo.batchCorrectLocation = function (args) {\n\tvalidate(args, 'lat');\n\tvalidate(args, 'lon');\n\tvalidate(args, 'accuracy');\n\treturn this._('POST', 'flickr.photos.geo.batchCorrectLocation', args);\n};\n\n/**\n * flickr.photos.geo.correctLocation\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.geo.correctLocation.html\n */\n\nFlickr.prototype.photos.geo.correctLocation = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'foursquare_id');\n\treturn this._('POST', 'flickr.photos.geo.correctLocation', args);\n};\n\n/**\n * flickr.photos.geo.getLocation\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.geo.getLocation.html\n */\n\nFlickr.prototype.photos.geo.getLocation = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('GET', 'flickr.photos.geo.getLocation', args);\n};\n\n/**\n * flickr.photos.geo.getPerms\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.geo.getPerms.html\n */\n\nFlickr.prototype.photos.geo.getPerms = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('GET', 'flickr.photos.geo.getPerms', args);\n};\n\n/**\n * flickr.photos.geo.photosForLocation\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.geo.photosForLocation.html\n */\n\nFlickr.prototype.photos.geo.photosForLocation = function (args) {\n\tvalidate(args, 'lat');\n\tvalidate(args, 'lon');\n\treturn this._('GET', 'flickr.photos.geo.photosForLocation', args);\n};\n\n/**\n * flickr.photos.geo.removeLocation\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.geo.removeLocation.html\n */\n\nFlickr.prototype.photos.geo.removeLocation = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('POST', 'flickr.photos.geo.removeLocation', args);\n};\n\n/**\n * flickr.photos.geo.setContext\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.geo.setContext.html\n */\n\nFlickr.prototype.photos.geo.setContext = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'context');\n\treturn this._('POST', 'flickr.photos.geo.setContext', args);\n};\n\n/**\n * flickr.photos.geo.setLocation\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.geo.setLocation.html\n */\n\nFlickr.prototype.photos.geo.setLocation = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'lat');\n\tvalidate(args, 'lon');\n\treturn this._('POST', 'flickr.photos.geo.setLocation', args);\n};\n\n/**\n * flickr.photos.geo.setPerms\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.geo.setPerms.html\n */\n\nFlickr.prototype.photos.geo.setPerms = function (args) {\n\tvalidate(args, 'is_public');\n\tvalidate(args, 'is_contact');\n\tvalidate(args, 'is_friend');\n\tvalidate(args, 'is_family');\n\tvalidate(args, 'photo_id');\n\treturn this._('POST', 'flickr.photos.geo.setPerms', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.photos.licenses = {};\n\n/**\n * flickr.photos.licenses.getInfo\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.licenses.getInfo.html\n */\n\nFlickr.prototype.photos.licenses.getInfo = function (args) {\n\treturn this._('GET', 'flickr.photos.licenses.getInfo', args);\n};\n\n/**\n * flickr.photos.licenses.setLicense\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.licenses.setLicense.html\n */\n\nFlickr.prototype.photos.licenses.setLicense = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'license_id');\n\treturn this._('POST', 'flickr.photos.licenses.setLicense', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.photos.notes = {};\n\n/**\n * flickr.photos.notes.add\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.notes.add.html\n */\n\nFlickr.prototype.photos.notes.add = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'note_x');\n\tvalidate(args, 'note_y');\n\tvalidate(args, 'note_w');\n\tvalidate(args, 'note_h');\n\tvalidate(args, 'note_text');\n\treturn this._('POST', 'flickr.photos.notes.add', args);\n};\n\n/**\n * flickr.photos.notes.delete\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.notes.delete.html\n */\n\nFlickr.prototype.photos.notes.delete = function (args) {\n\tvalidate(args, 'note_id');\n\treturn this._('POST', 'flickr.photos.notes.delete', args);\n};\n\n/**\n * flickr.photos.notes.edit\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.notes.edit.html\n */\n\nFlickr.prototype.photos.notes.edit = function (args) {\n\tvalidate(args, 'note_id');\n\tvalidate(args, 'note_x');\n\tvalidate(args, 'note_y');\n\tvalidate(args, 'note_w');\n\tvalidate(args, 'note_h');\n\tvalidate(args, 'note_text');\n\treturn this._('POST', 'flickr.photos.notes.edit', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.photos.people = {};\n\n/**\n * flickr.photos.people.add\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.people.add.html\n */\n\nFlickr.prototype.photos.people.add = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'user_id');\n\treturn this._('POST', 'flickr.photos.people.add', args);\n};\n\n/**\n * flickr.photos.people.delete\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.people.delete.html\n */\n\nFlickr.prototype.photos.people.delete = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'user_id');\n\treturn this._('POST', 'flickr.photos.people.delete', args);\n};\n\n/**\n * flickr.photos.people.deleteCoords\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.people.deleteCoords.html\n */\n\nFlickr.prototype.photos.people.deleteCoords = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'user_id');\n\treturn this._('POST', 'flickr.photos.people.deleteCoords', args);\n};\n\n/**\n * flickr.photos.people.editCoords\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.people.editCoords.html\n */\n\nFlickr.prototype.photos.people.editCoords = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'user_id');\n\tvalidate(args, 'person_x');\n\tvalidate(args, 'person_y');\n\tvalidate(args, 'person_w');\n\tvalidate(args, 'person_h');\n\treturn this._('POST', 'flickr.photos.people.editCoords', args);\n};\n\n/**\n * flickr.photos.people.getList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.people.getList.html\n */\n\nFlickr.prototype.photos.people.getList = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('GET', 'flickr.photos.people.getList', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.photos.suggestions = {};\n\n/**\n * flickr.photos.suggestions.approveSuggestion\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.suggestions.approveSuggestion.html\n */\n\nFlickr.prototype.photos.suggestions.approveSuggestion = function (args) {\n\tvalidate(args, 'suggestion_id');\n\treturn this._('POST', 'flickr.photos.suggestions.approveSuggestion', args);\n};\n\n/**\n * flickr.photos.suggestions.getList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.suggestions.getList.html\n */\n\nFlickr.prototype.photos.suggestions.getList = function (args) {\n\treturn this._('GET', 'flickr.photos.suggestions.getList', args);\n};\n\n/**\n * flickr.photos.suggestions.rejectSuggestion\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.suggestions.rejectSuggestion.html\n */\n\nFlickr.prototype.photos.suggestions.rejectSuggestion = function (args) {\n\tvalidate(args, 'suggestion_id');\n\treturn this._('POST', 'flickr.photos.suggestions.rejectSuggestion', args);\n};\n\n/**\n * flickr.photos.suggestions.removeSuggestion\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.suggestions.removeSuggestion.html\n */\n\nFlickr.prototype.photos.suggestions.removeSuggestion = function (args) {\n\tvalidate(args, 'suggestion_id');\n\treturn this._('POST', 'flickr.photos.suggestions.removeSuggestion', args);\n};\n\n/**\n * flickr.photos.suggestions.suggestLocation\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.suggestions.suggestLocation.html\n */\n\nFlickr.prototype.photos.suggestions.suggestLocation = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'lat');\n\tvalidate(args, 'lon');\n\treturn this._('POST', 'flickr.photos.suggestions.suggestLocation', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.photos.transform = {};\n\n/**\n * flickr.photos.transform.rotate\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.transform.rotate.html\n */\n\nFlickr.prototype.photos.transform.rotate = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'degrees');\n\treturn this._('POST', 'flickr.photos.transform.rotate', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.photos.upload = {};\n\n/**\n * flickr.photos.upload.checkTickets\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photos.upload.checkTickets.html\n */\n\nFlickr.prototype.photos.upload.checkTickets = function (args) {\n\tvalidate(args, 'tickets');\n\treturn this._('GET', 'flickr.photos.upload.checkTickets', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.photosets = {};\n\n/**\n * flickr.photosets.addPhoto\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.addPhoto.html\n */\n\nFlickr.prototype.photosets.addPhoto = function (args) {\n\tvalidate(args, 'photoset_id');\n\tvalidate(args, 'photo_id');\n\treturn this._('POST', 'flickr.photosets.addPhoto', args);\n};\n\n/**\n * flickr.photosets.create\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.create.html\n */\n\nFlickr.prototype.photosets.create = function (args) {\n\tvalidate(args, 'title');\n\tvalidate(args, 'primary_photo_id');\n\treturn this._('POST', 'flickr.photosets.create', args);\n};\n\n/**\n * flickr.photosets.delete\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.delete.html\n */\n\nFlickr.prototype.photosets.delete = function (args) {\n\tvalidate(args, 'photoset_id');\n\treturn this._('POST', 'flickr.photosets.delete', args);\n};\n\n/**\n * flickr.photosets.editMeta\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.editMeta.html\n */\n\nFlickr.prototype.photosets.editMeta = function (args) {\n\tvalidate(args, 'photoset_id');\n\tvalidate(args, 'title');\n\treturn this._('POST', 'flickr.photosets.editMeta', args);\n};\n\n/**\n * flickr.photosets.editPhotos\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.editPhotos.html\n */\n\nFlickr.prototype.photosets.editPhotos = function (args) {\n\tvalidate(args, 'photoset_id');\n\tvalidate(args, 'primary_photo_id');\n\tvalidate(args, 'photo_ids');\n\treturn this._('POST', 'flickr.photosets.editPhotos', args);\n};\n\n/**\n * flickr.photosets.getContext\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.getContext.html\n */\n\nFlickr.prototype.photosets.getContext = function (args) {\n\tvalidate(args, 'photo_id');\n\tvalidate(args, 'photoset_id');\n\treturn this._('GET', 'flickr.photosets.getContext', args);\n};\n\n/**\n * flickr.photosets.getInfo\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.getInfo.html\n */\n\nFlickr.prototype.photosets.getInfo = function (args) {\n\tvalidate(args, 'photoset_id');\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.photosets.getInfo', args);\n};\n\n/**\n * flickr.photosets.getList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.getList.html\n */\n\nFlickr.prototype.photosets.getList = function (args) {\n\treturn this._('GET', 'flickr.photosets.getList', args);\n};\n\n/**\n * flickr.photosets.getPhotos\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.getPhotos.html\n */\n\nFlickr.prototype.photosets.getPhotos = function (args) {\n\tvalidate(args, 'photoset_id');\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.photosets.getPhotos', args);\n};\n\n/**\n * flickr.photosets.orderSets\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.orderSets.html\n */\n\nFlickr.prototype.photosets.orderSets = function (args) {\n\tvalidate(args, 'photoset_ids');\n\treturn this._('POST', 'flickr.photosets.orderSets', args);\n};\n\n/**\n * flickr.photosets.removePhoto\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.removePhoto.html\n */\n\nFlickr.prototype.photosets.removePhoto = function (args) {\n\tvalidate(args, 'photoset_id');\n\tvalidate(args, 'photo_id');\n\treturn this._('POST', 'flickr.photosets.removePhoto', args);\n};\n\n/**\n * flickr.photosets.removePhotos\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.removePhotos.html\n */\n\nFlickr.prototype.photosets.removePhotos = function (args) {\n\tvalidate(args, 'photoset_id');\n\tvalidate(args, 'photo_ids');\n\treturn this._('POST', 'flickr.photosets.removePhotos', args);\n};\n\n/**\n * flickr.photosets.reorderPhotos\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.reorderPhotos.html\n */\n\nFlickr.prototype.photosets.reorderPhotos = function (args) {\n\tvalidate(args, 'photoset_id');\n\tvalidate(args, 'photo_ids');\n\treturn this._('POST', 'flickr.photosets.reorderPhotos', args);\n};\n\n/**\n * flickr.photosets.setPrimaryPhoto\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.setPrimaryPhoto.html\n */\n\nFlickr.prototype.photosets.setPrimaryPhoto = function (args) {\n\tvalidate(args, 'photoset_id');\n\tvalidate(args, 'photo_id');\n\treturn this._('POST', 'flickr.photosets.setPrimaryPhoto', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.photosets.comments = {};\n\n/**\n * flickr.photosets.comments.addComment\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.comments.addComment.html\n */\n\nFlickr.prototype.photosets.comments.addComment = function (args) {\n\tvalidate(args, 'photoset_id');\n\tvalidate(args, 'comment_text');\n\treturn this._('POST', 'flickr.photosets.comments.addComment', args);\n};\n\n/**\n * flickr.photosets.comments.deleteComment\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.comments.deleteComment.html\n */\n\nFlickr.prototype.photosets.comments.deleteComment = function (args) {\n\tvalidate(args, 'comment_id');\n\treturn this._('POST', 'flickr.photosets.comments.deleteComment', args);\n};\n\n/**\n * flickr.photosets.comments.editComment\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.comments.editComment.html\n */\n\nFlickr.prototype.photosets.comments.editComment = function (args) {\n\tvalidate(args, 'comment_id');\n\tvalidate(args, 'comment_text');\n\treturn this._('POST', 'flickr.photosets.comments.editComment', args);\n};\n\n/**\n * flickr.photosets.comments.getList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.photosets.comments.getList.html\n */\n\nFlickr.prototype.photosets.comments.getList = function (args) {\n\tvalidate(args, 'photoset_id');\n\treturn this._('GET', 'flickr.photosets.comments.getList', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.places = {};\n\n/**\n * flickr.places.find\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.places.find.html\n */\n\nFlickr.prototype.places.find = function (args) {\n\tvalidate(args, 'query');\n\treturn this._('GET', 'flickr.places.find', args);\n};\n\n/**\n * flickr.places.findByLatLon\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.places.findByLatLon.html\n */\n\nFlickr.prototype.places.findByLatLon = function (args) {\n\tvalidate(args, 'lat');\n\tvalidate(args, 'lon');\n\treturn this._('GET', 'flickr.places.findByLatLon', args);\n};\n\n/**\n * flickr.places.getChildrenWithPhotosPublic\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.places.getChildrenWithPhotosPublic.html\n */\n\nFlickr.prototype.places.getChildrenWithPhotosPublic = function (args) {\n\treturn this._('GET', 'flickr.places.getChildrenWithPhotosPublic', args);\n};\n\n/**\n * flickr.places.getInfo\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.places.getInfo.html\n */\n\nFlickr.prototype.places.getInfo = function (args) {\n\treturn this._('GET', 'flickr.places.getInfo', args);\n};\n\n/**\n * flickr.places.getInfoByUrl\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.places.getInfoByUrl.html\n */\n\nFlickr.prototype.places.getInfoByUrl = function (args) {\n\tvalidate(args, 'url');\n\treturn this._('GET', 'flickr.places.getInfoByUrl', args);\n};\n\n/**\n * flickr.places.getPlaceTypes\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.places.getPlaceTypes.html\n */\n\nFlickr.prototype.places.getPlaceTypes = function (args) {\n\treturn this._('GET', 'flickr.places.getPlaceTypes', args);\n};\n\n/**\n * flickr.places.getShapeHistory\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.places.getShapeHistory.html\n */\n\nFlickr.prototype.places.getShapeHistory = function (args) {\n\treturn this._('GET', 'flickr.places.getShapeHistory', args);\n};\n\n/**\n * flickr.places.getTopPlacesList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.places.getTopPlacesList.html\n */\n\nFlickr.prototype.places.getTopPlacesList = function (args) {\n\tvalidate(args, 'place_type_id');\n\treturn this._('GET', 'flickr.places.getTopPlacesList', args);\n};\n\n/**\n * flickr.places.placesForBoundingBox\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.places.placesForBoundingBox.html\n */\n\nFlickr.prototype.places.placesForBoundingBox = function (args) {\n\tvalidate(args, 'bbox');\n\treturn this._('GET', 'flickr.places.placesForBoundingBox', args);\n};\n\n/**\n * flickr.places.placesForContacts\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.places.placesForContacts.html\n */\n\nFlickr.prototype.places.placesForContacts = function (args) {\n\treturn this._('GET', 'flickr.places.placesForContacts', args);\n};\n\n/**\n * flickr.places.placesForTags\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.places.placesForTags.html\n */\n\nFlickr.prototype.places.placesForTags = function (args) {\n\tvalidate(args, 'place_type_id');\n\treturn this._('GET', 'flickr.places.placesForTags', args);\n};\n\n/**\n * flickr.places.placesForUser\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.places.placesForUser.html\n */\n\nFlickr.prototype.places.placesForUser = function (args) {\n\treturn this._('GET', 'flickr.places.placesForUser', args);\n};\n\n/**\n * flickr.places.resolvePlaceId\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.places.resolvePlaceId.html\n */\n\nFlickr.prototype.places.resolvePlaceId = function (args) {\n\tvalidate(args, 'place_id');\n\treturn this._('GET', 'flickr.places.resolvePlaceId', args);\n};\n\n/**\n * flickr.places.resolvePlaceURL\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.places.resolvePlaceURL.html\n */\n\nFlickr.prototype.places.resolvePlaceURL = function (args) {\n\tvalidate(args, 'url');\n\treturn this._('GET', 'flickr.places.resolvePlaceURL', args);\n};\n\n/**\n * flickr.places.tagsForPlace\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.places.tagsForPlace.html\n */\n\nFlickr.prototype.places.tagsForPlace = function (args) {\n\treturn this._('GET', 'flickr.places.tagsForPlace', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.prefs = {};\n\n/**\n * flickr.prefs.getContentType\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.prefs.getContentType.html\n */\n\nFlickr.prototype.prefs.getContentType = function (args) {\n\treturn this._('GET', 'flickr.prefs.getContentType', args);\n};\n\n/**\n * flickr.prefs.getGeoPerms\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.prefs.getGeoPerms.html\n */\n\nFlickr.prototype.prefs.getGeoPerms = function (args) {\n\treturn this._('GET', 'flickr.prefs.getGeoPerms', args);\n};\n\n/**\n * flickr.prefs.getHidden\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.prefs.getHidden.html\n */\n\nFlickr.prototype.prefs.getHidden = function (args) {\n\treturn this._('GET', 'flickr.prefs.getHidden', args);\n};\n\n/**\n * flickr.prefs.getPrivacy\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.prefs.getPrivacy.html\n */\n\nFlickr.prototype.prefs.getPrivacy = function (args) {\n\treturn this._('GET', 'flickr.prefs.getPrivacy', args);\n};\n\n/**\n * flickr.prefs.getSafetyLevel\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.prefs.getSafetyLevel.html\n */\n\nFlickr.prototype.prefs.getSafetyLevel = function (args) {\n\treturn this._('GET', 'flickr.prefs.getSafetyLevel', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.profile = {};\n\n/**\n * flickr.profile.getProfile\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.profile.getProfile.html\n */\n\nFlickr.prototype.profile.getProfile = function (args) {\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.profile.getProfile', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.push = {};\n\n/**\n * flickr.push.getSubscriptions\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.push.getSubscriptions.html\n */\n\nFlickr.prototype.push.getSubscriptions = function (args) {\n\treturn this._('GET', 'flickr.push.getSubscriptions', args);\n};\n\n/**\n * flickr.push.getTopics\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.push.getTopics.html\n */\n\nFlickr.prototype.push.getTopics = function (args) {\n\treturn this._('GET', 'flickr.push.getTopics', args);\n};\n\n/**\n * flickr.push.subscribe\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.push.subscribe.html\n */\n\nFlickr.prototype.push.subscribe = function (args) {\n\tvalidate(args, 'topic');\n\tvalidate(args, 'callback');\n\tvalidate(args, 'verify');\n\treturn this._('GET', 'flickr.push.subscribe', args);\n};\n\n/**\n * flickr.push.unsubscribe\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.push.unsubscribe.html\n */\n\nFlickr.prototype.push.unsubscribe = function (args) {\n\tvalidate(args, 'topic');\n\tvalidate(args, 'callback');\n\tvalidate(args, 'verify');\n\treturn this._('GET', 'flickr.push.unsubscribe', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.reflection = {};\n\n/**\n * flickr.reflection.getMethodInfo\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.reflection.getMethodInfo.html\n */\n\nFlickr.prototype.reflection.getMethodInfo = function (args) {\n\tvalidate(args, 'method_name');\n\treturn this._('GET', 'flickr.reflection.getMethodInfo', args);\n};\n\n/**\n * flickr.reflection.getMethods\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.reflection.getMethods.html\n */\n\nFlickr.prototype.reflection.getMethods = function (args) {\n\treturn this._('GET', 'flickr.reflection.getMethods', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.stats = {};\n\n/**\n * flickr.stats.getCSVFiles\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.stats.getCSVFiles.html\n */\n\nFlickr.prototype.stats.getCSVFiles = function (args) {\n\treturn this._('GET', 'flickr.stats.getCSVFiles', args);\n};\n\n/**\n * flickr.stats.getCollectionDomains\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.stats.getCollectionDomains.html\n */\n\nFlickr.prototype.stats.getCollectionDomains = function (args) {\n\tvalidate(args, 'date');\n\treturn this._('GET', 'flickr.stats.getCollectionDomains', args);\n};\n\n/**\n * flickr.stats.getCollectionReferrers\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.stats.getCollectionReferrers.html\n */\n\nFlickr.prototype.stats.getCollectionReferrers = function (args) {\n\tvalidate(args, 'date');\n\tvalidate(args, 'domain');\n\treturn this._('GET', 'flickr.stats.getCollectionReferrers', args);\n};\n\n/**\n * flickr.stats.getCollectionStats\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.stats.getCollectionStats.html\n */\n\nFlickr.prototype.stats.getCollectionStats = function (args) {\n\tvalidate(args, 'date');\n\tvalidate(args, 'collection_id');\n\treturn this._('GET', 'flickr.stats.getCollectionStats', args);\n};\n\n/**\n * flickr.stats.getPhotoDomains\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.stats.getPhotoDomains.html\n */\n\nFlickr.prototype.stats.getPhotoDomains = function (args) {\n\tvalidate(args, 'date');\n\treturn this._('GET', 'flickr.stats.getPhotoDomains', args);\n};\n\n/**\n * flickr.stats.getPhotoReferrers\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.stats.getPhotoReferrers.html\n */\n\nFlickr.prototype.stats.getPhotoReferrers = function (args) {\n\tvalidate(args, 'date');\n\tvalidate(args, 'domain');\n\treturn this._('GET', 'flickr.stats.getPhotoReferrers', args);\n};\n\n/**\n * flickr.stats.getPhotoStats\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.stats.getPhotoStats.html\n */\n\nFlickr.prototype.stats.getPhotoStats = function (args) {\n\tvalidate(args, 'date');\n\tvalidate(args, 'photo_id');\n\treturn this._('GET', 'flickr.stats.getPhotoStats', args);\n};\n\n/**\n * flickr.stats.getPhotosetDomains\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.stats.getPhotosetDomains.html\n */\n\nFlickr.prototype.stats.getPhotosetDomains = function (args) {\n\tvalidate(args, 'date');\n\treturn this._('GET', 'flickr.stats.getPhotosetDomains', args);\n};\n\n/**\n * flickr.stats.getPhotosetReferrers\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.stats.getPhotosetReferrers.html\n */\n\nFlickr.prototype.stats.getPhotosetReferrers = function (args) {\n\tvalidate(args, 'date');\n\tvalidate(args, 'domain');\n\treturn this._('GET', 'flickr.stats.getPhotosetReferrers', args);\n};\n\n/**\n * flickr.stats.getPhotosetStats\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.stats.getPhotosetStats.html\n */\n\nFlickr.prototype.stats.getPhotosetStats = function (args) {\n\tvalidate(args, 'date');\n\tvalidate(args, 'photoset_id');\n\treturn this._('GET', 'flickr.stats.getPhotosetStats', args);\n};\n\n/**\n * flickr.stats.getPhotostreamDomains\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.stats.getPhotostreamDomains.html\n */\n\nFlickr.prototype.stats.getPhotostreamDomains = function (args) {\n\tvalidate(args, 'date');\n\treturn this._('GET', 'flickr.stats.getPhotostreamDomains', args);\n};\n\n/**\n * flickr.stats.getPhotostreamReferrers\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.stats.getPhotostreamReferrers.html\n */\n\nFlickr.prototype.stats.getPhotostreamReferrers = function (args) {\n\tvalidate(args, 'date');\n\tvalidate(args, 'domain');\n\treturn this._('GET', 'flickr.stats.getPhotostreamReferrers', args);\n};\n\n/**\n * flickr.stats.getPhotostreamStats\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.stats.getPhotostreamStats.html\n */\n\nFlickr.prototype.stats.getPhotostreamStats = function (args) {\n\tvalidate(args, 'date');\n\treturn this._('GET', 'flickr.stats.getPhotostreamStats', args);\n};\n\n/**\n * flickr.stats.getPopularPhotos\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.stats.getPopularPhotos.html\n */\n\nFlickr.prototype.stats.getPopularPhotos = function (args) {\n\treturn this._('GET', 'flickr.stats.getPopularPhotos', args);\n};\n\n/**\n * flickr.stats.getTotalViews\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.stats.getTotalViews.html\n */\n\nFlickr.prototype.stats.getTotalViews = function (args) {\n\treturn this._('GET', 'flickr.stats.getTotalViews', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.tags = {};\n\n/**\n * flickr.tags.getClusterPhotos\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.tags.getClusterPhotos.html\n */\n\nFlickr.prototype.tags.getClusterPhotos = function (args) {\n\tvalidate(args, 'tag');\n\tvalidate(args, 'cluster_id');\n\treturn this._('GET', 'flickr.tags.getClusterPhotos', args);\n};\n\n/**\n * flickr.tags.getClusters\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.tags.getClusters.html\n */\n\nFlickr.prototype.tags.getClusters = function (args) {\n\tvalidate(args, 'tag');\n\treturn this._('GET', 'flickr.tags.getClusters', args);\n};\n\n/**\n * flickr.tags.getHotList\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.tags.getHotList.html\n */\n\nFlickr.prototype.tags.getHotList = function (args) {\n\treturn this._('GET', 'flickr.tags.getHotList', args);\n};\n\n/**\n * flickr.tags.getListPhoto\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.tags.getListPhoto.html\n */\n\nFlickr.prototype.tags.getListPhoto = function (args) {\n\tvalidate(args, 'photo_id');\n\treturn this._('GET', 'flickr.tags.getListPhoto', args);\n};\n\n/**\n * flickr.tags.getListUser\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.tags.getListUser.html\n */\n\nFlickr.prototype.tags.getListUser = function (args) {\n\treturn this._('GET', 'flickr.tags.getListUser', args);\n};\n\n/**\n * flickr.tags.getListUserPopular\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.tags.getListUserPopular.html\n */\n\nFlickr.prototype.tags.getListUserPopular = function (args) {\n\treturn this._('GET', 'flickr.tags.getListUserPopular', args);\n};\n\n/**\n * flickr.tags.getListUserRaw\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.tags.getListUserRaw.html\n */\n\nFlickr.prototype.tags.getListUserRaw = function (args) {\n\treturn this._('GET', 'flickr.tags.getListUserRaw', args);\n};\n\n/**\n * flickr.tags.getMostFrequentlyUsed\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.tags.getMostFrequentlyUsed.html\n */\n\nFlickr.prototype.tags.getMostFrequentlyUsed = function (args) {\n\treturn this._('GET', 'flickr.tags.getMostFrequentlyUsed', args);\n};\n\n/**\n * flickr.tags.getRelated\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.tags.getRelated.html\n */\n\nFlickr.prototype.tags.getRelated = function (args) {\n\tvalidate(args, 'tag');\n\treturn this._('GET', 'flickr.tags.getRelated', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.test = {};\n\n/**\n * flickr.test.echo\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.test.echo.html\n */\n\nFlickr.prototype.test.echo = function (args) {\n\treturn this._('GET', 'flickr.test.echo', args);\n};\n\n/**\n * flickr.test.login\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.test.login.html\n */\n\nFlickr.prototype.test.login = function (args) {\n\treturn this._('GET', 'flickr.test.login', args);\n};\n\n/**\n * flickr.test.null\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.test.null.html\n */\n\nFlickr.prototype.test.null = function (args) {\n\treturn this._('GET', 'flickr.test.null', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.testimonials = {};\n\n/**\n * flickr.testimonials.addTestimonial\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.testimonials.addTestimonial.html\n */\n\nFlickr.prototype.testimonials.addTestimonial = function (args) {\n\tvalidate(args, 'user_id');\n\tvalidate(args, 'testimonial_text');\n\treturn this._('POST', 'flickr.testimonials.addTestimonial', args);\n};\n\n/**\n * flickr.testimonials.approveTestimonial\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.testimonials.approveTestimonial.html\n */\n\nFlickr.prototype.testimonials.approveTestimonial = function (args) {\n\tvalidate(args, 'testimonial_id');\n\treturn this._('POST', 'flickr.testimonials.approveTestimonial', args);\n};\n\n/**\n * flickr.testimonials.deleteTestimonial\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.testimonials.deleteTestimonial.html\n */\n\nFlickr.prototype.testimonials.deleteTestimonial = function (args) {\n\tvalidate(args, 'testimonial_id');\n\treturn this._('POST', 'flickr.testimonials.deleteTestimonial', args);\n};\n\n/**\n * flickr.testimonials.editTestimonial\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.testimonials.editTestimonial.html\n */\n\nFlickr.prototype.testimonials.editTestimonial = function (args) {\n\tvalidate(args, 'user_id');\n\tvalidate(args, 'testimonial_id');\n\tvalidate(args, 'testimonial_text');\n\treturn this._('POST', 'flickr.testimonials.editTestimonial', args);\n};\n\n/**\n * flickr.testimonials.getAllTestimonialsAbout\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.testimonials.getAllTestimonialsAbout.html\n */\n\nFlickr.prototype.testimonials.getAllTestimonialsAbout = function (args) {\n\treturn this._('GET', 'flickr.testimonials.getAllTestimonialsAbout', args);\n};\n\n/**\n * flickr.testimonials.getAllTestimonialsAboutBy\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.testimonials.getAllTestimonialsAboutBy.html\n */\n\nFlickr.prototype.testimonials.getAllTestimonialsAboutBy = function (args) {\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.testimonials.getAllTestimonialsAboutBy', args);\n};\n\n/**\n * flickr.testimonials.getAllTestimonialsBy\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.testimonials.getAllTestimonialsBy.html\n */\n\nFlickr.prototype.testimonials.getAllTestimonialsBy = function (args) {\n\treturn this._('GET', 'flickr.testimonials.getAllTestimonialsBy', args);\n};\n\n/**\n * flickr.testimonials.getPendingTestimonialsAbout\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.testimonials.getPendingTestimonialsAbout.html\n */\n\nFlickr.prototype.testimonials.getPendingTestimonialsAbout = function (args) {\n\treturn this._('GET', 'flickr.testimonials.getPendingTestimonialsAbout', args);\n};\n\n/**\n * flickr.testimonials.getPendingTestimonialsAboutBy\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.testimonials.getPendingTestimonialsAboutBy.html\n */\n\nFlickr.prototype.testimonials.getPendingTestimonialsAboutBy = function (args) {\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.testimonials.getPendingTestimonialsAboutBy', args);\n};\n\n/**\n * flickr.testimonials.getPendingTestimonialsBy\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.testimonials.getPendingTestimonialsBy.html\n */\n\nFlickr.prototype.testimonials.getPendingTestimonialsBy = function (args) {\n\treturn this._('GET', 'flickr.testimonials.getPendingTestimonialsBy', args);\n};\n\n/**\n * flickr.testimonials.getTestimonialsAbout\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.testimonials.getTestimonialsAbout.html\n */\n\nFlickr.prototype.testimonials.getTestimonialsAbout = function (args) {\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.testimonials.getTestimonialsAbout', args);\n};\n\n/**\n * flickr.testimonials.getTestimonialsAboutBy\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.testimonials.getTestimonialsAboutBy.html\n */\n\nFlickr.prototype.testimonials.getTestimonialsAboutBy = function (args) {\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.testimonials.getTestimonialsAboutBy', args);\n};\n\n/**\n * flickr.testimonials.getTestimonialsBy\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.testimonials.getTestimonialsBy.html\n */\n\nFlickr.prototype.testimonials.getTestimonialsBy = function (args) {\n\tvalidate(args, 'user_id');\n\treturn this._('GET', 'flickr.testimonials.getTestimonialsBy', args);\n};\n\n/**\n * @type {Object}\n * @ignore\n */\n\nFlickr.prototype.urls = {};\n\n/**\n * flickr.urls.getGroup\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.urls.getGroup.html\n */\n\nFlickr.prototype.urls.getGroup = function (args) {\n\tvalidate(args, 'group_id');\n\treturn this._('GET', 'flickr.urls.getGroup', args);\n};\n\n/**\n * flickr.urls.getUserPhotos\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.urls.getUserPhotos.html\n */\n\nFlickr.prototype.urls.getUserPhotos = function (args) {\n\treturn this._('GET', 'flickr.urls.getUserPhotos', args);\n};\n\n/**\n * flickr.urls.getUserProfile\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.urls.getUserProfile.html\n */\n\nFlickr.prototype.urls.getUserProfile = function (args) {\n\treturn this._('GET', 'flickr.urls.getUserProfile', args);\n};\n\n/**\n * flickr.urls.lookupGallery\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.urls.lookupGallery.html\n */\n\nFlickr.prototype.urls.lookupGallery = function (args) {\n\tvalidate(args, 'url');\n\treturn this._('GET', 'flickr.urls.lookupGallery', args);\n};\n\n/**\n * flickr.urls.lookupGroup\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.urls.lookupGroup.html\n */\n\nFlickr.prototype.urls.lookupGroup = function (args) {\n\tvalidate(args, 'url');\n\treturn this._('GET', 'flickr.urls.lookupGroup', args);\n};\n\n/**\n * flickr.urls.lookupUser\n * @param {Object} [args]\n * @returns {Request}\n * @ignore\n * @see https://www.flickr.com/services/api/flickr.urls.lookupUser.html\n */\n\nFlickr.prototype.urls.lookupUser = function (args) {\n\tvalidate(args, 'url');\n\treturn this._('GET', 'flickr.urls.lookupUser', args);\n};\n\n\nmodule.exports = Flickr;\n\n\n//# sourceURL=webpack:///./node_modules/flickr-sdk/services/rest.js?");
243
+
244
+ /***/ }),
245
+
246
+ /***/ "./node_modules/flickr-sdk/services/upload.js":
247
+ /*!****************************************************!*\
248
+ !*** ./node_modules/flickr-sdk/services/upload.js ***!
249
+ \****************************************************/
250
+ /*! no static exports found */
251
+ /***/ (function(module, exports, __webpack_require__) {
252
+
253
+ eval("/*!\n * Copyright 2017 Yahoo Holdings.\n * Licensed under the terms of the MIT license. Please see LICENSE file in the project root for terms.\n */\n\nvar Request = __webpack_require__(/*! ../lib/request */ \"./node_modules/flickr-sdk/lib/request.js\").Request;\nvar xml = __webpack_require__(/*! ../plugins/xml */ \"./node_modules/flickr-sdk/plugins/xml.js\");\n\n/**\n * Creates a new Upload service instance. Since the Upload API only\n * does one thing (upload files), an Upload instance is simply\n * a Request subclass.\n *\n * The Upload endpoint requires authentication. You should pass a configured\n * instance of the [OAuth plugin]{@link Flickr.OAuth.createPlugin} to upload\n * photos on behalf of another user.\n *\n * @param {Function} auth\n * @param {String|fs.ReadStream|Buffer} file\n * @param {Object} [args]\n * @constructor\n * @extends Request\n * @memberof Flickr\n *\n * @example\n *\n * var upload = new Flickr.Upload(auth, 'upload.png', {\n * title: 'Works on MY machine!'\n * });\n *\n * upload.then(function (res) {\n * console.log('yay!', res.body);\n * }).catch(function (err) {\n * console.error('bonk', err);\n * });\n *\n * @see https://www.flickr.com/services/api/upload.api.html\n */\n\nfunction Upload(auth, file, args) {\n\n\t// allow creating a client without `new`\n\tif (!(this instanceof Upload)) {\n\t\treturn new Upload(auth, file, args);\n\t}\n\n\tRequest.call(this, 'POST', 'https://up.flickr.com/services/upload');\n\n\tif (typeof auth !== 'function') {\n\t\tthrow new Error('Missing required argument \"auth\"');\n\t}\n\n\tif (typeof args === 'undefined') {\n\t\targs = {};\n\t}\n\n\tthis.attach('photo', file);\n\tthis.field(args);\n\tthis.use(xml);\n\tthis.use(auth);\n}\n\nUpload.prototype = Object.create(Request.prototype);\n\nmodule.exports = Upload;\n\n\n//# sourceURL=webpack:///./node_modules/flickr-sdk/services/upload.js?");
254
+
255
+ /***/ }),
256
+
257
+ /***/ "./node_modules/ieee754/index.js":
258
+ /*!***************************************!*\
259
+ !*** ./node_modules/ieee754/index.js ***!
260
+ \***************************************/
261
+ /*! no static exports found */
262
+ /***/ (function(module, exports) {
263
+
264
+ eval("exports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n\n\n//# sourceURL=webpack:///./node_modules/ieee754/index.js?");
265
+
266
+ /***/ }),
267
+
268
+ /***/ "./node_modules/inherits/inherits_browser.js":
269
+ /*!***************************************************!*\
270
+ !*** ./node_modules/inherits/inherits_browser.js ***!
271
+ \***************************************************/
272
+ /*! no static exports found */
273
+ /***/ (function(module, exports) {
274
+
275
+ eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n\n\n//# sourceURL=webpack:///./node_modules/inherits/inherits_browser.js?");
276
+
277
+ /***/ }),
278
+
279
+ /***/ "./node_modules/isarray/index.js":
280
+ /*!***************************************!*\
281
+ !*** ./node_modules/isarray/index.js ***!
282
+ \***************************************/
283
+ /*! no static exports found */
284
+ /***/ (function(module, exports) {
285
+
286
+ eval("var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n\n\n//# sourceURL=webpack:///./node_modules/isarray/index.js?");
287
+
288
+ /***/ }),
289
+
290
+ /***/ "./node_modules/process-nextick-args/index.js":
291
+ /*!****************************************************!*\
292
+ !*** ./node_modules/process-nextick-args/index.js ***!
293
+ \****************************************************/
294
+ /*! no static exports found */
295
+ /***/ (function(module, exports, __webpack_require__) {
296
+
297
+ "use strict";
298
+ eval("/* WEBPACK VAR INJECTION */(function(process) {\n\nif (typeof process === 'undefined' ||\n !process.version ||\n process.version.indexOf('v0.') === 0 ||\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = { nextTick: nextTick };\n} else {\n module.exports = process\n}\n\nfunction nextTick(fn, arg1, arg2, arg3) {\n if (typeof fn !== 'function') {\n throw new TypeError('\"callback\" argument must be a function');\n }\n var len = arguments.length;\n var args, i;\n switch (len) {\n case 0:\n case 1:\n return process.nextTick(fn);\n case 2:\n return process.nextTick(function afterTickOne() {\n fn.call(null, arg1);\n });\n case 3:\n return process.nextTick(function afterTickTwo() {\n fn.call(null, arg1, arg2);\n });\n case 4:\n return process.nextTick(function afterTickThree() {\n fn.call(null, arg1, arg2, arg3);\n });\n default:\n args = new Array(len - 1);\n i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n return process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n }\n}\n\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../process/browser.js */ \"./node_modules/process/browser.js\")))\n\n//# sourceURL=webpack:///./node_modules/process-nextick-args/index.js?");
299
+
300
+ /***/ }),
301
+
302
+ /***/ "./node_modules/process/browser.js":
303
+ /*!*****************************************!*\
304
+ !*** ./node_modules/process/browser.js ***!
305
+ \*****************************************/
306
+ /*! no static exports found */
307
+ /***/ (function(module, exports) {
308
+
309
+ eval("// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n//# sourceURL=webpack:///./node_modules/process/browser.js?");
310
+
311
+ /***/ }),
312
+
313
+ /***/ "./node_modules/querystring-es3/decode.js":
314
+ /*!************************************************!*\
315
+ !*** ./node_modules/querystring-es3/decode.js ***!
316
+ \************************************************/
317
+ /*! no static exports found */
318
+ /***/ (function(module, exports, __webpack_require__) {
319
+
320
+ "use strict";
321
+ eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\n// If obj.hasOwnProperty has been overridden, then calling\n// obj.hasOwnProperty(prop) will break.\n// See: https://github.com/joyent/node/issues/1707\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nmodule.exports = function(qs, sep, eq, options) {\n sep = sep || '&';\n eq = eq || '=';\n var obj = {};\n\n if (typeof qs !== 'string' || qs.length === 0) {\n return obj;\n }\n\n var regexp = /\\+/g;\n qs = qs.split(sep);\n\n var maxKeys = 1000;\n if (options && typeof options.maxKeys === 'number') {\n maxKeys = options.maxKeys;\n }\n\n var len = qs.length;\n // maxKeys <= 0 means that we should not limit keys count\n if (maxKeys > 0 && len > maxKeys) {\n len = maxKeys;\n }\n\n for (var i = 0; i < len; ++i) {\n var x = qs[i].replace(regexp, '%20'),\n idx = x.indexOf(eq),\n kstr, vstr, k, v;\n\n if (idx >= 0) {\n kstr = x.substr(0, idx);\n vstr = x.substr(idx + 1);\n } else {\n kstr = x;\n vstr = '';\n }\n\n k = decodeURIComponent(kstr);\n v = decodeURIComponent(vstr);\n\n if (!hasOwnProperty(obj, k)) {\n obj[k] = v;\n } else if (isArray(obj[k])) {\n obj[k].push(v);\n } else {\n obj[k] = [obj[k], v];\n }\n }\n\n return obj;\n};\n\nvar isArray = Array.isArray || function (xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\n\n\n//# sourceURL=webpack:///./node_modules/querystring-es3/decode.js?");
322
+
323
+ /***/ }),
324
+
325
+ /***/ "./node_modules/querystring-es3/encode.js":
326
+ /*!************************************************!*\
327
+ !*** ./node_modules/querystring-es3/encode.js ***!
328
+ \************************************************/
329
+ /*! no static exports found */
330
+ /***/ (function(module, exports, __webpack_require__) {
331
+
332
+ "use strict";
333
+ eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\nvar stringifyPrimitive = function(v) {\n switch (typeof v) {\n case 'string':\n return v;\n\n case 'boolean':\n return v ? 'true' : 'false';\n\n case 'number':\n return isFinite(v) ? v : '';\n\n default:\n return '';\n }\n};\n\nmodule.exports = function(obj, sep, eq, name) {\n sep = sep || '&';\n eq = eq || '=';\n if (obj === null) {\n obj = undefined;\n }\n\n if (typeof obj === 'object') {\n return map(objectKeys(obj), function(k) {\n var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\n if (isArray(obj[k])) {\n return map(obj[k], function(v) {\n return ks + encodeURIComponent(stringifyPrimitive(v));\n }).join(sep);\n } else {\n return ks + encodeURIComponent(stringifyPrimitive(obj[k]));\n }\n }).join(sep);\n\n }\n\n if (!name) return '';\n return encodeURIComponent(stringifyPrimitive(name)) + eq +\n encodeURIComponent(stringifyPrimitive(obj));\n};\n\nvar isArray = Array.isArray || function (xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\n\nfunction map (xs, f) {\n if (xs.map) return xs.map(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n res.push(f(xs[i], i));\n }\n return res;\n}\n\nvar objectKeys = Object.keys || function (obj) {\n var res = [];\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);\n }\n return res;\n};\n\n\n//# sourceURL=webpack:///./node_modules/querystring-es3/encode.js?");
334
+
335
+ /***/ }),
336
+
337
+ /***/ "./node_modules/querystring-es3/index.js":
338
+ /*!***********************************************!*\
339
+ !*** ./node_modules/querystring-es3/index.js ***!
340
+ \***********************************************/
341
+ /*! no static exports found */
342
+ /***/ (function(module, exports, __webpack_require__) {
343
+
344
+ "use strict";
345
+ eval("\n\nexports.decode = exports.parse = __webpack_require__(/*! ./decode */ \"./node_modules/querystring-es3/decode.js\");\nexports.encode = exports.stringify = __webpack_require__(/*! ./encode */ \"./node_modules/querystring-es3/encode.js\");\n\n\n//# sourceURL=webpack:///./node_modules/querystring-es3/index.js?");
346
+
347
+ /***/ }),
348
+
349
+ /***/ "./node_modules/readable-stream/duplex-browser.js":
350
+ /*!********************************************************!*\
351
+ !*** ./node_modules/readable-stream/duplex-browser.js ***!
352
+ \********************************************************/
353
+ /*! no static exports found */
354
+ /***/ (function(module, exports, __webpack_require__) {
355
+
356
+ eval("module.exports = __webpack_require__(/*! ./lib/_stream_duplex.js */ \"./node_modules/readable-stream/lib/_stream_duplex.js\");\n\n\n//# sourceURL=webpack:///./node_modules/readable-stream/duplex-browser.js?");
357
+
358
+ /***/ }),
359
+
360
+ /***/ "./node_modules/readable-stream/lib/_stream_duplex.js":
361
+ /*!************************************************************!*\
362
+ !*** ./node_modules/readable-stream/lib/_stream_duplex.js ***!
363
+ \************************************************************/
364
+ /*! no static exports found */
365
+ /***/ (function(module, exports, __webpack_require__) {
366
+
367
+ "use strict";
368
+ eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n\n\n/*<replacement>*/\n\nvar pna = __webpack_require__(/*! process-nextick-args */ \"./node_modules/process-nextick-args/index.js\");\n/*</replacement>*/\n\n/*<replacement>*/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) {\n keys.push(key);\n }return keys;\n};\n/*</replacement>*/\n\nmodule.exports = Duplex;\n\n/*<replacement>*/\nvar util = Object.create(__webpack_require__(/*! core-util-is */ \"./node_modules/core-util-is/lib/util.js\"));\nutil.inherits = __webpack_require__(/*! inherits */ \"./node_modules/inherits/inherits_browser.js\");\n/*</replacement>*/\n\nvar Readable = __webpack_require__(/*! ./_stream_readable */ \"./node_modules/readable-stream/lib/_stream_readable.js\");\nvar Writable = __webpack_require__(/*! ./_stream_writable */ \"./node_modules/readable-stream/lib/_stream_writable.js\");\n\nutil.inherits(Duplex, Readable);\n\n{\n // avoid scope creep, the keys array can then be collected\n var keys = objectKeys(Writable.prototype);\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n }\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false) this.readable = false;\n\n if (options && options.writable === false) this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._writableState.highWaterMark;\n }\n});\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended) return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n pna.nextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nObject.defineProperty(Duplex.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false;\n }\n return this._readableState.destroyed && this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (this._readableState === undefined || this._writableState === undefined) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n});\n\nDuplex.prototype._destroy = function (err, cb) {\n this.push(null);\n this.end();\n\n pna.nextTick(cb, err);\n};\n\n//# sourceURL=webpack:///./node_modules/readable-stream/lib/_stream_duplex.js?");
369
+
370
+ /***/ }),
371
+
372
+ /***/ "./node_modules/readable-stream/lib/_stream_passthrough.js":
373
+ /*!*****************************************************************!*\
374
+ !*** ./node_modules/readable-stream/lib/_stream_passthrough.js ***!
375
+ \*****************************************************************/
376
+ /*! no static exports found */
377
+ /***/ (function(module, exports, __webpack_require__) {
378
+
379
+ "use strict";
380
+ eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n\n\n\nmodule.exports = PassThrough;\n\nvar Transform = __webpack_require__(/*! ./_stream_transform */ \"./node_modules/readable-stream/lib/_stream_transform.js\");\n\n/*<replacement>*/\nvar util = Object.create(__webpack_require__(/*! core-util-is */ \"./node_modules/core-util-is/lib/util.js\"));\nutil.inherits = __webpack_require__(/*! inherits */ \"./node_modules/inherits/inherits_browser.js\");\n/*</replacement>*/\n\nutil.inherits(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough)) return new PassThrough(options);\n\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\n cb(null, chunk);\n};\n\n//# sourceURL=webpack:///./node_modules/readable-stream/lib/_stream_passthrough.js?");
381
+
382
+ /***/ }),
383
+
384
+ /***/ "./node_modules/readable-stream/lib/_stream_readable.js":
385
+ /*!**************************************************************!*\
386
+ !*** ./node_modules/readable-stream/lib/_stream_readable.js ***!
387
+ \**************************************************************/
388
+ /*! no static exports found */
389
+ /***/ (function(module, exports, __webpack_require__) {
390
+
391
+ "use strict";
392
+ eval("/* WEBPACK VAR INJECTION */(function(global, process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\n/*<replacement>*/\n\nvar pna = __webpack_require__(/*! process-nextick-args */ \"./node_modules/process-nextick-args/index.js\");\n/*</replacement>*/\n\nmodule.exports = Readable;\n\n/*<replacement>*/\nvar isArray = __webpack_require__(/*! isarray */ \"./node_modules/isarray/index.js\");\n/*</replacement>*/\n\n/*<replacement>*/\nvar Duplex;\n/*</replacement>*/\n\nReadable.ReadableState = ReadableState;\n\n/*<replacement>*/\nvar EE = __webpack_require__(/*! events */ \"./node_modules/events/events.js\").EventEmitter;\n\nvar EElistenerCount = function (emitter, type) {\n return emitter.listeners(type).length;\n};\n/*</replacement>*/\n\n/*<replacement>*/\nvar Stream = __webpack_require__(/*! ./internal/streams/stream */ \"./node_modules/readable-stream/lib/internal/streams/stream-browser.js\");\n/*</replacement>*/\n\n/*<replacement>*/\n\nvar Buffer = __webpack_require__(/*! safe-buffer */ \"./node_modules/safe-buffer/index.js\").Buffer;\nvar OurUint8Array = global.Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\n/*</replacement>*/\n\n/*<replacement>*/\nvar util = Object.create(__webpack_require__(/*! core-util-is */ \"./node_modules/core-util-is/lib/util.js\"));\nutil.inherits = __webpack_require__(/*! inherits */ \"./node_modules/inherits/inherits_browser.js\");\n/*</replacement>*/\n\n/*<replacement>*/\nvar debugUtil = __webpack_require__(/*! util */ 0);\nvar debug = void 0;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function () {};\n}\n/*</replacement>*/\n\nvar BufferList = __webpack_require__(/*! ./internal/streams/BufferList */ \"./node_modules/readable-stream/lib/internal/streams/BufferList.js\");\nvar destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ \"./node_modules/readable-stream/lib/internal/streams/destroy.js\");\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\n\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn);\n\n // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n}\n\nfunction ReadableState(options, stream) {\n Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ \"./node_modules/readable-stream/lib/_stream_duplex.js\");\n\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n var isDuplex = stream instanceof Duplex;\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var readableHwm = options.readableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ \"./node_modules/string_decoder/lib/string_decoder.js\").StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ \"./node_modules/readable-stream/lib/_stream_duplex.js\");\n\n if (!(this instanceof Readable)) return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n\n Stream.call(this);\n}\n\nObject.defineProperty(Readable.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined) {\n return false;\n }\n return this._readableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n }\n});\n\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\nReadable.prototype._destroy = function (err, cb) {\n this.push(null);\n cb(err);\n};\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\n\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n var state = stream._readableState;\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (addToFront) {\n if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n stream.emit('error', new Error('stream.push() after EOF'));\n } else {\n state.reading = false;\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n }\n\n return needMoreData(state);\n}\n\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n\n if (state.needReadable) emitReadable(stream);\n }\n maybeReadMore(stream, state);\n}\n\nfunction chunkInvalid(state, chunk) {\n var er;\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\n}\n\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n};\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ \"./node_modules/string_decoder/lib/string_decoder.js\").StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 8MB\nvar MAX_HWM = 0x800000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n }\n // If we're asking for more than the current hwm, then raise the hwm.\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n;\n // Don't have enough\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n return state.length;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n\n if (n !== 0) state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0) state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n } else {\n state.length -= n;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n\n return ret;\n};\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n pna.nextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;else len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function (n) {\n this.emit('error', new Error('_read() is not implemented'));\n};\n\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n\n // If the user pushes more data while we're writing to dest then we'll end up\n // in ondata again. However, we only want to increase awaitDrain once because\n // dest will only emit one 'drain' event for the multiple writes.\n // => Introduce a guard on increasing awaitDrain.\n var increasedAwaitDrain = false;\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n increasedAwaitDrain = false;\n var ret = dest.write(chunk);\n if (false === ret && !increasedAwaitDrain) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n increasedAwaitDrain = true;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);\n }\n\n // Make sure our error handler is attached before userland ones.\n prependListener(dest, 'error', onerror);\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function () {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = { hasUnpiped: false };\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0) return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n\n if (!dest) dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++) {\n dests[i].emit('unpipe', this, unpipeInfo);\n }return this;\n }\n\n // try to find the right one.\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this, unpipeInfo);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n if (ev === 'data') {\n // Start flowing on next tick if stream isn't explicitly paused\n if (this._readableState.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n var state = this._readableState;\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.emittedReadable = false;\n if (!state.reading) {\n pna.nextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function () {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n pna.nextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n state.awaitDrain = 0;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\n\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n while (state.flowing && stream.read() !== null) {}\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function (stream) {\n var _this = this;\n\n var state = this._readableState;\n var paused = false;\n\n stream.on('end', function () {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) _this.push(chunk);\n }\n\n _this.push(null);\n });\n\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = _this.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function (method) {\n return function () {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n }\n\n // proxy certain important events.\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\n }\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n this._read = function (n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return this;\n};\n\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._readableState.highWaterMark;\n }\n});\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = fromListPartial(n, state.buffer, state.decoder);\n }\n\n return ret;\n}\n\n// Extracts only enough buffered data to satisfy the amount requested.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromListPartial(n, list, hasStrings) {\n var ret;\n if (n < list.head.data.length) {\n // slice is the same for buffers and strings\n ret = list.head.data.slice(0, n);\n list.head.data = list.head.data.slice(n);\n } else if (n === list.head.data.length) {\n // first chunk is a perfect match\n ret = list.shift();\n } else {\n // result spans more than one buffer\n ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);\n }\n return ret;\n}\n\n// Copies a specified amount of characters from the list of buffered data\n// chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBufferString(n, list) {\n var p = list.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = str.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\n// Copies a specified amount of bytes from the list of buffered data chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBuffer(n, list) {\n var ret = Buffer.allocUnsafe(n);\n var p = list.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = buf.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0) throw new Error('\"endReadable()\" called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n pna.nextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\"), __webpack_require__(/*! ./../../process/browser.js */ \"./node_modules/process/browser.js\")))\n\n//# sourceURL=webpack:///./node_modules/readable-stream/lib/_stream_readable.js?");
393
+
394
+ /***/ }),
395
+
396
+ /***/ "./node_modules/readable-stream/lib/_stream_transform.js":
397
+ /*!***************************************************************!*\
398
+ !*** ./node_modules/readable-stream/lib/_stream_transform.js ***!
399
+ \***************************************************************/
400
+ /*! no static exports found */
401
+ /***/ (function(module, exports, __webpack_require__) {
402
+
403
+ "use strict";
404
+ eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n\n\nmodule.exports = Transform;\n\nvar Duplex = __webpack_require__(/*! ./_stream_duplex */ \"./node_modules/readable-stream/lib/_stream_duplex.js\");\n\n/*<replacement>*/\nvar util = Object.create(__webpack_require__(/*! core-util-is */ \"./node_modules/core-util-is/lib/util.js\"));\nutil.inherits = __webpack_require__(/*! inherits */ \"./node_modules/inherits/inherits_browser.js\");\n/*</replacement>*/\n\nutil.inherits(Transform, Duplex);\n\nfunction afterTransform(er, data) {\n var ts = this._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb) {\n return this.emit('error', new Error('write callback called multiple times'));\n }\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data != null) // single equals check for both `null` and `undefined`\n this.push(data);\n\n cb(er);\n\n var rs = this._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n this._read(rs.highWaterMark);\n }\n}\n\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = {\n afterTransform: afterTransform.bind(this),\n needTransform: false,\n transforming: false,\n writecb: null,\n writechunk: null,\n writeencoding: null\n };\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform;\n\n if (typeof options.flush === 'function') this._flush = options.flush;\n }\n\n // When the writable side finishes, then flush out anything remaining.\n this.on('prefinish', prefinish);\n}\n\nfunction prefinish() {\n var _this = this;\n\n if (typeof this._flush === 'function') {\n this._flush(function (er, data) {\n done(_this, er, data);\n });\n } else {\n done(this, null, null);\n }\n}\n\nTransform.prototype.push = function (chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function (chunk, encoding, cb) {\n throw new Error('_transform() is not implemented');\n};\n\nTransform.prototype._write = function (chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function (n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\nTransform.prototype._destroy = function (err, cb) {\n var _this2 = this;\n\n Duplex.prototype._destroy.call(this, err, function (err2) {\n cb(err2);\n _this2.emit('close');\n });\n};\n\nfunction done(stream, er, data) {\n if (er) return stream.emit('error', er);\n\n if (data != null) // single equals check for both `null` and `undefined`\n stream.push(data);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0');\n\n if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming');\n\n return stream.push(null);\n}\n\n//# sourceURL=webpack:///./node_modules/readable-stream/lib/_stream_transform.js?");
405
+
406
+ /***/ }),
407
+
408
+ /***/ "./node_modules/readable-stream/lib/_stream_writable.js":
409
+ /*!**************************************************************!*\
410
+ !*** ./node_modules/readable-stream/lib/_stream_writable.js ***!
411
+ \**************************************************************/
412
+ /*! no static exports found */
413
+ /***/ (function(module, exports, __webpack_require__) {
414
+
415
+ "use strict";
416
+ eval("/* WEBPACK VAR INJECTION */(function(process, setImmediate, global) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n\n\n/*<replacement>*/\n\nvar pna = __webpack_require__(/*! process-nextick-args */ \"./node_modules/process-nextick-args/index.js\");\n/*</replacement>*/\n\nmodule.exports = Writable;\n\n/* <replacement> */\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n}\n\n// It seems a linked list but it is not\n// there will be only 2 of these for each stream\nfunction CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}\n/* </replacement> */\n\n/*<replacement>*/\nvar asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;\n/*</replacement>*/\n\n/*<replacement>*/\nvar Duplex;\n/*</replacement>*/\n\nWritable.WritableState = WritableState;\n\n/*<replacement>*/\nvar util = Object.create(__webpack_require__(/*! core-util-is */ \"./node_modules/core-util-is/lib/util.js\"));\nutil.inherits = __webpack_require__(/*! inherits */ \"./node_modules/inherits/inherits_browser.js\");\n/*</replacement>*/\n\n/*<replacement>*/\nvar internalUtil = {\n deprecate: __webpack_require__(/*! util-deprecate */ \"./node_modules/util-deprecate/browser.js\")\n};\n/*</replacement>*/\n\n/*<replacement>*/\nvar Stream = __webpack_require__(/*! ./internal/streams/stream */ \"./node_modules/readable-stream/lib/internal/streams/stream-browser.js\");\n/*</replacement>*/\n\n/*<replacement>*/\n\nvar Buffer = __webpack_require__(/*! safe-buffer */ \"./node_modules/safe-buffer/index.js\").Buffer;\nvar OurUint8Array = global.Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\n/*</replacement>*/\n\nvar destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ \"./node_modules/readable-stream/lib/internal/streams/destroy.js\");\n\nutil.inherits(Writable, Stream);\n\nfunction nop() {}\n\nfunction WritableState(options, stream) {\n Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ \"./node_modules/readable-stream/lib/_stream_duplex.js\");\n\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n var isDuplex = stream instanceof Duplex;\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var writableHwm = options.writableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;else this.highWaterMark = defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // if _final has been called\n this.finalCalled = false;\n\n // drain event flag.\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function (er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n\n // count buffered requests\n this.bufferedRequestCount = 0;\n\n // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n this.corkedRequestsFree = new CorkedRequest(this);\n}\n\nWritableState.prototype.getBuffer = function getBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n};\n\n(function () {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function () {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\n });\n } catch (_) {}\n})();\n\n// Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\nvar realHasInstance;\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\n realHasInstance = Function.prototype[Symbol.hasInstance];\n Object.defineProperty(Writable, Symbol.hasInstance, {\n value: function (object) {\n if (realHasInstance.call(this, object)) return true;\n if (this !== Writable) return false;\n\n return object && object._writableState instanceof WritableState;\n }\n });\n} else {\n realHasInstance = function (object) {\n return object instanceof this;\n };\n}\n\nfunction Writable(options) {\n Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ \"./node_modules/readable-stream/lib/_stream_duplex.js\");\n\n // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {\n return new Writable(options);\n }\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n\n if (typeof options.writev === 'function') this._writev = options.writev;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n\n if (typeof options.final === 'function') this._final = options.final;\n }\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function () {\n this.emit('error', new Error('Cannot pipe, not readable'));\n};\n\nfunction writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n pna.nextTick(cb, er);\n}\n\n// Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n var er = false;\n\n if (chunk === null) {\n er = new TypeError('May not write null values to stream');\n } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n if (er) {\n stream.emit('error', er);\n pna.nextTick(cb, er);\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n var isBuf = !state.objectMode && _isUint8Array(chunk);\n\n if (isBuf && !Buffer.isBuffer(chunk)) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function') cb = nop;\n\n if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function () {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function () {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n return chunk;\n}\n\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._writableState.highWaterMark;\n }\n});\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chunk = newChunk;\n }\n }\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret) state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = {\n chunk: chunk,\n encoding: encoding,\n isBuf: isBuf,\n callback: cb,\n next: null\n };\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n\n if (sync) {\n // defer the callback if we are being called synchronously\n // to avoid piling up things on the stack\n pna.nextTick(cb, er);\n // this can emit finish, and it will always happen\n // after error\n pna.nextTick(finishMaybe, stream, state);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n } else {\n // the caller expect this to happen before if\n // it is async\n cb(er);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n // this can emit finish, but finish must\n // always follow error\n finishMaybe(stream, state);\n }\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n /*<replacement>*/\n asyncWrite(afterWrite, stream, state, finished, cb);\n /*</replacement>*/\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n\n var count = 0;\n var allBuffers = true;\n while (entry) {\n buffer[count] = entry;\n if (!entry.isBuf) allBuffers = false;\n entry = entry.next;\n count += 1;\n }\n buffer.allBuffers = allBuffers;\n\n doWrite(stream, state, true, state.length, buffer, '', holder.finish);\n\n // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n state.pendingcb++;\n state.lastBufferedRequest = null;\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n state.bufferedRequestCount = 0;\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n state.bufferedRequestCount--;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null) state.lastBufferedRequest = null;\n }\n\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function (chunk, encoding, cb) {\n cb(new Error('_write() is not implemented'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished) endWritable(this, state, cb);\n};\n\nfunction needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n}\nfunction callFinal(stream, state) {\n stream._final(function (err) {\n state.pendingcb--;\n if (err) {\n stream.emit('error', err);\n }\n state.prefinished = true;\n stream.emit('prefinish');\n finishMaybe(stream, state);\n });\n}\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function') {\n state.pendingcb++;\n state.finalCalled = true;\n pna.nextTick(callFinal, stream, state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n prefinish(stream, state);\n if (state.pendingcb === 0) {\n state.finished = true;\n stream.emit('finish');\n }\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished) pna.nextTick(cb);else stream.once('finish', cb);\n }\n state.ended = true;\n stream.writable = false;\n}\n\nfunction onCorkedFinish(corkReq, state, err) {\n var entry = corkReq.entry;\n corkReq.entry = null;\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n }\n if (state.corkedRequestsFree) {\n state.corkedRequestsFree.next = corkReq;\n } else {\n state.corkedRequestsFree = corkReq;\n }\n}\n\nObject.defineProperty(Writable.prototype, 'destroyed', {\n get: function () {\n if (this._writableState === undefined) {\n return false;\n }\n return this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._writableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._writableState.destroyed = value;\n }\n});\n\nWritable.prototype.destroy = destroyImpl.destroy;\nWritable.prototype._undestroy = destroyImpl.undestroy;\nWritable.prototype._destroy = function (err, cb) {\n this.end();\n cb(err);\n};\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ \"./node_modules/process/browser.js\"), __webpack_require__(/*! ./../../timers-browserify/main.js */ \"./node_modules/timers-browserify/main.js\").setImmediate, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/readable-stream/lib/_stream_writable.js?");
417
+
418
+ /***/ }),
419
+
420
+ /***/ "./node_modules/readable-stream/lib/internal/streams/BufferList.js":
421
+ /*!*************************************************************************!*\
422
+ !*** ./node_modules/readable-stream/lib/internal/streams/BufferList.js ***!
423
+ \*************************************************************************/
424
+ /*! no static exports found */
425
+ /***/ (function(module, exports, __webpack_require__) {
426
+
427
+ "use strict";
428
+ eval("\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar Buffer = __webpack_require__(/*! safe-buffer */ \"./node_modules/safe-buffer/index.js\").Buffer;\nvar util = __webpack_require__(/*! util */ 1);\n\nfunction copyBuffer(src, target, offset) {\n src.copy(target, offset);\n}\n\nmodule.exports = function () {\n function BufferList() {\n _classCallCheck(this, BufferList);\n\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n BufferList.prototype.push = function push(v) {\n var entry = { data: v, next: null };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n };\n\n BufferList.prototype.unshift = function unshift(v) {\n var entry = { data: v, next: this.head };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n };\n\n BufferList.prototype.shift = function shift() {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n };\n\n BufferList.prototype.clear = function clear() {\n this.head = this.tail = null;\n this.length = 0;\n };\n\n BufferList.prototype.join = function join(s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n while (p = p.next) {\n ret += s + p.data;\n }return ret;\n };\n\n BufferList.prototype.concat = function concat(n) {\n if (this.length === 0) return Buffer.alloc(0);\n if (this.length === 1) return this.head.data;\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n while (p) {\n copyBuffer(p.data, ret, i);\n i += p.data.length;\n p = p.next;\n }\n return ret;\n };\n\n return BufferList;\n}();\n\nif (util && util.inspect && util.inspect.custom) {\n module.exports.prototype[util.inspect.custom] = function () {\n var obj = util.inspect({ length: this.length });\n return this.constructor.name + ' ' + obj;\n };\n}\n\n//# sourceURL=webpack:///./node_modules/readable-stream/lib/internal/streams/BufferList.js?");
429
+
430
+ /***/ }),
431
+
432
+ /***/ "./node_modules/readable-stream/lib/internal/streams/destroy.js":
433
+ /*!**********************************************************************!*\
434
+ !*** ./node_modules/readable-stream/lib/internal/streams/destroy.js ***!
435
+ \**********************************************************************/
436
+ /*! no static exports found */
437
+ /***/ (function(module, exports, __webpack_require__) {
438
+
439
+ "use strict";
440
+ eval("\n\n/*<replacement>*/\n\nvar pna = __webpack_require__(/*! process-nextick-args */ \"./node_modules/process-nextick-args/index.js\");\n/*</replacement>*/\n\n// undocumented cb() API, needed for core, not for public API\nfunction destroy(err, cb) {\n var _this = this;\n\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err && (!this._writableState || !this._writableState.errorEmitted)) {\n pna.nextTick(emitErrorNT, this, err);\n }\n return this;\n }\n\n // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n }\n\n // if this is a duplex stream mark the writable part as destroyed as well\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n pna.nextTick(emitErrorNT, _this, err);\n if (_this._writableState) {\n _this._writableState.errorEmitted = true;\n }\n } else if (cb) {\n cb(err);\n }\n });\n\n return this;\n}\n\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\n\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\n\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy\n};\n\n//# sourceURL=webpack:///./node_modules/readable-stream/lib/internal/streams/destroy.js?");
441
+
442
+ /***/ }),
443
+
444
+ /***/ "./node_modules/readable-stream/lib/internal/streams/stream-browser.js":
445
+ /*!*****************************************************************************!*\
446
+ !*** ./node_modules/readable-stream/lib/internal/streams/stream-browser.js ***!
447
+ \*****************************************************************************/
448
+ /*! no static exports found */
449
+ /***/ (function(module, exports, __webpack_require__) {
450
+
451
+ eval("module.exports = __webpack_require__(/*! events */ \"./node_modules/events/events.js\").EventEmitter;\n\n\n//# sourceURL=webpack:///./node_modules/readable-stream/lib/internal/streams/stream-browser.js?");
452
+
453
+ /***/ }),
454
+
455
+ /***/ "./node_modules/readable-stream/passthrough.js":
456
+ /*!*****************************************************!*\
457
+ !*** ./node_modules/readable-stream/passthrough.js ***!
458
+ \*****************************************************/
459
+ /*! no static exports found */
460
+ /***/ (function(module, exports, __webpack_require__) {
461
+
462
+ eval("module.exports = __webpack_require__(/*! ./readable */ \"./node_modules/readable-stream/readable-browser.js\").PassThrough\n\n\n//# sourceURL=webpack:///./node_modules/readable-stream/passthrough.js?");
463
+
464
+ /***/ }),
465
+
466
+ /***/ "./node_modules/readable-stream/readable-browser.js":
467
+ /*!**********************************************************!*\
468
+ !*** ./node_modules/readable-stream/readable-browser.js ***!
469
+ \**********************************************************/
470
+ /*! no static exports found */
471
+ /***/ (function(module, exports, __webpack_require__) {
472
+
473
+ eval("exports = module.exports = __webpack_require__(/*! ./lib/_stream_readable.js */ \"./node_modules/readable-stream/lib/_stream_readable.js\");\nexports.Stream = exports;\nexports.Readable = exports;\nexports.Writable = __webpack_require__(/*! ./lib/_stream_writable.js */ \"./node_modules/readable-stream/lib/_stream_writable.js\");\nexports.Duplex = __webpack_require__(/*! ./lib/_stream_duplex.js */ \"./node_modules/readable-stream/lib/_stream_duplex.js\");\nexports.Transform = __webpack_require__(/*! ./lib/_stream_transform.js */ \"./node_modules/readable-stream/lib/_stream_transform.js\");\nexports.PassThrough = __webpack_require__(/*! ./lib/_stream_passthrough.js */ \"./node_modules/readable-stream/lib/_stream_passthrough.js\");\n\n\n//# sourceURL=webpack:///./node_modules/readable-stream/readable-browser.js?");
474
+
475
+ /***/ }),
476
+
477
+ /***/ "./node_modules/readable-stream/transform.js":
478
+ /*!***************************************************!*\
479
+ !*** ./node_modules/readable-stream/transform.js ***!
480
+ \***************************************************/
481
+ /*! no static exports found */
482
+ /***/ (function(module, exports, __webpack_require__) {
483
+
484
+ eval("module.exports = __webpack_require__(/*! ./readable */ \"./node_modules/readable-stream/readable-browser.js\").Transform\n\n\n//# sourceURL=webpack:///./node_modules/readable-stream/transform.js?");
485
+
486
+ /***/ }),
487
+
488
+ /***/ "./node_modules/readable-stream/writable-browser.js":
489
+ /*!**********************************************************!*\
490
+ !*** ./node_modules/readable-stream/writable-browser.js ***!
491
+ \**********************************************************/
492
+ /*! no static exports found */
493
+ /***/ (function(module, exports, __webpack_require__) {
494
+
495
+ eval("module.exports = __webpack_require__(/*! ./lib/_stream_writable.js */ \"./node_modules/readable-stream/lib/_stream_writable.js\");\n\n\n//# sourceURL=webpack:///./node_modules/readable-stream/writable-browser.js?");
496
+
497
+ /***/ }),
498
+
499
+ /***/ "./node_modules/safe-buffer/index.js":
500
+ /*!*******************************************!*\
501
+ !*** ./node_modules/safe-buffer/index.js ***!
502
+ \*******************************************/
503
+ /*! no static exports found */
504
+ /***/ (function(module, exports, __webpack_require__) {
505
+
506
+ eval("/* eslint-disable node/no-deprecated-api */\nvar buffer = __webpack_require__(/*! buffer */ \"./node_modules/buffer/index.js\")\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n\n\n//# sourceURL=webpack:///./node_modules/safe-buffer/index.js?");
507
+
508
+ /***/ }),
509
+
510
+ /***/ "./node_modules/sax/lib/sax.js":
511
+ /*!*************************************!*\
512
+ !*** ./node_modules/sax/lib/sax.js ***!
513
+ \*************************************/
514
+ /*! no static exports found */
515
+ /***/ (function(module, exports, __webpack_require__) {
516
+
517
+ eval("/* WEBPACK VAR INJECTION */(function(Buffer) {;(function (sax) { // wrapper for non-node envs\n sax.parser = function (strict, opt) { return new SAXParser(strict, opt) }\n sax.SAXParser = SAXParser\n sax.SAXStream = SAXStream\n sax.createStream = createStream\n\n // When we pass the MAX_BUFFER_LENGTH position, start checking for buffer overruns.\n // When we check, schedule the next check for MAX_BUFFER_LENGTH - (max(buffer lengths)),\n // since that's the earliest that a buffer overrun could occur. This way, checks are\n // as rare as required, but as often as necessary to ensure never crossing this bound.\n // Furthermore, buffers are only tested at most once per write(), so passing a very\n // large string into write() might have undesirable effects, but this is manageable by\n // the caller, so it is assumed to be safe. Thus, a call to write() may, in the extreme\n // edge case, result in creating at most one complete copy of the string passed in.\n // Set to Infinity to have unlimited buffers.\n sax.MAX_BUFFER_LENGTH = 64 * 1024\n\n var buffers = [\n 'comment', 'sgmlDecl', 'textNode', 'tagName', 'doctype',\n 'procInstName', 'procInstBody', 'entity', 'attribName',\n 'attribValue', 'cdata', 'script'\n ]\n\n sax.EVENTS = [\n 'text',\n 'processinginstruction',\n 'sgmldeclaration',\n 'doctype',\n 'comment',\n 'opentagstart',\n 'attribute',\n 'opentag',\n 'closetag',\n 'opencdata',\n 'cdata',\n 'closecdata',\n 'error',\n 'end',\n 'ready',\n 'script',\n 'opennamespace',\n 'closenamespace'\n ]\n\n function SAXParser (strict, opt) {\n if (!(this instanceof SAXParser)) {\n return new SAXParser(strict, opt)\n }\n\n var parser = this\n clearBuffers(parser)\n parser.q = parser.c = ''\n parser.bufferCheckPosition = sax.MAX_BUFFER_LENGTH\n parser.opt = opt || {}\n parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags\n parser.looseCase = parser.opt.lowercase ? 'toLowerCase' : 'toUpperCase'\n parser.tags = []\n parser.closed = parser.closedRoot = parser.sawRoot = false\n parser.tag = parser.error = null\n parser.strict = !!strict\n parser.noscript = !!(strict || parser.opt.noscript)\n parser.state = S.BEGIN\n parser.strictEntities = parser.opt.strictEntities\n parser.ENTITIES = parser.strictEntities ? Object.create(sax.XML_ENTITIES) : Object.create(sax.ENTITIES)\n parser.attribList = []\n\n // namespaces form a prototype chain.\n // it always points at the current tag,\n // which protos to its parent tag.\n if (parser.opt.xmlns) {\n parser.ns = Object.create(rootNS)\n }\n\n // mostly just for error reporting\n parser.trackPosition = parser.opt.position !== false\n if (parser.trackPosition) {\n parser.position = parser.line = parser.column = 0\n }\n emit(parser, 'onready')\n }\n\n if (!Object.create) {\n Object.create = function (o) {\n function F () {}\n F.prototype = o\n var newf = new F()\n return newf\n }\n }\n\n if (!Object.keys) {\n Object.keys = function (o) {\n var a = []\n for (var i in o) if (o.hasOwnProperty(i)) a.push(i)\n return a\n }\n }\n\n function checkBufferLength (parser) {\n var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10)\n var maxActual = 0\n for (var i = 0, l = buffers.length; i < l; i++) {\n var len = parser[buffers[i]].length\n if (len > maxAllowed) {\n // Text/cdata nodes can get big, and since they're buffered,\n // we can get here under normal conditions.\n // Avoid issues by emitting the text node now,\n // so at least it won't get any bigger.\n switch (buffers[i]) {\n case 'textNode':\n closeText(parser)\n break\n\n case 'cdata':\n emitNode(parser, 'oncdata', parser.cdata)\n parser.cdata = ''\n break\n\n case 'script':\n emitNode(parser, 'onscript', parser.script)\n parser.script = ''\n break\n\n default:\n error(parser, 'Max buffer length exceeded: ' + buffers[i])\n }\n }\n maxActual = Math.max(maxActual, len)\n }\n // schedule the next check for the earliest possible buffer overrun.\n var m = sax.MAX_BUFFER_LENGTH - maxActual\n parser.bufferCheckPosition = m + parser.position\n }\n\n function clearBuffers (parser) {\n for (var i = 0, l = buffers.length; i < l; i++) {\n parser[buffers[i]] = ''\n }\n }\n\n function flushBuffers (parser) {\n closeText(parser)\n if (parser.cdata !== '') {\n emitNode(parser, 'oncdata', parser.cdata)\n parser.cdata = ''\n }\n if (parser.script !== '') {\n emitNode(parser, 'onscript', parser.script)\n parser.script = ''\n }\n }\n\n SAXParser.prototype = {\n end: function () { end(this) },\n write: write,\n resume: function () { this.error = null; return this },\n close: function () { return this.write(null) },\n flush: function () { flushBuffers(this) }\n }\n\n var Stream\n try {\n Stream = __webpack_require__(/*! stream */ \"./node_modules/stream-browserify/index.js\").Stream\n } catch (ex) {\n Stream = function () {}\n }\n\n var streamWraps = sax.EVENTS.filter(function (ev) {\n return ev !== 'error' && ev !== 'end'\n })\n\n function createStream (strict, opt) {\n return new SAXStream(strict, opt)\n }\n\n function SAXStream (strict, opt) {\n if (!(this instanceof SAXStream)) {\n return new SAXStream(strict, opt)\n }\n\n Stream.apply(this)\n\n this._parser = new SAXParser(strict, opt)\n this.writable = true\n this.readable = true\n\n var me = this\n\n this._parser.onend = function () {\n me.emit('end')\n }\n\n this._parser.onerror = function (er) {\n me.emit('error', er)\n\n // if didn't throw, then means error was handled.\n // go ahead and clear error, so we can write again.\n me._parser.error = null\n }\n\n this._decoder = null\n\n streamWraps.forEach(function (ev) {\n Object.defineProperty(me, 'on' + ev, {\n get: function () {\n return me._parser['on' + ev]\n },\n set: function (h) {\n if (!h) {\n me.removeAllListeners(ev)\n me._parser['on' + ev] = h\n return h\n }\n me.on(ev, h)\n },\n enumerable: true,\n configurable: false\n })\n })\n }\n\n SAXStream.prototype = Object.create(Stream.prototype, {\n constructor: {\n value: SAXStream\n }\n })\n\n SAXStream.prototype.write = function (data) {\n if (typeof Buffer === 'function' &&\n typeof Buffer.isBuffer === 'function' &&\n Buffer.isBuffer(data)) {\n if (!this._decoder) {\n var SD = __webpack_require__(/*! string_decoder */ \"./node_modules/string_decoder/lib/string_decoder.js\").StringDecoder\n this._decoder = new SD('utf8')\n }\n data = this._decoder.write(data)\n }\n\n this._parser.write(data.toString())\n this.emit('data', data)\n return true\n }\n\n SAXStream.prototype.end = function (chunk) {\n if (chunk && chunk.length) {\n this.write(chunk)\n }\n this._parser.end()\n return true\n }\n\n SAXStream.prototype.on = function (ev, handler) {\n var me = this\n if (!me._parser['on' + ev] && streamWraps.indexOf(ev) !== -1) {\n me._parser['on' + ev] = function () {\n var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments)\n args.splice(0, 0, ev)\n me.emit.apply(me, args)\n }\n }\n\n return Stream.prototype.on.call(me, ev, handler)\n }\n\n // this really needs to be replaced with character classes.\n // XML allows all manner of ridiculous numbers and digits.\n var CDATA = '[CDATA['\n var DOCTYPE = 'DOCTYPE'\n var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace'\n var XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'\n var rootNS = { xml: XML_NAMESPACE, xmlns: XMLNS_NAMESPACE }\n\n // http://www.w3.org/TR/REC-xml/#NT-NameStartChar\n // This implementation works on strings, a single character at a time\n // as such, it cannot ever support astral-plane characters (10000-EFFFF)\n // without a significant breaking change to either this parser, or the\n // JavaScript language. Implementation of an emoji-capable xml parser\n // is left as an exercise for the reader.\n var nameStart = /[:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]/\n\n var nameBody = /[:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\u00B7\\u0300-\\u036F\\u203F-\\u2040.\\d-]/\n\n var entityStart = /[#:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]/\n var entityBody = /[#:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\u00B7\\u0300-\\u036F\\u203F-\\u2040.\\d-]/\n\n function isWhitespace (c) {\n return c === ' ' || c === '\\n' || c === '\\r' || c === '\\t'\n }\n\n function isQuote (c) {\n return c === '\"' || c === '\\''\n }\n\n function isAttribEnd (c) {\n return c === '>' || isWhitespace(c)\n }\n\n function isMatch (regex, c) {\n return regex.test(c)\n }\n\n function notMatch (regex, c) {\n return !isMatch(regex, c)\n }\n\n var S = 0\n sax.STATE = {\n BEGIN: S++, // leading byte order mark or whitespace\n BEGIN_WHITESPACE: S++, // leading whitespace\n TEXT: S++, // general stuff\n TEXT_ENTITY: S++, // &amp and such.\n OPEN_WAKA: S++, // <\n SGML_DECL: S++, // <!BLARG\n SGML_DECL_QUOTED: S++, // <!BLARG foo \"bar\n DOCTYPE: S++, // <!DOCTYPE\n DOCTYPE_QUOTED: S++, // <!DOCTYPE \"//blah\n DOCTYPE_DTD: S++, // <!DOCTYPE \"//blah\" [ ...\n DOCTYPE_DTD_QUOTED: S++, // <!DOCTYPE \"//blah\" [ \"foo\n COMMENT_STARTING: S++, // <!-\n COMMENT: S++, // <!--\n COMMENT_ENDING: S++, // <!-- blah -\n COMMENT_ENDED: S++, // <!-- blah --\n CDATA: S++, // <![CDATA[ something\n CDATA_ENDING: S++, // ]\n CDATA_ENDING_2: S++, // ]]\n PROC_INST: S++, // <?hi\n PROC_INST_BODY: S++, // <?hi there\n PROC_INST_ENDING: S++, // <?hi \"there\" ?\n OPEN_TAG: S++, // <strong\n OPEN_TAG_SLASH: S++, // <strong /\n ATTRIB: S++, // <a\n ATTRIB_NAME: S++, // <a foo\n ATTRIB_NAME_SAW_WHITE: S++, // <a foo _\n ATTRIB_VALUE: S++, // <a foo=\n ATTRIB_VALUE_QUOTED: S++, // <a foo=\"bar\n ATTRIB_VALUE_CLOSED: S++, // <a foo=\"bar\"\n ATTRIB_VALUE_UNQUOTED: S++, // <a foo=bar\n ATTRIB_VALUE_ENTITY_Q: S++, // <foo bar=\"&quot;\"\n ATTRIB_VALUE_ENTITY_U: S++, // <foo bar=&quot\n CLOSE_TAG: S++, // </a\n CLOSE_TAG_SAW_WHITE: S++, // </a >\n SCRIPT: S++, // <script> ...\n SCRIPT_ENDING: S++ // <script> ... <\n }\n\n sax.XML_ENTITIES = {\n 'amp': '&',\n 'gt': '>',\n 'lt': '<',\n 'quot': '\"',\n 'apos': \"'\"\n }\n\n sax.ENTITIES = {\n 'amp': '&',\n 'gt': '>',\n 'lt': '<',\n 'quot': '\"',\n 'apos': \"'\",\n 'AElig': 198,\n 'Aacute': 193,\n 'Acirc': 194,\n 'Agrave': 192,\n 'Aring': 197,\n 'Atilde': 195,\n 'Auml': 196,\n 'Ccedil': 199,\n 'ETH': 208,\n 'Eacute': 201,\n 'Ecirc': 202,\n 'Egrave': 200,\n 'Euml': 203,\n 'Iacute': 205,\n 'Icirc': 206,\n 'Igrave': 204,\n 'Iuml': 207,\n 'Ntilde': 209,\n 'Oacute': 211,\n 'Ocirc': 212,\n 'Ograve': 210,\n 'Oslash': 216,\n 'Otilde': 213,\n 'Ouml': 214,\n 'THORN': 222,\n 'Uacute': 218,\n 'Ucirc': 219,\n 'Ugrave': 217,\n 'Uuml': 220,\n 'Yacute': 221,\n 'aacute': 225,\n 'acirc': 226,\n 'aelig': 230,\n 'agrave': 224,\n 'aring': 229,\n 'atilde': 227,\n 'auml': 228,\n 'ccedil': 231,\n 'eacute': 233,\n 'ecirc': 234,\n 'egrave': 232,\n 'eth': 240,\n 'euml': 235,\n 'iacute': 237,\n 'icirc': 238,\n 'igrave': 236,\n 'iuml': 239,\n 'ntilde': 241,\n 'oacute': 243,\n 'ocirc': 244,\n 'ograve': 242,\n 'oslash': 248,\n 'otilde': 245,\n 'ouml': 246,\n 'szlig': 223,\n 'thorn': 254,\n 'uacute': 250,\n 'ucirc': 251,\n 'ugrave': 249,\n 'uuml': 252,\n 'yacute': 253,\n 'yuml': 255,\n 'copy': 169,\n 'reg': 174,\n 'nbsp': 160,\n 'iexcl': 161,\n 'cent': 162,\n 'pound': 163,\n 'curren': 164,\n 'yen': 165,\n 'brvbar': 166,\n 'sect': 167,\n 'uml': 168,\n 'ordf': 170,\n 'laquo': 171,\n 'not': 172,\n 'shy': 173,\n 'macr': 175,\n 'deg': 176,\n 'plusmn': 177,\n 'sup1': 185,\n 'sup2': 178,\n 'sup3': 179,\n 'acute': 180,\n 'micro': 181,\n 'para': 182,\n 'middot': 183,\n 'cedil': 184,\n 'ordm': 186,\n 'raquo': 187,\n 'frac14': 188,\n 'frac12': 189,\n 'frac34': 190,\n 'iquest': 191,\n 'times': 215,\n 'divide': 247,\n 'OElig': 338,\n 'oelig': 339,\n 'Scaron': 352,\n 'scaron': 353,\n 'Yuml': 376,\n 'fnof': 402,\n 'circ': 710,\n 'tilde': 732,\n 'Alpha': 913,\n 'Beta': 914,\n 'Gamma': 915,\n 'Delta': 916,\n 'Epsilon': 917,\n 'Zeta': 918,\n 'Eta': 919,\n 'Theta': 920,\n 'Iota': 921,\n 'Kappa': 922,\n 'Lambda': 923,\n 'Mu': 924,\n 'Nu': 925,\n 'Xi': 926,\n 'Omicron': 927,\n 'Pi': 928,\n 'Rho': 929,\n 'Sigma': 931,\n 'Tau': 932,\n 'Upsilon': 933,\n 'Phi': 934,\n 'Chi': 935,\n 'Psi': 936,\n 'Omega': 937,\n 'alpha': 945,\n 'beta': 946,\n 'gamma': 947,\n 'delta': 948,\n 'epsilon': 949,\n 'zeta': 950,\n 'eta': 951,\n 'theta': 952,\n 'iota': 953,\n 'kappa': 954,\n 'lambda': 955,\n 'mu': 956,\n 'nu': 957,\n 'xi': 958,\n 'omicron': 959,\n 'pi': 960,\n 'rho': 961,\n 'sigmaf': 962,\n 'sigma': 963,\n 'tau': 964,\n 'upsilon': 965,\n 'phi': 966,\n 'chi': 967,\n 'psi': 968,\n 'omega': 969,\n 'thetasym': 977,\n 'upsih': 978,\n 'piv': 982,\n 'ensp': 8194,\n 'emsp': 8195,\n 'thinsp': 8201,\n 'zwnj': 8204,\n 'zwj': 8205,\n 'lrm': 8206,\n 'rlm': 8207,\n 'ndash': 8211,\n 'mdash': 8212,\n 'lsquo': 8216,\n 'rsquo': 8217,\n 'sbquo': 8218,\n 'ldquo': 8220,\n 'rdquo': 8221,\n 'bdquo': 8222,\n 'dagger': 8224,\n 'Dagger': 8225,\n 'bull': 8226,\n 'hellip': 8230,\n 'permil': 8240,\n 'prime': 8242,\n 'Prime': 8243,\n 'lsaquo': 8249,\n 'rsaquo': 8250,\n 'oline': 8254,\n 'frasl': 8260,\n 'euro': 8364,\n 'image': 8465,\n 'weierp': 8472,\n 'real': 8476,\n 'trade': 8482,\n 'alefsym': 8501,\n 'larr': 8592,\n 'uarr': 8593,\n 'rarr': 8594,\n 'darr': 8595,\n 'harr': 8596,\n 'crarr': 8629,\n 'lArr': 8656,\n 'uArr': 8657,\n 'rArr': 8658,\n 'dArr': 8659,\n 'hArr': 8660,\n 'forall': 8704,\n 'part': 8706,\n 'exist': 8707,\n 'empty': 8709,\n 'nabla': 8711,\n 'isin': 8712,\n 'notin': 8713,\n 'ni': 8715,\n 'prod': 8719,\n 'sum': 8721,\n 'minus': 8722,\n 'lowast': 8727,\n 'radic': 8730,\n 'prop': 8733,\n 'infin': 8734,\n 'ang': 8736,\n 'and': 8743,\n 'or': 8744,\n 'cap': 8745,\n 'cup': 8746,\n 'int': 8747,\n 'there4': 8756,\n 'sim': 8764,\n 'cong': 8773,\n 'asymp': 8776,\n 'ne': 8800,\n 'equiv': 8801,\n 'le': 8804,\n 'ge': 8805,\n 'sub': 8834,\n 'sup': 8835,\n 'nsub': 8836,\n 'sube': 8838,\n 'supe': 8839,\n 'oplus': 8853,\n 'otimes': 8855,\n 'perp': 8869,\n 'sdot': 8901,\n 'lceil': 8968,\n 'rceil': 8969,\n 'lfloor': 8970,\n 'rfloor': 8971,\n 'lang': 9001,\n 'rang': 9002,\n 'loz': 9674,\n 'spades': 9824,\n 'clubs': 9827,\n 'hearts': 9829,\n 'diams': 9830\n }\n\n Object.keys(sax.ENTITIES).forEach(function (key) {\n var e = sax.ENTITIES[key]\n var s = typeof e === 'number' ? String.fromCharCode(e) : e\n sax.ENTITIES[key] = s\n })\n\n for (var s in sax.STATE) {\n sax.STATE[sax.STATE[s]] = s\n }\n\n // shorthand\n S = sax.STATE\n\n function emit (parser, event, data) {\n parser[event] && parser[event](data)\n }\n\n function emitNode (parser, nodeType, data) {\n if (parser.textNode) closeText(parser)\n emit(parser, nodeType, data)\n }\n\n function closeText (parser) {\n parser.textNode = textopts(parser.opt, parser.textNode)\n if (parser.textNode) emit(parser, 'ontext', parser.textNode)\n parser.textNode = ''\n }\n\n function textopts (opt, text) {\n if (opt.trim) text = text.trim()\n if (opt.normalize) text = text.replace(/\\s+/g, ' ')\n return text\n }\n\n function error (parser, er) {\n closeText(parser)\n if (parser.trackPosition) {\n er += '\\nLine: ' + parser.line +\n '\\nColumn: ' + parser.column +\n '\\nChar: ' + parser.c\n }\n er = new Error(er)\n parser.error = er\n emit(parser, 'onerror', er)\n return parser\n }\n\n function end (parser) {\n if (parser.sawRoot && !parser.closedRoot) strictFail(parser, 'Unclosed root tag')\n if ((parser.state !== S.BEGIN) &&\n (parser.state !== S.BEGIN_WHITESPACE) &&\n (parser.state !== S.TEXT)) {\n error(parser, 'Unexpected end')\n }\n closeText(parser)\n parser.c = ''\n parser.closed = true\n emit(parser, 'onend')\n SAXParser.call(parser, parser.strict, parser.opt)\n return parser\n }\n\n function strictFail (parser, message) {\n if (typeof parser !== 'object' || !(parser instanceof SAXParser)) {\n throw new Error('bad call to strictFail')\n }\n if (parser.strict) {\n error(parser, message)\n }\n }\n\n function newTag (parser) {\n if (!parser.strict) parser.tagName = parser.tagName[parser.looseCase]()\n var parent = parser.tags[parser.tags.length - 1] || parser\n var tag = parser.tag = { name: parser.tagName, attributes: {} }\n\n // will be overridden if tag contails an xmlns=\"foo\" or xmlns:foo=\"bar\"\n if (parser.opt.xmlns) {\n tag.ns = parent.ns\n }\n parser.attribList.length = 0\n emitNode(parser, 'onopentagstart', tag)\n }\n\n function qname (name, attribute) {\n var i = name.indexOf(':')\n var qualName = i < 0 ? [ '', name ] : name.split(':')\n var prefix = qualName[0]\n var local = qualName[1]\n\n // <x \"xmlns\"=\"http://foo\">\n if (attribute && name === 'xmlns') {\n prefix = 'xmlns'\n local = ''\n }\n\n return { prefix: prefix, local: local }\n }\n\n function attrib (parser) {\n if (!parser.strict) {\n parser.attribName = parser.attribName[parser.looseCase]()\n }\n\n if (parser.attribList.indexOf(parser.attribName) !== -1 ||\n parser.tag.attributes.hasOwnProperty(parser.attribName)) {\n parser.attribName = parser.attribValue = ''\n return\n }\n\n if (parser.opt.xmlns) {\n var qn = qname(parser.attribName, true)\n var prefix = qn.prefix\n var local = qn.local\n\n if (prefix === 'xmlns') {\n // namespace binding attribute. push the binding into scope\n if (local === 'xml' && parser.attribValue !== XML_NAMESPACE) {\n strictFail(parser,\n 'xml: prefix must be bound to ' + XML_NAMESPACE + '\\n' +\n 'Actual: ' + parser.attribValue)\n } else if (local === 'xmlns' && parser.attribValue !== XMLNS_NAMESPACE) {\n strictFail(parser,\n 'xmlns: prefix must be bound to ' + XMLNS_NAMESPACE + '\\n' +\n 'Actual: ' + parser.attribValue)\n } else {\n var tag = parser.tag\n var parent = parser.tags[parser.tags.length - 1] || parser\n if (tag.ns === parent.ns) {\n tag.ns = Object.create(parent.ns)\n }\n tag.ns[local] = parser.attribValue\n }\n }\n\n // defer onattribute events until all attributes have been seen\n // so any new bindings can take effect. preserve attribute order\n // so deferred events can be emitted in document order\n parser.attribList.push([parser.attribName, parser.attribValue])\n } else {\n // in non-xmlns mode, we can emit the event right away\n parser.tag.attributes[parser.attribName] = parser.attribValue\n emitNode(parser, 'onattribute', {\n name: parser.attribName,\n value: parser.attribValue\n })\n }\n\n parser.attribName = parser.attribValue = ''\n }\n\n function openTag (parser, selfClosing) {\n if (parser.opt.xmlns) {\n // emit namespace binding events\n var tag = parser.tag\n\n // add namespace info to tag\n var qn = qname(parser.tagName)\n tag.prefix = qn.prefix\n tag.local = qn.local\n tag.uri = tag.ns[qn.prefix] || ''\n\n if (tag.prefix && !tag.uri) {\n strictFail(parser, 'Unbound namespace prefix: ' +\n JSON.stringify(parser.tagName))\n tag.uri = qn.prefix\n }\n\n var parent = parser.tags[parser.tags.length - 1] || parser\n if (tag.ns && parent.ns !== tag.ns) {\n Object.keys(tag.ns).forEach(function (p) {\n emitNode(parser, 'onopennamespace', {\n prefix: p,\n uri: tag.ns[p]\n })\n })\n }\n\n // handle deferred onattribute events\n // Note: do not apply default ns to attributes:\n // http://www.w3.org/TR/REC-xml-names/#defaulting\n for (var i = 0, l = parser.attribList.length; i < l; i++) {\n var nv = parser.attribList[i]\n var name = nv[0]\n var value = nv[1]\n var qualName = qname(name, true)\n var prefix = qualName.prefix\n var local = qualName.local\n var uri = prefix === '' ? '' : (tag.ns[prefix] || '')\n var a = {\n name: name,\n value: value,\n prefix: prefix,\n local: local,\n uri: uri\n }\n\n // if there's any attributes with an undefined namespace,\n // then fail on them now.\n if (prefix && prefix !== 'xmlns' && !uri) {\n strictFail(parser, 'Unbound namespace prefix: ' +\n JSON.stringify(prefix))\n a.uri = prefix\n }\n parser.tag.attributes[name] = a\n emitNode(parser, 'onattribute', a)\n }\n parser.attribList.length = 0\n }\n\n parser.tag.isSelfClosing = !!selfClosing\n\n // process the tag\n parser.sawRoot = true\n parser.tags.push(parser.tag)\n emitNode(parser, 'onopentag', parser.tag)\n if (!selfClosing) {\n // special case for <script> in non-strict mode.\n if (!parser.noscript && parser.tagName.toLowerCase() === 'script') {\n parser.state = S.SCRIPT\n } else {\n parser.state = S.TEXT\n }\n parser.tag = null\n parser.tagName = ''\n }\n parser.attribName = parser.attribValue = ''\n parser.attribList.length = 0\n }\n\n function closeTag (parser) {\n if (!parser.tagName) {\n strictFail(parser, 'Weird empty close tag.')\n parser.textNode += '</>'\n parser.state = S.TEXT\n return\n }\n\n if (parser.script) {\n if (parser.tagName !== 'script') {\n parser.script += '</' + parser.tagName + '>'\n parser.tagName = ''\n parser.state = S.SCRIPT\n return\n }\n emitNode(parser, 'onscript', parser.script)\n parser.script = ''\n }\n\n // first make sure that the closing tag actually exists.\n // <a><b></c></b></a> will close everything, otherwise.\n var t = parser.tags.length\n var tagName = parser.tagName\n if (!parser.strict) {\n tagName = tagName[parser.looseCase]()\n }\n var closeTo = tagName\n while (t--) {\n var close = parser.tags[t]\n if (close.name !== closeTo) {\n // fail the first time in strict mode\n strictFail(parser, 'Unexpected close tag')\n } else {\n break\n }\n }\n\n // didn't find it. we already failed for strict, so just abort.\n if (t < 0) {\n strictFail(parser, 'Unmatched closing tag: ' + parser.tagName)\n parser.textNode += '</' + parser.tagName + '>'\n parser.state = S.TEXT\n return\n }\n parser.tagName = tagName\n var s = parser.tags.length\n while (s-- > t) {\n var tag = parser.tag = parser.tags.pop()\n parser.tagName = parser.tag.name\n emitNode(parser, 'onclosetag', parser.tagName)\n\n var x = {}\n for (var i in tag.ns) {\n x[i] = tag.ns[i]\n }\n\n var parent = parser.tags[parser.tags.length - 1] || parser\n if (parser.opt.xmlns && tag.ns !== parent.ns) {\n // remove namespace bindings introduced by tag\n Object.keys(tag.ns).forEach(function (p) {\n var n = tag.ns[p]\n emitNode(parser, 'onclosenamespace', { prefix: p, uri: n })\n })\n }\n }\n if (t === 0) parser.closedRoot = true\n parser.tagName = parser.attribValue = parser.attribName = ''\n parser.attribList.length = 0\n parser.state = S.TEXT\n }\n\n function parseEntity (parser) {\n var entity = parser.entity\n var entityLC = entity.toLowerCase()\n var num\n var numStr = ''\n\n if (parser.ENTITIES[entity]) {\n return parser.ENTITIES[entity]\n }\n if (parser.ENTITIES[entityLC]) {\n return parser.ENTITIES[entityLC]\n }\n entity = entityLC\n if (entity.charAt(0) === '#') {\n if (entity.charAt(1) === 'x') {\n entity = entity.slice(2)\n num = parseInt(entity, 16)\n numStr = num.toString(16)\n } else {\n entity = entity.slice(1)\n num = parseInt(entity, 10)\n numStr = num.toString(10)\n }\n }\n entity = entity.replace(/^0+/, '')\n if (isNaN(num) || numStr.toLowerCase() !== entity) {\n strictFail(parser, 'Invalid character entity')\n return '&' + parser.entity + ';'\n }\n\n return String.fromCodePoint(num)\n }\n\n function beginWhiteSpace (parser, c) {\n if (c === '<') {\n parser.state = S.OPEN_WAKA\n parser.startTagPosition = parser.position\n } else if (!isWhitespace(c)) {\n // have to process this as a text node.\n // weird, but happens.\n strictFail(parser, 'Non-whitespace before first tag.')\n parser.textNode = c\n parser.state = S.TEXT\n }\n }\n\n function charAt (chunk, i) {\n var result = ''\n if (i < chunk.length) {\n result = chunk.charAt(i)\n }\n return result\n }\n\n function write (chunk) {\n var parser = this\n if (this.error) {\n throw this.error\n }\n if (parser.closed) {\n return error(parser,\n 'Cannot write after close. Assign an onready handler.')\n }\n if (chunk === null) {\n return end(parser)\n }\n if (typeof chunk === 'object') {\n chunk = chunk.toString()\n }\n var i = 0\n var c = ''\n while (true) {\n c = charAt(chunk, i++)\n parser.c = c\n\n if (!c) {\n break\n }\n\n if (parser.trackPosition) {\n parser.position++\n if (c === '\\n') {\n parser.line++\n parser.column = 0\n } else {\n parser.column++\n }\n }\n\n switch (parser.state) {\n case S.BEGIN:\n parser.state = S.BEGIN_WHITESPACE\n if (c === '\\uFEFF') {\n continue\n }\n beginWhiteSpace(parser, c)\n continue\n\n case S.BEGIN_WHITESPACE:\n beginWhiteSpace(parser, c)\n continue\n\n case S.TEXT:\n if (parser.sawRoot && !parser.closedRoot) {\n var starti = i - 1\n while (c && c !== '<' && c !== '&') {\n c = charAt(chunk, i++)\n if (c && parser.trackPosition) {\n parser.position++\n if (c === '\\n') {\n parser.line++\n parser.column = 0\n } else {\n parser.column++\n }\n }\n }\n parser.textNode += chunk.substring(starti, i - 1)\n }\n if (c === '<' && !(parser.sawRoot && parser.closedRoot && !parser.strict)) {\n parser.state = S.OPEN_WAKA\n parser.startTagPosition = parser.position\n } else {\n if (!isWhitespace(c) && (!parser.sawRoot || parser.closedRoot)) {\n strictFail(parser, 'Text data outside of root node.')\n }\n if (c === '&') {\n parser.state = S.TEXT_ENTITY\n } else {\n parser.textNode += c\n }\n }\n continue\n\n case S.SCRIPT:\n // only non-strict\n if (c === '<') {\n parser.state = S.SCRIPT_ENDING\n } else {\n parser.script += c\n }\n continue\n\n case S.SCRIPT_ENDING:\n if (c === '/') {\n parser.state = S.CLOSE_TAG\n } else {\n parser.script += '<' + c\n parser.state = S.SCRIPT\n }\n continue\n\n case S.OPEN_WAKA:\n // either a /, ?, !, or text is coming next.\n if (c === '!') {\n parser.state = S.SGML_DECL\n parser.sgmlDecl = ''\n } else if (isWhitespace(c)) {\n // wait for it...\n } else if (isMatch(nameStart, c)) {\n parser.state = S.OPEN_TAG\n parser.tagName = c\n } else if (c === '/') {\n parser.state = S.CLOSE_TAG\n parser.tagName = ''\n } else if (c === '?') {\n parser.state = S.PROC_INST\n parser.procInstName = parser.procInstBody = ''\n } else {\n strictFail(parser, 'Unencoded <')\n // if there was some whitespace, then add that in.\n if (parser.startTagPosition + 1 < parser.position) {\n var pad = parser.position - parser.startTagPosition\n c = new Array(pad).join(' ') + c\n }\n parser.textNode += '<' + c\n parser.state = S.TEXT\n }\n continue\n\n case S.SGML_DECL:\n if ((parser.sgmlDecl + c).toUpperCase() === CDATA) {\n emitNode(parser, 'onopencdata')\n parser.state = S.CDATA\n parser.sgmlDecl = ''\n parser.cdata = ''\n } else if (parser.sgmlDecl + c === '--') {\n parser.state = S.COMMENT\n parser.comment = ''\n parser.sgmlDecl = ''\n } else if ((parser.sgmlDecl + c).toUpperCase() === DOCTYPE) {\n parser.state = S.DOCTYPE\n if (parser.doctype || parser.sawRoot) {\n strictFail(parser,\n 'Inappropriately located doctype declaration')\n }\n parser.doctype = ''\n parser.sgmlDecl = ''\n } else if (c === '>') {\n emitNode(parser, 'onsgmldeclaration', parser.sgmlDecl)\n parser.sgmlDecl = ''\n parser.state = S.TEXT\n } else if (isQuote(c)) {\n parser.state = S.SGML_DECL_QUOTED\n parser.sgmlDecl += c\n } else {\n parser.sgmlDecl += c\n }\n continue\n\n case S.SGML_DECL_QUOTED:\n if (c === parser.q) {\n parser.state = S.SGML_DECL\n parser.q = ''\n }\n parser.sgmlDecl += c\n continue\n\n case S.DOCTYPE:\n if (c === '>') {\n parser.state = S.TEXT\n emitNode(parser, 'ondoctype', parser.doctype)\n parser.doctype = true // just remember that we saw it.\n } else {\n parser.doctype += c\n if (c === '[') {\n parser.state = S.DOCTYPE_DTD\n } else if (isQuote(c)) {\n parser.state = S.DOCTYPE_QUOTED\n parser.q = c\n }\n }\n continue\n\n case S.DOCTYPE_QUOTED:\n parser.doctype += c\n if (c === parser.q) {\n parser.q = ''\n parser.state = S.DOCTYPE\n }\n continue\n\n case S.DOCTYPE_DTD:\n parser.doctype += c\n if (c === ']') {\n parser.state = S.DOCTYPE\n } else if (isQuote(c)) {\n parser.state = S.DOCTYPE_DTD_QUOTED\n parser.q = c\n }\n continue\n\n case S.DOCTYPE_DTD_QUOTED:\n parser.doctype += c\n if (c === parser.q) {\n parser.state = S.DOCTYPE_DTD\n parser.q = ''\n }\n continue\n\n case S.COMMENT:\n if (c === '-') {\n parser.state = S.COMMENT_ENDING\n } else {\n parser.comment += c\n }\n continue\n\n case S.COMMENT_ENDING:\n if (c === '-') {\n parser.state = S.COMMENT_ENDED\n parser.comment = textopts(parser.opt, parser.comment)\n if (parser.comment) {\n emitNode(parser, 'oncomment', parser.comment)\n }\n parser.comment = ''\n } else {\n parser.comment += '-' + c\n parser.state = S.COMMENT\n }\n continue\n\n case S.COMMENT_ENDED:\n if (c !== '>') {\n strictFail(parser, 'Malformed comment')\n // allow <!-- blah -- bloo --> in non-strict mode,\n // which is a comment of \" blah -- bloo \"\n parser.comment += '--' + c\n parser.state = S.COMMENT\n } else {\n parser.state = S.TEXT\n }\n continue\n\n case S.CDATA:\n if (c === ']') {\n parser.state = S.CDATA_ENDING\n } else {\n parser.cdata += c\n }\n continue\n\n case S.CDATA_ENDING:\n if (c === ']') {\n parser.state = S.CDATA_ENDING_2\n } else {\n parser.cdata += ']' + c\n parser.state = S.CDATA\n }\n continue\n\n case S.CDATA_ENDING_2:\n if (c === '>') {\n if (parser.cdata) {\n emitNode(parser, 'oncdata', parser.cdata)\n }\n emitNode(parser, 'onclosecdata')\n parser.cdata = ''\n parser.state = S.TEXT\n } else if (c === ']') {\n parser.cdata += ']'\n } else {\n parser.cdata += ']]' + c\n parser.state = S.CDATA\n }\n continue\n\n case S.PROC_INST:\n if (c === '?') {\n parser.state = S.PROC_INST_ENDING\n } else if (isWhitespace(c)) {\n parser.state = S.PROC_INST_BODY\n } else {\n parser.procInstName += c\n }\n continue\n\n case S.PROC_INST_BODY:\n if (!parser.procInstBody && isWhitespace(c)) {\n continue\n } else if (c === '?') {\n parser.state = S.PROC_INST_ENDING\n } else {\n parser.procInstBody += c\n }\n continue\n\n case S.PROC_INST_ENDING:\n if (c === '>') {\n emitNode(parser, 'onprocessinginstruction', {\n name: parser.procInstName,\n body: parser.procInstBody\n })\n parser.procInstName = parser.procInstBody = ''\n parser.state = S.TEXT\n } else {\n parser.procInstBody += '?' + c\n parser.state = S.PROC_INST_BODY\n }\n continue\n\n case S.OPEN_TAG:\n if (isMatch(nameBody, c)) {\n parser.tagName += c\n } else {\n newTag(parser)\n if (c === '>') {\n openTag(parser)\n } else if (c === '/') {\n parser.state = S.OPEN_TAG_SLASH\n } else {\n if (!isWhitespace(c)) {\n strictFail(parser, 'Invalid character in tag name')\n }\n parser.state = S.ATTRIB\n }\n }\n continue\n\n case S.OPEN_TAG_SLASH:\n if (c === '>') {\n openTag(parser, true)\n closeTag(parser)\n } else {\n strictFail(parser, 'Forward-slash in opening tag not followed by >')\n parser.state = S.ATTRIB\n }\n continue\n\n case S.ATTRIB:\n // haven't read the attribute name yet.\n if (isWhitespace(c)) {\n continue\n } else if (c === '>') {\n openTag(parser)\n } else if (c === '/') {\n parser.state = S.OPEN_TAG_SLASH\n } else if (isMatch(nameStart, c)) {\n parser.attribName = c\n parser.attribValue = ''\n parser.state = S.ATTRIB_NAME\n } else {\n strictFail(parser, 'Invalid attribute name')\n }\n continue\n\n case S.ATTRIB_NAME:\n if (c === '=') {\n parser.state = S.ATTRIB_VALUE\n } else if (c === '>') {\n strictFail(parser, 'Attribute without value')\n parser.attribValue = parser.attribName\n attrib(parser)\n openTag(parser)\n } else if (isWhitespace(c)) {\n parser.state = S.ATTRIB_NAME_SAW_WHITE\n } else if (isMatch(nameBody, c)) {\n parser.attribName += c\n } else {\n strictFail(parser, 'Invalid attribute name')\n }\n continue\n\n case S.ATTRIB_NAME_SAW_WHITE:\n if (c === '=') {\n parser.state = S.ATTRIB_VALUE\n } else if (isWhitespace(c)) {\n continue\n } else {\n strictFail(parser, 'Attribute without value')\n parser.tag.attributes[parser.attribName] = ''\n parser.attribValue = ''\n emitNode(parser, 'onattribute', {\n name: parser.attribName,\n value: ''\n })\n parser.attribName = ''\n if (c === '>') {\n openTag(parser)\n } else if (isMatch(nameStart, c)) {\n parser.attribName = c\n parser.state = S.ATTRIB_NAME\n } else {\n strictFail(parser, 'Invalid attribute name')\n parser.state = S.ATTRIB\n }\n }\n continue\n\n case S.ATTRIB_VALUE:\n if (isWhitespace(c)) {\n continue\n } else if (isQuote(c)) {\n parser.q = c\n parser.state = S.ATTRIB_VALUE_QUOTED\n } else {\n strictFail(parser, 'Unquoted attribute value')\n parser.state = S.ATTRIB_VALUE_UNQUOTED\n parser.attribValue = c\n }\n continue\n\n case S.ATTRIB_VALUE_QUOTED:\n if (c !== parser.q) {\n if (c === '&') {\n parser.state = S.ATTRIB_VALUE_ENTITY_Q\n } else {\n parser.attribValue += c\n }\n continue\n }\n attrib(parser)\n parser.q = ''\n parser.state = S.ATTRIB_VALUE_CLOSED\n continue\n\n case S.ATTRIB_VALUE_CLOSED:\n if (isWhitespace(c)) {\n parser.state = S.ATTRIB\n } else if (c === '>') {\n openTag(parser)\n } else if (c === '/') {\n parser.state = S.OPEN_TAG_SLASH\n } else if (isMatch(nameStart, c)) {\n strictFail(parser, 'No whitespace between attributes')\n parser.attribName = c\n parser.attribValue = ''\n parser.state = S.ATTRIB_NAME\n } else {\n strictFail(parser, 'Invalid attribute name')\n }\n continue\n\n case S.ATTRIB_VALUE_UNQUOTED:\n if (!isAttribEnd(c)) {\n if (c === '&') {\n parser.state = S.ATTRIB_VALUE_ENTITY_U\n } else {\n parser.attribValue += c\n }\n continue\n }\n attrib(parser)\n if (c === '>') {\n openTag(parser)\n } else {\n parser.state = S.ATTRIB\n }\n continue\n\n case S.CLOSE_TAG:\n if (!parser.tagName) {\n if (isWhitespace(c)) {\n continue\n } else if (notMatch(nameStart, c)) {\n if (parser.script) {\n parser.script += '</' + c\n parser.state = S.SCRIPT\n } else {\n strictFail(parser, 'Invalid tagname in closing tag.')\n }\n } else {\n parser.tagName = c\n }\n } else if (c === '>') {\n closeTag(parser)\n } else if (isMatch(nameBody, c)) {\n parser.tagName += c\n } else if (parser.script) {\n parser.script += '</' + parser.tagName\n parser.tagName = ''\n parser.state = S.SCRIPT\n } else {\n if (!isWhitespace(c)) {\n strictFail(parser, 'Invalid tagname in closing tag')\n }\n parser.state = S.CLOSE_TAG_SAW_WHITE\n }\n continue\n\n case S.CLOSE_TAG_SAW_WHITE:\n if (isWhitespace(c)) {\n continue\n }\n if (c === '>') {\n closeTag(parser)\n } else {\n strictFail(parser, 'Invalid characters in closing tag')\n }\n continue\n\n case S.TEXT_ENTITY:\n case S.ATTRIB_VALUE_ENTITY_Q:\n case S.ATTRIB_VALUE_ENTITY_U:\n var returnState\n var buffer\n switch (parser.state) {\n case S.TEXT_ENTITY:\n returnState = S.TEXT\n buffer = 'textNode'\n break\n\n case S.ATTRIB_VALUE_ENTITY_Q:\n returnState = S.ATTRIB_VALUE_QUOTED\n buffer = 'attribValue'\n break\n\n case S.ATTRIB_VALUE_ENTITY_U:\n returnState = S.ATTRIB_VALUE_UNQUOTED\n buffer = 'attribValue'\n break\n }\n\n if (c === ';') {\n parser[buffer] += parseEntity(parser)\n parser.entity = ''\n parser.state = returnState\n } else if (isMatch(parser.entity.length ? entityBody : entityStart, c)) {\n parser.entity += c\n } else {\n strictFail(parser, 'Invalid character in entity name')\n parser[buffer] += '&' + parser.entity + c\n parser.entity = ''\n parser.state = returnState\n }\n\n continue\n\n default:\n throw new Error(parser, 'Unknown state: ' + parser.state)\n }\n } // while\n\n if (parser.position >= parser.bufferCheckPosition) {\n checkBufferLength(parser)\n }\n return parser\n }\n\n /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */\n /* istanbul ignore next */\n if (!String.fromCodePoint) {\n (function () {\n var stringFromCharCode = String.fromCharCode\n var floor = Math.floor\n var fromCodePoint = function () {\n var MAX_SIZE = 0x4000\n var codeUnits = []\n var highSurrogate\n var lowSurrogate\n var index = -1\n var length = arguments.length\n if (!length) {\n return ''\n }\n var result = ''\n while (++index < length) {\n var codePoint = Number(arguments[index])\n if (\n !isFinite(codePoint) || // `NaN`, `+Infinity`, or `-Infinity`\n codePoint < 0 || // not a valid Unicode code point\n codePoint > 0x10FFFF || // not a valid Unicode code point\n floor(codePoint) !== codePoint // not an integer\n ) {\n throw RangeError('Invalid code point: ' + codePoint)\n }\n if (codePoint <= 0xFFFF) { // BMP code point\n codeUnits.push(codePoint)\n } else { // Astral code point; split in surrogate halves\n // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n codePoint -= 0x10000\n highSurrogate = (codePoint >> 10) + 0xD800\n lowSurrogate = (codePoint % 0x400) + 0xDC00\n codeUnits.push(highSurrogate, lowSurrogate)\n }\n if (index + 1 === length || codeUnits.length > MAX_SIZE) {\n result += stringFromCharCode.apply(null, codeUnits)\n codeUnits.length = 0\n }\n }\n return result\n }\n /* istanbul ignore next */\n if (Object.defineProperty) {\n Object.defineProperty(String, 'fromCodePoint', {\n value: fromCodePoint,\n configurable: true,\n writable: true\n })\n } else {\n String.fromCodePoint = fromCodePoint\n }\n }())\n }\n})( false ? undefined : exports)\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ \"./node_modules/buffer/index.js\").Buffer))\n\n//# sourceURL=webpack:///./node_modules/sax/lib/sax.js?");
518
+
519
+ /***/ }),
520
+
521
+ /***/ "./node_modules/setimmediate/setImmediate.js":
522
+ /*!***************************************************!*\
523
+ !*** ./node_modules/setimmediate/setImmediate.js ***!
524
+ \***************************************************/
525
+ /*! no static exports found */
526
+ /***/ (function(module, exports, __webpack_require__) {
527
+
528
+ eval("/* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {\n \"use strict\";\n\n if (global.setImmediate) {\n return;\n }\n\n var nextHandle = 1; // Spec says greater than zero\n var tasksByHandle = {};\n var currentlyRunningATask = false;\n var doc = global.document;\n var registerImmediate;\n\n function setImmediate(callback) {\n // Callback can either be a function or a string\n if (typeof callback !== \"function\") {\n callback = new Function(\"\" + callback);\n }\n // Copy function arguments\n var args = new Array(arguments.length - 1);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i + 1];\n }\n // Store and register the task\n var task = { callback: callback, args: args };\n tasksByHandle[nextHandle] = task;\n registerImmediate(nextHandle);\n return nextHandle++;\n }\n\n function clearImmediate(handle) {\n delete tasksByHandle[handle];\n }\n\n function run(task) {\n var callback = task.callback;\n var args = task.args;\n switch (args.length) {\n case 0:\n callback();\n break;\n case 1:\n callback(args[0]);\n break;\n case 2:\n callback(args[0], args[1]);\n break;\n case 3:\n callback(args[0], args[1], args[2]);\n break;\n default:\n callback.apply(undefined, args);\n break;\n }\n }\n\n function runIfPresent(handle) {\n // From the spec: \"Wait until any invocations of this algorithm started before this one have completed.\"\n // So if we're currently running a task, we'll need to delay this invocation.\n if (currentlyRunningATask) {\n // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a\n // \"too much recursion\" error.\n setTimeout(runIfPresent, 0, handle);\n } else {\n var task = tasksByHandle[handle];\n if (task) {\n currentlyRunningATask = true;\n try {\n run(task);\n } finally {\n clearImmediate(handle);\n currentlyRunningATask = false;\n }\n }\n }\n }\n\n function installNextTickImplementation() {\n registerImmediate = function(handle) {\n process.nextTick(function () { runIfPresent(handle); });\n };\n }\n\n function canUsePostMessage() {\n // The test against `importScripts` prevents this implementation from being installed inside a web worker,\n // where `global.postMessage` means something completely different and can't be used for this purpose.\n if (global.postMessage && !global.importScripts) {\n var postMessageIsAsynchronous = true;\n var oldOnMessage = global.onmessage;\n global.onmessage = function() {\n postMessageIsAsynchronous = false;\n };\n global.postMessage(\"\", \"*\");\n global.onmessage = oldOnMessage;\n return postMessageIsAsynchronous;\n }\n }\n\n function installPostMessageImplementation() {\n // Installs an event handler on `global` for the `message` event: see\n // * https://developer.mozilla.org/en/DOM/window.postMessage\n // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages\n\n var messagePrefix = \"setImmediate$\" + Math.random() + \"$\";\n var onGlobalMessage = function(event) {\n if (event.source === global &&\n typeof event.data === \"string\" &&\n event.data.indexOf(messagePrefix) === 0) {\n runIfPresent(+event.data.slice(messagePrefix.length));\n }\n };\n\n if (global.addEventListener) {\n global.addEventListener(\"message\", onGlobalMessage, false);\n } else {\n global.attachEvent(\"onmessage\", onGlobalMessage);\n }\n\n registerImmediate = function(handle) {\n global.postMessage(messagePrefix + handle, \"*\");\n };\n }\n\n function installMessageChannelImplementation() {\n var channel = new MessageChannel();\n channel.port1.onmessage = function(event) {\n var handle = event.data;\n runIfPresent(handle);\n };\n\n registerImmediate = function(handle) {\n channel.port2.postMessage(handle);\n };\n }\n\n function installReadyStateChangeImplementation() {\n var html = doc.documentElement;\n registerImmediate = function(handle) {\n // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted\n // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.\n var script = doc.createElement(\"script\");\n script.onreadystatechange = function () {\n runIfPresent(handle);\n script.onreadystatechange = null;\n html.removeChild(script);\n script = null;\n };\n html.appendChild(script);\n };\n }\n\n function installSetTimeoutImplementation() {\n registerImmediate = function(handle) {\n setTimeout(runIfPresent, 0, handle);\n };\n }\n\n // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.\n var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);\n attachTo = attachTo && attachTo.setTimeout ? attachTo : global;\n\n // Don't get fooled by e.g. browserify environments.\n if ({}.toString.call(global.process) === \"[object process]\") {\n // For Node.js before 0.9\n installNextTickImplementation();\n\n } else if (canUsePostMessage()) {\n // For non-IE10 modern browsers\n installPostMessageImplementation();\n\n } else if (global.MessageChannel) {\n // For web workers, where supported\n installMessageChannelImplementation();\n\n } else if (doc && \"onreadystatechange\" in doc.createElement(\"script\")) {\n // For IE 6–8\n installReadyStateChangeImplementation();\n\n } else {\n // For older browsers\n installSetTimeoutImplementation();\n }\n\n attachTo.setImmediate = setImmediate;\n attachTo.clearImmediate = clearImmediate;\n}(typeof self === \"undefined\" ? typeof global === \"undefined\" ? this : global : self));\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\"), __webpack_require__(/*! ./../process/browser.js */ \"./node_modules/process/browser.js\")))\n\n//# sourceURL=webpack:///./node_modules/setimmediate/setImmediate.js?");
529
+
530
+ /***/ }),
531
+
532
+ /***/ "./node_modules/stream-browserify/index.js":
533
+ /*!*************************************************!*\
534
+ !*** ./node_modules/stream-browserify/index.js ***!
535
+ \*************************************************/
536
+ /*! no static exports found */
537
+ /***/ (function(module, exports, __webpack_require__) {
538
+
539
+ eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nmodule.exports = Stream;\n\nvar EE = __webpack_require__(/*! events */ \"./node_modules/events/events.js\").EventEmitter;\nvar inherits = __webpack_require__(/*! inherits */ \"./node_modules/inherits/inherits_browser.js\");\n\ninherits(Stream, EE);\nStream.Readable = __webpack_require__(/*! readable-stream/readable.js */ \"./node_modules/readable-stream/readable-browser.js\");\nStream.Writable = __webpack_require__(/*! readable-stream/writable.js */ \"./node_modules/readable-stream/writable-browser.js\");\nStream.Duplex = __webpack_require__(/*! readable-stream/duplex.js */ \"./node_modules/readable-stream/duplex-browser.js\");\nStream.Transform = __webpack_require__(/*! readable-stream/transform.js */ \"./node_modules/readable-stream/transform.js\");\nStream.PassThrough = __webpack_require__(/*! readable-stream/passthrough.js */ \"./node_modules/readable-stream/passthrough.js\");\n\n// Backwards-compat with node 0.4.x\nStream.Stream = Stream;\n\n\n\n// old-style streams. Note that the pipe method (the only relevant\n// part of this class) is overridden in the Readable class.\n\nfunction Stream() {\n EE.call(this);\n}\n\nStream.prototype.pipe = function(dest, options) {\n var source = this;\n\n function ondata(chunk) {\n if (dest.writable) {\n if (false === dest.write(chunk) && source.pause) {\n source.pause();\n }\n }\n }\n\n source.on('data', ondata);\n\n function ondrain() {\n if (source.readable && source.resume) {\n source.resume();\n }\n }\n\n dest.on('drain', ondrain);\n\n // If the 'end' option is not supplied, dest.end() will be called when\n // source gets the 'end' or 'close' events. Only dest.end() once.\n if (!dest._isStdio && (!options || options.end !== false)) {\n source.on('end', onend);\n source.on('close', onclose);\n }\n\n var didOnEnd = false;\n function onend() {\n if (didOnEnd) return;\n didOnEnd = true;\n\n dest.end();\n }\n\n\n function onclose() {\n if (didOnEnd) return;\n didOnEnd = true;\n\n if (typeof dest.destroy === 'function') dest.destroy();\n }\n\n // don't leave dangling pipes when there are errors.\n function onerror(er) {\n cleanup();\n if (EE.listenerCount(this, 'error') === 0) {\n throw er; // Unhandled stream error in pipe.\n }\n }\n\n source.on('error', onerror);\n dest.on('error', onerror);\n\n // remove all the event listeners that were added.\n function cleanup() {\n source.removeListener('data', ondata);\n dest.removeListener('drain', ondrain);\n\n source.removeListener('end', onend);\n source.removeListener('close', onclose);\n\n source.removeListener('error', onerror);\n dest.removeListener('error', onerror);\n\n source.removeListener('end', cleanup);\n source.removeListener('close', cleanup);\n\n dest.removeListener('close', cleanup);\n }\n\n source.on('end', cleanup);\n source.on('close', cleanup);\n\n dest.on('close', cleanup);\n\n dest.emit('pipe', source);\n\n // Allow for unix-like usage: A.pipe(B).pipe(C)\n return dest;\n};\n\n\n//# sourceURL=webpack:///./node_modules/stream-browserify/index.js?");
540
+
541
+ /***/ }),
542
+
543
+ /***/ "./node_modules/string_decoder/lib/string_decoder.js":
544
+ /*!***********************************************************!*\
545
+ !*** ./node_modules/string_decoder/lib/string_decoder.js ***!
546
+ \***********************************************************/
547
+ /*! no static exports found */
548
+ /***/ (function(module, exports, __webpack_require__) {
549
+
550
+ "use strict";
551
+ eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\n/*<replacement>*/\n\nvar Buffer = __webpack_require__(/*! safe-buffer */ \"./node_modules/safe-buffer/index.js\").Buffer;\n/*</replacement>*/\n\nvar isEncoding = Buffer.isEncoding || function (encoding) {\n encoding = '' + encoding;\n switch (encoding && encoding.toLowerCase()) {\n case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':\n return true;\n default:\n return false;\n }\n};\n\nfunction _normalizeEncoding(enc) {\n if (!enc) return 'utf8';\n var retried;\n while (true) {\n switch (enc) {\n case 'utf8':\n case 'utf-8':\n return 'utf8';\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return 'utf16le';\n case 'latin1':\n case 'binary':\n return 'latin1';\n case 'base64':\n case 'ascii':\n case 'hex':\n return enc;\n default:\n if (retried) return; // undefined\n enc = ('' + enc).toLowerCase();\n retried = true;\n }\n }\n};\n\n// Do not cache `Buffer.isEncoding` when checking encoding names as some\n// modules monkey-patch it to support additional encodings\nfunction normalizeEncoding(enc) {\n var nenc = _normalizeEncoding(enc);\n if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);\n return nenc || enc;\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters.\nexports.StringDecoder = StringDecoder;\nfunction StringDecoder(encoding) {\n this.encoding = normalizeEncoding(encoding);\n var nb;\n switch (this.encoding) {\n case 'utf16le':\n this.text = utf16Text;\n this.end = utf16End;\n nb = 4;\n break;\n case 'utf8':\n this.fillLast = utf8FillLast;\n nb = 4;\n break;\n case 'base64':\n this.text = base64Text;\n this.end = base64End;\n nb = 3;\n break;\n default:\n this.write = simpleWrite;\n this.end = simpleEnd;\n return;\n }\n this.lastNeed = 0;\n this.lastTotal = 0;\n this.lastChar = Buffer.allocUnsafe(nb);\n}\n\nStringDecoder.prototype.write = function (buf) {\n if (buf.length === 0) return '';\n var r;\n var i;\n if (this.lastNeed) {\n r = this.fillLast(buf);\n if (r === undefined) return '';\n i = this.lastNeed;\n this.lastNeed = 0;\n } else {\n i = 0;\n }\n if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);\n return r || '';\n};\n\nStringDecoder.prototype.end = utf8End;\n\n// Returns only complete characters in a Buffer\nStringDecoder.prototype.text = utf8Text;\n\n// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\nStringDecoder.prototype.fillLast = function (buf) {\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);\n this.lastNeed -= buf.length;\n};\n\n// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a\n// continuation byte. If an invalid byte is detected, -2 is returned.\nfunction utf8CheckByte(byte) {\n if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;\n return byte >> 6 === 0x02 ? -1 : -2;\n}\n\n// Checks at most 3 bytes at the end of a Buffer in order to detect an\n// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)\n// needed to complete the UTF-8 character (if applicable) are returned.\nfunction utf8CheckIncomplete(self, buf, i) {\n var j = buf.length - 1;\n if (j < i) return 0;\n var nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 1;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 2;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) {\n if (nb === 2) nb = 0;else self.lastNeed = nb - 3;\n }\n return nb;\n }\n return 0;\n}\n\n// Validates as many continuation bytes for a multi-byte UTF-8 character as\n// needed or are available. If we see a non-continuation byte where we expect\n// one, we \"replace\" the validated continuation bytes we've seen so far with\n// a single UTF-8 replacement character ('\\ufffd'), to match v8's UTF-8 decoding\n// behavior. The continuation byte check is included three times in the case\n// where all of the continuation bytes for a character exist in the same buffer.\n// It is also done this way as a slight performance increase instead of using a\n// loop.\nfunction utf8CheckExtraBytes(self, buf, p) {\n if ((buf[0] & 0xC0) !== 0x80) {\n self.lastNeed = 0;\n return '\\ufffd';\n }\n if (self.lastNeed > 1 && buf.length > 1) {\n if ((buf[1] & 0xC0) !== 0x80) {\n self.lastNeed = 1;\n return '\\ufffd';\n }\n if (self.lastNeed > 2 && buf.length > 2) {\n if ((buf[2] & 0xC0) !== 0x80) {\n self.lastNeed = 2;\n return '\\ufffd';\n }\n }\n }\n}\n\n// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.\nfunction utf8FillLast(buf) {\n var p = this.lastTotal - this.lastNeed;\n var r = utf8CheckExtraBytes(this, buf, p);\n if (r !== undefined) return r;\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, p, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, p, 0, buf.length);\n this.lastNeed -= buf.length;\n}\n\n// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a\n// partial character, the character's bytes are buffered until the required\n// number of bytes are available.\nfunction utf8Text(buf, i) {\n var total = utf8CheckIncomplete(this, buf, i);\n if (!this.lastNeed) return buf.toString('utf8', i);\n this.lastTotal = total;\n var end = buf.length - (total - this.lastNeed);\n buf.copy(this.lastChar, 0, end);\n return buf.toString('utf8', i, end);\n}\n\n// For UTF-8, a replacement character is added when ending on a partial\n// character.\nfunction utf8End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + '\\ufffd';\n return r;\n}\n\n// UTF-16LE typically needs two bytes per character, but even if we have an even\n// number of bytes available, we need to check if we end on a leading/high\n// surrogate. In that case, we need to wait for the next two bytes in order to\n// decode the last character properly.\nfunction utf16Text(buf, i) {\n if ((buf.length - i) % 2 === 0) {\n var r = buf.toString('utf16le', i);\n if (r) {\n var c = r.charCodeAt(r.length - 1);\n if (c >= 0xD800 && c <= 0xDBFF) {\n this.lastNeed = 2;\n this.lastTotal = 4;\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n return r.slice(0, -1);\n }\n }\n return r;\n }\n this.lastNeed = 1;\n this.lastTotal = 2;\n this.lastChar[0] = buf[buf.length - 1];\n return buf.toString('utf16le', i, buf.length - 1);\n}\n\n// For UTF-16LE we do not explicitly append special replacement characters if we\n// end on a partial character, we simply let v8 handle that.\nfunction utf16End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) {\n var end = this.lastTotal - this.lastNeed;\n return r + this.lastChar.toString('utf16le', 0, end);\n }\n return r;\n}\n\nfunction base64Text(buf, i) {\n var n = (buf.length - i) % 3;\n if (n === 0) return buf.toString('base64', i);\n this.lastNeed = 3 - n;\n this.lastTotal = 3;\n if (n === 1) {\n this.lastChar[0] = buf[buf.length - 1];\n } else {\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n }\n return buf.toString('base64', i, buf.length - n);\n}\n\nfunction base64End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);\n return r;\n}\n\n// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)\nfunction simpleWrite(buf) {\n return buf.toString(this.encoding);\n}\n\nfunction simpleEnd(buf) {\n return buf && buf.length ? this.write(buf) : '';\n}\n\n//# sourceURL=webpack:///./node_modules/string_decoder/lib/string_decoder.js?");
552
+
553
+ /***/ }),
554
+
555
+ /***/ "./node_modules/superagent/lib/agent-base.js":
556
+ /*!***************************************************!*\
557
+ !*** ./node_modules/superagent/lib/agent-base.js ***!
558
+ \***************************************************/
559
+ /*! no static exports found */
560
+ /***/ (function(module, exports) {
561
+
562
+ eval("function Agent() {\n this._defaults = [];\n}\n\n[\"use\", \"on\", \"once\", \"set\", \"query\", \"type\", \"accept\", \"auth\", \"withCredentials\", \"sortQuery\", \"retry\", \"ok\", \"redirects\",\n \"timeout\", \"buffer\", \"serialize\", \"parse\", \"ca\", \"key\", \"pfx\", \"cert\"].forEach(function(fn) {\n /** Default setting for all requests from this agent */\n Agent.prototype[fn] = function(/*varargs*/) {\n this._defaults.push({fn:fn, arguments:arguments});\n return this;\n }\n});\n\nAgent.prototype._setDefaults = function(req) {\n this._defaults.forEach(function(def) {\n req[def.fn].apply(req, def.arguments);\n });\n};\n\nmodule.exports = Agent;\n\n\n//# sourceURL=webpack:///./node_modules/superagent/lib/agent-base.js?");
563
+
564
+ /***/ }),
565
+
566
+ /***/ "./node_modules/superagent/lib/client.js":
567
+ /*!***********************************************!*\
568
+ !*** ./node_modules/superagent/lib/client.js ***!
569
+ \***********************************************/
570
+ /*! no static exports found */
571
+ /***/ (function(module, exports, __webpack_require__) {
572
+
573
+ eval("/**\n * Root reference for iframes.\n */\n\nvar root;\nif (typeof window !== 'undefined') { // Browser window\n root = window;\n} else if (typeof self !== 'undefined') { // Web Worker\n root = self;\n} else { // Other environments\n console.warn(\"Using browser-only version of superagent in non-browser environment\");\n root = this;\n}\n\nvar Emitter = __webpack_require__(/*! component-emitter */ \"./node_modules/component-emitter/index.js\");\nvar RequestBase = __webpack_require__(/*! ./request-base */ \"./node_modules/superagent/lib/request-base.js\");\nvar isObject = __webpack_require__(/*! ./is-object */ \"./node_modules/superagent/lib/is-object.js\");\nvar ResponseBase = __webpack_require__(/*! ./response-base */ \"./node_modules/superagent/lib/response-base.js\");\nvar Agent = __webpack_require__(/*! ./agent-base */ \"./node_modules/superagent/lib/agent-base.js\");\n\n/**\n * Noop.\n */\n\nfunction noop(){};\n\n/**\n * Expose `request`.\n */\n\nvar request = exports = module.exports = function(method, url) {\n // callback\n if ('function' == typeof url) {\n return new exports.Request('GET', method).end(url);\n }\n\n // url first\n if (1 == arguments.length) {\n return new exports.Request('GET', method);\n }\n\n return new exports.Request(method, url);\n}\n\nexports.Request = Request;\n\n/**\n * Determine XHR.\n */\n\nrequest.getXHR = function () {\n if (root.XMLHttpRequest\n && (!root.location || 'file:' != root.location.protocol\n || !root.ActiveXObject)) {\n return new XMLHttpRequest;\n } else {\n try { return new ActiveXObject('Microsoft.XMLHTTP'); } catch(e) {}\n try { return new ActiveXObject('Msxml2.XMLHTTP.6.0'); } catch(e) {}\n try { return new ActiveXObject('Msxml2.XMLHTTP.3.0'); } catch(e) {}\n try { return new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) {}\n }\n throw Error(\"Browser-only version of superagent could not find XHR\");\n};\n\n/**\n * Removes leading and trailing whitespace, added to support IE.\n *\n * @param {String} s\n * @return {String}\n * @api private\n */\n\nvar trim = ''.trim\n ? function(s) { return s.trim(); }\n : function(s) { return s.replace(/(^\\s*|\\s*$)/g, ''); };\n\n/**\n * Serialize the given `obj`.\n *\n * @param {Object} obj\n * @return {String}\n * @api private\n */\n\nfunction serialize(obj) {\n if (!isObject(obj)) return obj;\n var pairs = [];\n for (var key in obj) {\n pushEncodedKeyValuePair(pairs, key, obj[key]);\n }\n return pairs.join('&');\n}\n\n/**\n * Helps 'serialize' with serializing arrays.\n * Mutates the pairs array.\n *\n * @param {Array} pairs\n * @param {String} key\n * @param {Mixed} val\n */\n\nfunction pushEncodedKeyValuePair(pairs, key, val) {\n if (val != null) {\n if (Array.isArray(val)) {\n val.forEach(function(v) {\n pushEncodedKeyValuePair(pairs, key, v);\n });\n } else if (isObject(val)) {\n for(var subkey in val) {\n pushEncodedKeyValuePair(pairs, key + '[' + subkey + ']', val[subkey]);\n }\n } else {\n pairs.push(encodeURIComponent(key)\n + '=' + encodeURIComponent(val));\n }\n } else if (val === null) {\n pairs.push(encodeURIComponent(key));\n }\n}\n\n/**\n * Expose serialization method.\n */\n\nrequest.serializeObject = serialize;\n\n/**\n * Parse the given x-www-form-urlencoded `str`.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parseString(str) {\n var obj = {};\n var pairs = str.split('&');\n var pair;\n var pos;\n\n for (var i = 0, len = pairs.length; i < len; ++i) {\n pair = pairs[i];\n pos = pair.indexOf('=');\n if (pos == -1) {\n obj[decodeURIComponent(pair)] = '';\n } else {\n obj[decodeURIComponent(pair.slice(0, pos))] =\n decodeURIComponent(pair.slice(pos + 1));\n }\n }\n\n return obj;\n}\n\n/**\n * Expose parser.\n */\n\nrequest.parseString = parseString;\n\n/**\n * Default MIME type map.\n *\n * superagent.types.xml = 'application/xml';\n *\n */\n\nrequest.types = {\n html: 'text/html',\n json: 'application/json',\n xml: 'text/xml',\n urlencoded: 'application/x-www-form-urlencoded',\n 'form': 'application/x-www-form-urlencoded',\n 'form-data': 'application/x-www-form-urlencoded'\n};\n\n/**\n * Default serialization map.\n *\n * superagent.serialize['application/xml'] = function(obj){\n * return 'generated xml here';\n * };\n *\n */\n\nrequest.serialize = {\n 'application/x-www-form-urlencoded': serialize,\n 'application/json': JSON.stringify\n};\n\n/**\n * Default parsers.\n *\n * superagent.parse['application/xml'] = function(str){\n * return { object parsed from str };\n * };\n *\n */\n\nrequest.parse = {\n 'application/x-www-form-urlencoded': parseString,\n 'application/json': JSON.parse\n};\n\n/**\n * Parse the given header `str` into\n * an object containing the mapped fields.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parseHeader(str) {\n var lines = str.split(/\\r?\\n/);\n var fields = {};\n var index;\n var line;\n var field;\n var val;\n\n for (var i = 0, len = lines.length; i < len; ++i) {\n line = lines[i];\n index = line.indexOf(':');\n if (index === -1) { // could be empty line, just skip it\n continue;\n }\n field = line.slice(0, index).toLowerCase();\n val = trim(line.slice(index + 1));\n fields[field] = val;\n }\n\n return fields;\n}\n\n/**\n * Check if `mime` is json or has +json structured syntax suffix.\n *\n * @param {String} mime\n * @return {Boolean}\n * @api private\n */\n\nfunction isJSON(mime) {\n // should match /json or +json\n // but not /json-seq\n return /[\\/+]json($|[^-\\w])/.test(mime);\n}\n\n/**\n * Initialize a new `Response` with the given `xhr`.\n *\n * - set flags (.ok, .error, etc)\n * - parse header\n *\n * Examples:\n *\n * Aliasing `superagent` as `request` is nice:\n *\n * request = superagent;\n *\n * We can use the promise-like API, or pass callbacks:\n *\n * request.get('/').end(function(res){});\n * request.get('/', function(res){});\n *\n * Sending data can be chained:\n *\n * request\n * .post('/user')\n * .send({ name: 'tj' })\n * .end(function(res){});\n *\n * Or passed to `.send()`:\n *\n * request\n * .post('/user')\n * .send({ name: 'tj' }, function(res){});\n *\n * Or passed to `.post()`:\n *\n * request\n * .post('/user', { name: 'tj' })\n * .end(function(res){});\n *\n * Or further reduced to a single call for simple cases:\n *\n * request\n * .post('/user', { name: 'tj' }, function(res){});\n *\n * @param {XMLHTTPRequest} xhr\n * @param {Object} options\n * @api private\n */\n\nfunction Response(req) {\n this.req = req;\n this.xhr = this.req.xhr;\n // responseText is accessible only if responseType is '' or 'text' and on older browsers\n this.text = ((this.req.method !='HEAD' && (this.xhr.responseType === '' || this.xhr.responseType === 'text')) || typeof this.xhr.responseType === 'undefined')\n ? this.xhr.responseText\n : null;\n this.statusText = this.req.xhr.statusText;\n var status = this.xhr.status;\n // handle IE9 bug: http://stackoverflow.com/questions/10046972/msie-returns-status-code-of-1223-for-ajax-request\n if (status === 1223) {\n status = 204;\n }\n this._setStatusProperties(status);\n this.header = this.headers = parseHeader(this.xhr.getAllResponseHeaders());\n // getAllResponseHeaders sometimes falsely returns \"\" for CORS requests, but\n // getResponseHeader still works. so we get content-type even if getting\n // other headers fails.\n this.header['content-type'] = this.xhr.getResponseHeader('content-type');\n this._setHeaderProperties(this.header);\n\n if (null === this.text && req._responseType) {\n this.body = this.xhr.response;\n } else {\n this.body = this.req.method != 'HEAD'\n ? this._parseBody(this.text ? this.text : this.xhr.response)\n : null;\n }\n}\n\nResponseBase(Response.prototype);\n\n/**\n * Parse the given body `str`.\n *\n * Used for auto-parsing of bodies. Parsers\n * are defined on the `superagent.parse` object.\n *\n * @param {String} str\n * @return {Mixed}\n * @api private\n */\n\nResponse.prototype._parseBody = function(str) {\n var parse = request.parse[this.type];\n if (this.req._parser) {\n return this.req._parser(this, str);\n }\n if (!parse && isJSON(this.type)) {\n parse = request.parse['application/json'];\n }\n return parse && str && (str.length || str instanceof Object)\n ? parse(str)\n : null;\n};\n\n/**\n * Return an `Error` representative of this response.\n *\n * @return {Error}\n * @api public\n */\n\nResponse.prototype.toError = function(){\n var req = this.req;\n var method = req.method;\n var url = req.url;\n\n var msg = 'cannot ' + method + ' ' + url + ' (' + this.status + ')';\n var err = new Error(msg);\n err.status = this.status;\n err.method = method;\n err.url = url;\n\n return err;\n};\n\n/**\n * Expose `Response`.\n */\n\nrequest.Response = Response;\n\n/**\n * Initialize a new `Request` with the given `method` and `url`.\n *\n * @param {String} method\n * @param {String} url\n * @api public\n */\n\nfunction Request(method, url) {\n var self = this;\n this._query = this._query || [];\n this.method = method;\n this.url = url;\n this.header = {}; // preserves header name case\n this._header = {}; // coerces header names to lowercase\n this.on('end', function(){\n var err = null;\n var res = null;\n\n try {\n res = new Response(self);\n } catch(e) {\n err = new Error('Parser is unable to parse the response');\n err.parse = true;\n err.original = e;\n // issue #675: return the raw response if the response parsing fails\n if (self.xhr) {\n // ie9 doesn't have 'response' property\n err.rawResponse = typeof self.xhr.responseType == 'undefined' ? self.xhr.responseText : self.xhr.response;\n // issue #876: return the http status code if the response parsing fails\n err.status = self.xhr.status ? self.xhr.status : null;\n err.statusCode = err.status; // backwards-compat only\n } else {\n err.rawResponse = null;\n err.status = null;\n }\n\n return self.callback(err);\n }\n\n self.emit('response', res);\n\n var new_err;\n try {\n if (!self._isResponseOK(res)) {\n new_err = new Error(res.statusText || 'Unsuccessful HTTP response');\n }\n } catch(custom_err) {\n new_err = custom_err; // ok() callback can throw\n }\n\n // #1000 don't catch errors from the callback to avoid double calling it\n if (new_err) {\n new_err.original = err;\n new_err.response = res;\n new_err.status = res.status;\n self.callback(new_err, res);\n } else {\n self.callback(null, res);\n }\n });\n}\n\n/**\n * Mixin `Emitter` and `RequestBase`.\n */\n\nEmitter(Request.prototype);\nRequestBase(Request.prototype);\n\n/**\n * Set Content-Type to `type`, mapping values from `request.types`.\n *\n * Examples:\n *\n * superagent.types.xml = 'application/xml';\n *\n * request.post('/')\n * .type('xml')\n * .send(xmlstring)\n * .end(callback);\n *\n * request.post('/')\n * .type('application/xml')\n * .send(xmlstring)\n * .end(callback);\n *\n * @param {String} type\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.type = function(type){\n this.set('Content-Type', request.types[type] || type);\n return this;\n};\n\n/**\n * Set Accept to `type`, mapping values from `request.types`.\n *\n * Examples:\n *\n * superagent.types.json = 'application/json';\n *\n * request.get('/agent')\n * .accept('json')\n * .end(callback);\n *\n * request.get('/agent')\n * .accept('application/json')\n * .end(callback);\n *\n * @param {String} accept\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.accept = function(type){\n this.set('Accept', request.types[type] || type);\n return this;\n};\n\n/**\n * Set Authorization field value with `user` and `pass`.\n *\n * @param {String} user\n * @param {String} [pass] optional in case of using 'bearer' as type\n * @param {Object} options with 'type' property 'auto', 'basic' or 'bearer' (default 'basic')\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.auth = function(user, pass, options){\n if (1 === arguments.length) pass = '';\n if (typeof pass === 'object' && pass !== null) { // pass is optional and can be replaced with options\n options = pass;\n pass = '';\n }\n if (!options) {\n options = {\n type: 'function' === typeof btoa ? 'basic' : 'auto',\n };\n }\n\n var encoder = function(string) {\n if ('function' === typeof btoa) {\n return btoa(string);\n }\n throw new Error('Cannot use basic auth, btoa is not a function');\n };\n\n return this._auth(user, pass, options, encoder);\n};\n\n/**\n * Add query-string `val`.\n *\n * Examples:\n *\n * request.get('/shoes')\n * .query('size=10')\n * .query({ color: 'blue' })\n *\n * @param {Object|String} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.query = function(val){\n if ('string' != typeof val) val = serialize(val);\n if (val) this._query.push(val);\n return this;\n};\n\n/**\n * Queue the given `file` as an attachment to the specified `field`,\n * with optional `options` (or filename).\n *\n * ``` js\n * request.post('/upload')\n * .attach('content', new Blob(['<a id=\"a\"><b id=\"b\">hey!</b></a>'], { type: \"text/html\"}))\n * .end(callback);\n * ```\n *\n * @param {String} field\n * @param {Blob|File} file\n * @param {String|Object} options\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.attach = function(field, file, options){\n if (file) {\n if (this._data) {\n throw Error(\"superagent can't mix .send() and .attach()\");\n }\n\n this._getFormData().append(field, file, options || file.name);\n }\n return this;\n};\n\nRequest.prototype._getFormData = function(){\n if (!this._formData) {\n this._formData = new root.FormData();\n }\n return this._formData;\n};\n\n/**\n * Invoke the callback with `err` and `res`\n * and handle arity check.\n *\n * @param {Error} err\n * @param {Response} res\n * @api private\n */\n\nRequest.prototype.callback = function(err, res){\n if (this._shouldRetry(err, res)) {\n return this._retry();\n }\n\n var fn = this._callback;\n this.clearTimeout();\n\n if (err) {\n if (this._maxRetries) err.retries = this._retries - 1;\n this.emit('error', err);\n }\n\n fn(err, res);\n};\n\n/**\n * Invoke callback with x-domain error.\n *\n * @api private\n */\n\nRequest.prototype.crossDomainError = function(){\n var err = new Error('Request has been terminated\\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.');\n err.crossDomain = true;\n\n err.status = this.status;\n err.method = this.method;\n err.url = this.url;\n\n this.callback(err);\n};\n\n// This only warns, because the request is still likely to work\nRequest.prototype.buffer = Request.prototype.ca = Request.prototype.agent = function(){\n console.warn(\"This is not supported in browser version of superagent\");\n return this;\n};\n\n// This throws, because it can't send/receive data as expected\nRequest.prototype.pipe = Request.prototype.write = function(){\n throw Error(\"Streaming is not supported in browser version of superagent\");\n};\n\n/**\n * Check if `obj` is a host object,\n * we don't want to serialize these :)\n *\n * @param {Object} obj\n * @return {Boolean}\n * @api private\n */\nRequest.prototype._isHost = function _isHost(obj) {\n // Native objects stringify to [object File], [object Blob], [object FormData], etc.\n return obj && 'object' === typeof obj && !Array.isArray(obj) && Object.prototype.toString.call(obj) !== '[object Object]';\n}\n\n/**\n * Initiate request, invoking callback `fn(res)`\n * with an instanceof `Response`.\n *\n * @param {Function} fn\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.end = function(fn){\n if (this._endCalled) {\n console.warn(\"Warning: .end() was called twice. This is not supported in superagent\");\n }\n this._endCalled = true;\n\n // store callback\n this._callback = fn || noop;\n\n // querystring\n this._finalizeQueryString();\n\n return this._end();\n};\n\nRequest.prototype._end = function() {\n var self = this;\n var xhr = (this.xhr = request.getXHR());\n var data = this._formData || this._data;\n\n this._setTimeouts();\n\n // state change\n xhr.onreadystatechange = function(){\n var readyState = xhr.readyState;\n if (readyState >= 2 && self._responseTimeoutTimer) {\n clearTimeout(self._responseTimeoutTimer);\n }\n if (4 != readyState) {\n return;\n }\n\n // In IE9, reads to any property (e.g. status) off of an aborted XHR will\n // result in the error \"Could not complete the operation due to error c00c023f\"\n var status;\n try { status = xhr.status } catch(e) { status = 0; }\n\n if (!status) {\n if (self.timedout || self._aborted) return;\n return self.crossDomainError();\n }\n self.emit('end');\n };\n\n // progress\n var handleProgress = function(direction, e) {\n if (e.total > 0) {\n e.percent = e.loaded / e.total * 100;\n }\n e.direction = direction;\n self.emit('progress', e);\n };\n if (this.hasListeners('progress')) {\n try {\n xhr.onprogress = handleProgress.bind(null, 'download');\n if (xhr.upload) {\n xhr.upload.onprogress = handleProgress.bind(null, 'upload');\n }\n } catch(e) {\n // Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist.\n // Reported here:\n // https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context\n }\n }\n\n // initiate request\n try {\n if (this.username && this.password) {\n xhr.open(this.method, this.url, true, this.username, this.password);\n } else {\n xhr.open(this.method, this.url, true);\n }\n } catch (err) {\n // see #1149\n return this.callback(err);\n }\n\n // CORS\n if (this._withCredentials) xhr.withCredentials = true;\n\n // body\n if (!this._formData && 'GET' != this.method && 'HEAD' != this.method && 'string' != typeof data && !this._isHost(data)) {\n // serialize stuff\n var contentType = this._header['content-type'];\n var serialize = this._serializer || request.serialize[contentType ? contentType.split(';')[0] : ''];\n if (!serialize && isJSON(contentType)) {\n serialize = request.serialize['application/json'];\n }\n if (serialize) data = serialize(data);\n }\n\n // set header fields\n for (var field in this.header) {\n if (null == this.header[field]) continue;\n\n if (this.header.hasOwnProperty(field))\n xhr.setRequestHeader(field, this.header[field]);\n }\n\n if (this._responseType) {\n xhr.responseType = this._responseType;\n }\n\n // send stuff\n this.emit('request', this);\n\n // IE11 xhr.send(undefined) sends 'undefined' string as POST payload (instead of nothing)\n // We need null here if data is undefined\n xhr.send(typeof data !== 'undefined' ? data : null);\n return this;\n};\n\nrequest.agent = function() {\n return new Agent();\n};\n\n[\"GET\", \"POST\", \"OPTIONS\", \"PATCH\", \"PUT\", \"DELETE\"].forEach(function(method) {\n Agent.prototype[method.toLowerCase()] = function(url, fn) {\n var req = new request.Request(method, url);\n this._setDefaults(req);\n if (fn) {\n req.end(fn);\n }\n return req;\n };\n});\n\nAgent.prototype.del = Agent.prototype['delete'];\n\n/**\n * GET `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} [data] or fn\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.get = function(url, data, fn) {\n var req = request('GET', url);\n if ('function' == typeof data) (fn = data), (data = null);\n if (data) req.query(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * HEAD `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} [data] or fn\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.head = function(url, data, fn) {\n var req = request('HEAD', url);\n if ('function' == typeof data) (fn = data), (data = null);\n if (data) req.query(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * OPTIONS query to `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} [data] or fn\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.options = function(url, data, fn) {\n var req = request('OPTIONS', url);\n if ('function' == typeof data) (fn = data), (data = null);\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * DELETE `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} [data]\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nfunction del(url, data, fn) {\n var req = request('DELETE', url);\n if ('function' == typeof data) (fn = data), (data = null);\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n}\n\nrequest['del'] = del;\nrequest['delete'] = del;\n\n/**\n * PATCH `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} [data]\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.patch = function(url, data, fn) {\n var req = request('PATCH', url);\n if ('function' == typeof data) (fn = data), (data = null);\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * POST `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} [data]\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.post = function(url, data, fn) {\n var req = request('POST', url);\n if ('function' == typeof data) (fn = data), (data = null);\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n/**\n * PUT `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} [data] or fn\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.put = function(url, data, fn) {\n var req = request('PUT', url);\n if ('function' == typeof data) (fn = data), (data = null);\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n\n//# sourceURL=webpack:///./node_modules/superagent/lib/client.js?");
574
+
575
+ /***/ }),
576
+
577
+ /***/ "./node_modules/superagent/lib/is-object.js":
578
+ /*!**************************************************!*\
579
+ !*** ./node_modules/superagent/lib/is-object.js ***!
580
+ \**************************************************/
581
+ /*! no static exports found */
582
+ /***/ (function(module, exports, __webpack_require__) {
583
+
584
+ "use strict";
585
+ eval("\n\n/**\n * Check if `obj` is an object.\n *\n * @param {Object} obj\n * @return {Boolean}\n * @api private\n */\n\nfunction isObject(obj) {\n return null !== obj && 'object' === typeof obj;\n}\n\nmodule.exports = isObject;\n\n\n//# sourceURL=webpack:///./node_modules/superagent/lib/is-object.js?");
586
+
587
+ /***/ }),
588
+
589
+ /***/ "./node_modules/superagent/lib/request-base.js":
590
+ /*!*****************************************************!*\
591
+ !*** ./node_modules/superagent/lib/request-base.js ***!
592
+ \*****************************************************/
593
+ /*! no static exports found */
594
+ /***/ (function(module, exports, __webpack_require__) {
595
+
596
+ "use strict";
597
+ eval("\n\n/**\n * Module of mixed-in functions shared between node and client code\n */\nvar isObject = __webpack_require__(/*! ./is-object */ \"./node_modules/superagent/lib/is-object.js\");\n\n/**\n * Expose `RequestBase`.\n */\n\nmodule.exports = RequestBase;\n\n/**\n * Initialize a new `RequestBase`.\n *\n * @api public\n */\n\nfunction RequestBase(obj) {\n if (obj) return mixin(obj);\n}\n\n/**\n * Mixin the prototype properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in RequestBase.prototype) {\n obj[key] = RequestBase.prototype[key];\n }\n return obj;\n}\n\n/**\n * Clear previous timeout.\n *\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.clearTimeout = function _clearTimeout(){\n clearTimeout(this._timer);\n clearTimeout(this._responseTimeoutTimer);\n delete this._timer;\n delete this._responseTimeoutTimer;\n return this;\n};\n\n/**\n * Override default response body parser\n *\n * This function will be called to convert incoming data into request.body\n *\n * @param {Function}\n * @api public\n */\n\nRequestBase.prototype.parse = function parse(fn){\n this._parser = fn;\n return this;\n};\n\n/**\n * Set format of binary response body.\n * In browser valid formats are 'blob' and 'arraybuffer',\n * which return Blob and ArrayBuffer, respectively.\n *\n * In Node all values result in Buffer.\n *\n * Examples:\n *\n * req.get('/')\n * .responseType('blob')\n * .end(callback);\n *\n * @param {String} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.responseType = function(val){\n this._responseType = val;\n return this;\n};\n\n/**\n * Override default request body serializer\n *\n * This function will be called to convert data set via .send or .attach into payload to send\n *\n * @param {Function}\n * @api public\n */\n\nRequestBase.prototype.serialize = function serialize(fn){\n this._serializer = fn;\n return this;\n};\n\n/**\n * Set timeouts.\n *\n * - response timeout is time between sending request and receiving the first byte of the response. Includes DNS and connection time.\n * - deadline is the time from start of the request to receiving response body in full. If the deadline is too short large files may not load at all on slow connections.\n *\n * Value of 0 or false means no timeout.\n *\n * @param {Number|Object} ms or {response, deadline}\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.timeout = function timeout(options){\n if (!options || 'object' !== typeof options) {\n this._timeout = options;\n this._responseTimeout = 0;\n return this;\n }\n\n for(var option in options) {\n switch(option) {\n case 'deadline':\n this._timeout = options.deadline;\n break;\n case 'response':\n this._responseTimeout = options.response;\n break;\n default:\n console.warn(\"Unknown timeout option\", option);\n }\n }\n return this;\n};\n\n/**\n * Set number of retry attempts on error.\n *\n * Failed requests will be retried 'count' times if timeout or err.code >= 500.\n *\n * @param {Number} count\n * @param {Function} [fn]\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.retry = function retry(count, fn){\n // Default to 1 if no count passed or true\n if (arguments.length === 0 || count === true) count = 1;\n if (count <= 0) count = 0;\n this._maxRetries = count;\n this._retries = 0;\n this._retryCallback = fn;\n return this;\n};\n\nvar ERROR_CODES = [\n 'ECONNRESET',\n 'ETIMEDOUT',\n 'EADDRINFO',\n 'ESOCKETTIMEDOUT'\n];\n\n/**\n * Determine if a request should be retried.\n * (Borrowed from segmentio/superagent-retry)\n *\n * @param {Error} err\n * @param {Response} [res]\n * @returns {Boolean}\n */\nRequestBase.prototype._shouldRetry = function(err, res) {\n if (!this._maxRetries || this._retries++ >= this._maxRetries) {\n return false;\n }\n if (this._retryCallback) {\n try {\n var override = this._retryCallback(err, res);\n if (override === true) return true;\n if (override === false) return false;\n // undefined falls back to defaults\n } catch(e) {\n console.error(e);\n }\n }\n if (res && res.status && res.status >= 500 && res.status != 501) return true;\n if (err) {\n if (err.code && ~ERROR_CODES.indexOf(err.code)) return true;\n // Superagent timeout\n if (err.timeout && err.code == 'ECONNABORTED') return true;\n if (err.crossDomain) return true;\n }\n return false;\n};\n\n/**\n * Retry request\n *\n * @return {Request} for chaining\n * @api private\n */\n\nRequestBase.prototype._retry = function() {\n\n this.clearTimeout();\n\n // node\n if (this.req) {\n this.req = null;\n this.req = this.request();\n }\n\n this._aborted = false;\n this.timedout = false;\n\n return this._end();\n};\n\n/**\n * Promise support\n *\n * @param {Function} resolve\n * @param {Function} [reject]\n * @return {Request}\n */\n\nRequestBase.prototype.then = function then(resolve, reject) {\n if (!this._fullfilledPromise) {\n var self = this;\n if (this._endCalled) {\n console.warn(\"Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises\");\n }\n this._fullfilledPromise = new Promise(function(innerResolve, innerReject) {\n self.end(function(err, res) {\n if (err) innerReject(err);\n else innerResolve(res);\n });\n });\n }\n return this._fullfilledPromise.then(resolve, reject);\n};\n\nRequestBase.prototype['catch'] = function(cb) {\n return this.then(undefined, cb);\n};\n\n/**\n * Allow for extension\n */\n\nRequestBase.prototype.use = function use(fn) {\n fn(this);\n return this;\n};\n\nRequestBase.prototype.ok = function(cb) {\n if ('function' !== typeof cb) throw Error(\"Callback required\");\n this._okCallback = cb;\n return this;\n};\n\nRequestBase.prototype._isResponseOK = function(res) {\n if (!res) {\n return false;\n }\n\n if (this._okCallback) {\n return this._okCallback(res);\n }\n\n return res.status >= 200 && res.status < 300;\n};\n\n/**\n * Get request header `field`.\n * Case-insensitive.\n *\n * @param {String} field\n * @return {String}\n * @api public\n */\n\nRequestBase.prototype.get = function(field){\n return this._header[field.toLowerCase()];\n};\n\n/**\n * Get case-insensitive header `field` value.\n * This is a deprecated internal API. Use `.get(field)` instead.\n *\n * (getHeader is no longer used internally by the superagent code base)\n *\n * @param {String} field\n * @return {String}\n * @api private\n * @deprecated\n */\n\nRequestBase.prototype.getHeader = RequestBase.prototype.get;\n\n/**\n * Set header `field` to `val`, or multiple fields with one object.\n * Case-insensitive.\n *\n * Examples:\n *\n * req.get('/')\n * .set('Accept', 'application/json')\n * .set('X-API-Key', 'foobar')\n * .end(callback);\n *\n * req.get('/')\n * .set({ Accept: 'application/json', 'X-API-Key': 'foobar' })\n * .end(callback);\n *\n * @param {String|Object} field\n * @param {String} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.set = function(field, val){\n if (isObject(field)) {\n for (var key in field) {\n this.set(key, field[key]);\n }\n return this;\n }\n this._header[field.toLowerCase()] = val;\n this.header[field] = val;\n return this;\n};\n\n/**\n * Remove header `field`.\n * Case-insensitive.\n *\n * Example:\n *\n * req.get('/')\n * .unset('User-Agent')\n * .end(callback);\n *\n * @param {String} field\n */\nRequestBase.prototype.unset = function(field){\n delete this._header[field.toLowerCase()];\n delete this.header[field];\n return this;\n};\n\n/**\n * Write the field `name` and `val`, or multiple fields with one object\n * for \"multipart/form-data\" request bodies.\n *\n * ``` js\n * request.post('/upload')\n * .field('foo', 'bar')\n * .end(callback);\n *\n * request.post('/upload')\n * .field({ foo: 'bar', baz: 'qux' })\n * .end(callback);\n * ```\n *\n * @param {String|Object} name\n * @param {String|Blob|File|Buffer|fs.ReadStream} val\n * @return {Request} for chaining\n * @api public\n */\nRequestBase.prototype.field = function(name, val) {\n // name should be either a string or an object.\n if (null === name || undefined === name) {\n throw new Error('.field(name, val) name can not be empty');\n }\n\n if (this._data) {\n console.error(\".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()\");\n }\n\n if (isObject(name)) {\n for (var key in name) {\n this.field(key, name[key]);\n }\n return this;\n }\n\n if (Array.isArray(val)) {\n for (var i in val) {\n this.field(name, val[i]);\n }\n return this;\n }\n\n // val should be defined now\n if (null === val || undefined === val) {\n throw new Error('.field(name, val) val can not be empty');\n }\n if ('boolean' === typeof val) {\n val = '' + val;\n }\n this._getFormData().append(name, val);\n return this;\n};\n\n/**\n * Abort the request, and clear potential timeout.\n *\n * @return {Request}\n * @api public\n */\nRequestBase.prototype.abort = function(){\n if (this._aborted) {\n return this;\n }\n this._aborted = true;\n this.xhr && this.xhr.abort(); // browser\n this.req && this.req.abort(); // node\n this.clearTimeout();\n this.emit('abort');\n return this;\n};\n\nRequestBase.prototype._auth = function(user, pass, options, base64Encoder) {\n switch (options.type) {\n case 'basic':\n this.set('Authorization', 'Basic ' + base64Encoder(user + ':' + pass));\n break;\n\n case 'auto':\n this.username = user;\n this.password = pass;\n break;\n\n case 'bearer': // usage would be .auth(accessToken, { type: 'bearer' })\n this.set('Authorization', 'Bearer ' + user);\n break;\n }\n return this;\n};\n\n/**\n * Enable transmission of cookies with x-domain requests.\n *\n * Note that for this to work the origin must not be\n * using \"Access-Control-Allow-Origin\" with a wildcard,\n * and also must set \"Access-Control-Allow-Credentials\"\n * to \"true\".\n *\n * @api public\n */\n\nRequestBase.prototype.withCredentials = function(on) {\n // This is browser-only functionality. Node side is no-op.\n if (on == undefined) on = true;\n this._withCredentials = on;\n return this;\n};\n\n/**\n * Set the max redirects to `n`. Does noting in browser XHR implementation.\n *\n * @param {Number} n\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.redirects = function(n){\n this._maxRedirects = n;\n return this;\n};\n\n/**\n * Maximum size of buffered response body, in bytes. Counts uncompressed size.\n * Default 200MB.\n *\n * @param {Number} n\n * @return {Request} for chaining\n */\nRequestBase.prototype.maxResponseSize = function(n){\n if ('number' !== typeof n) {\n throw TypeError(\"Invalid argument\");\n }\n this._maxResponseSize = n;\n return this;\n};\n\n/**\n * Convert to a plain javascript object (not JSON string) of scalar properties.\n * Note as this method is designed to return a useful non-this value,\n * it cannot be chained.\n *\n * @return {Object} describing method, url, and data of this request\n * @api public\n */\n\nRequestBase.prototype.toJSON = function() {\n return {\n method: this.method,\n url: this.url,\n data: this._data,\n headers: this._header,\n };\n};\n\n/**\n * Send `data` as the request body, defaulting the `.type()` to \"json\" when\n * an object is given.\n *\n * Examples:\n *\n * // manual json\n * request.post('/user')\n * .type('json')\n * .send('{\"name\":\"tj\"}')\n * .end(callback)\n *\n * // auto json\n * request.post('/user')\n * .send({ name: 'tj' })\n * .end(callback)\n *\n * // manual x-www-form-urlencoded\n * request.post('/user')\n * .type('form')\n * .send('name=tj')\n * .end(callback)\n *\n * // auto x-www-form-urlencoded\n * request.post('/user')\n * .type('form')\n * .send({ name: 'tj' })\n * .end(callback)\n *\n * // defaults to x-www-form-urlencoded\n * request.post('/user')\n * .send('name=tobi')\n * .send('species=ferret')\n * .end(callback)\n *\n * @param {String|Object} data\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.send = function(data){\n var isObj = isObject(data);\n var type = this._header['content-type'];\n\n if (this._formData) {\n console.error(\".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()\");\n }\n\n if (isObj && !this._data) {\n if (Array.isArray(data)) {\n this._data = [];\n } else if (!this._isHost(data)) {\n this._data = {};\n }\n } else if (data && this._data && this._isHost(this._data)) {\n throw Error(\"Can't merge these send calls\");\n }\n\n // merge\n if (isObj && isObject(this._data)) {\n for (var key in data) {\n this._data[key] = data[key];\n }\n } else if ('string' == typeof data) {\n // default to x-www-form-urlencoded\n if (!type) this.type('form');\n type = this._header['content-type'];\n if ('application/x-www-form-urlencoded' == type) {\n this._data = this._data\n ? this._data + '&' + data\n : data;\n } else {\n this._data = (this._data || '') + data;\n }\n } else {\n this._data = data;\n }\n\n if (!isObj || this._isHost(data)) {\n return this;\n }\n\n // default to json\n if (!type) this.type('json');\n return this;\n};\n\n/**\n * Sort `querystring` by the sort function\n *\n *\n * Examples:\n *\n * // default order\n * request.get('/user')\n * .query('name=Nick')\n * .query('search=Manny')\n * .sortQuery()\n * .end(callback)\n *\n * // customized sort function\n * request.get('/user')\n * .query('name=Nick')\n * .query('search=Manny')\n * .sortQuery(function(a, b){\n * return a.length - b.length;\n * })\n * .end(callback)\n *\n *\n * @param {Function} sort\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.sortQuery = function(sort) {\n // _sort default to true but otherwise can be a function or boolean\n this._sort = typeof sort === 'undefined' ? true : sort;\n return this;\n};\n\n/**\n * Compose querystring to append to req.url\n *\n * @api private\n */\nRequestBase.prototype._finalizeQueryString = function(){\n var query = this._query.join('&');\n if (query) {\n this.url += (this.url.indexOf('?') >= 0 ? '&' : '?') + query;\n }\n this._query.length = 0; // Makes the call idempotent\n\n if (this._sort) {\n var index = this.url.indexOf('?');\n if (index >= 0) {\n var queryArr = this.url.substring(index + 1).split('&');\n if ('function' === typeof this._sort) {\n queryArr.sort(this._sort);\n } else {\n queryArr.sort();\n }\n this.url = this.url.substring(0, index) + '?' + queryArr.join('&');\n }\n }\n};\n\n// For backwards compat only\nRequestBase.prototype._appendQueryString = function() {console.trace(\"Unsupported\");}\n\n/**\n * Invoke callback with timeout error.\n *\n * @api private\n */\n\nRequestBase.prototype._timeoutError = function(reason, timeout, errno){\n if (this._aborted) {\n return;\n }\n var err = new Error(reason + timeout + 'ms exceeded');\n err.timeout = timeout;\n err.code = 'ECONNABORTED';\n err.errno = errno;\n this.timedout = true;\n this.abort();\n this.callback(err);\n};\n\nRequestBase.prototype._setTimeouts = function() {\n var self = this;\n\n // deadline\n if (this._timeout && !this._timer) {\n this._timer = setTimeout(function(){\n self._timeoutError('Timeout of ', self._timeout, 'ETIME');\n }, this._timeout);\n }\n // response timeout\n if (this._responseTimeout && !this._responseTimeoutTimer) {\n this._responseTimeoutTimer = setTimeout(function(){\n self._timeoutError('Response timeout of ', self._responseTimeout, 'ETIMEDOUT');\n }, this._responseTimeout);\n }\n};\n\n\n//# sourceURL=webpack:///./node_modules/superagent/lib/request-base.js?");
598
+
599
+ /***/ }),
600
+
601
+ /***/ "./node_modules/superagent/lib/response-base.js":
602
+ /*!******************************************************!*\
603
+ !*** ./node_modules/superagent/lib/response-base.js ***!
604
+ \******************************************************/
605
+ /*! no static exports found */
606
+ /***/ (function(module, exports, __webpack_require__) {
607
+
608
+ "use strict";
609
+ eval("\n\n/**\n * Module dependencies.\n */\n\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/superagent/lib/utils.js\");\n\n/**\n * Expose `ResponseBase`.\n */\n\nmodule.exports = ResponseBase;\n\n/**\n * Initialize a new `ResponseBase`.\n *\n * @api public\n */\n\nfunction ResponseBase(obj) {\n if (obj) return mixin(obj);\n}\n\n/**\n * Mixin the prototype properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in ResponseBase.prototype) {\n obj[key] = ResponseBase.prototype[key];\n }\n return obj;\n}\n\n/**\n * Get case-insensitive `field` value.\n *\n * @param {String} field\n * @return {String}\n * @api public\n */\n\nResponseBase.prototype.get = function(field) {\n return this.header[field.toLowerCase()];\n};\n\n/**\n * Set header related properties:\n *\n * - `.type` the content type without params\n *\n * A response of \"Content-Type: text/plain; charset=utf-8\"\n * will provide you with a `.type` of \"text/plain\".\n *\n * @param {Object} header\n * @api private\n */\n\nResponseBase.prototype._setHeaderProperties = function(header){\n // TODO: moar!\n // TODO: make this a util\n\n // content-type\n var ct = header['content-type'] || '';\n this.type = utils.type(ct);\n\n // params\n var params = utils.params(ct);\n for (var key in params) this[key] = params[key];\n\n this.links = {};\n\n // links\n try {\n if (header.link) {\n this.links = utils.parseLinks(header.link);\n }\n } catch (err) {\n // ignore\n }\n};\n\n/**\n * Set flags such as `.ok` based on `status`.\n *\n * For example a 2xx response will give you a `.ok` of __true__\n * whereas 5xx will be __false__ and `.error` will be __true__. The\n * `.clientError` and `.serverError` are also available to be more\n * specific, and `.statusType` is the class of error ranging from 1..5\n * sometimes useful for mapping respond colors etc.\n *\n * \"sugar\" properties are also defined for common cases. Currently providing:\n *\n * - .noContent\n * - .badRequest\n * - .unauthorized\n * - .notAcceptable\n * - .notFound\n *\n * @param {Number} status\n * @api private\n */\n\nResponseBase.prototype._setStatusProperties = function(status){\n var type = status / 100 | 0;\n\n // status / class\n this.status = this.statusCode = status;\n this.statusType = type;\n\n // basics\n this.info = 1 == type;\n this.ok = 2 == type;\n this.redirect = 3 == type;\n this.clientError = 4 == type;\n this.serverError = 5 == type;\n this.error = (4 == type || 5 == type)\n ? this.toError()\n : false;\n\n // sugar\n this.created = 201 == status;\n this.accepted = 202 == status;\n this.noContent = 204 == status;\n this.badRequest = 400 == status;\n this.unauthorized = 401 == status;\n this.notAcceptable = 406 == status;\n this.forbidden = 403 == status;\n this.notFound = 404 == status;\n this.unprocessableEntity = 422 == status;\n};\n\n\n//# sourceURL=webpack:///./node_modules/superagent/lib/response-base.js?");
610
+
611
+ /***/ }),
612
+
613
+ /***/ "./node_modules/superagent/lib/utils.js":
614
+ /*!**********************************************!*\
615
+ !*** ./node_modules/superagent/lib/utils.js ***!
616
+ \**********************************************/
617
+ /*! no static exports found */
618
+ /***/ (function(module, exports, __webpack_require__) {
619
+
620
+ "use strict";
621
+ eval("\n\n/**\n * Return the mime type for the given `str`.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\n\nexports.type = function(str){\n return str.split(/ *; */).shift();\n};\n\n/**\n * Return header field parameters.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nexports.params = function(str){\n return str.split(/ *; */).reduce(function(obj, str){\n var parts = str.split(/ *= */);\n var key = parts.shift();\n var val = parts.shift();\n\n if (key && val) obj[key] = val;\n return obj;\n }, {});\n};\n\n/**\n * Parse Link header fields.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nexports.parseLinks = function(str){\n return str.split(/ *, */).reduce(function(obj, str){\n var parts = str.split(/ *; */);\n var url = parts[0].slice(1, -1);\n var rel = parts[1].split(/ *= */)[1].slice(1, -1);\n obj[rel] = url;\n return obj;\n }, {});\n};\n\n/**\n * Strip content related fields from `header`.\n *\n * @param {Object} header\n * @return {Object} header\n * @api private\n */\n\nexports.cleanHeader = function(header, changesOrigin){\n delete header['content-type'];\n delete header['content-length'];\n delete header['transfer-encoding'];\n delete header['host'];\n // secuirty\n if (changesOrigin) {\n delete header['authorization'];\n delete header['cookie'];\n }\n return header;\n};\n\n\n//# sourceURL=webpack:///./node_modules/superagent/lib/utils.js?");
622
+
623
+ /***/ }),
624
+
625
+ /***/ "./node_modules/timers-browserify/main.js":
626
+ /*!************************************************!*\
627
+ !*** ./node_modules/timers-browserify/main.js ***!
628
+ \************************************************/
629
+ /*! no static exports found */
630
+ /***/ (function(module, exports, __webpack_require__) {
631
+
632
+ eval("/* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== \"undefined\" && global) ||\n (typeof self !== \"undefined\" && self) ||\n window;\nvar apply = Function.prototype.apply;\n\n// DOM APIs, for completeness\n\nexports.setTimeout = function() {\n return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);\n};\nexports.setInterval = function() {\n return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);\n};\nexports.clearTimeout =\nexports.clearInterval = function(timeout) {\n if (timeout) {\n timeout.close();\n }\n};\n\nfunction Timeout(id, clearFn) {\n this._id = id;\n this._clearFn = clearFn;\n}\nTimeout.prototype.unref = Timeout.prototype.ref = function() {};\nTimeout.prototype.close = function() {\n this._clearFn.call(scope, this._id);\n};\n\n// Does not start the time, just sets up the members needed.\nexports.enroll = function(item, msecs) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = msecs;\n};\n\nexports.unenroll = function(item) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = -1;\n};\n\nexports._unrefActive = exports.active = function(item) {\n clearTimeout(item._idleTimeoutId);\n\n var msecs = item._idleTimeout;\n if (msecs >= 0) {\n item._idleTimeoutId = setTimeout(function onTimeout() {\n if (item._onTimeout)\n item._onTimeout();\n }, msecs);\n }\n};\n\n// setimmediate attaches itself to the global object\n__webpack_require__(/*! setimmediate */ \"./node_modules/setimmediate/setImmediate.js\");\n// On some exotic environments, it's not clear which object `setimmediate` was\n// able to install onto. Search each possibility in the same order as the\n// `setimmediate` library.\nexports.setImmediate = (typeof self !== \"undefined\" && self.setImmediate) ||\n (typeof global !== \"undefined\" && global.setImmediate) ||\n (this && this.setImmediate);\nexports.clearImmediate = (typeof self !== \"undefined\" && self.clearImmediate) ||\n (typeof global !== \"undefined\" && global.clearImmediate) ||\n (this && this.clearImmediate);\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/timers-browserify/main.js?");
633
+
634
+ /***/ }),
635
+
636
+ /***/ "./node_modules/util-deprecate/browser.js":
637
+ /*!************************************************!*\
638
+ !*** ./node_modules/util-deprecate/browser.js ***!
639
+ \************************************************/
640
+ /*! no static exports found */
641
+ /***/ (function(module, exports, __webpack_require__) {
642
+
643
+ eval("/* WEBPACK VAR INJECTION */(function(global) {\n/**\n * Module exports.\n */\n\nmodule.exports = deprecate;\n\n/**\n * Mark that a method should not be used.\n * Returns a modified function which warns once by default.\n *\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\n *\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\n * will throw an Error when invoked.\n *\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\n * will invoke `console.trace()` instead of `console.error()`.\n *\n * @param {Function} fn - the function to deprecate\n * @param {String} msg - the string to print to the console when `fn` is invoked\n * @returns {Function} a new \"deprecated\" version of `fn`\n * @api public\n */\n\nfunction deprecate (fn, msg) {\n if (config('noDeprecation')) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (config('throwDeprecation')) {\n throw new Error(msg);\n } else if (config('traceDeprecation')) {\n console.trace(msg);\n } else {\n console.warn(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n}\n\n/**\n * Checks `localStorage` for boolean values for the given `name`.\n *\n * @param {String} name\n * @returns {Boolean}\n * @api private\n */\n\nfunction config (name) {\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\n try {\n if (!global.localStorage) return false;\n } catch (_) {\n return false;\n }\n var val = global.localStorage[name];\n if (null == val) return false;\n return String(val).toLowerCase() === 'true';\n}\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/util-deprecate/browser.js?");
644
+
645
+ /***/ }),
646
+
647
+ /***/ "./node_modules/webpack/buildin/global.js":
648
+ /*!***********************************!*\
649
+ !*** (webpack)/buildin/global.js ***!
650
+ \***********************************/
651
+ /*! no static exports found */
652
+ /***/ (function(module, exports) {
653
+
654
+ eval("var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n\n//# sourceURL=webpack:///(webpack)/buildin/global.js?");
655
+
656
+ /***/ }),
657
+
658
+ /***/ "./node_modules/xml2js/lib/bom.js":
659
+ /*!****************************************!*\
660
+ !*** ./node_modules/xml2js/lib/bom.js ***!
661
+ \****************************************/
662
+ /*! no static exports found */
663
+ /***/ (function(module, exports) {
664
+
665
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n \"use strict\";\n exports.stripBOM = function(str) {\n if (str[0] === '\\uFEFF') {\n return str.substring(1);\n } else {\n return str;\n }\n };\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xml2js/lib/bom.js?");
666
+
667
+ /***/ }),
668
+
669
+ /***/ "./node_modules/xml2js/lib/builder.js":
670
+ /*!********************************************!*\
671
+ !*** ./node_modules/xml2js/lib/builder.js ***!
672
+ \********************************************/
673
+ /*! no static exports found */
674
+ /***/ (function(module, exports, __webpack_require__) {
675
+
676
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n \"use strict\";\n var builder, defaults, escapeCDATA, requiresCDATA, wrapCDATA,\n hasProp = {}.hasOwnProperty;\n\n builder = __webpack_require__(/*! xmlbuilder */ \"./node_modules/xmlbuilder/lib/index.js\");\n\n defaults = __webpack_require__(/*! ./defaults */ \"./node_modules/xml2js/lib/defaults.js\").defaults;\n\n requiresCDATA = function(entry) {\n return typeof entry === \"string\" && (entry.indexOf('&') >= 0 || entry.indexOf('>') >= 0 || entry.indexOf('<') >= 0);\n };\n\n wrapCDATA = function(entry) {\n return \"<![CDATA[\" + (escapeCDATA(entry)) + \"]]>\";\n };\n\n escapeCDATA = function(entry) {\n return entry.replace(']]>', ']]]]><![CDATA[>');\n };\n\n exports.Builder = (function() {\n function Builder(opts) {\n var key, ref, value;\n this.options = {};\n ref = defaults[\"0.2\"];\n for (key in ref) {\n if (!hasProp.call(ref, key)) continue;\n value = ref[key];\n this.options[key] = value;\n }\n for (key in opts) {\n if (!hasProp.call(opts, key)) continue;\n value = opts[key];\n this.options[key] = value;\n }\n }\n\n Builder.prototype.buildObject = function(rootObj) {\n var attrkey, charkey, render, rootElement, rootName;\n attrkey = this.options.attrkey;\n charkey = this.options.charkey;\n if ((Object.keys(rootObj).length === 1) && (this.options.rootName === defaults['0.2'].rootName)) {\n rootName = Object.keys(rootObj)[0];\n rootObj = rootObj[rootName];\n } else {\n rootName = this.options.rootName;\n }\n render = (function(_this) {\n return function(element, obj) {\n var attr, child, entry, index, key, value;\n if (typeof obj !== 'object') {\n if (_this.options.cdata && requiresCDATA(obj)) {\n element.raw(wrapCDATA(obj));\n } else {\n element.txt(obj);\n }\n } else if (Array.isArray(obj)) {\n for (index in obj) {\n if (!hasProp.call(obj, index)) continue;\n child = obj[index];\n for (key in child) {\n entry = child[key];\n element = render(element.ele(key), entry).up();\n }\n }\n } else {\n for (key in obj) {\n if (!hasProp.call(obj, key)) continue;\n child = obj[key];\n if (key === attrkey) {\n if (typeof child === \"object\") {\n for (attr in child) {\n value = child[attr];\n element = element.att(attr, value);\n }\n }\n } else if (key === charkey) {\n if (_this.options.cdata && requiresCDATA(child)) {\n element = element.raw(wrapCDATA(child));\n } else {\n element = element.txt(child);\n }\n } else if (Array.isArray(child)) {\n for (index in child) {\n if (!hasProp.call(child, index)) continue;\n entry = child[index];\n if (typeof entry === 'string') {\n if (_this.options.cdata && requiresCDATA(entry)) {\n element = element.ele(key).raw(wrapCDATA(entry)).up();\n } else {\n element = element.ele(key, entry).up();\n }\n } else {\n element = render(element.ele(key), entry).up();\n }\n }\n } else if (typeof child === \"object\") {\n element = render(element.ele(key), child).up();\n } else {\n if (typeof child === 'string' && _this.options.cdata && requiresCDATA(child)) {\n element = element.ele(key).raw(wrapCDATA(child)).up();\n } else {\n if (child == null) {\n child = '';\n }\n element = element.ele(key, child.toString()).up();\n }\n }\n }\n }\n return element;\n };\n })(this);\n rootElement = builder.create(rootName, this.options.xmldec, this.options.doctype, {\n headless: this.options.headless,\n allowSurrogateChars: this.options.allowSurrogateChars\n });\n return render(rootElement, rootObj).end(this.options.renderOpts);\n };\n\n return Builder;\n\n })();\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xml2js/lib/builder.js?");
677
+
678
+ /***/ }),
679
+
680
+ /***/ "./node_modules/xml2js/lib/defaults.js":
681
+ /*!*********************************************!*\
682
+ !*** ./node_modules/xml2js/lib/defaults.js ***!
683
+ \*********************************************/
684
+ /*! no static exports found */
685
+ /***/ (function(module, exports) {
686
+
687
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n exports.defaults = {\n \"0.1\": {\n explicitCharkey: false,\n trim: true,\n normalize: true,\n normalizeTags: false,\n attrkey: \"@\",\n charkey: \"#\",\n explicitArray: false,\n ignoreAttrs: false,\n mergeAttrs: false,\n explicitRoot: false,\n validator: null,\n xmlns: false,\n explicitChildren: false,\n childkey: '@@',\n charsAsChildren: false,\n includeWhiteChars: false,\n async: false,\n strict: true,\n attrNameProcessors: null,\n attrValueProcessors: null,\n tagNameProcessors: null,\n valueProcessors: null,\n emptyTag: ''\n },\n \"0.2\": {\n explicitCharkey: false,\n trim: false,\n normalize: false,\n normalizeTags: false,\n attrkey: \"$\",\n charkey: \"_\",\n explicitArray: true,\n ignoreAttrs: false,\n mergeAttrs: false,\n explicitRoot: true,\n validator: null,\n xmlns: false,\n explicitChildren: false,\n preserveChildrenOrder: false,\n childkey: '$$',\n charsAsChildren: false,\n includeWhiteChars: false,\n async: false,\n strict: true,\n attrNameProcessors: null,\n attrValueProcessors: null,\n tagNameProcessors: null,\n valueProcessors: null,\n rootName: 'root',\n xmldec: {\n 'version': '1.0',\n 'encoding': 'UTF-8',\n 'standalone': true\n },\n doctype: null,\n renderOpts: {\n 'pretty': true,\n 'indent': ' ',\n 'newline': '\\n'\n },\n headless: false,\n chunkSize: 10000,\n emptyTag: '',\n cdata: false\n }\n };\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xml2js/lib/defaults.js?");
688
+
689
+ /***/ }),
690
+
691
+ /***/ "./node_modules/xml2js/lib/parser.js":
692
+ /*!*******************************************!*\
693
+ !*** ./node_modules/xml2js/lib/parser.js ***!
694
+ \*******************************************/
695
+ /*! no static exports found */
696
+ /***/ (function(module, exports, __webpack_require__) {
697
+
698
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n \"use strict\";\n var bom, defaults, events, isEmpty, processItem, processors, sax, setImmediate,\n bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n sax = __webpack_require__(/*! sax */ \"./node_modules/sax/lib/sax.js\");\n\n events = __webpack_require__(/*! events */ \"./node_modules/events/events.js\");\n\n bom = __webpack_require__(/*! ./bom */ \"./node_modules/xml2js/lib/bom.js\");\n\n processors = __webpack_require__(/*! ./processors */ \"./node_modules/xml2js/lib/processors.js\");\n\n setImmediate = __webpack_require__(/*! timers */ \"./node_modules/timers-browserify/main.js\").setImmediate;\n\n defaults = __webpack_require__(/*! ./defaults */ \"./node_modules/xml2js/lib/defaults.js\").defaults;\n\n isEmpty = function(thing) {\n return typeof thing === \"object\" && (thing != null) && Object.keys(thing).length === 0;\n };\n\n processItem = function(processors, item, key) {\n var i, len, process;\n for (i = 0, len = processors.length; i < len; i++) {\n process = processors[i];\n item = process(item, key);\n }\n return item;\n };\n\n exports.Parser = (function(superClass) {\n extend(Parser, superClass);\n\n function Parser(opts) {\n this.parseStringPromise = bind(this.parseStringPromise, this);\n this.parseString = bind(this.parseString, this);\n this.reset = bind(this.reset, this);\n this.assignOrPush = bind(this.assignOrPush, this);\n this.processAsync = bind(this.processAsync, this);\n var key, ref, value;\n if (!(this instanceof exports.Parser)) {\n return new exports.Parser(opts);\n }\n this.options = {};\n ref = defaults[\"0.2\"];\n for (key in ref) {\n if (!hasProp.call(ref, key)) continue;\n value = ref[key];\n this.options[key] = value;\n }\n for (key in opts) {\n if (!hasProp.call(opts, key)) continue;\n value = opts[key];\n this.options[key] = value;\n }\n if (this.options.xmlns) {\n this.options.xmlnskey = this.options.attrkey + \"ns\";\n }\n if (this.options.normalizeTags) {\n if (!this.options.tagNameProcessors) {\n this.options.tagNameProcessors = [];\n }\n this.options.tagNameProcessors.unshift(processors.normalize);\n }\n this.reset();\n }\n\n Parser.prototype.processAsync = function() {\n var chunk, err;\n try {\n if (this.remaining.length <= this.options.chunkSize) {\n chunk = this.remaining;\n this.remaining = '';\n this.saxParser = this.saxParser.write(chunk);\n return this.saxParser.close();\n } else {\n chunk = this.remaining.substr(0, this.options.chunkSize);\n this.remaining = this.remaining.substr(this.options.chunkSize, this.remaining.length);\n this.saxParser = this.saxParser.write(chunk);\n return setImmediate(this.processAsync);\n }\n } catch (error1) {\n err = error1;\n if (!this.saxParser.errThrown) {\n this.saxParser.errThrown = true;\n return this.emit(err);\n }\n }\n };\n\n Parser.prototype.assignOrPush = function(obj, key, newValue) {\n if (!(key in obj)) {\n if (!this.options.explicitArray) {\n return obj[key] = newValue;\n } else {\n return obj[key] = [newValue];\n }\n } else {\n if (!(obj[key] instanceof Array)) {\n obj[key] = [obj[key]];\n }\n return obj[key].push(newValue);\n }\n };\n\n Parser.prototype.reset = function() {\n var attrkey, charkey, ontext, stack;\n this.removeAllListeners();\n this.saxParser = sax.parser(this.options.strict, {\n trim: false,\n normalize: false,\n xmlns: this.options.xmlns\n });\n this.saxParser.errThrown = false;\n this.saxParser.onerror = (function(_this) {\n return function(error) {\n _this.saxParser.resume();\n if (!_this.saxParser.errThrown) {\n _this.saxParser.errThrown = true;\n return _this.emit(\"error\", error);\n }\n };\n })(this);\n this.saxParser.onend = (function(_this) {\n return function() {\n if (!_this.saxParser.ended) {\n _this.saxParser.ended = true;\n return _this.emit(\"end\", _this.resultObject);\n }\n };\n })(this);\n this.saxParser.ended = false;\n this.EXPLICIT_CHARKEY = this.options.explicitCharkey;\n this.resultObject = null;\n stack = [];\n attrkey = this.options.attrkey;\n charkey = this.options.charkey;\n this.saxParser.onopentag = (function(_this) {\n return function(node) {\n var key, newValue, obj, processedKey, ref;\n obj = {};\n obj[charkey] = \"\";\n if (!_this.options.ignoreAttrs) {\n ref = node.attributes;\n for (key in ref) {\n if (!hasProp.call(ref, key)) continue;\n if (!(attrkey in obj) && !_this.options.mergeAttrs) {\n obj[attrkey] = {};\n }\n newValue = _this.options.attrValueProcessors ? processItem(_this.options.attrValueProcessors, node.attributes[key], key) : node.attributes[key];\n processedKey = _this.options.attrNameProcessors ? processItem(_this.options.attrNameProcessors, key) : key;\n if (_this.options.mergeAttrs) {\n _this.assignOrPush(obj, processedKey, newValue);\n } else {\n obj[attrkey][processedKey] = newValue;\n }\n }\n }\n obj[\"#name\"] = _this.options.tagNameProcessors ? processItem(_this.options.tagNameProcessors, node.name) : node.name;\n if (_this.options.xmlns) {\n obj[_this.options.xmlnskey] = {\n uri: node.uri,\n local: node.local\n };\n }\n return stack.push(obj);\n };\n })(this);\n this.saxParser.onclosetag = (function(_this) {\n return function() {\n var cdata, emptyStr, key, node, nodeName, obj, objClone, old, s, xpath;\n obj = stack.pop();\n nodeName = obj[\"#name\"];\n if (!_this.options.explicitChildren || !_this.options.preserveChildrenOrder) {\n delete obj[\"#name\"];\n }\n if (obj.cdata === true) {\n cdata = obj.cdata;\n delete obj.cdata;\n }\n s = stack[stack.length - 1];\n if (obj[charkey].match(/^\\s*$/) && !cdata) {\n emptyStr = obj[charkey];\n delete obj[charkey];\n } else {\n if (_this.options.trim) {\n obj[charkey] = obj[charkey].trim();\n }\n if (_this.options.normalize) {\n obj[charkey] = obj[charkey].replace(/\\s{2,}/g, \" \").trim();\n }\n obj[charkey] = _this.options.valueProcessors ? processItem(_this.options.valueProcessors, obj[charkey], nodeName) : obj[charkey];\n if (Object.keys(obj).length === 1 && charkey in obj && !_this.EXPLICIT_CHARKEY) {\n obj = obj[charkey];\n }\n }\n if (isEmpty(obj)) {\n obj = _this.options.emptyTag !== '' ? _this.options.emptyTag : emptyStr;\n }\n if (_this.options.validator != null) {\n xpath = \"/\" + ((function() {\n var i, len, results;\n results = [];\n for (i = 0, len = stack.length; i < len; i++) {\n node = stack[i];\n results.push(node[\"#name\"]);\n }\n return results;\n })()).concat(nodeName).join(\"/\");\n (function() {\n var err;\n try {\n return obj = _this.options.validator(xpath, s && s[nodeName], obj);\n } catch (error1) {\n err = error1;\n return _this.emit(\"error\", err);\n }\n })();\n }\n if (_this.options.explicitChildren && !_this.options.mergeAttrs && typeof obj === 'object') {\n if (!_this.options.preserveChildrenOrder) {\n node = {};\n if (_this.options.attrkey in obj) {\n node[_this.options.attrkey] = obj[_this.options.attrkey];\n delete obj[_this.options.attrkey];\n }\n if (!_this.options.charsAsChildren && _this.options.charkey in obj) {\n node[_this.options.charkey] = obj[_this.options.charkey];\n delete obj[_this.options.charkey];\n }\n if (Object.getOwnPropertyNames(obj).length > 0) {\n node[_this.options.childkey] = obj;\n }\n obj = node;\n } else if (s) {\n s[_this.options.childkey] = s[_this.options.childkey] || [];\n objClone = {};\n for (key in obj) {\n if (!hasProp.call(obj, key)) continue;\n objClone[key] = obj[key];\n }\n s[_this.options.childkey].push(objClone);\n delete obj[\"#name\"];\n if (Object.keys(obj).length === 1 && charkey in obj && !_this.EXPLICIT_CHARKEY) {\n obj = obj[charkey];\n }\n }\n }\n if (stack.length > 0) {\n return _this.assignOrPush(s, nodeName, obj);\n } else {\n if (_this.options.explicitRoot) {\n old = obj;\n obj = {};\n obj[nodeName] = old;\n }\n _this.resultObject = obj;\n _this.saxParser.ended = true;\n return _this.emit(\"end\", _this.resultObject);\n }\n };\n })(this);\n ontext = (function(_this) {\n return function(text) {\n var charChild, s;\n s = stack[stack.length - 1];\n if (s) {\n s[charkey] += text;\n if (_this.options.explicitChildren && _this.options.preserveChildrenOrder && _this.options.charsAsChildren && (_this.options.includeWhiteChars || text.replace(/\\\\n/g, '').trim() !== '')) {\n s[_this.options.childkey] = s[_this.options.childkey] || [];\n charChild = {\n '#name': '__text__'\n };\n charChild[charkey] = text;\n if (_this.options.normalize) {\n charChild[charkey] = charChild[charkey].replace(/\\s{2,}/g, \" \").trim();\n }\n s[_this.options.childkey].push(charChild);\n }\n return s;\n }\n };\n })(this);\n this.saxParser.ontext = ontext;\n return this.saxParser.oncdata = (function(_this) {\n return function(text) {\n var s;\n s = ontext(text);\n if (s) {\n return s.cdata = true;\n }\n };\n })(this);\n };\n\n Parser.prototype.parseString = function(str, cb) {\n var err;\n if ((cb != null) && typeof cb === \"function\") {\n this.on(\"end\", function(result) {\n this.reset();\n return cb(null, result);\n });\n this.on(\"error\", function(err) {\n this.reset();\n return cb(err);\n });\n }\n try {\n str = str.toString();\n if (str.trim() === '') {\n this.emit(\"end\", null);\n return true;\n }\n str = bom.stripBOM(str);\n if (this.options.async) {\n this.remaining = str;\n setImmediate(this.processAsync);\n return this.saxParser;\n }\n return this.saxParser.write(str).close();\n } catch (error1) {\n err = error1;\n if (!(this.saxParser.errThrown || this.saxParser.ended)) {\n this.emit('error', err);\n return this.saxParser.errThrown = true;\n } else if (this.saxParser.ended) {\n throw err;\n }\n }\n };\n\n Parser.prototype.parseStringPromise = function(str) {\n return new Promise((function(_this) {\n return function(resolve, reject) {\n return _this.parseString(str, function(err, value) {\n if (err) {\n return reject(err);\n } else {\n return resolve(value);\n }\n });\n };\n })(this));\n };\n\n return Parser;\n\n })(events);\n\n exports.parseString = function(str, a, b) {\n var cb, options, parser;\n if (b != null) {\n if (typeof b === 'function') {\n cb = b;\n }\n if (typeof a === 'object') {\n options = a;\n }\n } else {\n if (typeof a === 'function') {\n cb = a;\n }\n options = {};\n }\n parser = new exports.Parser(options);\n return parser.parseString(str, cb);\n };\n\n exports.parseStringPromise = function(str, a) {\n var options, parser;\n if (typeof a === 'object') {\n options = a;\n }\n parser = new exports.Parser(options);\n return parser.parseStringPromise(str);\n };\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xml2js/lib/parser.js?");
699
+
700
+ /***/ }),
701
+
702
+ /***/ "./node_modules/xml2js/lib/processors.js":
703
+ /*!***********************************************!*\
704
+ !*** ./node_modules/xml2js/lib/processors.js ***!
705
+ \***********************************************/
706
+ /*! no static exports found */
707
+ /***/ (function(module, exports) {
708
+
709
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n \"use strict\";\n var prefixMatch;\n\n prefixMatch = new RegExp(/(?!xmlns)^.*:/);\n\n exports.normalize = function(str) {\n return str.toLowerCase();\n };\n\n exports.firstCharLowerCase = function(str) {\n return str.charAt(0).toLowerCase() + str.slice(1);\n };\n\n exports.stripPrefix = function(str) {\n return str.replace(prefixMatch, '');\n };\n\n exports.parseNumbers = function(str) {\n if (!isNaN(str)) {\n str = str % 1 === 0 ? parseInt(str, 10) : parseFloat(str);\n }\n return str;\n };\n\n exports.parseBooleans = function(str) {\n if (/^(?:true|false)$/i.test(str)) {\n str = str.toLowerCase() === 'true';\n }\n return str;\n };\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xml2js/lib/processors.js?");
710
+
711
+ /***/ }),
712
+
713
+ /***/ "./node_modules/xml2js/lib/xml2js.js":
714
+ /*!*******************************************!*\
715
+ !*** ./node_modules/xml2js/lib/xml2js.js ***!
716
+ \*******************************************/
717
+ /*! no static exports found */
718
+ /***/ (function(module, exports, __webpack_require__) {
719
+
720
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n \"use strict\";\n var builder, defaults, parser, processors,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n defaults = __webpack_require__(/*! ./defaults */ \"./node_modules/xml2js/lib/defaults.js\");\n\n builder = __webpack_require__(/*! ./builder */ \"./node_modules/xml2js/lib/builder.js\");\n\n parser = __webpack_require__(/*! ./parser */ \"./node_modules/xml2js/lib/parser.js\");\n\n processors = __webpack_require__(/*! ./processors */ \"./node_modules/xml2js/lib/processors.js\");\n\n exports.defaults = defaults.defaults;\n\n exports.processors = processors;\n\n exports.ValidationError = (function(superClass) {\n extend(ValidationError, superClass);\n\n function ValidationError(message) {\n this.message = message;\n }\n\n return ValidationError;\n\n })(Error);\n\n exports.Builder = builder.Builder;\n\n exports.Parser = parser.Parser;\n\n exports.parseString = parser.parseString;\n\n exports.parseStringPromise = parser.parseStringPromise;\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xml2js/lib/xml2js.js?");
721
+
722
+ /***/ }),
723
+
724
+ /***/ "./node_modules/xmlbuilder/lib/DocumentPosition.js":
725
+ /*!*********************************************************!*\
726
+ !*** ./node_modules/xmlbuilder/lib/DocumentPosition.js ***!
727
+ \*********************************************************/
728
+ /*! no static exports found */
729
+ /***/ (function(module, exports) {
730
+
731
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n module.exports = {\n Disconnected: 1,\n Preceding: 2,\n Following: 4,\n Contains: 8,\n ContainedBy: 16,\n ImplementationSpecific: 32\n };\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/DocumentPosition.js?");
732
+
733
+ /***/ }),
734
+
735
+ /***/ "./node_modules/xmlbuilder/lib/NodeType.js":
736
+ /*!*************************************************!*\
737
+ !*** ./node_modules/xmlbuilder/lib/NodeType.js ***!
738
+ \*************************************************/
739
+ /*! no static exports found */
740
+ /***/ (function(module, exports) {
741
+
742
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n module.exports = {\n Element: 1,\n Attribute: 2,\n Text: 3,\n CData: 4,\n EntityReference: 5,\n EntityDeclaration: 6,\n ProcessingInstruction: 7,\n Comment: 8,\n Document: 9,\n DocType: 10,\n DocumentFragment: 11,\n NotationDeclaration: 12,\n Declaration: 201,\n Raw: 202,\n AttributeDeclaration: 203,\n ElementDeclaration: 204,\n Dummy: 205\n };\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/NodeType.js?");
743
+
744
+ /***/ }),
745
+
746
+ /***/ "./node_modules/xmlbuilder/lib/Utility.js":
747
+ /*!************************************************!*\
748
+ !*** ./node_modules/xmlbuilder/lib/Utility.js ***!
749
+ \************************************************/
750
+ /*! no static exports found */
751
+ /***/ (function(module, exports) {
752
+
753
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var assign, getValue, isArray, isEmpty, isFunction, isObject, isPlainObject,\n slice = [].slice,\n hasProp = {}.hasOwnProperty;\n\n assign = function() {\n var i, key, len, source, sources, target;\n target = arguments[0], sources = 2 <= arguments.length ? slice.call(arguments, 1) : [];\n if (isFunction(Object.assign)) {\n Object.assign.apply(null, arguments);\n } else {\n for (i = 0, len = sources.length; i < len; i++) {\n source = sources[i];\n if (source != null) {\n for (key in source) {\n if (!hasProp.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n }\n }\n return target;\n };\n\n isFunction = function(val) {\n return !!val && Object.prototype.toString.call(val) === '[object Function]';\n };\n\n isObject = function(val) {\n var ref;\n return !!val && ((ref = typeof val) === 'function' || ref === 'object');\n };\n\n isArray = function(val) {\n if (isFunction(Array.isArray)) {\n return Array.isArray(val);\n } else {\n return Object.prototype.toString.call(val) === '[object Array]';\n }\n };\n\n isEmpty = function(val) {\n var key;\n if (isArray(val)) {\n return !val.length;\n } else {\n for (key in val) {\n if (!hasProp.call(val, key)) continue;\n return false;\n }\n return true;\n }\n };\n\n isPlainObject = function(val) {\n var ctor, proto;\n return isObject(val) && (proto = Object.getPrototypeOf(val)) && (ctor = proto.constructor) && (typeof ctor === 'function') && (ctor instanceof ctor) && (Function.prototype.toString.call(ctor) === Function.prototype.toString.call(Object));\n };\n\n getValue = function(obj) {\n if (isFunction(obj.valueOf)) {\n return obj.valueOf();\n } else {\n return obj;\n }\n };\n\n module.exports.assign = assign;\n\n module.exports.isFunction = isFunction;\n\n module.exports.isObject = isObject;\n\n module.exports.isArray = isArray;\n\n module.exports.isEmpty = isEmpty;\n\n module.exports.isPlainObject = isPlainObject;\n\n module.exports.getValue = getValue;\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/Utility.js?");
754
+
755
+ /***/ }),
756
+
757
+ /***/ "./node_modules/xmlbuilder/lib/WriterState.js":
758
+ /*!****************************************************!*\
759
+ !*** ./node_modules/xmlbuilder/lib/WriterState.js ***!
760
+ \****************************************************/
761
+ /*! no static exports found */
762
+ /***/ (function(module, exports) {
763
+
764
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n module.exports = {\n None: 0,\n OpenTag: 1,\n InsideTag: 2,\n CloseTag: 3\n };\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/WriterState.js?");
765
+
766
+ /***/ }),
767
+
768
+ /***/ "./node_modules/xmlbuilder/lib/XMLAttribute.js":
769
+ /*!*****************************************************!*\
770
+ !*** ./node_modules/xmlbuilder/lib/XMLAttribute.js ***!
771
+ \*****************************************************/
772
+ /*! no static exports found */
773
+ /***/ (function(module, exports, __webpack_require__) {
774
+
775
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, XMLAttribute, XMLNode;\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n XMLNode = __webpack_require__(/*! ./XMLNode */ \"./node_modules/xmlbuilder/lib/XMLNode.js\");\n\n module.exports = XMLAttribute = (function() {\n function XMLAttribute(parent, name, value) {\n this.parent = parent;\n if (this.parent) {\n this.options = this.parent.options;\n this.stringify = this.parent.stringify;\n }\n if (name == null) {\n throw new Error(\"Missing attribute name. \" + this.debugInfo(name));\n }\n this.name = this.stringify.name(name);\n this.value = this.stringify.attValue(value);\n this.type = NodeType.Attribute;\n this.isId = false;\n this.schemaTypeInfo = null;\n }\n\n Object.defineProperty(XMLAttribute.prototype, 'nodeType', {\n get: function() {\n return this.type;\n }\n });\n\n Object.defineProperty(XMLAttribute.prototype, 'ownerElement', {\n get: function() {\n return this.parent;\n }\n });\n\n Object.defineProperty(XMLAttribute.prototype, 'textContent', {\n get: function() {\n return this.value;\n },\n set: function(value) {\n return this.value = value || '';\n }\n });\n\n Object.defineProperty(XMLAttribute.prototype, 'namespaceURI', {\n get: function() {\n return '';\n }\n });\n\n Object.defineProperty(XMLAttribute.prototype, 'prefix', {\n get: function() {\n return '';\n }\n });\n\n Object.defineProperty(XMLAttribute.prototype, 'localName', {\n get: function() {\n return this.name;\n }\n });\n\n Object.defineProperty(XMLAttribute.prototype, 'specified', {\n get: function() {\n return true;\n }\n });\n\n XMLAttribute.prototype.clone = function() {\n return Object.create(this);\n };\n\n XMLAttribute.prototype.toString = function(options) {\n return this.options.writer.attribute(this, this.options.writer.filterOptions(options));\n };\n\n XMLAttribute.prototype.debugInfo = function(name) {\n name = name || this.name;\n if (name == null) {\n return \"parent: <\" + this.parent.name + \">\";\n } else {\n return \"attribute: {\" + name + \"}, parent: <\" + this.parent.name + \">\";\n }\n };\n\n XMLAttribute.prototype.isEqualNode = function(node) {\n if (node.namespaceURI !== this.namespaceURI) {\n return false;\n }\n if (node.prefix !== this.prefix) {\n return false;\n }\n if (node.localName !== this.localName) {\n return false;\n }\n if (node.value !== this.value) {\n return false;\n }\n return true;\n };\n\n return XMLAttribute;\n\n })();\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLAttribute.js?");
776
+
777
+ /***/ }),
778
+
779
+ /***/ "./node_modules/xmlbuilder/lib/XMLCData.js":
780
+ /*!*************************************************!*\
781
+ !*** ./node_modules/xmlbuilder/lib/XMLCData.js ***!
782
+ \*************************************************/
783
+ /*! no static exports found */
784
+ /***/ (function(module, exports, __webpack_require__) {
785
+
786
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, XMLCData, XMLCharacterData,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n XMLCharacterData = __webpack_require__(/*! ./XMLCharacterData */ \"./node_modules/xmlbuilder/lib/XMLCharacterData.js\");\n\n module.exports = XMLCData = (function(superClass) {\n extend(XMLCData, superClass);\n\n function XMLCData(parent, text) {\n XMLCData.__super__.constructor.call(this, parent);\n if (text == null) {\n throw new Error(\"Missing CDATA text. \" + this.debugInfo());\n }\n this.name = \"#cdata-section\";\n this.type = NodeType.CData;\n this.value = this.stringify.cdata(text);\n }\n\n XMLCData.prototype.clone = function() {\n return Object.create(this);\n };\n\n XMLCData.prototype.toString = function(options) {\n return this.options.writer.cdata(this, this.options.writer.filterOptions(options));\n };\n\n return XMLCData;\n\n })(XMLCharacterData);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLCData.js?");
787
+
788
+ /***/ }),
789
+
790
+ /***/ "./node_modules/xmlbuilder/lib/XMLCharacterData.js":
791
+ /*!*********************************************************!*\
792
+ !*** ./node_modules/xmlbuilder/lib/XMLCharacterData.js ***!
793
+ \*********************************************************/
794
+ /*! no static exports found */
795
+ /***/ (function(module, exports, __webpack_require__) {
796
+
797
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var XMLCharacterData, XMLNode,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n XMLNode = __webpack_require__(/*! ./XMLNode */ \"./node_modules/xmlbuilder/lib/XMLNode.js\");\n\n module.exports = XMLCharacterData = (function(superClass) {\n extend(XMLCharacterData, superClass);\n\n function XMLCharacterData(parent) {\n XMLCharacterData.__super__.constructor.call(this, parent);\n this.value = '';\n }\n\n Object.defineProperty(XMLCharacterData.prototype, 'data', {\n get: function() {\n return this.value;\n },\n set: function(value) {\n return this.value = value || '';\n }\n });\n\n Object.defineProperty(XMLCharacterData.prototype, 'length', {\n get: function() {\n return this.value.length;\n }\n });\n\n Object.defineProperty(XMLCharacterData.prototype, 'textContent', {\n get: function() {\n return this.value;\n },\n set: function(value) {\n return this.value = value || '';\n }\n });\n\n XMLCharacterData.prototype.clone = function() {\n return Object.create(this);\n };\n\n XMLCharacterData.prototype.substringData = function(offset, count) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLCharacterData.prototype.appendData = function(arg) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLCharacterData.prototype.insertData = function(offset, arg) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLCharacterData.prototype.deleteData = function(offset, count) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLCharacterData.prototype.replaceData = function(offset, count, arg) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLCharacterData.prototype.isEqualNode = function(node) {\n if (!XMLCharacterData.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) {\n return false;\n }\n if (node.data !== this.data) {\n return false;\n }\n return true;\n };\n\n return XMLCharacterData;\n\n })(XMLNode);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLCharacterData.js?");
798
+
799
+ /***/ }),
800
+
801
+ /***/ "./node_modules/xmlbuilder/lib/XMLComment.js":
802
+ /*!***************************************************!*\
803
+ !*** ./node_modules/xmlbuilder/lib/XMLComment.js ***!
804
+ \***************************************************/
805
+ /*! no static exports found */
806
+ /***/ (function(module, exports, __webpack_require__) {
807
+
808
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, XMLCharacterData, XMLComment,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n XMLCharacterData = __webpack_require__(/*! ./XMLCharacterData */ \"./node_modules/xmlbuilder/lib/XMLCharacterData.js\");\n\n module.exports = XMLComment = (function(superClass) {\n extend(XMLComment, superClass);\n\n function XMLComment(parent, text) {\n XMLComment.__super__.constructor.call(this, parent);\n if (text == null) {\n throw new Error(\"Missing comment text. \" + this.debugInfo());\n }\n this.name = \"#comment\";\n this.type = NodeType.Comment;\n this.value = this.stringify.comment(text);\n }\n\n XMLComment.prototype.clone = function() {\n return Object.create(this);\n };\n\n XMLComment.prototype.toString = function(options) {\n return this.options.writer.comment(this, this.options.writer.filterOptions(options));\n };\n\n return XMLComment;\n\n })(XMLCharacterData);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLComment.js?");
809
+
810
+ /***/ }),
811
+
812
+ /***/ "./node_modules/xmlbuilder/lib/XMLDOMConfiguration.js":
813
+ /*!************************************************************!*\
814
+ !*** ./node_modules/xmlbuilder/lib/XMLDOMConfiguration.js ***!
815
+ \************************************************************/
816
+ /*! no static exports found */
817
+ /***/ (function(module, exports, __webpack_require__) {
818
+
819
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var XMLDOMConfiguration, XMLDOMErrorHandler, XMLDOMStringList;\n\n XMLDOMErrorHandler = __webpack_require__(/*! ./XMLDOMErrorHandler */ \"./node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js\");\n\n XMLDOMStringList = __webpack_require__(/*! ./XMLDOMStringList */ \"./node_modules/xmlbuilder/lib/XMLDOMStringList.js\");\n\n module.exports = XMLDOMConfiguration = (function() {\n function XMLDOMConfiguration() {\n var clonedSelf;\n this.defaultParams = {\n \"canonical-form\": false,\n \"cdata-sections\": false,\n \"comments\": false,\n \"datatype-normalization\": false,\n \"element-content-whitespace\": true,\n \"entities\": true,\n \"error-handler\": new XMLDOMErrorHandler(),\n \"infoset\": true,\n \"validate-if-schema\": false,\n \"namespaces\": true,\n \"namespace-declarations\": true,\n \"normalize-characters\": false,\n \"schema-location\": '',\n \"schema-type\": '',\n \"split-cdata-sections\": true,\n \"validate\": false,\n \"well-formed\": true\n };\n this.params = clonedSelf = Object.create(this.defaultParams);\n }\n\n Object.defineProperty(XMLDOMConfiguration.prototype, 'parameterNames', {\n get: function() {\n return new XMLDOMStringList(Object.keys(this.defaultParams));\n }\n });\n\n XMLDOMConfiguration.prototype.getParameter = function(name) {\n if (this.params.hasOwnProperty(name)) {\n return this.params[name];\n } else {\n return null;\n }\n };\n\n XMLDOMConfiguration.prototype.canSetParameter = function(name, value) {\n return true;\n };\n\n XMLDOMConfiguration.prototype.setParameter = function(name, value) {\n if (value != null) {\n return this.params[name] = value;\n } else {\n return delete this.params[name];\n }\n };\n\n return XMLDOMConfiguration;\n\n })();\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLDOMConfiguration.js?");
820
+
821
+ /***/ }),
822
+
823
+ /***/ "./node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js":
824
+ /*!***********************************************************!*\
825
+ !*** ./node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js ***!
826
+ \***********************************************************/
827
+ /*! no static exports found */
828
+ /***/ (function(module, exports) {
829
+
830
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var XMLDOMErrorHandler;\n\n module.exports = XMLDOMErrorHandler = (function() {\n function XMLDOMErrorHandler() {}\n\n XMLDOMErrorHandler.prototype.handleError = function(error) {\n throw new Error(error);\n };\n\n return XMLDOMErrorHandler;\n\n })();\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js?");
831
+
832
+ /***/ }),
833
+
834
+ /***/ "./node_modules/xmlbuilder/lib/XMLDOMImplementation.js":
835
+ /*!*************************************************************!*\
836
+ !*** ./node_modules/xmlbuilder/lib/XMLDOMImplementation.js ***!
837
+ \*************************************************************/
838
+ /*! no static exports found */
839
+ /***/ (function(module, exports) {
840
+
841
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var XMLDOMImplementation;\n\n module.exports = XMLDOMImplementation = (function() {\n function XMLDOMImplementation() {}\n\n XMLDOMImplementation.prototype.hasFeature = function(feature, version) {\n return true;\n };\n\n XMLDOMImplementation.prototype.createDocumentType = function(qualifiedName, publicId, systemId) {\n throw new Error(\"This DOM method is not implemented.\");\n };\n\n XMLDOMImplementation.prototype.createDocument = function(namespaceURI, qualifiedName, doctype) {\n throw new Error(\"This DOM method is not implemented.\");\n };\n\n XMLDOMImplementation.prototype.createHTMLDocument = function(title) {\n throw new Error(\"This DOM method is not implemented.\");\n };\n\n XMLDOMImplementation.prototype.getFeature = function(feature, version) {\n throw new Error(\"This DOM method is not implemented.\");\n };\n\n return XMLDOMImplementation;\n\n })();\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLDOMImplementation.js?");
842
+
843
+ /***/ }),
844
+
845
+ /***/ "./node_modules/xmlbuilder/lib/XMLDOMStringList.js":
846
+ /*!*********************************************************!*\
847
+ !*** ./node_modules/xmlbuilder/lib/XMLDOMStringList.js ***!
848
+ \*********************************************************/
849
+ /*! no static exports found */
850
+ /***/ (function(module, exports) {
851
+
852
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var XMLDOMStringList;\n\n module.exports = XMLDOMStringList = (function() {\n function XMLDOMStringList(arr) {\n this.arr = arr || [];\n }\n\n Object.defineProperty(XMLDOMStringList.prototype, 'length', {\n get: function() {\n return this.arr.length;\n }\n });\n\n XMLDOMStringList.prototype.item = function(index) {\n return this.arr[index] || null;\n };\n\n XMLDOMStringList.prototype.contains = function(str) {\n return this.arr.indexOf(str) !== -1;\n };\n\n return XMLDOMStringList;\n\n })();\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLDOMStringList.js?");
853
+
854
+ /***/ }),
855
+
856
+ /***/ "./node_modules/xmlbuilder/lib/XMLDTDAttList.js":
857
+ /*!******************************************************!*\
858
+ !*** ./node_modules/xmlbuilder/lib/XMLDTDAttList.js ***!
859
+ \******************************************************/
860
+ /*! no static exports found */
861
+ /***/ (function(module, exports, __webpack_require__) {
862
+
863
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, XMLDTDAttList, XMLNode,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n XMLNode = __webpack_require__(/*! ./XMLNode */ \"./node_modules/xmlbuilder/lib/XMLNode.js\");\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n module.exports = XMLDTDAttList = (function(superClass) {\n extend(XMLDTDAttList, superClass);\n\n function XMLDTDAttList(parent, elementName, attributeName, attributeType, defaultValueType, defaultValue) {\n XMLDTDAttList.__super__.constructor.call(this, parent);\n if (elementName == null) {\n throw new Error(\"Missing DTD element name. \" + this.debugInfo());\n }\n if (attributeName == null) {\n throw new Error(\"Missing DTD attribute name. \" + this.debugInfo(elementName));\n }\n if (!attributeType) {\n throw new Error(\"Missing DTD attribute type. \" + this.debugInfo(elementName));\n }\n if (!defaultValueType) {\n throw new Error(\"Missing DTD attribute default. \" + this.debugInfo(elementName));\n }\n if (defaultValueType.indexOf('#') !== 0) {\n defaultValueType = '#' + defaultValueType;\n }\n if (!defaultValueType.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)) {\n throw new Error(\"Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. \" + this.debugInfo(elementName));\n }\n if (defaultValue && !defaultValueType.match(/^(#FIXED|#DEFAULT)$/)) {\n throw new Error(\"Default value only applies to #FIXED or #DEFAULT. \" + this.debugInfo(elementName));\n }\n this.elementName = this.stringify.name(elementName);\n this.type = NodeType.AttributeDeclaration;\n this.attributeName = this.stringify.name(attributeName);\n this.attributeType = this.stringify.dtdAttType(attributeType);\n if (defaultValue) {\n this.defaultValue = this.stringify.dtdAttDefault(defaultValue);\n }\n this.defaultValueType = defaultValueType;\n }\n\n XMLDTDAttList.prototype.toString = function(options) {\n return this.options.writer.dtdAttList(this, this.options.writer.filterOptions(options));\n };\n\n return XMLDTDAttList;\n\n })(XMLNode);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLDTDAttList.js?");
864
+
865
+ /***/ }),
866
+
867
+ /***/ "./node_modules/xmlbuilder/lib/XMLDTDElement.js":
868
+ /*!******************************************************!*\
869
+ !*** ./node_modules/xmlbuilder/lib/XMLDTDElement.js ***!
870
+ \******************************************************/
871
+ /*! no static exports found */
872
+ /***/ (function(module, exports, __webpack_require__) {
873
+
874
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, XMLDTDElement, XMLNode,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n XMLNode = __webpack_require__(/*! ./XMLNode */ \"./node_modules/xmlbuilder/lib/XMLNode.js\");\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n module.exports = XMLDTDElement = (function(superClass) {\n extend(XMLDTDElement, superClass);\n\n function XMLDTDElement(parent, name, value) {\n XMLDTDElement.__super__.constructor.call(this, parent);\n if (name == null) {\n throw new Error(\"Missing DTD element name. \" + this.debugInfo());\n }\n if (!value) {\n value = '(#PCDATA)';\n }\n if (Array.isArray(value)) {\n value = '(' + value.join(',') + ')';\n }\n this.name = this.stringify.name(name);\n this.type = NodeType.ElementDeclaration;\n this.value = this.stringify.dtdElementValue(value);\n }\n\n XMLDTDElement.prototype.toString = function(options) {\n return this.options.writer.dtdElement(this, this.options.writer.filterOptions(options));\n };\n\n return XMLDTDElement;\n\n })(XMLNode);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLDTDElement.js?");
875
+
876
+ /***/ }),
877
+
878
+ /***/ "./node_modules/xmlbuilder/lib/XMLDTDEntity.js":
879
+ /*!*****************************************************!*\
880
+ !*** ./node_modules/xmlbuilder/lib/XMLDTDEntity.js ***!
881
+ \*****************************************************/
882
+ /*! no static exports found */
883
+ /***/ (function(module, exports, __webpack_require__) {
884
+
885
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, XMLDTDEntity, XMLNode, isObject,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n isObject = __webpack_require__(/*! ./Utility */ \"./node_modules/xmlbuilder/lib/Utility.js\").isObject;\n\n XMLNode = __webpack_require__(/*! ./XMLNode */ \"./node_modules/xmlbuilder/lib/XMLNode.js\");\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n module.exports = XMLDTDEntity = (function(superClass) {\n extend(XMLDTDEntity, superClass);\n\n function XMLDTDEntity(parent, pe, name, value) {\n XMLDTDEntity.__super__.constructor.call(this, parent);\n if (name == null) {\n throw new Error(\"Missing DTD entity name. \" + this.debugInfo(name));\n }\n if (value == null) {\n throw new Error(\"Missing DTD entity value. \" + this.debugInfo(name));\n }\n this.pe = !!pe;\n this.name = this.stringify.name(name);\n this.type = NodeType.EntityDeclaration;\n if (!isObject(value)) {\n this.value = this.stringify.dtdEntityValue(value);\n this.internal = true;\n } else {\n if (!value.pubID && !value.sysID) {\n throw new Error(\"Public and/or system identifiers are required for an external entity. \" + this.debugInfo(name));\n }\n if (value.pubID && !value.sysID) {\n throw new Error(\"System identifier is required for a public external entity. \" + this.debugInfo(name));\n }\n this.internal = false;\n if (value.pubID != null) {\n this.pubID = this.stringify.dtdPubID(value.pubID);\n }\n if (value.sysID != null) {\n this.sysID = this.stringify.dtdSysID(value.sysID);\n }\n if (value.nData != null) {\n this.nData = this.stringify.dtdNData(value.nData);\n }\n if (this.pe && this.nData) {\n throw new Error(\"Notation declaration is not allowed in a parameter entity. \" + this.debugInfo(name));\n }\n }\n }\n\n Object.defineProperty(XMLDTDEntity.prototype, 'publicId', {\n get: function() {\n return this.pubID;\n }\n });\n\n Object.defineProperty(XMLDTDEntity.prototype, 'systemId', {\n get: function() {\n return this.sysID;\n }\n });\n\n Object.defineProperty(XMLDTDEntity.prototype, 'notationName', {\n get: function() {\n return this.nData || null;\n }\n });\n\n Object.defineProperty(XMLDTDEntity.prototype, 'inputEncoding', {\n get: function() {\n return null;\n }\n });\n\n Object.defineProperty(XMLDTDEntity.prototype, 'xmlEncoding', {\n get: function() {\n return null;\n }\n });\n\n Object.defineProperty(XMLDTDEntity.prototype, 'xmlVersion', {\n get: function() {\n return null;\n }\n });\n\n XMLDTDEntity.prototype.toString = function(options) {\n return this.options.writer.dtdEntity(this, this.options.writer.filterOptions(options));\n };\n\n return XMLDTDEntity;\n\n })(XMLNode);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLDTDEntity.js?");
886
+
887
+ /***/ }),
888
+
889
+ /***/ "./node_modules/xmlbuilder/lib/XMLDTDNotation.js":
890
+ /*!*******************************************************!*\
891
+ !*** ./node_modules/xmlbuilder/lib/XMLDTDNotation.js ***!
892
+ \*******************************************************/
893
+ /*! no static exports found */
894
+ /***/ (function(module, exports, __webpack_require__) {
895
+
896
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, XMLDTDNotation, XMLNode,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n XMLNode = __webpack_require__(/*! ./XMLNode */ \"./node_modules/xmlbuilder/lib/XMLNode.js\");\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n module.exports = XMLDTDNotation = (function(superClass) {\n extend(XMLDTDNotation, superClass);\n\n function XMLDTDNotation(parent, name, value) {\n XMLDTDNotation.__super__.constructor.call(this, parent);\n if (name == null) {\n throw new Error(\"Missing DTD notation name. \" + this.debugInfo(name));\n }\n if (!value.pubID && !value.sysID) {\n throw new Error(\"Public or system identifiers are required for an external entity. \" + this.debugInfo(name));\n }\n this.name = this.stringify.name(name);\n this.type = NodeType.NotationDeclaration;\n if (value.pubID != null) {\n this.pubID = this.stringify.dtdPubID(value.pubID);\n }\n if (value.sysID != null) {\n this.sysID = this.stringify.dtdSysID(value.sysID);\n }\n }\n\n Object.defineProperty(XMLDTDNotation.prototype, 'publicId', {\n get: function() {\n return this.pubID;\n }\n });\n\n Object.defineProperty(XMLDTDNotation.prototype, 'systemId', {\n get: function() {\n return this.sysID;\n }\n });\n\n XMLDTDNotation.prototype.toString = function(options) {\n return this.options.writer.dtdNotation(this, this.options.writer.filterOptions(options));\n };\n\n return XMLDTDNotation;\n\n })(XMLNode);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLDTDNotation.js?");
897
+
898
+ /***/ }),
899
+
900
+ /***/ "./node_modules/xmlbuilder/lib/XMLDeclaration.js":
901
+ /*!*******************************************************!*\
902
+ !*** ./node_modules/xmlbuilder/lib/XMLDeclaration.js ***!
903
+ \*******************************************************/
904
+ /*! no static exports found */
905
+ /***/ (function(module, exports, __webpack_require__) {
906
+
907
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, XMLDeclaration, XMLNode, isObject,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n isObject = __webpack_require__(/*! ./Utility */ \"./node_modules/xmlbuilder/lib/Utility.js\").isObject;\n\n XMLNode = __webpack_require__(/*! ./XMLNode */ \"./node_modules/xmlbuilder/lib/XMLNode.js\");\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n module.exports = XMLDeclaration = (function(superClass) {\n extend(XMLDeclaration, superClass);\n\n function XMLDeclaration(parent, version, encoding, standalone) {\n var ref;\n XMLDeclaration.__super__.constructor.call(this, parent);\n if (isObject(version)) {\n ref = version, version = ref.version, encoding = ref.encoding, standalone = ref.standalone;\n }\n if (!version) {\n version = '1.0';\n }\n this.type = NodeType.Declaration;\n this.version = this.stringify.xmlVersion(version);\n if (encoding != null) {\n this.encoding = this.stringify.xmlEncoding(encoding);\n }\n if (standalone != null) {\n this.standalone = this.stringify.xmlStandalone(standalone);\n }\n }\n\n XMLDeclaration.prototype.toString = function(options) {\n return this.options.writer.declaration(this, this.options.writer.filterOptions(options));\n };\n\n return XMLDeclaration;\n\n })(XMLNode);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLDeclaration.js?");
908
+
909
+ /***/ }),
910
+
911
+ /***/ "./node_modules/xmlbuilder/lib/XMLDocType.js":
912
+ /*!***************************************************!*\
913
+ !*** ./node_modules/xmlbuilder/lib/XMLDocType.js ***!
914
+ \***************************************************/
915
+ /*! no static exports found */
916
+ /***/ (function(module, exports, __webpack_require__) {
917
+
918
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDocType, XMLNamedNodeMap, XMLNode, isObject,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n isObject = __webpack_require__(/*! ./Utility */ \"./node_modules/xmlbuilder/lib/Utility.js\").isObject;\n\n XMLNode = __webpack_require__(/*! ./XMLNode */ \"./node_modules/xmlbuilder/lib/XMLNode.js\");\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n XMLDTDAttList = __webpack_require__(/*! ./XMLDTDAttList */ \"./node_modules/xmlbuilder/lib/XMLDTDAttList.js\");\n\n XMLDTDEntity = __webpack_require__(/*! ./XMLDTDEntity */ \"./node_modules/xmlbuilder/lib/XMLDTDEntity.js\");\n\n XMLDTDElement = __webpack_require__(/*! ./XMLDTDElement */ \"./node_modules/xmlbuilder/lib/XMLDTDElement.js\");\n\n XMLDTDNotation = __webpack_require__(/*! ./XMLDTDNotation */ \"./node_modules/xmlbuilder/lib/XMLDTDNotation.js\");\n\n XMLNamedNodeMap = __webpack_require__(/*! ./XMLNamedNodeMap */ \"./node_modules/xmlbuilder/lib/XMLNamedNodeMap.js\");\n\n module.exports = XMLDocType = (function(superClass) {\n extend(XMLDocType, superClass);\n\n function XMLDocType(parent, pubID, sysID) {\n var child, i, len, ref, ref1, ref2;\n XMLDocType.__super__.constructor.call(this, parent);\n this.type = NodeType.DocType;\n if (parent.children) {\n ref = parent.children;\n for (i = 0, len = ref.length; i < len; i++) {\n child = ref[i];\n if (child.type === NodeType.Element) {\n this.name = child.name;\n break;\n }\n }\n }\n this.documentObject = parent;\n if (isObject(pubID)) {\n ref1 = pubID, pubID = ref1.pubID, sysID = ref1.sysID;\n }\n if (sysID == null) {\n ref2 = [pubID, sysID], sysID = ref2[0], pubID = ref2[1];\n }\n if (pubID != null) {\n this.pubID = this.stringify.dtdPubID(pubID);\n }\n if (sysID != null) {\n this.sysID = this.stringify.dtdSysID(sysID);\n }\n }\n\n Object.defineProperty(XMLDocType.prototype, 'entities', {\n get: function() {\n var child, i, len, nodes, ref;\n nodes = {};\n ref = this.children;\n for (i = 0, len = ref.length; i < len; i++) {\n child = ref[i];\n if ((child.type === NodeType.EntityDeclaration) && !child.pe) {\n nodes[child.name] = child;\n }\n }\n return new XMLNamedNodeMap(nodes);\n }\n });\n\n Object.defineProperty(XMLDocType.prototype, 'notations', {\n get: function() {\n var child, i, len, nodes, ref;\n nodes = {};\n ref = this.children;\n for (i = 0, len = ref.length; i < len; i++) {\n child = ref[i];\n if (child.type === NodeType.NotationDeclaration) {\n nodes[child.name] = child;\n }\n }\n return new XMLNamedNodeMap(nodes);\n }\n });\n\n Object.defineProperty(XMLDocType.prototype, 'publicId', {\n get: function() {\n return this.pubID;\n }\n });\n\n Object.defineProperty(XMLDocType.prototype, 'systemId', {\n get: function() {\n return this.sysID;\n }\n });\n\n Object.defineProperty(XMLDocType.prototype, 'internalSubset', {\n get: function() {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n }\n });\n\n XMLDocType.prototype.element = function(name, value) {\n var child;\n child = new XMLDTDElement(this, name, value);\n this.children.push(child);\n return this;\n };\n\n XMLDocType.prototype.attList = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) {\n var child;\n child = new XMLDTDAttList(this, elementName, attributeName, attributeType, defaultValueType, defaultValue);\n this.children.push(child);\n return this;\n };\n\n XMLDocType.prototype.entity = function(name, value) {\n var child;\n child = new XMLDTDEntity(this, false, name, value);\n this.children.push(child);\n return this;\n };\n\n XMLDocType.prototype.pEntity = function(name, value) {\n var child;\n child = new XMLDTDEntity(this, true, name, value);\n this.children.push(child);\n return this;\n };\n\n XMLDocType.prototype.notation = function(name, value) {\n var child;\n child = new XMLDTDNotation(this, name, value);\n this.children.push(child);\n return this;\n };\n\n XMLDocType.prototype.toString = function(options) {\n return this.options.writer.docType(this, this.options.writer.filterOptions(options));\n };\n\n XMLDocType.prototype.ele = function(name, value) {\n return this.element(name, value);\n };\n\n XMLDocType.prototype.att = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) {\n return this.attList(elementName, attributeName, attributeType, defaultValueType, defaultValue);\n };\n\n XMLDocType.prototype.ent = function(name, value) {\n return this.entity(name, value);\n };\n\n XMLDocType.prototype.pent = function(name, value) {\n return this.pEntity(name, value);\n };\n\n XMLDocType.prototype.not = function(name, value) {\n return this.notation(name, value);\n };\n\n XMLDocType.prototype.up = function() {\n return this.root() || this.documentObject;\n };\n\n XMLDocType.prototype.isEqualNode = function(node) {\n if (!XMLDocType.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) {\n return false;\n }\n if (node.name !== this.name) {\n return false;\n }\n if (node.publicId !== this.publicId) {\n return false;\n }\n if (node.systemId !== this.systemId) {\n return false;\n }\n return true;\n };\n\n return XMLDocType;\n\n })(XMLNode);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLDocType.js?");
919
+
920
+ /***/ }),
921
+
922
+ /***/ "./node_modules/xmlbuilder/lib/XMLDocument.js":
923
+ /*!****************************************************!*\
924
+ !*** ./node_modules/xmlbuilder/lib/XMLDocument.js ***!
925
+ \****************************************************/
926
+ /*! no static exports found */
927
+ /***/ (function(module, exports, __webpack_require__) {
928
+
929
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, XMLDOMConfiguration, XMLDOMImplementation, XMLDocument, XMLNode, XMLStringWriter, XMLStringifier, isPlainObject,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n isPlainObject = __webpack_require__(/*! ./Utility */ \"./node_modules/xmlbuilder/lib/Utility.js\").isPlainObject;\n\n XMLDOMImplementation = __webpack_require__(/*! ./XMLDOMImplementation */ \"./node_modules/xmlbuilder/lib/XMLDOMImplementation.js\");\n\n XMLDOMConfiguration = __webpack_require__(/*! ./XMLDOMConfiguration */ \"./node_modules/xmlbuilder/lib/XMLDOMConfiguration.js\");\n\n XMLNode = __webpack_require__(/*! ./XMLNode */ \"./node_modules/xmlbuilder/lib/XMLNode.js\");\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n XMLStringifier = __webpack_require__(/*! ./XMLStringifier */ \"./node_modules/xmlbuilder/lib/XMLStringifier.js\");\n\n XMLStringWriter = __webpack_require__(/*! ./XMLStringWriter */ \"./node_modules/xmlbuilder/lib/XMLStringWriter.js\");\n\n module.exports = XMLDocument = (function(superClass) {\n extend(XMLDocument, superClass);\n\n function XMLDocument(options) {\n XMLDocument.__super__.constructor.call(this, null);\n this.name = \"#document\";\n this.type = NodeType.Document;\n this.documentURI = null;\n this.domConfig = new XMLDOMConfiguration();\n options || (options = {});\n if (!options.writer) {\n options.writer = new XMLStringWriter();\n }\n this.options = options;\n this.stringify = new XMLStringifier(options);\n }\n\n Object.defineProperty(XMLDocument.prototype, 'implementation', {\n value: new XMLDOMImplementation()\n });\n\n Object.defineProperty(XMLDocument.prototype, 'doctype', {\n get: function() {\n var child, i, len, ref;\n ref = this.children;\n for (i = 0, len = ref.length; i < len; i++) {\n child = ref[i];\n if (child.type === NodeType.DocType) {\n return child;\n }\n }\n return null;\n }\n });\n\n Object.defineProperty(XMLDocument.prototype, 'documentElement', {\n get: function() {\n return this.rootObject || null;\n }\n });\n\n Object.defineProperty(XMLDocument.prototype, 'inputEncoding', {\n get: function() {\n return null;\n }\n });\n\n Object.defineProperty(XMLDocument.prototype, 'strictErrorChecking', {\n get: function() {\n return false;\n }\n });\n\n Object.defineProperty(XMLDocument.prototype, 'xmlEncoding', {\n get: function() {\n if (this.children.length !== 0 && this.children[0].type === NodeType.Declaration) {\n return this.children[0].encoding;\n } else {\n return null;\n }\n }\n });\n\n Object.defineProperty(XMLDocument.prototype, 'xmlStandalone', {\n get: function() {\n if (this.children.length !== 0 && this.children[0].type === NodeType.Declaration) {\n return this.children[0].standalone === 'yes';\n } else {\n return false;\n }\n }\n });\n\n Object.defineProperty(XMLDocument.prototype, 'xmlVersion', {\n get: function() {\n if (this.children.length !== 0 && this.children[0].type === NodeType.Declaration) {\n return this.children[0].version;\n } else {\n return \"1.0\";\n }\n }\n });\n\n Object.defineProperty(XMLDocument.prototype, 'URL', {\n get: function() {\n return this.documentURI;\n }\n });\n\n Object.defineProperty(XMLDocument.prototype, 'origin', {\n get: function() {\n return null;\n }\n });\n\n Object.defineProperty(XMLDocument.prototype, 'compatMode', {\n get: function() {\n return null;\n }\n });\n\n Object.defineProperty(XMLDocument.prototype, 'characterSet', {\n get: function() {\n return null;\n }\n });\n\n Object.defineProperty(XMLDocument.prototype, 'contentType', {\n get: function() {\n return null;\n }\n });\n\n XMLDocument.prototype.end = function(writer) {\n var writerOptions;\n writerOptions = {};\n if (!writer) {\n writer = this.options.writer;\n } else if (isPlainObject(writer)) {\n writerOptions = writer;\n writer = this.options.writer;\n }\n return writer.document(this, writer.filterOptions(writerOptions));\n };\n\n XMLDocument.prototype.toString = function(options) {\n return this.options.writer.document(this, this.options.writer.filterOptions(options));\n };\n\n XMLDocument.prototype.createElement = function(tagName) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.createDocumentFragment = function() {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.createTextNode = function(data) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.createComment = function(data) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.createCDATASection = function(data) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.createProcessingInstruction = function(target, data) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.createAttribute = function(name) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.createEntityReference = function(name) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.getElementsByTagName = function(tagname) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.importNode = function(importedNode, deep) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.createElementNS = function(namespaceURI, qualifiedName) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.createAttributeNS = function(namespaceURI, qualifiedName) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.getElementsByTagNameNS = function(namespaceURI, localName) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.getElementById = function(elementId) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.adoptNode = function(source) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.normalizeDocument = function() {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.renameNode = function(node, namespaceURI, qualifiedName) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.getElementsByClassName = function(classNames) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.createEvent = function(eventInterface) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.createRange = function() {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.createNodeIterator = function(root, whatToShow, filter) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLDocument.prototype.createTreeWalker = function(root, whatToShow, filter) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n return XMLDocument;\n\n })(XMLNode);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLDocument.js?");
930
+
931
+ /***/ }),
932
+
933
+ /***/ "./node_modules/xmlbuilder/lib/XMLDocumentCB.js":
934
+ /*!******************************************************!*\
935
+ !*** ./node_modules/xmlbuilder/lib/XMLDocumentCB.js ***!
936
+ \******************************************************/
937
+ /*! no static exports found */
938
+ /***/ (function(module, exports, __webpack_require__) {
939
+
940
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, WriterState, XMLAttribute, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDocument, XMLDocumentCB, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStringWriter, XMLStringifier, XMLText, getValue, isFunction, isObject, isPlainObject, ref,\n hasProp = {}.hasOwnProperty;\n\n ref = __webpack_require__(/*! ./Utility */ \"./node_modules/xmlbuilder/lib/Utility.js\"), isObject = ref.isObject, isFunction = ref.isFunction, isPlainObject = ref.isPlainObject, getValue = ref.getValue;\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n XMLDocument = __webpack_require__(/*! ./XMLDocument */ \"./node_modules/xmlbuilder/lib/XMLDocument.js\");\n\n XMLElement = __webpack_require__(/*! ./XMLElement */ \"./node_modules/xmlbuilder/lib/XMLElement.js\");\n\n XMLCData = __webpack_require__(/*! ./XMLCData */ \"./node_modules/xmlbuilder/lib/XMLCData.js\");\n\n XMLComment = __webpack_require__(/*! ./XMLComment */ \"./node_modules/xmlbuilder/lib/XMLComment.js\");\n\n XMLRaw = __webpack_require__(/*! ./XMLRaw */ \"./node_modules/xmlbuilder/lib/XMLRaw.js\");\n\n XMLText = __webpack_require__(/*! ./XMLText */ \"./node_modules/xmlbuilder/lib/XMLText.js\");\n\n XMLProcessingInstruction = __webpack_require__(/*! ./XMLProcessingInstruction */ \"./node_modules/xmlbuilder/lib/XMLProcessingInstruction.js\");\n\n XMLDeclaration = __webpack_require__(/*! ./XMLDeclaration */ \"./node_modules/xmlbuilder/lib/XMLDeclaration.js\");\n\n XMLDocType = __webpack_require__(/*! ./XMLDocType */ \"./node_modules/xmlbuilder/lib/XMLDocType.js\");\n\n XMLDTDAttList = __webpack_require__(/*! ./XMLDTDAttList */ \"./node_modules/xmlbuilder/lib/XMLDTDAttList.js\");\n\n XMLDTDEntity = __webpack_require__(/*! ./XMLDTDEntity */ \"./node_modules/xmlbuilder/lib/XMLDTDEntity.js\");\n\n XMLDTDElement = __webpack_require__(/*! ./XMLDTDElement */ \"./node_modules/xmlbuilder/lib/XMLDTDElement.js\");\n\n XMLDTDNotation = __webpack_require__(/*! ./XMLDTDNotation */ \"./node_modules/xmlbuilder/lib/XMLDTDNotation.js\");\n\n XMLAttribute = __webpack_require__(/*! ./XMLAttribute */ \"./node_modules/xmlbuilder/lib/XMLAttribute.js\");\n\n XMLStringifier = __webpack_require__(/*! ./XMLStringifier */ \"./node_modules/xmlbuilder/lib/XMLStringifier.js\");\n\n XMLStringWriter = __webpack_require__(/*! ./XMLStringWriter */ \"./node_modules/xmlbuilder/lib/XMLStringWriter.js\");\n\n WriterState = __webpack_require__(/*! ./WriterState */ \"./node_modules/xmlbuilder/lib/WriterState.js\");\n\n module.exports = XMLDocumentCB = (function() {\n function XMLDocumentCB(options, onData, onEnd) {\n var writerOptions;\n this.name = \"?xml\";\n this.type = NodeType.Document;\n options || (options = {});\n writerOptions = {};\n if (!options.writer) {\n options.writer = new XMLStringWriter();\n } else if (isPlainObject(options.writer)) {\n writerOptions = options.writer;\n options.writer = new XMLStringWriter();\n }\n this.options = options;\n this.writer = options.writer;\n this.writerOptions = this.writer.filterOptions(writerOptions);\n this.stringify = new XMLStringifier(options);\n this.onDataCallback = onData || function() {};\n this.onEndCallback = onEnd || function() {};\n this.currentNode = null;\n this.currentLevel = -1;\n this.openTags = {};\n this.documentStarted = false;\n this.documentCompleted = false;\n this.root = null;\n }\n\n XMLDocumentCB.prototype.createChildNode = function(node) {\n var att, attName, attributes, child, i, len, ref1, ref2;\n switch (node.type) {\n case NodeType.CData:\n this.cdata(node.value);\n break;\n case NodeType.Comment:\n this.comment(node.value);\n break;\n case NodeType.Element:\n attributes = {};\n ref1 = node.attribs;\n for (attName in ref1) {\n if (!hasProp.call(ref1, attName)) continue;\n att = ref1[attName];\n attributes[attName] = att.value;\n }\n this.node(node.name, attributes);\n break;\n case NodeType.Dummy:\n this.dummy();\n break;\n case NodeType.Raw:\n this.raw(node.value);\n break;\n case NodeType.Text:\n this.text(node.value);\n break;\n case NodeType.ProcessingInstruction:\n this.instruction(node.target, node.value);\n break;\n default:\n throw new Error(\"This XML node type is not supported in a JS object: \" + node.constructor.name);\n }\n ref2 = node.children;\n for (i = 0, len = ref2.length; i < len; i++) {\n child = ref2[i];\n this.createChildNode(child);\n if (child.type === NodeType.Element) {\n this.up();\n }\n }\n return this;\n };\n\n XMLDocumentCB.prototype.dummy = function() {\n return this;\n };\n\n XMLDocumentCB.prototype.node = function(name, attributes, text) {\n var ref1;\n if (name == null) {\n throw new Error(\"Missing node name.\");\n }\n if (this.root && this.currentLevel === -1) {\n throw new Error(\"Document can only have one root node. \" + this.debugInfo(name));\n }\n this.openCurrent();\n name = getValue(name);\n if (attributes == null) {\n attributes = {};\n }\n attributes = getValue(attributes);\n if (!isObject(attributes)) {\n ref1 = [attributes, text], text = ref1[0], attributes = ref1[1];\n }\n this.currentNode = new XMLElement(this, name, attributes);\n this.currentNode.children = false;\n this.currentLevel++;\n this.openTags[this.currentLevel] = this.currentNode;\n if (text != null) {\n this.text(text);\n }\n return this;\n };\n\n XMLDocumentCB.prototype.element = function(name, attributes, text) {\n var child, i, len, oldValidationFlag, ref1, root;\n if (this.currentNode && this.currentNode.type === NodeType.DocType) {\n this.dtdElement.apply(this, arguments);\n } else {\n if (Array.isArray(name) || isObject(name) || isFunction(name)) {\n oldValidationFlag = this.options.noValidation;\n this.options.noValidation = true;\n root = new XMLDocument(this.options).element('TEMP_ROOT');\n root.element(name);\n this.options.noValidation = oldValidationFlag;\n ref1 = root.children;\n for (i = 0, len = ref1.length; i < len; i++) {\n child = ref1[i];\n this.createChildNode(child);\n if (child.type === NodeType.Element) {\n this.up();\n }\n }\n } else {\n this.node(name, attributes, text);\n }\n }\n return this;\n };\n\n XMLDocumentCB.prototype.attribute = function(name, value) {\n var attName, attValue;\n if (!this.currentNode || this.currentNode.children) {\n throw new Error(\"att() can only be used immediately after an ele() call in callback mode. \" + this.debugInfo(name));\n }\n if (name != null) {\n name = getValue(name);\n }\n if (isObject(name)) {\n for (attName in name) {\n if (!hasProp.call(name, attName)) continue;\n attValue = name[attName];\n this.attribute(attName, attValue);\n }\n } else {\n if (isFunction(value)) {\n value = value.apply();\n }\n if (this.options.keepNullAttributes && (value == null)) {\n this.currentNode.attribs[name] = new XMLAttribute(this, name, \"\");\n } else if (value != null) {\n this.currentNode.attribs[name] = new XMLAttribute(this, name, value);\n }\n }\n return this;\n };\n\n XMLDocumentCB.prototype.text = function(value) {\n var node;\n this.openCurrent();\n node = new XMLText(this, value);\n this.onData(this.writer.text(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);\n return this;\n };\n\n XMLDocumentCB.prototype.cdata = function(value) {\n var node;\n this.openCurrent();\n node = new XMLCData(this, value);\n this.onData(this.writer.cdata(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);\n return this;\n };\n\n XMLDocumentCB.prototype.comment = function(value) {\n var node;\n this.openCurrent();\n node = new XMLComment(this, value);\n this.onData(this.writer.comment(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);\n return this;\n };\n\n XMLDocumentCB.prototype.raw = function(value) {\n var node;\n this.openCurrent();\n node = new XMLRaw(this, value);\n this.onData(this.writer.raw(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);\n return this;\n };\n\n XMLDocumentCB.prototype.instruction = function(target, value) {\n var i, insTarget, insValue, len, node;\n this.openCurrent();\n if (target != null) {\n target = getValue(target);\n }\n if (value != null) {\n value = getValue(value);\n }\n if (Array.isArray(target)) {\n for (i = 0, len = target.length; i < len; i++) {\n insTarget = target[i];\n this.instruction(insTarget);\n }\n } else if (isObject(target)) {\n for (insTarget in target) {\n if (!hasProp.call(target, insTarget)) continue;\n insValue = target[insTarget];\n this.instruction(insTarget, insValue);\n }\n } else {\n if (isFunction(value)) {\n value = value.apply();\n }\n node = new XMLProcessingInstruction(this, target, value);\n this.onData(this.writer.processingInstruction(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);\n }\n return this;\n };\n\n XMLDocumentCB.prototype.declaration = function(version, encoding, standalone) {\n var node;\n this.openCurrent();\n if (this.documentStarted) {\n throw new Error(\"declaration() must be the first node.\");\n }\n node = new XMLDeclaration(this, version, encoding, standalone);\n this.onData(this.writer.declaration(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);\n return this;\n };\n\n XMLDocumentCB.prototype.doctype = function(root, pubID, sysID) {\n this.openCurrent();\n if (root == null) {\n throw new Error(\"Missing root node name.\");\n }\n if (this.root) {\n throw new Error(\"dtd() must come before the root node.\");\n }\n this.currentNode = new XMLDocType(this, pubID, sysID);\n this.currentNode.rootNodeName = root;\n this.currentNode.children = false;\n this.currentLevel++;\n this.openTags[this.currentLevel] = this.currentNode;\n return this;\n };\n\n XMLDocumentCB.prototype.dtdElement = function(name, value) {\n var node;\n this.openCurrent();\n node = new XMLDTDElement(this, name, value);\n this.onData(this.writer.dtdElement(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);\n return this;\n };\n\n XMLDocumentCB.prototype.attList = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) {\n var node;\n this.openCurrent();\n node = new XMLDTDAttList(this, elementName, attributeName, attributeType, defaultValueType, defaultValue);\n this.onData(this.writer.dtdAttList(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);\n return this;\n };\n\n XMLDocumentCB.prototype.entity = function(name, value) {\n var node;\n this.openCurrent();\n node = new XMLDTDEntity(this, false, name, value);\n this.onData(this.writer.dtdEntity(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);\n return this;\n };\n\n XMLDocumentCB.prototype.pEntity = function(name, value) {\n var node;\n this.openCurrent();\n node = new XMLDTDEntity(this, true, name, value);\n this.onData(this.writer.dtdEntity(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);\n return this;\n };\n\n XMLDocumentCB.prototype.notation = function(name, value) {\n var node;\n this.openCurrent();\n node = new XMLDTDNotation(this, name, value);\n this.onData(this.writer.dtdNotation(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);\n return this;\n };\n\n XMLDocumentCB.prototype.up = function() {\n if (this.currentLevel < 0) {\n throw new Error(\"The document node has no parent.\");\n }\n if (this.currentNode) {\n if (this.currentNode.children) {\n this.closeNode(this.currentNode);\n } else {\n this.openNode(this.currentNode);\n }\n this.currentNode = null;\n } else {\n this.closeNode(this.openTags[this.currentLevel]);\n }\n delete this.openTags[this.currentLevel];\n this.currentLevel--;\n return this;\n };\n\n XMLDocumentCB.prototype.end = function() {\n while (this.currentLevel >= 0) {\n this.up();\n }\n return this.onEnd();\n };\n\n XMLDocumentCB.prototype.openCurrent = function() {\n if (this.currentNode) {\n this.currentNode.children = true;\n return this.openNode(this.currentNode);\n }\n };\n\n XMLDocumentCB.prototype.openNode = function(node) {\n var att, chunk, name, ref1;\n if (!node.isOpen) {\n if (!this.root && this.currentLevel === 0 && node.type === NodeType.Element) {\n this.root = node;\n }\n chunk = '';\n if (node.type === NodeType.Element) {\n this.writerOptions.state = WriterState.OpenTag;\n chunk = this.writer.indent(node, this.writerOptions, this.currentLevel) + '<' + node.name;\n ref1 = node.attribs;\n for (name in ref1) {\n if (!hasProp.call(ref1, name)) continue;\n att = ref1[name];\n chunk += this.writer.attribute(att, this.writerOptions, this.currentLevel);\n }\n chunk += (node.children ? '>' : '/>') + this.writer.endline(node, this.writerOptions, this.currentLevel);\n this.writerOptions.state = WriterState.InsideTag;\n } else {\n this.writerOptions.state = WriterState.OpenTag;\n chunk = this.writer.indent(node, this.writerOptions, this.currentLevel) + '<!DOCTYPE ' + node.rootNodeName;\n if (node.pubID && node.sysID) {\n chunk += ' PUBLIC \"' + node.pubID + '\" \"' + node.sysID + '\"';\n } else if (node.sysID) {\n chunk += ' SYSTEM \"' + node.sysID + '\"';\n }\n if (node.children) {\n chunk += ' [';\n this.writerOptions.state = WriterState.InsideTag;\n } else {\n this.writerOptions.state = WriterState.CloseTag;\n chunk += '>';\n }\n chunk += this.writer.endline(node, this.writerOptions, this.currentLevel);\n }\n this.onData(chunk, this.currentLevel);\n return node.isOpen = true;\n }\n };\n\n XMLDocumentCB.prototype.closeNode = function(node) {\n var chunk;\n if (!node.isClosed) {\n chunk = '';\n this.writerOptions.state = WriterState.CloseTag;\n if (node.type === NodeType.Element) {\n chunk = this.writer.indent(node, this.writerOptions, this.currentLevel) + '</' + node.name + '>' + this.writer.endline(node, this.writerOptions, this.currentLevel);\n } else {\n chunk = this.writer.indent(node, this.writerOptions, this.currentLevel) + ']>' + this.writer.endline(node, this.writerOptions, this.currentLevel);\n }\n this.writerOptions.state = WriterState.None;\n this.onData(chunk, this.currentLevel);\n return node.isClosed = true;\n }\n };\n\n XMLDocumentCB.prototype.onData = function(chunk, level) {\n this.documentStarted = true;\n return this.onDataCallback(chunk, level + 1);\n };\n\n XMLDocumentCB.prototype.onEnd = function() {\n this.documentCompleted = true;\n return this.onEndCallback();\n };\n\n XMLDocumentCB.prototype.debugInfo = function(name) {\n if (name == null) {\n return \"\";\n } else {\n return \"node: <\" + name + \">\";\n }\n };\n\n XMLDocumentCB.prototype.ele = function() {\n return this.element.apply(this, arguments);\n };\n\n XMLDocumentCB.prototype.nod = function(name, attributes, text) {\n return this.node(name, attributes, text);\n };\n\n XMLDocumentCB.prototype.txt = function(value) {\n return this.text(value);\n };\n\n XMLDocumentCB.prototype.dat = function(value) {\n return this.cdata(value);\n };\n\n XMLDocumentCB.prototype.com = function(value) {\n return this.comment(value);\n };\n\n XMLDocumentCB.prototype.ins = function(target, value) {\n return this.instruction(target, value);\n };\n\n XMLDocumentCB.prototype.dec = function(version, encoding, standalone) {\n return this.declaration(version, encoding, standalone);\n };\n\n XMLDocumentCB.prototype.dtd = function(root, pubID, sysID) {\n return this.doctype(root, pubID, sysID);\n };\n\n XMLDocumentCB.prototype.e = function(name, attributes, text) {\n return this.element(name, attributes, text);\n };\n\n XMLDocumentCB.prototype.n = function(name, attributes, text) {\n return this.node(name, attributes, text);\n };\n\n XMLDocumentCB.prototype.t = function(value) {\n return this.text(value);\n };\n\n XMLDocumentCB.prototype.d = function(value) {\n return this.cdata(value);\n };\n\n XMLDocumentCB.prototype.c = function(value) {\n return this.comment(value);\n };\n\n XMLDocumentCB.prototype.r = function(value) {\n return this.raw(value);\n };\n\n XMLDocumentCB.prototype.i = function(target, value) {\n return this.instruction(target, value);\n };\n\n XMLDocumentCB.prototype.att = function() {\n if (this.currentNode && this.currentNode.type === NodeType.DocType) {\n return this.attList.apply(this, arguments);\n } else {\n return this.attribute.apply(this, arguments);\n }\n };\n\n XMLDocumentCB.prototype.a = function() {\n if (this.currentNode && this.currentNode.type === NodeType.DocType) {\n return this.attList.apply(this, arguments);\n } else {\n return this.attribute.apply(this, arguments);\n }\n };\n\n XMLDocumentCB.prototype.ent = function(name, value) {\n return this.entity(name, value);\n };\n\n XMLDocumentCB.prototype.pent = function(name, value) {\n return this.pEntity(name, value);\n };\n\n XMLDocumentCB.prototype.not = function(name, value) {\n return this.notation(name, value);\n };\n\n return XMLDocumentCB;\n\n })();\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLDocumentCB.js?");
941
+
942
+ /***/ }),
943
+
944
+ /***/ "./node_modules/xmlbuilder/lib/XMLDummy.js":
945
+ /*!*************************************************!*\
946
+ !*** ./node_modules/xmlbuilder/lib/XMLDummy.js ***!
947
+ \*************************************************/
948
+ /*! no static exports found */
949
+ /***/ (function(module, exports, __webpack_require__) {
950
+
951
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, XMLDummy, XMLNode,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n XMLNode = __webpack_require__(/*! ./XMLNode */ \"./node_modules/xmlbuilder/lib/XMLNode.js\");\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n module.exports = XMLDummy = (function(superClass) {\n extend(XMLDummy, superClass);\n\n function XMLDummy(parent) {\n XMLDummy.__super__.constructor.call(this, parent);\n this.type = NodeType.Dummy;\n }\n\n XMLDummy.prototype.clone = function() {\n return Object.create(this);\n };\n\n XMLDummy.prototype.toString = function(options) {\n return '';\n };\n\n return XMLDummy;\n\n })(XMLNode);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLDummy.js?");
952
+
953
+ /***/ }),
954
+
955
+ /***/ "./node_modules/xmlbuilder/lib/XMLElement.js":
956
+ /*!***************************************************!*\
957
+ !*** ./node_modules/xmlbuilder/lib/XMLElement.js ***!
958
+ \***************************************************/
959
+ /*! no static exports found */
960
+ /***/ (function(module, exports, __webpack_require__) {
961
+
962
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, XMLAttribute, XMLElement, XMLNamedNodeMap, XMLNode, getValue, isFunction, isObject, ref,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n ref = __webpack_require__(/*! ./Utility */ \"./node_modules/xmlbuilder/lib/Utility.js\"), isObject = ref.isObject, isFunction = ref.isFunction, getValue = ref.getValue;\n\n XMLNode = __webpack_require__(/*! ./XMLNode */ \"./node_modules/xmlbuilder/lib/XMLNode.js\");\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n XMLAttribute = __webpack_require__(/*! ./XMLAttribute */ \"./node_modules/xmlbuilder/lib/XMLAttribute.js\");\n\n XMLNamedNodeMap = __webpack_require__(/*! ./XMLNamedNodeMap */ \"./node_modules/xmlbuilder/lib/XMLNamedNodeMap.js\");\n\n module.exports = XMLElement = (function(superClass) {\n extend(XMLElement, superClass);\n\n function XMLElement(parent, name, attributes) {\n var child, j, len, ref1;\n XMLElement.__super__.constructor.call(this, parent);\n if (name == null) {\n throw new Error(\"Missing element name. \" + this.debugInfo());\n }\n this.name = this.stringify.name(name);\n this.type = NodeType.Element;\n this.attribs = {};\n this.schemaTypeInfo = null;\n if (attributes != null) {\n this.attribute(attributes);\n }\n if (parent.type === NodeType.Document) {\n this.isRoot = true;\n this.documentObject = parent;\n parent.rootObject = this;\n if (parent.children) {\n ref1 = parent.children;\n for (j = 0, len = ref1.length; j < len; j++) {\n child = ref1[j];\n if (child.type === NodeType.DocType) {\n child.name = this.name;\n break;\n }\n }\n }\n }\n }\n\n Object.defineProperty(XMLElement.prototype, 'tagName', {\n get: function() {\n return this.name;\n }\n });\n\n Object.defineProperty(XMLElement.prototype, 'namespaceURI', {\n get: function() {\n return '';\n }\n });\n\n Object.defineProperty(XMLElement.prototype, 'prefix', {\n get: function() {\n return '';\n }\n });\n\n Object.defineProperty(XMLElement.prototype, 'localName', {\n get: function() {\n return this.name;\n }\n });\n\n Object.defineProperty(XMLElement.prototype, 'id', {\n get: function() {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n }\n });\n\n Object.defineProperty(XMLElement.prototype, 'className', {\n get: function() {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n }\n });\n\n Object.defineProperty(XMLElement.prototype, 'classList', {\n get: function() {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n }\n });\n\n Object.defineProperty(XMLElement.prototype, 'attributes', {\n get: function() {\n if (!this.attributeMap || !this.attributeMap.nodes) {\n this.attributeMap = new XMLNamedNodeMap(this.attribs);\n }\n return this.attributeMap;\n }\n });\n\n XMLElement.prototype.clone = function() {\n var att, attName, clonedSelf, ref1;\n clonedSelf = Object.create(this);\n if (clonedSelf.isRoot) {\n clonedSelf.documentObject = null;\n }\n clonedSelf.attribs = {};\n ref1 = this.attribs;\n for (attName in ref1) {\n if (!hasProp.call(ref1, attName)) continue;\n att = ref1[attName];\n clonedSelf.attribs[attName] = att.clone();\n }\n clonedSelf.children = [];\n this.children.forEach(function(child) {\n var clonedChild;\n clonedChild = child.clone();\n clonedChild.parent = clonedSelf;\n return clonedSelf.children.push(clonedChild);\n });\n return clonedSelf;\n };\n\n XMLElement.prototype.attribute = function(name, value) {\n var attName, attValue;\n if (name != null) {\n name = getValue(name);\n }\n if (isObject(name)) {\n for (attName in name) {\n if (!hasProp.call(name, attName)) continue;\n attValue = name[attName];\n this.attribute(attName, attValue);\n }\n } else {\n if (isFunction(value)) {\n value = value.apply();\n }\n if (this.options.keepNullAttributes && (value == null)) {\n this.attribs[name] = new XMLAttribute(this, name, \"\");\n } else if (value != null) {\n this.attribs[name] = new XMLAttribute(this, name, value);\n }\n }\n return this;\n };\n\n XMLElement.prototype.removeAttribute = function(name) {\n var attName, j, len;\n if (name == null) {\n throw new Error(\"Missing attribute name. \" + this.debugInfo());\n }\n name = getValue(name);\n if (Array.isArray(name)) {\n for (j = 0, len = name.length; j < len; j++) {\n attName = name[j];\n delete this.attribs[attName];\n }\n } else {\n delete this.attribs[name];\n }\n return this;\n };\n\n XMLElement.prototype.toString = function(options) {\n return this.options.writer.element(this, this.options.writer.filterOptions(options));\n };\n\n XMLElement.prototype.att = function(name, value) {\n return this.attribute(name, value);\n };\n\n XMLElement.prototype.a = function(name, value) {\n return this.attribute(name, value);\n };\n\n XMLElement.prototype.getAttribute = function(name) {\n if (this.attribs.hasOwnProperty(name)) {\n return this.attribs[name].value;\n } else {\n return null;\n }\n };\n\n XMLElement.prototype.setAttribute = function(name, value) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLElement.prototype.getAttributeNode = function(name) {\n if (this.attribs.hasOwnProperty(name)) {\n return this.attribs[name];\n } else {\n return null;\n }\n };\n\n XMLElement.prototype.setAttributeNode = function(newAttr) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLElement.prototype.removeAttributeNode = function(oldAttr) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLElement.prototype.getElementsByTagName = function(name) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLElement.prototype.getAttributeNS = function(namespaceURI, localName) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLElement.prototype.setAttributeNS = function(namespaceURI, qualifiedName, value) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLElement.prototype.removeAttributeNS = function(namespaceURI, localName) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLElement.prototype.getAttributeNodeNS = function(namespaceURI, localName) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLElement.prototype.setAttributeNodeNS = function(newAttr) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLElement.prototype.getElementsByTagNameNS = function(namespaceURI, localName) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLElement.prototype.hasAttribute = function(name) {\n return this.attribs.hasOwnProperty(name);\n };\n\n XMLElement.prototype.hasAttributeNS = function(namespaceURI, localName) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLElement.prototype.setIdAttribute = function(name, isId) {\n if (this.attribs.hasOwnProperty(name)) {\n return this.attribs[name].isId;\n } else {\n return isId;\n }\n };\n\n XMLElement.prototype.setIdAttributeNS = function(namespaceURI, localName, isId) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLElement.prototype.setIdAttributeNode = function(idAttr, isId) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLElement.prototype.getElementsByTagName = function(tagname) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLElement.prototype.getElementsByTagNameNS = function(namespaceURI, localName) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLElement.prototype.getElementsByClassName = function(classNames) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLElement.prototype.isEqualNode = function(node) {\n var i, j, ref1;\n if (!XMLElement.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) {\n return false;\n }\n if (node.namespaceURI !== this.namespaceURI) {\n return false;\n }\n if (node.prefix !== this.prefix) {\n return false;\n }\n if (node.localName !== this.localName) {\n return false;\n }\n if (node.attribs.length !== this.attribs.length) {\n return false;\n }\n for (i = j = 0, ref1 = this.attribs.length - 1; 0 <= ref1 ? j <= ref1 : j >= ref1; i = 0 <= ref1 ? ++j : --j) {\n if (!this.attribs[i].isEqualNode(node.attribs[i])) {\n return false;\n }\n }\n return true;\n };\n\n return XMLElement;\n\n })(XMLNode);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLElement.js?");
963
+
964
+ /***/ }),
965
+
966
+ /***/ "./node_modules/xmlbuilder/lib/XMLNamedNodeMap.js":
967
+ /*!********************************************************!*\
968
+ !*** ./node_modules/xmlbuilder/lib/XMLNamedNodeMap.js ***!
969
+ \********************************************************/
970
+ /*! no static exports found */
971
+ /***/ (function(module, exports) {
972
+
973
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var XMLNamedNodeMap;\n\n module.exports = XMLNamedNodeMap = (function() {\n function XMLNamedNodeMap(nodes) {\n this.nodes = nodes;\n }\n\n Object.defineProperty(XMLNamedNodeMap.prototype, 'length', {\n get: function() {\n return Object.keys(this.nodes).length || 0;\n }\n });\n\n XMLNamedNodeMap.prototype.clone = function() {\n return this.nodes = null;\n };\n\n XMLNamedNodeMap.prototype.getNamedItem = function(name) {\n return this.nodes[name];\n };\n\n XMLNamedNodeMap.prototype.setNamedItem = function(node) {\n var oldNode;\n oldNode = this.nodes[node.nodeName];\n this.nodes[node.nodeName] = node;\n return oldNode || null;\n };\n\n XMLNamedNodeMap.prototype.removeNamedItem = function(name) {\n var oldNode;\n oldNode = this.nodes[name];\n delete this.nodes[name];\n return oldNode || null;\n };\n\n XMLNamedNodeMap.prototype.item = function(index) {\n return this.nodes[Object.keys(this.nodes)[index]] || null;\n };\n\n XMLNamedNodeMap.prototype.getNamedItemNS = function(namespaceURI, localName) {\n throw new Error(\"This DOM method is not implemented.\");\n };\n\n XMLNamedNodeMap.prototype.setNamedItemNS = function(node) {\n throw new Error(\"This DOM method is not implemented.\");\n };\n\n XMLNamedNodeMap.prototype.removeNamedItemNS = function(namespaceURI, localName) {\n throw new Error(\"This DOM method is not implemented.\");\n };\n\n return XMLNamedNodeMap;\n\n })();\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLNamedNodeMap.js?");
974
+
975
+ /***/ }),
976
+
977
+ /***/ "./node_modules/xmlbuilder/lib/XMLNode.js":
978
+ /*!************************************************!*\
979
+ !*** ./node_modules/xmlbuilder/lib/XMLNode.js ***!
980
+ \************************************************/
981
+ /*! no static exports found */
982
+ /***/ (function(module, exports, __webpack_require__) {
983
+
984
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var DocumentPosition, NodeType, XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLNamedNodeMap, XMLNode, XMLNodeList, XMLProcessingInstruction, XMLRaw, XMLText, getValue, isEmpty, isFunction, isObject, ref1,\n hasProp = {}.hasOwnProperty;\n\n ref1 = __webpack_require__(/*! ./Utility */ \"./node_modules/xmlbuilder/lib/Utility.js\"), isObject = ref1.isObject, isFunction = ref1.isFunction, isEmpty = ref1.isEmpty, getValue = ref1.getValue;\n\n XMLElement = null;\n\n XMLCData = null;\n\n XMLComment = null;\n\n XMLDeclaration = null;\n\n XMLDocType = null;\n\n XMLRaw = null;\n\n XMLText = null;\n\n XMLProcessingInstruction = null;\n\n XMLDummy = null;\n\n NodeType = null;\n\n XMLNodeList = null;\n\n XMLNamedNodeMap = null;\n\n DocumentPosition = null;\n\n module.exports = XMLNode = (function() {\n function XMLNode(parent1) {\n this.parent = parent1;\n if (this.parent) {\n this.options = this.parent.options;\n this.stringify = this.parent.stringify;\n }\n this.value = null;\n this.children = [];\n this.baseURI = null;\n if (!XMLElement) {\n XMLElement = __webpack_require__(/*! ./XMLElement */ \"./node_modules/xmlbuilder/lib/XMLElement.js\");\n XMLCData = __webpack_require__(/*! ./XMLCData */ \"./node_modules/xmlbuilder/lib/XMLCData.js\");\n XMLComment = __webpack_require__(/*! ./XMLComment */ \"./node_modules/xmlbuilder/lib/XMLComment.js\");\n XMLDeclaration = __webpack_require__(/*! ./XMLDeclaration */ \"./node_modules/xmlbuilder/lib/XMLDeclaration.js\");\n XMLDocType = __webpack_require__(/*! ./XMLDocType */ \"./node_modules/xmlbuilder/lib/XMLDocType.js\");\n XMLRaw = __webpack_require__(/*! ./XMLRaw */ \"./node_modules/xmlbuilder/lib/XMLRaw.js\");\n XMLText = __webpack_require__(/*! ./XMLText */ \"./node_modules/xmlbuilder/lib/XMLText.js\");\n XMLProcessingInstruction = __webpack_require__(/*! ./XMLProcessingInstruction */ \"./node_modules/xmlbuilder/lib/XMLProcessingInstruction.js\");\n XMLDummy = __webpack_require__(/*! ./XMLDummy */ \"./node_modules/xmlbuilder/lib/XMLDummy.js\");\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n XMLNodeList = __webpack_require__(/*! ./XMLNodeList */ \"./node_modules/xmlbuilder/lib/XMLNodeList.js\");\n XMLNamedNodeMap = __webpack_require__(/*! ./XMLNamedNodeMap */ \"./node_modules/xmlbuilder/lib/XMLNamedNodeMap.js\");\n DocumentPosition = __webpack_require__(/*! ./DocumentPosition */ \"./node_modules/xmlbuilder/lib/DocumentPosition.js\");\n }\n }\n\n Object.defineProperty(XMLNode.prototype, 'nodeName', {\n get: function() {\n return this.name;\n }\n });\n\n Object.defineProperty(XMLNode.prototype, 'nodeType', {\n get: function() {\n return this.type;\n }\n });\n\n Object.defineProperty(XMLNode.prototype, 'nodeValue', {\n get: function() {\n return this.value;\n }\n });\n\n Object.defineProperty(XMLNode.prototype, 'parentNode', {\n get: function() {\n return this.parent;\n }\n });\n\n Object.defineProperty(XMLNode.prototype, 'childNodes', {\n get: function() {\n if (!this.childNodeList || !this.childNodeList.nodes) {\n this.childNodeList = new XMLNodeList(this.children);\n }\n return this.childNodeList;\n }\n });\n\n Object.defineProperty(XMLNode.prototype, 'firstChild', {\n get: function() {\n return this.children[0] || null;\n }\n });\n\n Object.defineProperty(XMLNode.prototype, 'lastChild', {\n get: function() {\n return this.children[this.children.length - 1] || null;\n }\n });\n\n Object.defineProperty(XMLNode.prototype, 'previousSibling', {\n get: function() {\n var i;\n i = this.parent.children.indexOf(this);\n return this.parent.children[i - 1] || null;\n }\n });\n\n Object.defineProperty(XMLNode.prototype, 'nextSibling', {\n get: function() {\n var i;\n i = this.parent.children.indexOf(this);\n return this.parent.children[i + 1] || null;\n }\n });\n\n Object.defineProperty(XMLNode.prototype, 'ownerDocument', {\n get: function() {\n return this.document() || null;\n }\n });\n\n Object.defineProperty(XMLNode.prototype, 'textContent', {\n get: function() {\n var child, j, len, ref2, str;\n if (this.nodeType === NodeType.Element || this.nodeType === NodeType.DocumentFragment) {\n str = '';\n ref2 = this.children;\n for (j = 0, len = ref2.length; j < len; j++) {\n child = ref2[j];\n if (child.textContent) {\n str += child.textContent;\n }\n }\n return str;\n } else {\n return null;\n }\n },\n set: function(value) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n }\n });\n\n XMLNode.prototype.setParent = function(parent) {\n var child, j, len, ref2, results;\n this.parent = parent;\n if (parent) {\n this.options = parent.options;\n this.stringify = parent.stringify;\n }\n ref2 = this.children;\n results = [];\n for (j = 0, len = ref2.length; j < len; j++) {\n child = ref2[j];\n results.push(child.setParent(this));\n }\n return results;\n };\n\n XMLNode.prototype.element = function(name, attributes, text) {\n var childNode, item, j, k, key, lastChild, len, len1, ref2, ref3, val;\n lastChild = null;\n if (attributes === null && (text == null)) {\n ref2 = [{}, null], attributes = ref2[0], text = ref2[1];\n }\n if (attributes == null) {\n attributes = {};\n }\n attributes = getValue(attributes);\n if (!isObject(attributes)) {\n ref3 = [attributes, text], text = ref3[0], attributes = ref3[1];\n }\n if (name != null) {\n name = getValue(name);\n }\n if (Array.isArray(name)) {\n for (j = 0, len = name.length; j < len; j++) {\n item = name[j];\n lastChild = this.element(item);\n }\n } else if (isFunction(name)) {\n lastChild = this.element(name.apply());\n } else if (isObject(name)) {\n for (key in name) {\n if (!hasProp.call(name, key)) continue;\n val = name[key];\n if (isFunction(val)) {\n val = val.apply();\n }\n if (!this.options.ignoreDecorators && this.stringify.convertAttKey && key.indexOf(this.stringify.convertAttKey) === 0) {\n lastChild = this.attribute(key.substr(this.stringify.convertAttKey.length), val);\n } else if (!this.options.separateArrayItems && Array.isArray(val) && isEmpty(val)) {\n lastChild = this.dummy();\n } else if (isObject(val) && isEmpty(val)) {\n lastChild = this.element(key);\n } else if (!this.options.keepNullNodes && (val == null)) {\n lastChild = this.dummy();\n } else if (!this.options.separateArrayItems && Array.isArray(val)) {\n for (k = 0, len1 = val.length; k < len1; k++) {\n item = val[k];\n childNode = {};\n childNode[key] = item;\n lastChild = this.element(childNode);\n }\n } else if (isObject(val)) {\n if (!this.options.ignoreDecorators && this.stringify.convertTextKey && key.indexOf(this.stringify.convertTextKey) === 0) {\n lastChild = this.element(val);\n } else {\n lastChild = this.element(key);\n lastChild.element(val);\n }\n } else {\n lastChild = this.element(key, val);\n }\n }\n } else if (!this.options.keepNullNodes && text === null) {\n lastChild = this.dummy();\n } else {\n if (!this.options.ignoreDecorators && this.stringify.convertTextKey && name.indexOf(this.stringify.convertTextKey) === 0) {\n lastChild = this.text(text);\n } else if (!this.options.ignoreDecorators && this.stringify.convertCDataKey && name.indexOf(this.stringify.convertCDataKey) === 0) {\n lastChild = this.cdata(text);\n } else if (!this.options.ignoreDecorators && this.stringify.convertCommentKey && name.indexOf(this.stringify.convertCommentKey) === 0) {\n lastChild = this.comment(text);\n } else if (!this.options.ignoreDecorators && this.stringify.convertRawKey && name.indexOf(this.stringify.convertRawKey) === 0) {\n lastChild = this.raw(text);\n } else if (!this.options.ignoreDecorators && this.stringify.convertPIKey && name.indexOf(this.stringify.convertPIKey) === 0) {\n lastChild = this.instruction(name.substr(this.stringify.convertPIKey.length), text);\n } else {\n lastChild = this.node(name, attributes, text);\n }\n }\n if (lastChild == null) {\n throw new Error(\"Could not create any elements with: \" + name + \". \" + this.debugInfo());\n }\n return lastChild;\n };\n\n XMLNode.prototype.insertBefore = function(name, attributes, text) {\n var child, i, newChild, refChild, removed;\n if (name != null ? name.type : void 0) {\n newChild = name;\n refChild = attributes;\n newChild.setParent(this);\n if (refChild) {\n i = children.indexOf(refChild);\n removed = children.splice(i);\n children.push(newChild);\n Array.prototype.push.apply(children, removed);\n } else {\n children.push(newChild);\n }\n return newChild;\n } else {\n if (this.isRoot) {\n throw new Error(\"Cannot insert elements at root level. \" + this.debugInfo(name));\n }\n i = this.parent.children.indexOf(this);\n removed = this.parent.children.splice(i);\n child = this.parent.element(name, attributes, text);\n Array.prototype.push.apply(this.parent.children, removed);\n return child;\n }\n };\n\n XMLNode.prototype.insertAfter = function(name, attributes, text) {\n var child, i, removed;\n if (this.isRoot) {\n throw new Error(\"Cannot insert elements at root level. \" + this.debugInfo(name));\n }\n i = this.parent.children.indexOf(this);\n removed = this.parent.children.splice(i + 1);\n child = this.parent.element(name, attributes, text);\n Array.prototype.push.apply(this.parent.children, removed);\n return child;\n };\n\n XMLNode.prototype.remove = function() {\n var i, ref2;\n if (this.isRoot) {\n throw new Error(\"Cannot remove the root element. \" + this.debugInfo());\n }\n i = this.parent.children.indexOf(this);\n [].splice.apply(this.parent.children, [i, i - i + 1].concat(ref2 = [])), ref2;\n return this.parent;\n };\n\n XMLNode.prototype.node = function(name, attributes, text) {\n var child, ref2;\n if (name != null) {\n name = getValue(name);\n }\n attributes || (attributes = {});\n attributes = getValue(attributes);\n if (!isObject(attributes)) {\n ref2 = [attributes, text], text = ref2[0], attributes = ref2[1];\n }\n child = new XMLElement(this, name, attributes);\n if (text != null) {\n child.text(text);\n }\n this.children.push(child);\n return child;\n };\n\n XMLNode.prototype.text = function(value) {\n var child;\n if (isObject(value)) {\n this.element(value);\n }\n child = new XMLText(this, value);\n this.children.push(child);\n return this;\n };\n\n XMLNode.prototype.cdata = function(value) {\n var child;\n child = new XMLCData(this, value);\n this.children.push(child);\n return this;\n };\n\n XMLNode.prototype.comment = function(value) {\n var child;\n child = new XMLComment(this, value);\n this.children.push(child);\n return this;\n };\n\n XMLNode.prototype.commentBefore = function(value) {\n var child, i, removed;\n i = this.parent.children.indexOf(this);\n removed = this.parent.children.splice(i);\n child = this.parent.comment(value);\n Array.prototype.push.apply(this.parent.children, removed);\n return this;\n };\n\n XMLNode.prototype.commentAfter = function(value) {\n var child, i, removed;\n i = this.parent.children.indexOf(this);\n removed = this.parent.children.splice(i + 1);\n child = this.parent.comment(value);\n Array.prototype.push.apply(this.parent.children, removed);\n return this;\n };\n\n XMLNode.prototype.raw = function(value) {\n var child;\n child = new XMLRaw(this, value);\n this.children.push(child);\n return this;\n };\n\n XMLNode.prototype.dummy = function() {\n var child;\n child = new XMLDummy(this);\n return child;\n };\n\n XMLNode.prototype.instruction = function(target, value) {\n var insTarget, insValue, instruction, j, len;\n if (target != null) {\n target = getValue(target);\n }\n if (value != null) {\n value = getValue(value);\n }\n if (Array.isArray(target)) {\n for (j = 0, len = target.length; j < len; j++) {\n insTarget = target[j];\n this.instruction(insTarget);\n }\n } else if (isObject(target)) {\n for (insTarget in target) {\n if (!hasProp.call(target, insTarget)) continue;\n insValue = target[insTarget];\n this.instruction(insTarget, insValue);\n }\n } else {\n if (isFunction(value)) {\n value = value.apply();\n }\n instruction = new XMLProcessingInstruction(this, target, value);\n this.children.push(instruction);\n }\n return this;\n };\n\n XMLNode.prototype.instructionBefore = function(target, value) {\n var child, i, removed;\n i = this.parent.children.indexOf(this);\n removed = this.parent.children.splice(i);\n child = this.parent.instruction(target, value);\n Array.prototype.push.apply(this.parent.children, removed);\n return this;\n };\n\n XMLNode.prototype.instructionAfter = function(target, value) {\n var child, i, removed;\n i = this.parent.children.indexOf(this);\n removed = this.parent.children.splice(i + 1);\n child = this.parent.instruction(target, value);\n Array.prototype.push.apply(this.parent.children, removed);\n return this;\n };\n\n XMLNode.prototype.declaration = function(version, encoding, standalone) {\n var doc, xmldec;\n doc = this.document();\n xmldec = new XMLDeclaration(doc, version, encoding, standalone);\n if (doc.children.length === 0) {\n doc.children.unshift(xmldec);\n } else if (doc.children[0].type === NodeType.Declaration) {\n doc.children[0] = xmldec;\n } else {\n doc.children.unshift(xmldec);\n }\n return doc.root() || doc;\n };\n\n XMLNode.prototype.dtd = function(pubID, sysID) {\n var child, doc, doctype, i, j, k, len, len1, ref2, ref3;\n doc = this.document();\n doctype = new XMLDocType(doc, pubID, sysID);\n ref2 = doc.children;\n for (i = j = 0, len = ref2.length; j < len; i = ++j) {\n child = ref2[i];\n if (child.type === NodeType.DocType) {\n doc.children[i] = doctype;\n return doctype;\n }\n }\n ref3 = doc.children;\n for (i = k = 0, len1 = ref3.length; k < len1; i = ++k) {\n child = ref3[i];\n if (child.isRoot) {\n doc.children.splice(i, 0, doctype);\n return doctype;\n }\n }\n doc.children.push(doctype);\n return doctype;\n };\n\n XMLNode.prototype.up = function() {\n if (this.isRoot) {\n throw new Error(\"The root node has no parent. Use doc() if you need to get the document object.\");\n }\n return this.parent;\n };\n\n XMLNode.prototype.root = function() {\n var node;\n node = this;\n while (node) {\n if (node.type === NodeType.Document) {\n return node.rootObject;\n } else if (node.isRoot) {\n return node;\n } else {\n node = node.parent;\n }\n }\n };\n\n XMLNode.prototype.document = function() {\n var node;\n node = this;\n while (node) {\n if (node.type === NodeType.Document) {\n return node;\n } else {\n node = node.parent;\n }\n }\n };\n\n XMLNode.prototype.end = function(options) {\n return this.document().end(options);\n };\n\n XMLNode.prototype.prev = function() {\n var i;\n i = this.parent.children.indexOf(this);\n if (i < 1) {\n throw new Error(\"Already at the first node. \" + this.debugInfo());\n }\n return this.parent.children[i - 1];\n };\n\n XMLNode.prototype.next = function() {\n var i;\n i = this.parent.children.indexOf(this);\n if (i === -1 || i === this.parent.children.length - 1) {\n throw new Error(\"Already at the last node. \" + this.debugInfo());\n }\n return this.parent.children[i + 1];\n };\n\n XMLNode.prototype.importDocument = function(doc) {\n var clonedRoot;\n clonedRoot = doc.root().clone();\n clonedRoot.parent = this;\n clonedRoot.isRoot = false;\n this.children.push(clonedRoot);\n return this;\n };\n\n XMLNode.prototype.debugInfo = function(name) {\n var ref2, ref3;\n name = name || this.name;\n if ((name == null) && !((ref2 = this.parent) != null ? ref2.name : void 0)) {\n return \"\";\n } else if (name == null) {\n return \"parent: <\" + this.parent.name + \">\";\n } else if (!((ref3 = this.parent) != null ? ref3.name : void 0)) {\n return \"node: <\" + name + \">\";\n } else {\n return \"node: <\" + name + \">, parent: <\" + this.parent.name + \">\";\n }\n };\n\n XMLNode.prototype.ele = function(name, attributes, text) {\n return this.element(name, attributes, text);\n };\n\n XMLNode.prototype.nod = function(name, attributes, text) {\n return this.node(name, attributes, text);\n };\n\n XMLNode.prototype.txt = function(value) {\n return this.text(value);\n };\n\n XMLNode.prototype.dat = function(value) {\n return this.cdata(value);\n };\n\n XMLNode.prototype.com = function(value) {\n return this.comment(value);\n };\n\n XMLNode.prototype.ins = function(target, value) {\n return this.instruction(target, value);\n };\n\n XMLNode.prototype.doc = function() {\n return this.document();\n };\n\n XMLNode.prototype.dec = function(version, encoding, standalone) {\n return this.declaration(version, encoding, standalone);\n };\n\n XMLNode.prototype.e = function(name, attributes, text) {\n return this.element(name, attributes, text);\n };\n\n XMLNode.prototype.n = function(name, attributes, text) {\n return this.node(name, attributes, text);\n };\n\n XMLNode.prototype.t = function(value) {\n return this.text(value);\n };\n\n XMLNode.prototype.d = function(value) {\n return this.cdata(value);\n };\n\n XMLNode.prototype.c = function(value) {\n return this.comment(value);\n };\n\n XMLNode.prototype.r = function(value) {\n return this.raw(value);\n };\n\n XMLNode.prototype.i = function(target, value) {\n return this.instruction(target, value);\n };\n\n XMLNode.prototype.u = function() {\n return this.up();\n };\n\n XMLNode.prototype.importXMLBuilder = function(doc) {\n return this.importDocument(doc);\n };\n\n XMLNode.prototype.replaceChild = function(newChild, oldChild) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLNode.prototype.removeChild = function(oldChild) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLNode.prototype.appendChild = function(newChild) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLNode.prototype.hasChildNodes = function() {\n return this.children.length !== 0;\n };\n\n XMLNode.prototype.cloneNode = function(deep) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLNode.prototype.normalize = function() {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLNode.prototype.isSupported = function(feature, version) {\n return true;\n };\n\n XMLNode.prototype.hasAttributes = function() {\n return this.attribs.length !== 0;\n };\n\n XMLNode.prototype.compareDocumentPosition = function(other) {\n var ref, res;\n ref = this;\n if (ref === other) {\n return 0;\n } else if (this.document() !== other.document()) {\n res = DocumentPosition.Disconnected | DocumentPosition.ImplementationSpecific;\n if (Math.random() < 0.5) {\n res |= DocumentPosition.Preceding;\n } else {\n res |= DocumentPosition.Following;\n }\n return res;\n } else if (ref.isAncestor(other)) {\n return DocumentPosition.Contains | DocumentPosition.Preceding;\n } else if (ref.isDescendant(other)) {\n return DocumentPosition.Contains | DocumentPosition.Following;\n } else if (ref.isPreceding(other)) {\n return DocumentPosition.Preceding;\n } else {\n return DocumentPosition.Following;\n }\n };\n\n XMLNode.prototype.isSameNode = function(other) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLNode.prototype.lookupPrefix = function(namespaceURI) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLNode.prototype.isDefaultNamespace = function(namespaceURI) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLNode.prototype.lookupNamespaceURI = function(prefix) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLNode.prototype.isEqualNode = function(node) {\n var i, j, ref2;\n if (node.nodeType !== this.nodeType) {\n return false;\n }\n if (node.children.length !== this.children.length) {\n return false;\n }\n for (i = j = 0, ref2 = this.children.length - 1; 0 <= ref2 ? j <= ref2 : j >= ref2; i = 0 <= ref2 ? ++j : --j) {\n if (!this.children[i].isEqualNode(node.children[i])) {\n return false;\n }\n }\n return true;\n };\n\n XMLNode.prototype.getFeature = function(feature, version) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLNode.prototype.setUserData = function(key, data, handler) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLNode.prototype.getUserData = function(key) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLNode.prototype.contains = function(other) {\n if (!other) {\n return false;\n }\n return other === this || this.isDescendant(other);\n };\n\n XMLNode.prototype.isDescendant = function(node) {\n var child, isDescendantChild, j, len, ref2;\n ref2 = this.children;\n for (j = 0, len = ref2.length; j < len; j++) {\n child = ref2[j];\n if (node === child) {\n return true;\n }\n isDescendantChild = child.isDescendant(node);\n if (isDescendantChild) {\n return true;\n }\n }\n return false;\n };\n\n XMLNode.prototype.isAncestor = function(node) {\n return node.isDescendant(this);\n };\n\n XMLNode.prototype.isPreceding = function(node) {\n var nodePos, thisPos;\n nodePos = this.treePosition(node);\n thisPos = this.treePosition(this);\n if (nodePos === -1 || thisPos === -1) {\n return false;\n } else {\n return nodePos < thisPos;\n }\n };\n\n XMLNode.prototype.isFollowing = function(node) {\n var nodePos, thisPos;\n nodePos = this.treePosition(node);\n thisPos = this.treePosition(this);\n if (nodePos === -1 || thisPos === -1) {\n return false;\n } else {\n return nodePos > thisPos;\n }\n };\n\n XMLNode.prototype.treePosition = function(node) {\n var found, pos;\n pos = 0;\n found = false;\n this.foreachTreeNode(this.document(), function(childNode) {\n pos++;\n if (!found && childNode === node) {\n return found = true;\n }\n });\n if (found) {\n return pos;\n } else {\n return -1;\n }\n };\n\n XMLNode.prototype.foreachTreeNode = function(node, func) {\n var child, j, len, ref2, res;\n node || (node = this.document());\n ref2 = node.children;\n for (j = 0, len = ref2.length; j < len; j++) {\n child = ref2[j];\n if (res = func(child)) {\n return res;\n } else {\n res = this.foreachTreeNode(child, func);\n if (res) {\n return res;\n }\n }\n }\n };\n\n return XMLNode;\n\n })();\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLNode.js?");
985
+
986
+ /***/ }),
987
+
988
+ /***/ "./node_modules/xmlbuilder/lib/XMLNodeList.js":
989
+ /*!****************************************************!*\
990
+ !*** ./node_modules/xmlbuilder/lib/XMLNodeList.js ***!
991
+ \****************************************************/
992
+ /*! no static exports found */
993
+ /***/ (function(module, exports) {
994
+
995
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var XMLNodeList;\n\n module.exports = XMLNodeList = (function() {\n function XMLNodeList(nodes) {\n this.nodes = nodes;\n }\n\n Object.defineProperty(XMLNodeList.prototype, 'length', {\n get: function() {\n return this.nodes.length || 0;\n }\n });\n\n XMLNodeList.prototype.clone = function() {\n return this.nodes = null;\n };\n\n XMLNodeList.prototype.item = function(index) {\n return this.nodes[index] || null;\n };\n\n return XMLNodeList;\n\n })();\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLNodeList.js?");
996
+
997
+ /***/ }),
998
+
999
+ /***/ "./node_modules/xmlbuilder/lib/XMLProcessingInstruction.js":
1000
+ /*!*****************************************************************!*\
1001
+ !*** ./node_modules/xmlbuilder/lib/XMLProcessingInstruction.js ***!
1002
+ \*****************************************************************/
1003
+ /*! no static exports found */
1004
+ /***/ (function(module, exports, __webpack_require__) {
1005
+
1006
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, XMLCharacterData, XMLProcessingInstruction,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n XMLCharacterData = __webpack_require__(/*! ./XMLCharacterData */ \"./node_modules/xmlbuilder/lib/XMLCharacterData.js\");\n\n module.exports = XMLProcessingInstruction = (function(superClass) {\n extend(XMLProcessingInstruction, superClass);\n\n function XMLProcessingInstruction(parent, target, value) {\n XMLProcessingInstruction.__super__.constructor.call(this, parent);\n if (target == null) {\n throw new Error(\"Missing instruction target. \" + this.debugInfo());\n }\n this.type = NodeType.ProcessingInstruction;\n this.target = this.stringify.insTarget(target);\n this.name = this.target;\n if (value) {\n this.value = this.stringify.insValue(value);\n }\n }\n\n XMLProcessingInstruction.prototype.clone = function() {\n return Object.create(this);\n };\n\n XMLProcessingInstruction.prototype.toString = function(options) {\n return this.options.writer.processingInstruction(this, this.options.writer.filterOptions(options));\n };\n\n XMLProcessingInstruction.prototype.isEqualNode = function(node) {\n if (!XMLProcessingInstruction.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) {\n return false;\n }\n if (node.target !== this.target) {\n return false;\n }\n return true;\n };\n\n return XMLProcessingInstruction;\n\n })(XMLCharacterData);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLProcessingInstruction.js?");
1007
+
1008
+ /***/ }),
1009
+
1010
+ /***/ "./node_modules/xmlbuilder/lib/XMLRaw.js":
1011
+ /*!***********************************************!*\
1012
+ !*** ./node_modules/xmlbuilder/lib/XMLRaw.js ***!
1013
+ \***********************************************/
1014
+ /*! no static exports found */
1015
+ /***/ (function(module, exports, __webpack_require__) {
1016
+
1017
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, XMLNode, XMLRaw,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n XMLNode = __webpack_require__(/*! ./XMLNode */ \"./node_modules/xmlbuilder/lib/XMLNode.js\");\n\n module.exports = XMLRaw = (function(superClass) {\n extend(XMLRaw, superClass);\n\n function XMLRaw(parent, text) {\n XMLRaw.__super__.constructor.call(this, parent);\n if (text == null) {\n throw new Error(\"Missing raw text. \" + this.debugInfo());\n }\n this.type = NodeType.Raw;\n this.value = this.stringify.raw(text);\n }\n\n XMLRaw.prototype.clone = function() {\n return Object.create(this);\n };\n\n XMLRaw.prototype.toString = function(options) {\n return this.options.writer.raw(this, this.options.writer.filterOptions(options));\n };\n\n return XMLRaw;\n\n })(XMLNode);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLRaw.js?");
1018
+
1019
+ /***/ }),
1020
+
1021
+ /***/ "./node_modules/xmlbuilder/lib/XMLStreamWriter.js":
1022
+ /*!********************************************************!*\
1023
+ !*** ./node_modules/xmlbuilder/lib/XMLStreamWriter.js ***!
1024
+ \********************************************************/
1025
+ /*! no static exports found */
1026
+ /***/ (function(module, exports, __webpack_require__) {
1027
+
1028
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, WriterState, XMLStreamWriter, XMLWriterBase,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n XMLWriterBase = __webpack_require__(/*! ./XMLWriterBase */ \"./node_modules/xmlbuilder/lib/XMLWriterBase.js\");\n\n WriterState = __webpack_require__(/*! ./WriterState */ \"./node_modules/xmlbuilder/lib/WriterState.js\");\n\n module.exports = XMLStreamWriter = (function(superClass) {\n extend(XMLStreamWriter, superClass);\n\n function XMLStreamWriter(stream, options) {\n this.stream = stream;\n XMLStreamWriter.__super__.constructor.call(this, options);\n }\n\n XMLStreamWriter.prototype.endline = function(node, options, level) {\n if (node.isLastRootNode && options.state === WriterState.CloseTag) {\n return '';\n } else {\n return XMLStreamWriter.__super__.endline.call(this, node, options, level);\n }\n };\n\n XMLStreamWriter.prototype.document = function(doc, options) {\n var child, i, j, k, len, len1, ref, ref1, results;\n ref = doc.children;\n for (i = j = 0, len = ref.length; j < len; i = ++j) {\n child = ref[i];\n child.isLastRootNode = i === doc.children.length - 1;\n }\n options = this.filterOptions(options);\n ref1 = doc.children;\n results = [];\n for (k = 0, len1 = ref1.length; k < len1; k++) {\n child = ref1[k];\n results.push(this.writeChildNode(child, options, 0));\n }\n return results;\n };\n\n XMLStreamWriter.prototype.attribute = function(att, options, level) {\n return this.stream.write(XMLStreamWriter.__super__.attribute.call(this, att, options, level));\n };\n\n XMLStreamWriter.prototype.cdata = function(node, options, level) {\n return this.stream.write(XMLStreamWriter.__super__.cdata.call(this, node, options, level));\n };\n\n XMLStreamWriter.prototype.comment = function(node, options, level) {\n return this.stream.write(XMLStreamWriter.__super__.comment.call(this, node, options, level));\n };\n\n XMLStreamWriter.prototype.declaration = function(node, options, level) {\n return this.stream.write(XMLStreamWriter.__super__.declaration.call(this, node, options, level));\n };\n\n XMLStreamWriter.prototype.docType = function(node, options, level) {\n var child, j, len, ref;\n level || (level = 0);\n this.openNode(node, options, level);\n options.state = WriterState.OpenTag;\n this.stream.write(this.indent(node, options, level));\n this.stream.write('<!DOCTYPE ' + node.root().name);\n if (node.pubID && node.sysID) {\n this.stream.write(' PUBLIC \"' + node.pubID + '\" \"' + node.sysID + '\"');\n } else if (node.sysID) {\n this.stream.write(' SYSTEM \"' + node.sysID + '\"');\n }\n if (node.children.length > 0) {\n this.stream.write(' [');\n this.stream.write(this.endline(node, options, level));\n options.state = WriterState.InsideTag;\n ref = node.children;\n for (j = 0, len = ref.length; j < len; j++) {\n child = ref[j];\n this.writeChildNode(child, options, level + 1);\n }\n options.state = WriterState.CloseTag;\n this.stream.write(']');\n }\n options.state = WriterState.CloseTag;\n this.stream.write(options.spaceBeforeSlash + '>');\n this.stream.write(this.endline(node, options, level));\n options.state = WriterState.None;\n return this.closeNode(node, options, level);\n };\n\n XMLStreamWriter.prototype.element = function(node, options, level) {\n var att, child, childNodeCount, firstChildNode, j, len, name, prettySuppressed, ref, ref1;\n level || (level = 0);\n this.openNode(node, options, level);\n options.state = WriterState.OpenTag;\n this.stream.write(this.indent(node, options, level) + '<' + node.name);\n ref = node.attribs;\n for (name in ref) {\n if (!hasProp.call(ref, name)) continue;\n att = ref[name];\n this.attribute(att, options, level);\n }\n childNodeCount = node.children.length;\n firstChildNode = childNodeCount === 0 ? null : node.children[0];\n if (childNodeCount === 0 || node.children.every(function(e) {\n return (e.type === NodeType.Text || e.type === NodeType.Raw) && e.value === '';\n })) {\n if (options.allowEmpty) {\n this.stream.write('>');\n options.state = WriterState.CloseTag;\n this.stream.write('</' + node.name + '>');\n } else {\n options.state = WriterState.CloseTag;\n this.stream.write(options.spaceBeforeSlash + '/>');\n }\n } else if (options.pretty && childNodeCount === 1 && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw) && (firstChildNode.value != null)) {\n this.stream.write('>');\n options.state = WriterState.InsideTag;\n options.suppressPrettyCount++;\n prettySuppressed = true;\n this.writeChildNode(firstChildNode, options, level + 1);\n options.suppressPrettyCount--;\n prettySuppressed = false;\n options.state = WriterState.CloseTag;\n this.stream.write('</' + node.name + '>');\n } else {\n this.stream.write('>' + this.endline(node, options, level));\n options.state = WriterState.InsideTag;\n ref1 = node.children;\n for (j = 0, len = ref1.length; j < len; j++) {\n child = ref1[j];\n this.writeChildNode(child, options, level + 1);\n }\n options.state = WriterState.CloseTag;\n this.stream.write(this.indent(node, options, level) + '</' + node.name + '>');\n }\n this.stream.write(this.endline(node, options, level));\n options.state = WriterState.None;\n return this.closeNode(node, options, level);\n };\n\n XMLStreamWriter.prototype.processingInstruction = function(node, options, level) {\n return this.stream.write(XMLStreamWriter.__super__.processingInstruction.call(this, node, options, level));\n };\n\n XMLStreamWriter.prototype.raw = function(node, options, level) {\n return this.stream.write(XMLStreamWriter.__super__.raw.call(this, node, options, level));\n };\n\n XMLStreamWriter.prototype.text = function(node, options, level) {\n return this.stream.write(XMLStreamWriter.__super__.text.call(this, node, options, level));\n };\n\n XMLStreamWriter.prototype.dtdAttList = function(node, options, level) {\n return this.stream.write(XMLStreamWriter.__super__.dtdAttList.call(this, node, options, level));\n };\n\n XMLStreamWriter.prototype.dtdElement = function(node, options, level) {\n return this.stream.write(XMLStreamWriter.__super__.dtdElement.call(this, node, options, level));\n };\n\n XMLStreamWriter.prototype.dtdEntity = function(node, options, level) {\n return this.stream.write(XMLStreamWriter.__super__.dtdEntity.call(this, node, options, level));\n };\n\n XMLStreamWriter.prototype.dtdNotation = function(node, options, level) {\n return this.stream.write(XMLStreamWriter.__super__.dtdNotation.call(this, node, options, level));\n };\n\n return XMLStreamWriter;\n\n })(XMLWriterBase);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLStreamWriter.js?");
1029
+
1030
+ /***/ }),
1031
+
1032
+ /***/ "./node_modules/xmlbuilder/lib/XMLStringWriter.js":
1033
+ /*!********************************************************!*\
1034
+ !*** ./node_modules/xmlbuilder/lib/XMLStringWriter.js ***!
1035
+ \********************************************************/
1036
+ /*! no static exports found */
1037
+ /***/ (function(module, exports, __webpack_require__) {
1038
+
1039
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var XMLStringWriter, XMLWriterBase,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n XMLWriterBase = __webpack_require__(/*! ./XMLWriterBase */ \"./node_modules/xmlbuilder/lib/XMLWriterBase.js\");\n\n module.exports = XMLStringWriter = (function(superClass) {\n extend(XMLStringWriter, superClass);\n\n function XMLStringWriter(options) {\n XMLStringWriter.__super__.constructor.call(this, options);\n }\n\n XMLStringWriter.prototype.document = function(doc, options) {\n var child, i, len, r, ref;\n options = this.filterOptions(options);\n r = '';\n ref = doc.children;\n for (i = 0, len = ref.length; i < len; i++) {\n child = ref[i];\n r += this.writeChildNode(child, options, 0);\n }\n if (options.pretty && r.slice(-options.newline.length) === options.newline) {\n r = r.slice(0, -options.newline.length);\n }\n return r;\n };\n\n return XMLStringWriter;\n\n })(XMLWriterBase);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLStringWriter.js?");
1040
+
1041
+ /***/ }),
1042
+
1043
+ /***/ "./node_modules/xmlbuilder/lib/XMLStringifier.js":
1044
+ /*!*******************************************************!*\
1045
+ !*** ./node_modules/xmlbuilder/lib/XMLStringifier.js ***!
1046
+ \*******************************************************/
1047
+ /*! no static exports found */
1048
+ /***/ (function(module, exports) {
1049
+
1050
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var XMLStringifier,\n bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },\n hasProp = {}.hasOwnProperty;\n\n module.exports = XMLStringifier = (function() {\n function XMLStringifier(options) {\n this.assertLegalName = bind(this.assertLegalName, this);\n this.assertLegalChar = bind(this.assertLegalChar, this);\n var key, ref, value;\n options || (options = {});\n this.options = options;\n if (!this.options.version) {\n this.options.version = '1.0';\n }\n ref = options.stringify || {};\n for (key in ref) {\n if (!hasProp.call(ref, key)) continue;\n value = ref[key];\n this[key] = value;\n }\n }\n\n XMLStringifier.prototype.name = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n return this.assertLegalName('' + val || '');\n };\n\n XMLStringifier.prototype.text = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n return this.assertLegalChar(this.textEscape('' + val || ''));\n };\n\n XMLStringifier.prototype.cdata = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n val = '' + val || '';\n val = val.replace(']]>', ']]]]><![CDATA[>');\n return this.assertLegalChar(val);\n };\n\n XMLStringifier.prototype.comment = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n val = '' + val || '';\n if (val.match(/--/)) {\n throw new Error(\"Comment text cannot contain double-hypen: \" + val);\n }\n return this.assertLegalChar(val);\n };\n\n XMLStringifier.prototype.raw = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n return '' + val || '';\n };\n\n XMLStringifier.prototype.attValue = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n return this.assertLegalChar(this.attEscape(val = '' + val || ''));\n };\n\n XMLStringifier.prototype.insTarget = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n return this.assertLegalChar('' + val || '');\n };\n\n XMLStringifier.prototype.insValue = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n val = '' + val || '';\n if (val.match(/\\?>/)) {\n throw new Error(\"Invalid processing instruction value: \" + val);\n }\n return this.assertLegalChar(val);\n };\n\n XMLStringifier.prototype.xmlVersion = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n val = '' + val || '';\n if (!val.match(/1\\.[0-9]+/)) {\n throw new Error(\"Invalid version number: \" + val);\n }\n return val;\n };\n\n XMLStringifier.prototype.xmlEncoding = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n val = '' + val || '';\n if (!val.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)) {\n throw new Error(\"Invalid encoding: \" + val);\n }\n return this.assertLegalChar(val);\n };\n\n XMLStringifier.prototype.xmlStandalone = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n if (val) {\n return \"yes\";\n } else {\n return \"no\";\n }\n };\n\n XMLStringifier.prototype.dtdPubID = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n return this.assertLegalChar('' + val || '');\n };\n\n XMLStringifier.prototype.dtdSysID = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n return this.assertLegalChar('' + val || '');\n };\n\n XMLStringifier.prototype.dtdElementValue = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n return this.assertLegalChar('' + val || '');\n };\n\n XMLStringifier.prototype.dtdAttType = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n return this.assertLegalChar('' + val || '');\n };\n\n XMLStringifier.prototype.dtdAttDefault = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n return this.assertLegalChar('' + val || '');\n };\n\n XMLStringifier.prototype.dtdEntityValue = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n return this.assertLegalChar('' + val || '');\n };\n\n XMLStringifier.prototype.dtdNData = function(val) {\n if (this.options.noValidation) {\n return val;\n }\n return this.assertLegalChar('' + val || '');\n };\n\n XMLStringifier.prototype.convertAttKey = '@';\n\n XMLStringifier.prototype.convertPIKey = '?';\n\n XMLStringifier.prototype.convertTextKey = '#text';\n\n XMLStringifier.prototype.convertCDataKey = '#cdata';\n\n XMLStringifier.prototype.convertCommentKey = '#comment';\n\n XMLStringifier.prototype.convertRawKey = '#raw';\n\n XMLStringifier.prototype.assertLegalChar = function(str) {\n var regex, res;\n if (this.options.noValidation) {\n return str;\n }\n regex = '';\n if (this.options.version === '1.0') {\n regex = /[\\0-\\x08\\x0B\\f\\x0E-\\x1F\\uFFFE\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/;\n if (res = str.match(regex)) {\n throw new Error(\"Invalid character in string: \" + str + \" at index \" + res.index);\n }\n } else if (this.options.version === '1.1') {\n regex = /[\\0\\uFFFE\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/;\n if (res = str.match(regex)) {\n throw new Error(\"Invalid character in string: \" + str + \" at index \" + res.index);\n }\n }\n return str;\n };\n\n XMLStringifier.prototype.assertLegalName = function(str) {\n var regex;\n if (this.options.noValidation) {\n return str;\n }\n this.assertLegalChar(str);\n regex = /^([:A-Z_a-z\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|[\\uD800-\\uDB7F][\\uDC00-\\uDFFF])([\\x2D\\.0-:A-Z_a-z\\xB7\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u037D\\u037F-\\u1FFF\\u200C\\u200D\\u203F\\u2040\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|[\\uD800-\\uDB7F][\\uDC00-\\uDFFF])*$/;\n if (!str.match(regex)) {\n throw new Error(\"Invalid character in name\");\n }\n return str;\n };\n\n XMLStringifier.prototype.textEscape = function(str) {\n var ampregex;\n if (this.options.noValidation) {\n return str;\n }\n ampregex = this.options.noDoubleEncoding ? /(?!&\\S+;)&/g : /&/g;\n return str.replace(ampregex, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\\r/g, '&#xD;');\n };\n\n XMLStringifier.prototype.attEscape = function(str) {\n var ampregex;\n if (this.options.noValidation) {\n return str;\n }\n ampregex = this.options.noDoubleEncoding ? /(?!&\\S+;)&/g : /&/g;\n return str.replace(ampregex, '&amp;').replace(/</g, '&lt;').replace(/\"/g, '&quot;').replace(/\\t/g, '&#x9;').replace(/\\n/g, '&#xA;').replace(/\\r/g, '&#xD;');\n };\n\n return XMLStringifier;\n\n })();\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLStringifier.js?");
1051
+
1052
+ /***/ }),
1053
+
1054
+ /***/ "./node_modules/xmlbuilder/lib/XMLText.js":
1055
+ /*!************************************************!*\
1056
+ !*** ./node_modules/xmlbuilder/lib/XMLText.js ***!
1057
+ \************************************************/
1058
+ /*! no static exports found */
1059
+ /***/ (function(module, exports, __webpack_require__) {
1060
+
1061
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, XMLCharacterData, XMLText,\n extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n hasProp = {}.hasOwnProperty;\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n XMLCharacterData = __webpack_require__(/*! ./XMLCharacterData */ \"./node_modules/xmlbuilder/lib/XMLCharacterData.js\");\n\n module.exports = XMLText = (function(superClass) {\n extend(XMLText, superClass);\n\n function XMLText(parent, text) {\n XMLText.__super__.constructor.call(this, parent);\n if (text == null) {\n throw new Error(\"Missing element text. \" + this.debugInfo());\n }\n this.name = \"#text\";\n this.type = NodeType.Text;\n this.value = this.stringify.text(text);\n }\n\n Object.defineProperty(XMLText.prototype, 'isElementContentWhitespace', {\n get: function() {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n }\n });\n\n Object.defineProperty(XMLText.prototype, 'wholeText', {\n get: function() {\n var next, prev, str;\n str = '';\n prev = this.previousSibling;\n while (prev) {\n str = prev.data + str;\n prev = prev.previousSibling;\n }\n str += this.data;\n next = this.nextSibling;\n while (next) {\n str = str + next.data;\n next = next.nextSibling;\n }\n return str;\n }\n });\n\n XMLText.prototype.clone = function() {\n return Object.create(this);\n };\n\n XMLText.prototype.toString = function(options) {\n return this.options.writer.text(this, this.options.writer.filterOptions(options));\n };\n\n XMLText.prototype.splitText = function(offset) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n XMLText.prototype.replaceWholeText = function(content) {\n throw new Error(\"This DOM method is not implemented.\" + this.debugInfo());\n };\n\n return XMLText;\n\n })(XMLCharacterData);\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLText.js?");
1062
+
1063
+ /***/ }),
1064
+
1065
+ /***/ "./node_modules/xmlbuilder/lib/XMLWriterBase.js":
1066
+ /*!******************************************************!*\
1067
+ !*** ./node_modules/xmlbuilder/lib/XMLWriterBase.js ***!
1068
+ \******************************************************/
1069
+ /*! no static exports found */
1070
+ /***/ (function(module, exports, __webpack_require__) {
1071
+
1072
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, WriterState, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLProcessingInstruction, XMLRaw, XMLText, XMLWriterBase, assign,\n hasProp = {}.hasOwnProperty;\n\n assign = __webpack_require__(/*! ./Utility */ \"./node_modules/xmlbuilder/lib/Utility.js\").assign;\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n XMLDeclaration = __webpack_require__(/*! ./XMLDeclaration */ \"./node_modules/xmlbuilder/lib/XMLDeclaration.js\");\n\n XMLDocType = __webpack_require__(/*! ./XMLDocType */ \"./node_modules/xmlbuilder/lib/XMLDocType.js\");\n\n XMLCData = __webpack_require__(/*! ./XMLCData */ \"./node_modules/xmlbuilder/lib/XMLCData.js\");\n\n XMLComment = __webpack_require__(/*! ./XMLComment */ \"./node_modules/xmlbuilder/lib/XMLComment.js\");\n\n XMLElement = __webpack_require__(/*! ./XMLElement */ \"./node_modules/xmlbuilder/lib/XMLElement.js\");\n\n XMLRaw = __webpack_require__(/*! ./XMLRaw */ \"./node_modules/xmlbuilder/lib/XMLRaw.js\");\n\n XMLText = __webpack_require__(/*! ./XMLText */ \"./node_modules/xmlbuilder/lib/XMLText.js\");\n\n XMLProcessingInstruction = __webpack_require__(/*! ./XMLProcessingInstruction */ \"./node_modules/xmlbuilder/lib/XMLProcessingInstruction.js\");\n\n XMLDummy = __webpack_require__(/*! ./XMLDummy */ \"./node_modules/xmlbuilder/lib/XMLDummy.js\");\n\n XMLDTDAttList = __webpack_require__(/*! ./XMLDTDAttList */ \"./node_modules/xmlbuilder/lib/XMLDTDAttList.js\");\n\n XMLDTDElement = __webpack_require__(/*! ./XMLDTDElement */ \"./node_modules/xmlbuilder/lib/XMLDTDElement.js\");\n\n XMLDTDEntity = __webpack_require__(/*! ./XMLDTDEntity */ \"./node_modules/xmlbuilder/lib/XMLDTDEntity.js\");\n\n XMLDTDNotation = __webpack_require__(/*! ./XMLDTDNotation */ \"./node_modules/xmlbuilder/lib/XMLDTDNotation.js\");\n\n WriterState = __webpack_require__(/*! ./WriterState */ \"./node_modules/xmlbuilder/lib/WriterState.js\");\n\n module.exports = XMLWriterBase = (function() {\n function XMLWriterBase(options) {\n var key, ref, value;\n options || (options = {});\n this.options = options;\n ref = options.writer || {};\n for (key in ref) {\n if (!hasProp.call(ref, key)) continue;\n value = ref[key];\n this[\"_\" + key] = this[key];\n this[key] = value;\n }\n }\n\n XMLWriterBase.prototype.filterOptions = function(options) {\n var filteredOptions, ref, ref1, ref2, ref3, ref4, ref5, ref6;\n options || (options = {});\n options = assign({}, this.options, options);\n filteredOptions = {\n writer: this\n };\n filteredOptions.pretty = options.pretty || false;\n filteredOptions.allowEmpty = options.allowEmpty || false;\n filteredOptions.indent = (ref = options.indent) != null ? ref : ' ';\n filteredOptions.newline = (ref1 = options.newline) != null ? ref1 : '\\n';\n filteredOptions.offset = (ref2 = options.offset) != null ? ref2 : 0;\n filteredOptions.dontPrettyTextNodes = (ref3 = (ref4 = options.dontPrettyTextNodes) != null ? ref4 : options.dontprettytextnodes) != null ? ref3 : 0;\n filteredOptions.spaceBeforeSlash = (ref5 = (ref6 = options.spaceBeforeSlash) != null ? ref6 : options.spacebeforeslash) != null ? ref5 : '';\n if (filteredOptions.spaceBeforeSlash === true) {\n filteredOptions.spaceBeforeSlash = ' ';\n }\n filteredOptions.suppressPrettyCount = 0;\n filteredOptions.user = {};\n filteredOptions.state = WriterState.None;\n return filteredOptions;\n };\n\n XMLWriterBase.prototype.indent = function(node, options, level) {\n var indentLevel;\n if (!options.pretty || options.suppressPrettyCount) {\n return '';\n } else if (options.pretty) {\n indentLevel = (level || 0) + options.offset + 1;\n if (indentLevel > 0) {\n return new Array(indentLevel).join(options.indent);\n }\n }\n return '';\n };\n\n XMLWriterBase.prototype.endline = function(node, options, level) {\n if (!options.pretty || options.suppressPrettyCount) {\n return '';\n } else {\n return options.newline;\n }\n };\n\n XMLWriterBase.prototype.attribute = function(att, options, level) {\n var r;\n this.openAttribute(att, options, level);\n r = ' ' + att.name + '=\"' + att.value + '\"';\n this.closeAttribute(att, options, level);\n return r;\n };\n\n XMLWriterBase.prototype.cdata = function(node, options, level) {\n var r;\n this.openNode(node, options, level);\n options.state = WriterState.OpenTag;\n r = this.indent(node, options, level) + '<![CDATA[';\n options.state = WriterState.InsideTag;\n r += node.value;\n options.state = WriterState.CloseTag;\n r += ']]>' + this.endline(node, options, level);\n options.state = WriterState.None;\n this.closeNode(node, options, level);\n return r;\n };\n\n XMLWriterBase.prototype.comment = function(node, options, level) {\n var r;\n this.openNode(node, options, level);\n options.state = WriterState.OpenTag;\n r = this.indent(node, options, level) + '<!-- ';\n options.state = WriterState.InsideTag;\n r += node.value;\n options.state = WriterState.CloseTag;\n r += ' -->' + this.endline(node, options, level);\n options.state = WriterState.None;\n this.closeNode(node, options, level);\n return r;\n };\n\n XMLWriterBase.prototype.declaration = function(node, options, level) {\n var r;\n this.openNode(node, options, level);\n options.state = WriterState.OpenTag;\n r = this.indent(node, options, level) + '<?xml';\n options.state = WriterState.InsideTag;\n r += ' version=\"' + node.version + '\"';\n if (node.encoding != null) {\n r += ' encoding=\"' + node.encoding + '\"';\n }\n if (node.standalone != null) {\n r += ' standalone=\"' + node.standalone + '\"';\n }\n options.state = WriterState.CloseTag;\n r += options.spaceBeforeSlash + '?>';\n r += this.endline(node, options, level);\n options.state = WriterState.None;\n this.closeNode(node, options, level);\n return r;\n };\n\n XMLWriterBase.prototype.docType = function(node, options, level) {\n var child, i, len, r, ref;\n level || (level = 0);\n this.openNode(node, options, level);\n options.state = WriterState.OpenTag;\n r = this.indent(node, options, level);\n r += '<!DOCTYPE ' + node.root().name;\n if (node.pubID && node.sysID) {\n r += ' PUBLIC \"' + node.pubID + '\" \"' + node.sysID + '\"';\n } else if (node.sysID) {\n r += ' SYSTEM \"' + node.sysID + '\"';\n }\n if (node.children.length > 0) {\n r += ' [';\n r += this.endline(node, options, level);\n options.state = WriterState.InsideTag;\n ref = node.children;\n for (i = 0, len = ref.length; i < len; i++) {\n child = ref[i];\n r += this.writeChildNode(child, options, level + 1);\n }\n options.state = WriterState.CloseTag;\n r += ']';\n }\n options.state = WriterState.CloseTag;\n r += options.spaceBeforeSlash + '>';\n r += this.endline(node, options, level);\n options.state = WriterState.None;\n this.closeNode(node, options, level);\n return r;\n };\n\n XMLWriterBase.prototype.element = function(node, options, level) {\n var att, child, childNodeCount, firstChildNode, i, j, len, len1, name, prettySuppressed, r, ref, ref1, ref2;\n level || (level = 0);\n prettySuppressed = false;\n r = '';\n this.openNode(node, options, level);\n options.state = WriterState.OpenTag;\n r += this.indent(node, options, level) + '<' + node.name;\n ref = node.attribs;\n for (name in ref) {\n if (!hasProp.call(ref, name)) continue;\n att = ref[name];\n r += this.attribute(att, options, level);\n }\n childNodeCount = node.children.length;\n firstChildNode = childNodeCount === 0 ? null : node.children[0];\n if (childNodeCount === 0 || node.children.every(function(e) {\n return (e.type === NodeType.Text || e.type === NodeType.Raw) && e.value === '';\n })) {\n if (options.allowEmpty) {\n r += '>';\n options.state = WriterState.CloseTag;\n r += '</' + node.name + '>' + this.endline(node, options, level);\n } else {\n options.state = WriterState.CloseTag;\n r += options.spaceBeforeSlash + '/>' + this.endline(node, options, level);\n }\n } else if (options.pretty && childNodeCount === 1 && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw) && (firstChildNode.value != null)) {\n r += '>';\n options.state = WriterState.InsideTag;\n options.suppressPrettyCount++;\n prettySuppressed = true;\n r += this.writeChildNode(firstChildNode, options, level + 1);\n options.suppressPrettyCount--;\n prettySuppressed = false;\n options.state = WriterState.CloseTag;\n r += '</' + node.name + '>' + this.endline(node, options, level);\n } else {\n if (options.dontPrettyTextNodes) {\n ref1 = node.children;\n for (i = 0, len = ref1.length; i < len; i++) {\n child = ref1[i];\n if ((child.type === NodeType.Text || child.type === NodeType.Raw) && (child.value != null)) {\n options.suppressPrettyCount++;\n prettySuppressed = true;\n break;\n }\n }\n }\n r += '>' + this.endline(node, options, level);\n options.state = WriterState.InsideTag;\n ref2 = node.children;\n for (j = 0, len1 = ref2.length; j < len1; j++) {\n child = ref2[j];\n r += this.writeChildNode(child, options, level + 1);\n }\n options.state = WriterState.CloseTag;\n r += this.indent(node, options, level) + '</' + node.name + '>';\n if (prettySuppressed) {\n options.suppressPrettyCount--;\n }\n r += this.endline(node, options, level);\n options.state = WriterState.None;\n }\n this.closeNode(node, options, level);\n return r;\n };\n\n XMLWriterBase.prototype.writeChildNode = function(node, options, level) {\n switch (node.type) {\n case NodeType.CData:\n return this.cdata(node, options, level);\n case NodeType.Comment:\n return this.comment(node, options, level);\n case NodeType.Element:\n return this.element(node, options, level);\n case NodeType.Raw:\n return this.raw(node, options, level);\n case NodeType.Text:\n return this.text(node, options, level);\n case NodeType.ProcessingInstruction:\n return this.processingInstruction(node, options, level);\n case NodeType.Dummy:\n return '';\n case NodeType.Declaration:\n return this.declaration(node, options, level);\n case NodeType.DocType:\n return this.docType(node, options, level);\n case NodeType.AttributeDeclaration:\n return this.dtdAttList(node, options, level);\n case NodeType.ElementDeclaration:\n return this.dtdElement(node, options, level);\n case NodeType.EntityDeclaration:\n return this.dtdEntity(node, options, level);\n case NodeType.NotationDeclaration:\n return this.dtdNotation(node, options, level);\n default:\n throw new Error(\"Unknown XML node type: \" + node.constructor.name);\n }\n };\n\n XMLWriterBase.prototype.processingInstruction = function(node, options, level) {\n var r;\n this.openNode(node, options, level);\n options.state = WriterState.OpenTag;\n r = this.indent(node, options, level) + '<?';\n options.state = WriterState.InsideTag;\n r += node.target;\n if (node.value) {\n r += ' ' + node.value;\n }\n options.state = WriterState.CloseTag;\n r += options.spaceBeforeSlash + '?>';\n r += this.endline(node, options, level);\n options.state = WriterState.None;\n this.closeNode(node, options, level);\n return r;\n };\n\n XMLWriterBase.prototype.raw = function(node, options, level) {\n var r;\n this.openNode(node, options, level);\n options.state = WriterState.OpenTag;\n r = this.indent(node, options, level);\n options.state = WriterState.InsideTag;\n r += node.value;\n options.state = WriterState.CloseTag;\n r += this.endline(node, options, level);\n options.state = WriterState.None;\n this.closeNode(node, options, level);\n return r;\n };\n\n XMLWriterBase.prototype.text = function(node, options, level) {\n var r;\n this.openNode(node, options, level);\n options.state = WriterState.OpenTag;\n r = this.indent(node, options, level);\n options.state = WriterState.InsideTag;\n r += node.value;\n options.state = WriterState.CloseTag;\n r += this.endline(node, options, level);\n options.state = WriterState.None;\n this.closeNode(node, options, level);\n return r;\n };\n\n XMLWriterBase.prototype.dtdAttList = function(node, options, level) {\n var r;\n this.openNode(node, options, level);\n options.state = WriterState.OpenTag;\n r = this.indent(node, options, level) + '<!ATTLIST';\n options.state = WriterState.InsideTag;\n r += ' ' + node.elementName + ' ' + node.attributeName + ' ' + node.attributeType;\n if (node.defaultValueType !== '#DEFAULT') {\n r += ' ' + node.defaultValueType;\n }\n if (node.defaultValue) {\n r += ' \"' + node.defaultValue + '\"';\n }\n options.state = WriterState.CloseTag;\n r += options.spaceBeforeSlash + '>' + this.endline(node, options, level);\n options.state = WriterState.None;\n this.closeNode(node, options, level);\n return r;\n };\n\n XMLWriterBase.prototype.dtdElement = function(node, options, level) {\n var r;\n this.openNode(node, options, level);\n options.state = WriterState.OpenTag;\n r = this.indent(node, options, level) + '<!ELEMENT';\n options.state = WriterState.InsideTag;\n r += ' ' + node.name + ' ' + node.value;\n options.state = WriterState.CloseTag;\n r += options.spaceBeforeSlash + '>' + this.endline(node, options, level);\n options.state = WriterState.None;\n this.closeNode(node, options, level);\n return r;\n };\n\n XMLWriterBase.prototype.dtdEntity = function(node, options, level) {\n var r;\n this.openNode(node, options, level);\n options.state = WriterState.OpenTag;\n r = this.indent(node, options, level) + '<!ENTITY';\n options.state = WriterState.InsideTag;\n if (node.pe) {\n r += ' %';\n }\n r += ' ' + node.name;\n if (node.value) {\n r += ' \"' + node.value + '\"';\n } else {\n if (node.pubID && node.sysID) {\n r += ' PUBLIC \"' + node.pubID + '\" \"' + node.sysID + '\"';\n } else if (node.sysID) {\n r += ' SYSTEM \"' + node.sysID + '\"';\n }\n if (node.nData) {\n r += ' NDATA ' + node.nData;\n }\n }\n options.state = WriterState.CloseTag;\n r += options.spaceBeforeSlash + '>' + this.endline(node, options, level);\n options.state = WriterState.None;\n this.closeNode(node, options, level);\n return r;\n };\n\n XMLWriterBase.prototype.dtdNotation = function(node, options, level) {\n var r;\n this.openNode(node, options, level);\n options.state = WriterState.OpenTag;\n r = this.indent(node, options, level) + '<!NOTATION';\n options.state = WriterState.InsideTag;\n r += ' ' + node.name;\n if (node.pubID && node.sysID) {\n r += ' PUBLIC \"' + node.pubID + '\" \"' + node.sysID + '\"';\n } else if (node.pubID) {\n r += ' PUBLIC \"' + node.pubID + '\"';\n } else if (node.sysID) {\n r += ' SYSTEM \"' + node.sysID + '\"';\n }\n options.state = WriterState.CloseTag;\n r += options.spaceBeforeSlash + '>' + this.endline(node, options, level);\n options.state = WriterState.None;\n this.closeNode(node, options, level);\n return r;\n };\n\n XMLWriterBase.prototype.openNode = function(node, options, level) {};\n\n XMLWriterBase.prototype.closeNode = function(node, options, level) {};\n\n XMLWriterBase.prototype.openAttribute = function(att, options, level) {};\n\n XMLWriterBase.prototype.closeAttribute = function(att, options, level) {};\n\n return XMLWriterBase;\n\n })();\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/XMLWriterBase.js?");
1073
+
1074
+ /***/ }),
1075
+
1076
+ /***/ "./node_modules/xmlbuilder/lib/index.js":
1077
+ /*!**********************************************!*\
1078
+ !*** ./node_modules/xmlbuilder/lib/index.js ***!
1079
+ \**********************************************/
1080
+ /*! no static exports found */
1081
+ /***/ (function(module, exports, __webpack_require__) {
1082
+
1083
+ eval("// Generated by CoffeeScript 1.12.7\n(function() {\n var NodeType, WriterState, XMLDOMImplementation, XMLDocument, XMLDocumentCB, XMLStreamWriter, XMLStringWriter, assign, isFunction, ref;\n\n ref = __webpack_require__(/*! ./Utility */ \"./node_modules/xmlbuilder/lib/Utility.js\"), assign = ref.assign, isFunction = ref.isFunction;\n\n XMLDOMImplementation = __webpack_require__(/*! ./XMLDOMImplementation */ \"./node_modules/xmlbuilder/lib/XMLDOMImplementation.js\");\n\n XMLDocument = __webpack_require__(/*! ./XMLDocument */ \"./node_modules/xmlbuilder/lib/XMLDocument.js\");\n\n XMLDocumentCB = __webpack_require__(/*! ./XMLDocumentCB */ \"./node_modules/xmlbuilder/lib/XMLDocumentCB.js\");\n\n XMLStringWriter = __webpack_require__(/*! ./XMLStringWriter */ \"./node_modules/xmlbuilder/lib/XMLStringWriter.js\");\n\n XMLStreamWriter = __webpack_require__(/*! ./XMLStreamWriter */ \"./node_modules/xmlbuilder/lib/XMLStreamWriter.js\");\n\n NodeType = __webpack_require__(/*! ./NodeType */ \"./node_modules/xmlbuilder/lib/NodeType.js\");\n\n WriterState = __webpack_require__(/*! ./WriterState */ \"./node_modules/xmlbuilder/lib/WriterState.js\");\n\n module.exports.create = function(name, xmldec, doctype, options) {\n var doc, root;\n if (name == null) {\n throw new Error(\"Root element needs a name.\");\n }\n options = assign({}, xmldec, doctype, options);\n doc = new XMLDocument(options);\n root = doc.element(name);\n if (!options.headless) {\n doc.declaration(options);\n if ((options.pubID != null) || (options.sysID != null)) {\n doc.dtd(options);\n }\n }\n return root;\n };\n\n module.exports.begin = function(options, onData, onEnd) {\n var ref1;\n if (isFunction(options)) {\n ref1 = [options, onData], onData = ref1[0], onEnd = ref1[1];\n options = {};\n }\n if (onData) {\n return new XMLDocumentCB(options, onData, onEnd);\n } else {\n return new XMLDocument(options);\n }\n };\n\n module.exports.stringWriter = function(options) {\n return new XMLStringWriter(options);\n };\n\n module.exports.streamWriter = function(stream, options) {\n return new XMLStreamWriter(stream, options);\n };\n\n module.exports.implementation = new XMLDOMImplementation();\n\n module.exports.nodeType = NodeType;\n\n module.exports.writerState = WriterState;\n\n}).call(this);\n\n\n//# sourceURL=webpack:///./node_modules/xmlbuilder/lib/index.js?");
1084
+
1085
+ /***/ }),
1086
+
1087
+ /***/ "./obfx_modules/mystock-import/js/src/components/InsertImage.js":
1088
+ /*!**********************************************************************!*\
1089
+ !*** ./obfx_modules/mystock-import/js/src/components/InsertImage.js ***!
1090
+ \**********************************************************************/
1091
+ /*! no static exports found */
1092
+ /***/ (function(module, exports, __webpack_require__) {
1093
+
1094
+ "use strict";
1095
+ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\nvar createBlock = wp.blocks.createBlock;\nvar dispatch = wp.data.dispatch;\n\nvar _ref = dispatch('core/block-editor') || dispatch('core/editor'),\n insertBlocks = _ref.insertBlocks;\n\nvar InsertImage = function InsertImage() {\n\tvar url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\tvar alt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n\n\tif (url === '') {\n\t\treturn false;\n\t}\n\tvar block = createBlock(\"core/image\", {\n\t\turl: url,\n\t\talt: alt\n\t});\n\tinsertBlocks(block);\n};\nexports.default = InsertImage;\n\n//# sourceURL=webpack:///./obfx_modules/mystock-import/js/src/components/InsertImage.js?");
1096
+
1097
+ /***/ }),
1098
+
1099
+ /***/ "./obfx_modules/mystock-import/js/src/components/Photo.js":
1100
+ /*!****************************************************************!*\
1101
+ !*** ./obfx_modules/mystock-import/js/src/components/Photo.js ***!
1102
+ \****************************************************************/
1103
+ /*! no static exports found */
1104
+ /***/ (function(module, exports, __webpack_require__) {
1105
+
1106
+ "use strict";
1107
+ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/* global mystock_import */\n\nvar _wp$element = wp.element,\n Component = _wp$element.Component,\n createRef = _wp$element.createRef;\nvar __ = wp.i18n.__;\nvar Snackbar = wp.components.Snackbar;\n\nvar _wp$data$dispatch = wp.data.dispatch('core/notices'),\n createNotice = _wp$data$dispatch.createNotice;\n\nvar dispatchNotice = function dispatchNotice(value) {\n\tif (!Snackbar) {\n\t\treturn;\n\t}\n\n\tcreateNotice('info', value, {\n\t\tisDismissible: true,\n\t\ttype: 'snackbar'\n\t});\n};\n\nvar Photo = function (_Component) {\n\t_inherits(Photo, _Component);\n\n\tfunction Photo(props) {\n\t\t_classCallCheck(this, Photo);\n\n\t\tvar _this = _possibleConstructorReturn(this, (Photo.__proto__ || Object.getPrototypeOf(Photo)).call(this, props));\n\n\t\t_this.img = _this.props.result.url_m;\n\t\t_this.fullSize = _this.props.result.url_o;\n\t\t_this.imgTitle = _this.props.result.title;\n\t\t_this.setAsFeaturedImage = false;\n\t\t_this.insertIntoPost = false;\n\t\t_this.inProgress = false;\n\n\t\t_this.SetFeaturedImage = _this.props.SetFeaturedImage;\n\t\t_this.InsertImage = _this.props.InsertImage;\n\n\t\t_this.noticeRef = createRef();\n\t\t_this.imageRef = createRef();\n\n\t\t_this.state = { attachmentId: '' };\n\t\treturn _this;\n\t}\n\n\t/**\n * uploadPhoto\n * Function to trigger image upload\n *\n * @param e element clicked item\n * @returns {boolean}\n */\n\n\n\t_createClass(Photo, [{\n\t\tkey: 'uploadPhoto',\n\t\tvalue: function uploadPhoto(e) {\n\t\t\te.preventDefault();\n\n\t\t\tvar self = this;\n\t\t\tvar target = e.currentTarget;\n\t\t\tvar photo = target.parentElement.parentElement.parentElement.parentElement.parentElement;\n\t\t\tvar notice = this.noticeRef.current;\n\t\t\tvar photoContainer = this.imageRef.current;\n\t\t\t/**\n * Bail if image was imported and the user clicks on Add to Media Library\n */\n\t\t\tif (target.classList.contains('download') && this.state.attachmentId !== '') {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tphotoContainer.classList.add('uploading');\n\t\t\tphoto.classList.add('in-progress');\n\t\t\tnotice.innerHTML = __('Downloading Image...', 'themeisle-companion');\n\t\t\tthis.inProgress = true;\n\n\t\t\t/**\n * Skip the uploading image part if image was already uploaded\n */\n\t\t\tif (this.state.attachmentId !== '') {\n\t\t\t\tthis.doPhotoAction(target, photo, this.state.attachmentId);\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tvar formData = new FormData();\n\t\t\tformData.append('action', 'handle-request-' + mystock_import.slug);\n\t\t\tformData.append('url', this.fullSize);\n\t\t\tformData.append('security', mystock_import.nonce);\n\n\t\t\twp.apiFetch({\n\t\t\t\turl: mystock_import.ajaxurl,\n\t\t\t\tmethod: 'POST',\n\t\t\t\tbody: formData\n\t\t\t}).then(function (res) {\n\t\t\t\tif (res && res.success === true && res.data.id) {\n\t\t\t\t\tself.doPhotoAction(target, photo, res.data.id);\n\t\t\t\t\tself.setState({ attachmentId: res.data.id });\n\t\t\t\t} else {\n\t\t\t\t\tself.uploadError(target, photo, __('Unable to download image to server, please check your server permissions.', 'themeisle-companion'));\n\t\t\t\t}\n\t\t\t}).catch(function (error) {\n\t\t\t\tconsole.log(error);\n\t\t\t});\n\t\t}\n\n\t\t/**\n * Insert image into post or set image as thumbnail\n *\n * @param target element clicked item\n * @param photo element current photo element\n * @param attachmentId attachement id\n */\n\n\t}, {\n\t\tkey: 'doPhotoAction',\n\t\tvalue: function doPhotoAction(target, photo, attachmentId) {\n\t\t\tthis.uploadComplete(target, photo, attachmentId);\n\n\t\t\tif (this.setAsFeaturedImage) {\n\t\t\t\tthis.SetFeaturedImage(attachmentId);\n\t\t\t\tthis.setAsFeaturedImage = false;\n\t\t\t}\n\n\t\t\tif (this.insertIntoPost) {\n\t\t\t\tthis.InsertImage(this.fullSize, this.imgTitle);\n\t\t\t\tthis.insertIntoPost = false;\n\t\t\t}\n\t\t}\n\n\t\t/*\n * uploadError\n * Function runs when error occurs on upload or resize\n *\n * @param target element Current clicked item\n * @param photo element Nearest parent .photo\n * @param msg string Error Msg\n * @since 3.0\n */\n\n\t}, {\n\t\tkey: 'uploadError',\n\t\tvalue: function uploadError(target, photo, msg) {\n\t\t\tvar photoContainer = this.imageRef.current;\n\t\t\tphotoContainer.classList.remove('uploading');\n\n\t\t\ttarget.classList.add('errors');\n\t\t\tthis.inProgress = false;\n\t\t\tconsole.warn(msg);\n\t\t}\n\n\t\t/*\n * uploadComplete\n * Function runs when upload has completed\n *\n * @param target element clicked item\n * @param photo element Nearest parent .photo\n * @param msg string Success Msg\n * @param url string The attachment edit link\n * @since 3.0\n */\n\n\t}, {\n\t\tkey: 'uploadComplete',\n\t\tvalue: function uploadComplete(target, photo, attachment) {\n\n\t\t\tthis.setState({ attachmentId: attachment });\n\n\t\t\tvar photoContainer = this.imageRef.current;\n\t\t\tphotoContainer.classList.remove('uploading');\n\t\t\tphotoContainer.classList.add('success');\n\n\t\t\tphoto.classList.remove('in-progress');\n\t\t\tphoto.classList.add('uploaded', 'done');\n\t\t\ttarget.parentNode.parentNode.classList.add('disabled');\n\t\t\tsetTimeout(function () {\n\t\t\t\tphotoContainer.classList.remove('success');\n\t\t\t\tphoto.classList.remove('uploaded');\n\t\t\t\ttarget.parentNode.parentNode.classList.remove('disabled');\n\t\t\t}, 3000, target, photo);\n\t\t\tthis.inProgress = false;\n\t\t\tdispatchNotice(__('Image was added to Media Library.', 'themeisle-companion'));\n\t\t}\n\n\t\t/*\n * setFeaturedImageClick\n * Function used to trigger a download and then set as featured image\n */\n\n\t}, {\n\t\tkey: 'setFeaturedImageClick',\n\t\tvalue: function setFeaturedImageClick(e) {\n\t\t\tvar target = e.currentTarget;\n\t\t\tif (!target) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tthis.setAsFeaturedImage = true;\n\t\t\tthis.uploadPhoto(e);\n\t\t}\n\n\t\t/*\n * insertImageIntoPost\n * Function used to insert an image directly into the block (Gutenberg) editor.\n *\n * @since 4.0\n */\n\n\t}, {\n\t\tkey: 'insertImageIntoPost',\n\t\tvalue: function insertImageIntoPost(e) {\n\t\t\tvar target = e.currentTarget;\n\t\t\tif (!target) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tthis.insertIntoPost = true;\n\t\t\tthis.uploadPhoto(e);\n\t\t}\n\n\t\t/**\n * Render photo image.\n *\n * @returns {*}\n */\n\n\t}, {\n\t\tkey: 'render',\n\t\tvalue: function render() {\n\t\t\tvar _this2 = this;\n\n\t\t\treturn React.createElement(\n\t\t\t\t'article',\n\t\t\t\t{ className: 'photo' },\n\t\t\t\tReact.createElement(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ className: 'photo--wrap' },\n\t\t\t\t\tReact.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'img-wrap' },\n\t\t\t\t\t\tReact.createElement(\n\t\t\t\t\t\t\t'a',\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tclassName: 'upload',\n\t\t\t\t\t\t\t\thref: '#',\n\t\t\t\t\t\t\t\tref: this.imageRef\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tReact.createElement('img', { src: this.img, alt: this.imgTitle }),\n\t\t\t\t\t\t\tReact.createElement('div', { className: 'status' })\n\t\t\t\t\t\t),\n\t\t\t\t\t\tReact.createElement('div', { ref: this.noticeRef, className: 'notice-msg' }),\n\t\t\t\t\t\tReact.createElement(\n\t\t\t\t\t\t\t'div',\n\t\t\t\t\t\t\t{ className: 'user-controls' },\n\t\t\t\t\t\t\tReact.createElement(\n\t\t\t\t\t\t\t\t'div',\n\t\t\t\t\t\t\t\t{ className: 'photo-options' },\n\t\t\t\t\t\t\t\tReact.createElement(\n\t\t\t\t\t\t\t\t\t'a',\n\t\t\t\t\t\t\t\t\t{ className: 'download fade',\n\t\t\t\t\t\t\t\t\t\thref: '#',\n\t\t\t\t\t\t\t\t\t\tonClick: function onClick(e) {\n\t\t\t\t\t\t\t\t\t\t\treturn _this2.uploadPhoto(e);\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\ttitle: __('Add to Media Library', 'themeisle-companion')\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tReact.createElement('span', { className: 'dashicons dashicons-download' })\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tReact.createElement(\n\t\t\t\t\t\t\t\t\t'a',\n\t\t\t\t\t\t\t\t\t{ className: 'set-featured fade',\n\t\t\t\t\t\t\t\t\t\thref: '#',\n\t\t\t\t\t\t\t\t\t\tonClick: function onClick(e) {\n\t\t\t\t\t\t\t\t\t\t\treturn _this2.setFeaturedImageClick(e);\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\ttitle: __('Set as featured image', 'themeisle-companion')\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tReact.createElement('span', { className: 'dashicons dashicons-format-image' })\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tReact.createElement(\n\t\t\t\t\t\t\t\t\t'a',\n\t\t\t\t\t\t\t\t\t{ className: 'insert fade',\n\t\t\t\t\t\t\t\t\t\thref: '#',\n\t\t\t\t\t\t\t\t\t\tonClick: function onClick(e) {\n\t\t\t\t\t\t\t\t\t\t\treturn _this2.insertImageIntoPost(e);\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\ttitle: __('Insert into post', 'themeisle-companion')\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tReact.createElement('span', { className: 'dashicons dashicons-plus' })\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}]);\n\n\treturn Photo;\n}(Component);\n\nexports.default = Photo;\n\n//# sourceURL=webpack:///./obfx_modules/mystock-import/js/src/components/Photo.js?");
1108
+
1109
+ /***/ }),
1110
+
1111
+ /***/ "./obfx_modules/mystock-import/js/src/components/PhotoList.js":
1112
+ /*!********************************************************************!*\
1113
+ !*** ./obfx_modules/mystock-import/js/src/components/PhotoList.js ***!
1114
+ \********************************************************************/
1115
+ /*! no static exports found */
1116
+ /***/ (function(module, exports, __webpack_require__) {
1117
+
1118
+ "use strict";
1119
+ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _flickrSdk = __webpack_require__(/*! flickr-sdk */ \"./node_modules/flickr-sdk/index.js\");\n\nvar _flickrSdk2 = _interopRequireDefault(_flickrSdk);\n\nvar _Photo = __webpack_require__(/*! ./Photo */ \"./obfx_modules/mystock-import/js/src/components/Photo.js\");\n\nvar _Photo2 = _interopRequireDefault(_Photo);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* global mystock_import */\n\n\nvar Spinner = wp.components.Spinner;\nvar _wp$element = wp.element,\n Component = _wp$element.Component,\n createRef = _wp$element.createRef;\nvar __ = wp.i18n.__;\n\nvar PhotoList = function (_Component) {\n\t_inherits(PhotoList, _Component);\n\n\tfunction PhotoList(props) {\n\t\t_classCallCheck(this, PhotoList);\n\n\t\tvar _this = _possibleConstructorReturn(this, (PhotoList.__proto__ || Object.getPrototypeOf(PhotoList)).call(this, props));\n\n\t\t_this.apiKey = mystock_import.api_key;\n\t\t_this.userId = mystock_import.user_id;\n\t\t_this.perPage = mystock_import.per_page;\n\n\t\t_this.flickr = new _flickrSdk2.default(_this.apiKey);\n\t\t_this.results = _this.props.results ? _this.props.results : [];\n\t\t_this.state = { results: _this.results };\n\n\t\t_this.isSearch = false;\n\t\t_this.search_term = '';\n\t\t_this.nothingFound = false;\n\n\t\t_this.isLoading = false; // loading flag\n\t\t_this.isDone = false; // Done flag - no photos remain\n\n\t\t_this.page = _this.props.page;\n\n\t\t_this.SetFeaturedImage = _this.props.SetFeaturedImage ? _this.props.SetFeaturedImage.bind(_this) : '';\n\t\t_this.InsertImage = _this.props.InsertImage ? _this.props.InsertImage.bind(_this) : '';\n\n\t\t_this.errorRef = createRef();\n\t\t_this.searchRef = createRef();\n\t\treturn _this;\n\t}\n\n\t/**\n * test()\n * Test access to the Flickr API\n *\n * @since 3.2\n */\n\n\n\t_createClass(PhotoList, [{\n\t\tkey: 'test',\n\t\tvalue: function test() {\n\t\t\tvar self = this;\n\t\t\tvar target = this.errorRef.current;\n\t\t\tthis.flickr.test.echo(this.apiKey).then(function (res) {\n\t\t\t\tif (res.statusCode < 200 || res.statusCode >= 400) {\n\t\t\t\t\tself.renderTestError(target);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\t/**\n * Render test error\n *\n * @param target\n */\n\n\t}, {\n\t\tkey: 'renderTestError',\n\t\tvalue: function renderTestError(target) {\n\t\t\ttarget.classList.add('active');\n\t\t\ttarget.innerHTML = __('There was an error accessing the server. Please try again later. If you still receive this error, contact the support team.', 'themeisle-companion');\n\t\t}\n\n\t\t/**\n * getPhotos\n * Load next set of photos, infinite scroll style\n *\n * @since 3.0\n */\n\n\t}, {\n\t\tkey: 'getPhotos',\n\t\tvalue: function getPhotos() {\n\t\t\tvar self = this;\n\t\t\tthis.page = parseInt(this.page) + 1;\n\t\t\tthis.isLoading = true;\n\n\t\t\tif (this.isSearch) {\n\t\t\t\tthis.doSearch(this.search_term, true);\n\t\t\t} else {\n\t\t\t\tvar args = {\n\t\t\t\t\t'api_key': this.apiKey,\n\t\t\t\t\t'user_id': this.userId,\n\t\t\t\t\t'per_page': this.perPage,\n\t\t\t\t\t'extras': 'url_m, url_o',\n\t\t\t\t\t'page': this.page\n\t\t\t\t};\n\t\t\t\tthis.flickr.people.getPublicPhotos(args).then(function (res) {\n\t\t\t\t\tvar photos = res.body.photos.photo;\n\n\t\t\t\t\tphotos.map(function (data) {\n\t\t\t\t\t\tself.results.push(data);\n\t\t\t\t\t});\n\n\t\t\t\t\t// Check for returned data\n\t\t\t\t\tself.checkTotalResults(photos.length);\n\n\t\t\t\t\t// Update Props\n\t\t\t\t\tself.setState({ results: self.results });\n\t\t\t\t}).catch(function (err) {\n\t\t\t\t\tconsole.log(err);\n\t\t\t\t\tself.isLoading = false;\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\t/**\n * checkTotalResults\n * A checker to determine is there are remaining search results.\n *\n * @param num int Total search results\n * @since 3.0\n */\n\n\t}, {\n\t\tkey: 'checkTotalResults',\n\t\tvalue: function checkTotalResults(num) {\n\t\t\tthis.isDone = num < this.perPage;\n\t\t}\n\n\t\t/**\n * search()\n * Trigger Unsplash Search\n *\n * @param e element the search form\n * @since 3.0\n */\n\n\t}, {\n\t\tkey: 'search',\n\t\tvalue: function search(e) {\n\n\t\t\te.preventDefault();\n\t\t\tvar input = this.searchRef.current;\n\t\t\tvar term = input.value;\n\t\t\tif (term.length > 2) {\n\t\t\t\tinput.classList.add('searching');\n\t\t\t\tthis.search_term = term;\n\t\t\t\tthis.nothingFound = false;\n\t\t\t\tthis.isSearch = true;\n\t\t\t\tthis.page = 0;\n\t\t\t\tthis.doSearch(this.search_term);\n\t\t\t} else {\n\t\t\t\tinput.focus();\n\t\t\t}\n\t\t}\n\n\t\t/**\n * doSearch\n * Run the search\n *\n * @param term string the search term\n * @param append bool should append\n * @since 3.0\n * @updated 3.1\n */\n\n\t}, {\n\t\tkey: 'doSearch',\n\t\tvalue: function doSearch(term) {\n\t\t\tvar append = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n\n\t\t\tvar self = this;\n\t\t\tthis.page = parseInt(this.page) + 1;\n\t\t\tvar input = this.searchRef.current;\n\n\t\t\tif (append !== true) {\n\t\t\t\tself.results = [];\n\t\t\t\tself.setState({ results: [] });\n\t\t\t}\n\t\t\tvar args = {\n\t\t\t\t'api_key': this.apiKey,\n\t\t\t\t'user_id': this.userId,\n\t\t\t\t'text': this.search_term,\n\t\t\t\t'per_page': this.perPage,\n\t\t\t\t'extras': 'url_m, url_o',\n\t\t\t\t'page': this.page\n\t\t\t};\n\t\t\tthis.flickr.photos.search(args).then(function (res) {\n\t\t\t\tvar photos = res.body.photos.photo;\n\t\t\t\tif (photos.length === 0) {\n\t\t\t\t\tself.nothingFound = true;\n\t\t\t\t}\n\n\t\t\t\tif (photos.length === 0 && self.append === false) {\n\t\t\t\t\tself.nothingFound = true;\n\t\t\t\t}\n\n\t\t\t\tphotos.map(function (data) {\n\t\t\t\t\tself.results.push(data);\n\t\t\t\t});\n\n\t\t\t\t// Check for returned data\n\t\t\t\tself.checkTotalResults(photos.length);\n\n\t\t\t\t// Update Props\n\t\t\t\tself.setState({ results: self.results });\n\n\t\t\t\tinput.classList.remove('searching');\n\t\t\t}).catch(function (err) {\n\t\t\t\tconsole.log(err);\n\t\t\t\tself.isLoading = false;\n\t\t\t});\n\t\t}\n\n\t\t/**\n * Reset search\n */\n\n\t}, {\n\t\tkey: 'resetSearch',\n\t\tvalue: function resetSearch() {\n\t\t\tvar input = this.searchRef.current;\n\t\t\tthis.isSearch = false;\n\t\t\tthis.page = 0;\n\t\t\tthis.results = [];\n\t\t\tinput.value = '';\n\t\t\tthis.getPhotos();\n\t\t}\n\n\t\t/**\n * Component Init\n \t */\n\n\t}, {\n\t\tkey: 'componentDidMount',\n\t\tvalue: function componentDidMount() {\n\t\t\tthis.test();\n\n\t\t\tthis.page = 0;\n\t\t\tthis.getPhotos();\n\t\t}\n\n\t\t/**\n * render()\n * Render function for this component\n *\n * @returns {*}\n */\n\n\t}, {\n\t\tkey: 'render',\n\t\tvalue: function render() {\n\t\t\tvar _this2 = this;\n\n\t\t\tvar button = '';\n\t\t\tvar spinner = '';\n\t\t\tif (!this.isDone) {\n\t\t\t\tbutton = React.createElement(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ className: 'load-more-wrap' },\n\t\t\t\t\tReact.createElement(\n\t\t\t\t\t\t'button',\n\t\t\t\t\t\t{ type: 'button', className: 'button', onClick: function onClick() {\n\t\t\t\t\t\t\t\treturn _this2.getPhotos();\n\t\t\t\t\t\t\t} },\n\t\t\t\t\t\t__('Load More Images', 'themeisle-companion')\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (this.results.length === 0 && !this.nothingFound) {\n\t\t\t\tspinner = React.createElement(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ className: 'loading-wrap' },\n\t\t\t\t\tReact.createElement(\n\t\t\t\t\t\t'h3',\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\t__('Loading images...', 'themeisle-companion')\n\t\t\t\t\t),\n\t\t\t\t\tReact.createElement(Spinner, null)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn React.createElement(\n\t\t\t\t'div',\n\t\t\t\t{ id: 'photo-listing' },\n\t\t\t\tReact.createElement(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ className: 'search-field', id: 'search-bar' },\n\t\t\t\t\tReact.createElement(\n\t\t\t\t\t\t'form',\n\t\t\t\t\t\t{ onSubmit: function onSubmit(e) {\n\t\t\t\t\t\t\t\treturn _this2.search(e);\n\t\t\t\t\t\t\t}, autoComplete: 'off' },\n\t\t\t\t\t\tReact.createElement('input', { ref: this.searchRef, type: 'text', id: 'photo-search', placeholder: __('Search', 'themeisle-companion') }),\n\t\t\t\t\t\tReact.createElement(\n\t\t\t\t\t\t\t'button',\n\t\t\t\t\t\t\t{ type: 'submit', id: 'photo-search-submit' },\n\t\t\t\t\t\t\tReact.createElement('span', { className: 'dashicons dashicons-search' })\n\t\t\t\t\t\t),\n\t\t\t\t\t\tReact.createElement(\n\t\t\t\t\t\t\t'button',\n\t\t\t\t\t\t\t{ id: 'clear-search', onClick: function onClick(e) {\n\t\t\t\t\t\t\t\t\treturn _this2.resetSearch();\n\t\t\t\t\t\t\t\t} },\n\t\t\t\t\t\t\tReact.createElement('span', { className: 'dashicons dashicons-no' })\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\tReact.createElement('div', { ref: this.errorRef, className: 'error-messaging' }),\n\t\t\t\tReact.createElement(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ id: 'msp-photos' },\n\t\t\t\t\tspinner,\n\t\t\t\t\tthis.state.results.map(function (result, iterator) {\n\t\t\t\t\t\treturn React.createElement(_Photo2.default, { result: result, key: result.id + iterator, SetFeaturedImage: _this2.SetFeaturedImage, InsertImage: _this2.InsertImage });\n\t\t\t\t\t})\n\t\t\t\t),\n\t\t\t\tReact.createElement(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ className: this.nothingFound === true && this.isSearch ? 'no-results show' : 'no-results', title: this.props.title },\n\t\t\t\t\tReact.createElement(\n\t\t\t\t\t\t'h3',\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\t__('Sorry, nothing matched your query.', 'themeisle-companion'),\n\t\t\t\t\t\t' '\n\t\t\t\t\t),\n\t\t\t\t\tReact.createElement(\n\t\t\t\t\t\t'p',\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\t__('Please try with another word.', 'themeisle-companion'),\n\t\t\t\t\t\t' '\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\tbutton\n\t\t\t);\n\t\t}\n\t}]);\n\n\treturn PhotoList;\n}(Component);\n\nexports.default = PhotoList;\n\n//# sourceURL=webpack:///./obfx_modules/mystock-import/js/src/components/PhotoList.js?");
1120
+
1121
+ /***/ }),
1122
+
1123
+ /***/ "./obfx_modules/mystock-import/js/src/components/SetFeaturedImage.js":
1124
+ /*!***************************************************************************!*\
1125
+ !*** ./obfx_modules/mystock-import/js/src/components/SetFeaturedImage.js ***!
1126
+ \***************************************************************************/
1127
+ /*! no static exports found */
1128
+ /***/ (function(module, exports, __webpack_require__) {
1129
+
1130
+ "use strict";
1131
+ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\nvar dispatch = wp.data.dispatch;\n\n\nvar SetFeaturedImage = function SetFeaturedImage(imageId) {\n\tif (imageId === null) {\n\t\treturn false;\n\t}\n\tdispatch(\"core/editor\").editPost({ featured_media: imageId });\n};\nexports.default = SetFeaturedImage;\n\n//# sourceURL=webpack:///./obfx_modules/mystock-import/js/src/components/SetFeaturedImage.js?");
1132
+
1133
+ /***/ }),
1134
+
1135
+ /***/ "./obfx_modules/mystock-import/js/src/components/index.js":
1136
+ /*!****************************************************************!*\
1137
+ !*** ./obfx_modules/mystock-import/js/src/components/index.js ***!
1138
+ \****************************************************************/
1139
+ /*! no static exports found */
1140
+ /***/ (function(module, exports, __webpack_require__) {
1141
+
1142
+ "use strict";
1143
+ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _PhotoList = __webpack_require__(/*! ./PhotoList */ \"./obfx_modules/mystock-import/js/src/components/PhotoList.js\");\n\nvar _PhotoList2 = _interopRequireDefault(_PhotoList);\n\nvar _SetFeaturedImage = __webpack_require__(/*! ./SetFeaturedImage */ \"./obfx_modules/mystock-import/js/src/components/SetFeaturedImage.js\");\n\nvar _SetFeaturedImage2 = _interopRequireDefault(_SetFeaturedImage);\n\nvar _InsertImage = __webpack_require__(/*! ./InsertImage */ \"./obfx_modules/mystock-import/js/src/components/InsertImage.js\");\n\nvar _InsertImage2 = _interopRequireDefault(_InsertImage);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar Fragment = wp.element.Fragment;\nvar _wp$editPost = wp.editPost,\n PluginSidebar = _wp$editPost.PluginSidebar,\n PluginSidebarMoreMenuItem = _wp$editPost.PluginSidebarMoreMenuItem;\nvar __ = wp.i18n.__;\n\n\nvar Mystock = function Mystock() {\n\treturn React.createElement(\n\t\tFragment,\n\t\tnull,\n\t\tReact.createElement(\n\t\t\tPluginSidebarMoreMenuItem,\n\t\t\t{\n\t\t\t\ticon: \"camera\",\n\t\t\t\ttarget: \"mystock-sidebar\"\n\t\t\t},\n\t\t\t__('MyStockPhotos', 'themeisle-companion')\n\t\t),\n\t\tReact.createElement(\n\t\t\tPluginSidebar,\n\t\t\t{\n\t\t\t\ticon: \"camera\",\n\t\t\t\tname: \"mystock-sidebar\",\n\t\t\t\ttitle: __('MyStockPhotos', 'themeisle-companion')\n\t\t\t},\n\t\t\tReact.createElement(\n\t\t\t\t\"div\",\n\t\t\t\t{ className: \"mystock-img-container\" },\n\t\t\t\tReact.createElement(_PhotoList2.default, { page: 1, SetFeaturedImage: _SetFeaturedImage2.default, InsertImage: _InsertImage2.default })\n\t\t\t)\n\t\t)\n\t);\n};\nexports.default = Mystock;\n\n//# sourceURL=webpack:///./obfx_modules/mystock-import/js/src/components/index.js?");
1144
+
1145
+ /***/ }),
1146
+
1147
+ /***/ "./obfx_modules/mystock-import/js/src/registerPlugin.js":
1148
+ /*!**************************************************************!*\
1149
+ !*** ./obfx_modules/mystock-import/js/src/registerPlugin.js ***!
1150
+ \**************************************************************/
1151
+ /*! no static exports found */
1152
+ /***/ (function(module, exports, __webpack_require__) {
1153
+
1154
+ "use strict";
1155
+ eval("\n\nvar _index = __webpack_require__(/*! ./components/index */ \"./obfx_modules/mystock-import/js/src/components/index.js\");\n\nvar _index2 = _interopRequireDefault(_index);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * WordPress dependencies\n */\nvar registerPlugin = wp.plugins.registerPlugin; /**\n * Internal dependencies\n */\n\nregisterPlugin('mystock-images', {\n render: _index2.default\n});\n\n//# sourceURL=webpack:///./obfx_modules/mystock-import/js/src/registerPlugin.js?");
1156
+
1157
+ /***/ }),
1158
+
1159
+ /***/ 0:
1160
+ /*!**********************!*\
1161
+ !*** util (ignored) ***!
1162
+ \**********************/
1163
+ /*! no static exports found */
1164
+ /***/ (function(module, exports) {
1165
+
1166
+ eval("/* (ignored) */\n\n//# sourceURL=webpack:///util_(ignored)?");
1167
+
1168
+ /***/ }),
1169
+
1170
+ /***/ 1:
1171
+ /*!**********************!*\
1172
+ !*** util (ignored) ***!
1173
+ \**********************/
1174
+ /*! no static exports found */
1175
+ /***/ (function(module, exports) {
1176
+
1177
+ eval("/* (ignored) */\n\n//# sourceURL=webpack:///util_(ignored)?");
1178
+
1179
+ /***/ })
1180
+
1181
+ /******/ });
obfx_modules/social-sharing/css/public.css CHANGED
@@ -89,6 +89,14 @@
89
  display: inline;
90
  }
91
 
 
 
 
 
 
 
 
 
92
  /* Social icons color */
93
  .obfx-sharing-inline a.btn-facebook,
94
  .obfx-sharing a.facebook {
89
  display: inline;
90
  }
91
 
92
+ .obfx-sharing-inline a.btn{
93
+ width: 44px;
94
+ height: 44px;
95
+ line-height: 44px;
96
+ border-radius: 50%;
97
+ padding: 0;
98
+ }
99
+
100
  /* Social icons color */
101
  .obfx-sharing-inline a.btn-facebook,
102
  .obfx-sharing a.facebook {
obfx_modules/social-sharing/init.php CHANGED
@@ -178,6 +178,10 @@ class Social_Sharing_OBFX_Module extends Orbit_Fox_Module_Abstract {
178
  * @access public
179
  */
180
  public function social_sharing_function() {
 
 
 
 
181
  if ( ( $this->get_option( 'display_on_posts' ) && is_single() ) || ( $this->get_option( 'display_on_pages' ) && is_page() ) ) {
182
  $class_desktop = 'obfx-sharing-left ';
183
  switch ( $this->get_option( 'socials_position' ) ) {
178
  * @access public
179
  */
180
  public function social_sharing_function() {
181
+ if ( class_exists( 'WooCommerce' ) && ( is_cart() || is_checkout() ) ) {
182
+ return false;
183
+ }
184
+
185
  if ( ( $this->get_option( 'display_on_posts' ) && is_single() ) || ( $this->get_option( 'display_on_pages' ) && is_page() ) ) {
186
  $class_desktop = 'obfx-sharing-left ';
187
  switch ( $this->get_option( 'socials_position' ) ) {
readme.md CHANGED
@@ -109,6 +109,19 @@ Activating the Orbit Fox plugin is just like any other plugin. If you've uploade
109
 
110
  ## Changelog ##
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  ##### [Version 2.9.6](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.5...v2.9.6) (2020-04-06)
113
 
114
  * Update compatibility with WordPress 5.4
109
 
110
  ## Changelog ##
111
 
112
+ ##### [Version 2.9.7](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.6...v2.9.7) (2020-04-22)
113
+
114
+ - New Hidden field in the contact form widget
115
+ - Fix Mystock Import in the Gutenberg editor
116
+ - Fix overlapping widgets names with Beaver Builder Pro version
117
+ - Fix undefined index notice in Elementor Services widget
118
+ - Upgrade FontAwesome icons to FA5 for Hestia default content
119
+ - Make inline social icons round in Hestia
120
+ - Fix inline social icons not applying on pages in Hestia
121
+
122
+
123
+
124
+
125
  ##### [Version 2.9.6](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.5...v2.9.6) (2020-04-06)
126
 
127
  * Update compatibility with WordPress 5.4
readme.txt CHANGED
@@ -109,6 +109,19 @@ Activating the Orbit Fox plugin is just like any other plugin. If you've uploade
109
 
110
  == Changelog ==
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  ##### [Version 2.9.6](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.5...v2.9.6) (2020-04-06)
113
 
114
  * Update compatibility with WordPress 5.4
109
 
110
  == Changelog ==
111
 
112
+ ##### [Version 2.9.7](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.6...v2.9.7) (2020-04-22)
113
+
114
+ - New Hidden field in the contact form widget
115
+ - Fix Mystock Import in the Gutenberg editor
116
+ - Fix overlapping widgets names with Beaver Builder Pro version
117
+ - Fix undefined index notice in Elementor Services widget
118
+ - Upgrade FontAwesome icons to FA5 for Hestia default content
119
+ - Make inline social icons round in Hestia
120
+ - Fix inline social icons not applying on pages in Hestia
121
+
122
+
123
+
124
+
125
  ##### [Version 2.9.6](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.5...v2.9.6) (2020-04-06)
126
 
127
  * Update compatibility with WordPress 5.4
themeisle-companion.php CHANGED
@@ -15,7 +15,7 @@
15
  * Plugin Name: Orbit Fox Companion
16
  * Plugin URI: https://orbitfox.com/
17
  * Description: This swiss-knife plugin comes with a quality template library, menu/sharing icons modules, Gutenberg blocks, and newly added Elementor/BeaverBuilder page builder widgets on each release.
18
- * Version: 2.9.6
19
  * Author: Themeisle
20
  * Author URI: https://orbitfox.com/
21
  * License: GPL-2.0+
15
  * Plugin Name: Orbit Fox Companion
16
  * Plugin URI: https://orbitfox.com/
17
  * Description: This swiss-knife plugin comes with a quality template library, menu/sharing icons modules, Gutenberg blocks, and newly added Elementor/BeaverBuilder page builder widgets on each release.
18
+ * Version: 2.9.7
19
  * Author: Themeisle
20
  * Author URI: https://orbitfox.com/
21
  * License: GPL-2.0+
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit164e6dc73468fd3a61b57c3fb0b230b8::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit413dcbd4187aee8bcb480ae76966a78a::getLoader();
vendor/codeinwp/elementor-extra-widgets/class-elementor-extra-widgets.php CHANGED
@@ -24,7 +24,7 @@ if ( ! class_exists( '\ThemeIsle\ElementorExtraWidgets' ) ) {
24
  * The version of this library
25
  * @var string
26
  */
27
- public static $version = '1.0.3';
28
 
29
  /**
30
  * Defines the library behaviour
24
  * The version of this library
25
  * @var string
26
  */
27
+ public static $version = '1.0.4';
28
 
29
  /**
30
  * Defines the library behaviour
vendor/codeinwp/elementor-extra-widgets/widgets/elementor/posts-grid.php CHANGED
@@ -1252,7 +1252,6 @@ class Posts_Grid extends Widget_Base {
1252
  'type' => Scheme_Color::get_type(),
1253
  'value' => Scheme_Color::COLOR_1,
1254
  ],
1255
- 'default' => '#ffffff',
1256
  'separator' => '',
1257
  'selectors' => [
1258
  '{{WRAPPER}} .obfx-grid-footer a' => 'color: {{VALUE}};',
@@ -1471,7 +1470,7 @@ class Posts_Grid extends Widget_Base {
1471
  }
1472
 
1473
  // Display products in category.
1474
- if ( ! empty( $settings['grid_product_categories'] ) && $settings['grid_post_type'] == 'product' ) {
1475
  $args['tax_query'] = array(
1476
  'relation' => 'AND',
1477
  array(
@@ -1778,18 +1777,27 @@ class Posts_Grid extends Widget_Base {
1778
  */
1779
  protected function renderButton() {
1780
  $settings = $this->get_settings();
 
 
 
1781
 
1782
- if ( $settings['grid_post_type'] == 'product' && $settings['grid_content_product_btn'] == 'yes' ) { ?>
1783
- <div class="obfx-grid-footer">
1784
- <?php $this->renderAddToCart(); ?>
1785
- </div>
1786
- <?php } elseif ( $settings['grid_content_default_btn'] == 'yes' && ! empty( $settings['grid_content_default_btn_text'] ) ) { ?>
1787
- <div class="obfx-grid-footer">
1788
- <a href="<?php echo get_the_permalink(); ?>"
1789
- title="<?php echo $settings['grid_content_default_btn_text']; ?>"><?php echo $settings['grid_content_default_btn_text']; ?></a>
1790
- </div>
1791
- <?php
1792
  }
 
 
 
 
 
 
 
 
 
 
 
1793
  }
1794
 
1795
  /**
1252
  'type' => Scheme_Color::get_type(),
1253
  'value' => Scheme_Color::COLOR_1,
1254
  ],
 
1255
  'separator' => '',
1256
  'selectors' => [
1257
  '{{WRAPPER}} .obfx-grid-footer a' => 'color: {{VALUE}};',
1470
  }
1471
 
1472
  // Display products in category.
1473
+ if ( ! empty( $settings['grid_product_categories'] ) && $settings['grid_product_categories'] !== 'all' && $settings['grid_post_type'] === 'product' ) {
1474
  $args['tax_query'] = array(
1475
  'relation' => 'AND',
1476
  array(
1777
  */
1778
  protected function renderButton() {
1779
  $settings = $this->get_settings();
1780
+ if ( $settings['grid_content_product_btn'] !== 'yes' ){
1781
+ return false;
1782
+ }
1783
 
1784
+ if ( $settings['grid_post_type'] === 'product' ) {
1785
+ echo '<div class="obfx-grid-footer">';
1786
+ $this->renderAddToCart();
1787
+ echo '</div>';
1788
+ return true;
 
 
 
 
 
1789
  }
1790
+
1791
+ if ( ! empty( $settings['grid_content_default_btn_text'] ) ){
1792
+ echo '<div class="obfx-grid-footer">';
1793
+ echo '<a href="' . get_the_permalink(). '" title="'. esc_attr( $settings['grid_content_default_btn_text'] ) .'">';
1794
+ echo $settings['grid_content_default_btn_text'];
1795
+ echo '</a>';
1796
+ echo '</div>';
1797
+ return true;
1798
+ }
1799
+
1800
+ return false;
1801
  }
1802
 
1803
  /**
vendor/codeinwp/elementor-extra-widgets/widgets/elementor/services.php CHANGED
@@ -616,9 +616,8 @@ class Services extends Widget_Base {
616
 
617
  echo '<div class="obfx-grid"><div class="obfx-grid-container' . ( ! empty( $settings['grid_columns_mobile'] ) ? ' obfx-grid-mobile-' . $settings['grid_columns_mobile'] : '' ) . ( ! empty( $settings['grid_columns_tablet'] ) ? ' obfx-grid-tablet-' . $settings['grid_columns_tablet'] : '' ) . ( ! empty( $settings['grid_columns'] ) ? ' obfx-grid-desktop-' . $settings['grid_columns'] : '' ) . '">';
618
  foreach ( $settings['services_list'] as $service ) {
619
-
620
  if ( ! empty( $service['link']['url'] ) ) {
621
- $this->add_render_attribute( 'link', 'href', $settings['link']['url'] );
622
 
623
  if ( $service['link']['is_external'] ) {
624
  $this->add_render_attribute( 'link', 'target', '_blank' );
616
 
617
  echo '<div class="obfx-grid"><div class="obfx-grid-container' . ( ! empty( $settings['grid_columns_mobile'] ) ? ' obfx-grid-mobile-' . $settings['grid_columns_mobile'] : '' ) . ( ! empty( $settings['grid_columns_tablet'] ) ? ' obfx-grid-tablet-' . $settings['grid_columns_tablet'] : '' ) . ( ! empty( $settings['grid_columns'] ) ? ' obfx-grid-desktop-' . $settings['grid_columns'] : '' ) . '">';
618
  foreach ( $settings['services_list'] as $service ) {
 
619
  if ( ! empty( $service['link']['url'] ) ) {
620
+ $this->add_render_attribute( 'link', 'href', $service['link']['url'] );
621
 
622
  if ( $service['link']['is_external'] ) {
623
  $this->add_render_attribute( 'link', 'target', '_blank' );
vendor/codeinwp/gutenberg-blocks/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
  #### [Version 1.5.0](https://github.com/Codeinwp/gutenberg-blocks/compare/v1.4.2...v1.5.0) (2020-03-30)
2
 
3
  - Improve Responsiveness Control
1
+ ##### [Version 1.5.1](https://github.com/Codeinwp/gutenberg-blocks/compare/v1.5.0...v1.5.1) (2020-04-10)
2
+
3
+ - Remove Icons from Range Controls
4
+ - Add ColorIndicator to Color Controls
5
+ - Move Vertical Alignment to Toolbar
6
+ - Fix Button Hover Color not saving
7
+ - Fix Responsive Controls not working
8
+ - Regenerate CSS file if it doesn't exist
9
+ - Reduce FontAwesome Size
10
+
11
  #### [Version 1.5.0](https://github.com/Codeinwp/gutenberg-blocks/compare/v1.4.2...v1.5.0) (2020-03-30)
12
 
13
  - Improve Responsiveness Control
vendor/codeinwp/gutenberg-blocks/build/blocks.js CHANGED
@@ -1 +1 @@
1
- !function(e){function t(t){for(var a,r,i=t[0],c=t[1],d=t[2],m=0,s=[];m<i.length;m++)r=i[m],Object.prototype.hasOwnProperty.call(l,r)&&l[r]&&s.push(l[r][0]),l[r]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);for(p&&p(t);s.length;)s.shift()();return o.push.apply(o,d||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,i=1;i<n.length;i++){var c=n[i];0!==l[c]&&(a=!1)}a&&(o.splice(t--,1),e=r(r.s=n[0]))}return e}var a={},l={2:0},o=[];function r(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var t=[],n=l[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,a){n=l[e]=[t,a]}));t.push(n[2]=a);var o,i=document.createElement("script");i.charset="utf-8",i.timeout=120,r.nc&&i.setAttribute("nonce",r.nc),i.src=function(e){return r.p+"chunk-"+({}[e]||e)+".js"}(e);var c=new Error;o=function(t){i.onerror=i.onload=null,clearTimeout(d);var n=l[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",c.name="ChunkLoadError",c.type=a,c.request=o,n[1](c)}l[e]=void 0}};var d=setTimeout((function(){o({type:"timeout",target:i})}),12e4);i.onerror=i.onload=o,document.head.appendChild(i)}return Promise.all(t)},r.m=e,r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=window.tiOtterWebpackJsonp=window.tiOtterWebpackJsonp||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var d=0;d<i.length;d++)t(i[d]);var p=c;o.push([36,0]),n()}([,,function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"i",(function(){return m})),n.d(t,"h",(function(){return s})),n.d(t,"r",(function(){return u})),n.d(t,"j",(function(){return b})),n.d(t,"o",(function(){return g})),n.d(t,"n",(function(){return f})),n.d(t,"q",(function(){return h})),n.d(t,"p",(function(){return y})),n.d(t,"s",(function(){return w})),n.d(t,"b",(function(){return v})),n.d(t,"t",(function(){return k})),n.d(t,"k",(function(){return T})),n.d(t,"c",(function(){return E})),n.d(t,"l",(function(){return x})),n.d(t,"e",(function(){return C}));var a=wp.components,l=a.Path,o=a.SVG,r=function(){return wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 29 32",width:"20",height:"20",className:"otter-icon"},wp.element.createElement(l,{d:"M19.831 7.877c0.001-0.003 0.001-0.005 0.001-0.009s-0-0.006-0.001-0.009l0 0c-0.047-0.081-0.092-0.164-0.132-0.247l-0.057-0.115c-0.277-0.498-0.381-0.99-1.033-1.064h-0.045c-0.001 0-0.002 0-0.003 0-0.486 0-0.883 0.382-0.908 0.862l-0 0.002c0.674 0.126 1.252 0.278 1.813 0.468l-0.092-0.027 0.283 0.096 0.147 0.053s0.028 0 0.028-0.011z"}),wp.element.createElement(l,{d:"M23.982 13.574c-0.008-2.41-0.14-4.778-0.39-7.112l0.026 0.299 0.070-0.019c0.459-0.139 0.787-0.558 0.787-1.053 0-0.479-0.307-0.887-0.735-1.037l-0.008-0.002h-0.026c-0.479-0.164-0.874-0.468-1.149-0.861l-0.005-0.007c-2.7-3.96-8.252-3.781-8.252-3.781s-5.55-0.179-8.25 3.781c-0.28 0.401-0.676 0.704-1.14 0.862l-0.016 0.005c-0.441 0.148-0.754 0.557-0.754 1.040 0 0.009 0 0.017 0 0.026l-0-0.001c-0 0.010-0.001 0.022-0.001 0.034 0 0.493 0.335 0.907 0.789 1.029l0.007 0.002 0.045 0.011c-0.224 2.034-0.356 4.403-0.364 6.801l-0 0.012s-9.493 13.012-1.277 17.515c4.733 2.431 6.881-0.769 6.881-0.769s1.397-1.661-1.784-3.355v-4.609c0.006-0.344 0.282-0.621 0.625-0.628h1.212v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.274 0.001 0.496 0.224 0.496 0.498 0 0 0 0 0 0v0 0.59h2.721v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.271 0.005 0.49 0.226 0.49 0.498 0 0 0 0 0 0v0 0.59h1.209c0 0 0 0 0 0 0.349 0 0.633 0.28 0.639 0.627v4.584c-3.193 1.703-1.784 3.355-1.784 3.355s2.148 3.193 6.879 0.769c8.222-4.503-1.269-17.515-1.269-17.515zM22.586 10.261c-0.097 1.461-0.67 2.772-1.563 3.797l0.007-0.008c-1.703 2.010-4.407 3.249-6.721 4.432v0c-2.325-1.177-5.026-2.416-6.736-4.432-0.883-1.019-1.455-2.329-1.555-3.769l-0.001-0.020c-0.126-2.22 0.583-5.929 3.044-6.74 2.416-0.788 3.947 1.288 4.494 2.227 0.152 0.258 0.429 0.428 0.745 0.428s0.593-0.17 0.743-0.424l0.002-0.004c0.551-0.932 2.080-3.008 4.494-2.22 2.474 0.805 3.174 4.513 3.046 6.734z"}),wp.element.createElement(l,{d:"M19.463 10.087h-0.028c-0.192 0.026-0.121 0.251-0.047 0.356 0.254 0.349 0.407 0.787 0.407 1.26 0 0.006-0 0.012-0 0.018v-0.001c-0.001 0.469-0.255 0.878-0.633 1.1l-0.006 0.003c-0.739 0.426-1.377-0.145-2.054-0.398-0.72-0.269-1.552-0.434-2.42-0.455l-0.009-0v-1.033c1.020-0.233 1.894-0.76 2.551-1.486l0.004-0.004c0.151-0.163 0.244-0.383 0.244-0.623 0-0.316-0.159-0.595-0.402-0.76l-0.003-0.002c-0.768-0.551-1.728-0.881-2.764-0.881-1.054 0-2.029 0.341-2.819 0.92l0.013-0.009c-0.224 0.166-0.367 0.429-0.367 0.726 0 0.226 0.083 0.433 0.221 0.591l-0.001-0.001c0.665 0.751 1.55 1.295 2.553 1.53l0.033 0.007v1.050c-0.742 0.021-1.448 0.14-2.118 0.343l0.057-0.015c-0.341 0.103-0.631 0.219-0.908 0.358l0.033-0.015c-0.519 0.26-1.037 0.436-1.58 0.121-0.371-0.213-0.617-0.607-0.617-1.058 0-0.002 0-0.004 0-0.007v0c0-0.002 0-0.004 0-0.007 0-0.47 0.153-0.905 0.411-1.257l-0.004 0.006c0.047-0.068 0.089-0.17 0.026-0.241s-0.189 0-0.27 0.030c-0.189 0.099-0.348 0.227-0.479 0.381l-0.002 0.002c-0.245 0.296-0.394 0.679-0.394 1.097 0 0.004 0 0.007 0 0.011v-0.001c0.008 0.706 0.393 1.321 0.964 1.651l0.009 0.005c0.296 0.178 0.654 0.283 1.036 0.283 0.364 0 0.706-0.095 1.001-0.263l-0.010 0.005c0.877-0.461 1.917-0.731 3.019-0.731 0.069 0 0.137 0.001 0.206 0.003l-0.010-0h0.030c1.277 0 2.382 0.266 3.266 0.775 0.27 0.159 0.594 0.253 0.94 0.253 0.001 0 0.002 0 0.003 0h-0c0.355-0.002 0.688-0.098 0.974-0.265l-0.009 0.005c0.606-0.357 1.007-1.007 1.007-1.75 0-0.001 0-0.003 0-0.004v0c0.001-0.026 0.002-0.056 0.002-0.086 0-0.625-0.34-1.171-0.846-1.462l-0.008-0.004c-0.056-0.040-0.125-0.065-0.199-0.070l-0.001-0zM13.101 8.831c-0.238 0.213-0.468 0.581-0.832 0.345-0.061-0.041-0.114-0.086-0.161-0.136l-0-0c-0.063-0.063-0.101-0.15-0.101-0.247 0-0.133 0.074-0.248 0.182-0.308l0.002-0.001c0.594-0.309 1.203-0.543 1.884-0.49-0.324 0.281-0.649 0.56-0.973 0.837z"}),wp.element.createElement(l,{d:"M15.89 13.578c-0.367 0.483-0.941 0.792-1.588 0.792s-1.221-0.309-1.585-0.787l-0.004-0.005c-0.064-0.103-0.177-0.171-0.306-0.171-0.199 0-0.36 0.161-0.36 0.36 0 0.091 0.034 0.174 0.090 0.238l-0-0c0.499 0.659 1.283 1.080 2.164 1.080s1.665-0.421 2.159-1.073l0.005-0.007c0.043-0.059 0.068-0.132 0.068-0.212 0-0.116-0.055-0.22-0.14-0.286l-0.001-0.001c-0.059-0.045-0.134-0.072-0.215-0.072-0.117 0-0.221 0.056-0.286 0.143l-0.001 0.001z"}),wp.element.createElement(l,{d:"M18.507 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M17.389 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M10.798 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M11.918 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z"}),wp.element.createElement(l,{d:"M8.773 7.877c-0.001-0.003-0.002-0.005-0.002-0.009s0.001-0.006 0.002-0.009l-0 0c0.047-0.081 0.089-0.164 0.132-0.247 0.019-0.038 0.036-0.079 0.057-0.115 0.275-0.498 0.379-0.99 1.033-1.064h0.045c0 0 0.001 0 0.001 0 0.487 0 0.884 0.382 0.91 0.862l0 0.002c-0.678 0.124-1.261 0.277-1.827 0.468l0.092-0.027-0.275 0.096-0.1 0.036-0.045 0.017s-0.023 0-0.023-0.011z"}))},i=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.348 20.657v-0.135c1.029-0.471 1.758-1.446 1.916-2.563 0.434-0.157 0.739-0.576 0.739-1.051 0-0.408-0.221-0.774-0.562-0.969 0.036-0.111 0.065-0.223 0.087-0.335 0.182-0.901-0.025-1.822-0.583-2.592-0.548-0.758-1.373-1.281-2.321-1.473-0.255-0.051-0.515-0.077-0.773-0.077-0.813 0-1.607 0.262-2.234 0.739-0.646 0.49-1.088 1.187-1.244 1.962-0.118 0.587-0.070 1.193 0.139 1.762-0.355 0.191-0.59 0.566-0.59 0.985 0 0.481 0.31 0.901 0.751 1.055 0.163 1.144 0.916 2.128 1.978 2.587v0.106c-2.207 0.5-3.729 2.151-3.729 4.079v0.515h10.153v-0.515c0-1.929-1.522-3.58-3.729-4.080zM15.853 12.492c0.189 0 0.381 0.019 0.569 0.057 0.693 0.14 1.293 0.519 1.689 1.066 0.369 0.511 0.518 1.111 0.423 1.701-0.507-0.237-1.173-0.487-1.874-0.583-1.318-0.18-1.339-0.241-1.417-0.469l-0.252-0.728-0.579 0.512c-0.062 0.054-0.528 0.464-1.066 0.91-0.015-0.198-0.002-0.396 0.037-0.593 0.219-1.086 1.257-1.873 2.469-1.873zM13.67 16.025c0.361-0.292 0.718-0.594 0.977-0.816 0.358 0.323 0.916 0.414 1.874 0.545 0.65 0.089 1.287 0.349 1.748 0.578v1.161c0 1.268-1.031 2.299-2.299 2.299s-2.299-1.031-2.299-2.299v-1.468zM15.682 20.81c0.213 0.019 0.425 0.017 0.635-0.006v0.318l-0.318 0.177-0.317-0.176v-0.313zM12.006 24.22c0.237-1.154 1.25-2.113 2.646-2.501v0.010l1.346 0.748 1.35-0.748v-0.010c1.396 0.388 2.409 1.348 2.646 2.502l-7.987-0zM21.076 27.499h-10.153c-0.307 0-0.556-0.249-0.556-0.556s0.249-0.556 0.556-0.556h10.153c0.307 0 0.556 0.249 0.556 0.556s-0.249 0.556-0.556 0.556zM28.112 3.393h-9.422v-1.689c0-0.832-0.677-1.509-1.509-1.509h-2.363c-0.832 0-1.509 0.677-1.509 1.509v1.689h-9.422c-0.832 0-1.509 0.677-1.509 1.509v25.395c0 0.832 0.677 1.509 1.509 1.509h24.225c0.832 0 1.509-0.677 1.509-1.509v-25.395c-0-0.832-0.677-1.509-1.509-1.509zM14.421 1.703c0-0.219 0.178-0.397 0.397-0.397h2.363c0.219 0 0.397 0.178 0.397 0.397v5.083c0 0.219-0.178 0.397-0.397 0.397h-2.363c-0.219 0-0.397-0.178-0.397-0.397v-5.083zM28.509 30.297c0 0.219-0.178 0.397-0.397 0.397h-24.225c-0.219 0-0.397-0.178-0.397-0.397v-25.395c0-0.219 0.178-0.397 0.397-0.397h9.422v2.282c0 0.832 0.677 1.509 1.509 1.509h2.363c0.832 0 1.509-0.677 1.509-1.509v-2.282h9.422c0.219 0 0.397 0.178 0.397 0.397v25.395z"}))},c=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.457 11.777h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 18.886c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 15.133c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 15.523h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 23.388h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c-0-0.829-0.674-1.503-1.503-1.503zM30.84 30.497c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM4.67 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95 0.95-0.425 0.95-0.95c0-0.525-0.425-0.95-0.95-0.95zM7.947 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 26.744c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 27.134h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM30.457 0h-28.914c-0.829 0-1.503 0.674-1.503 1.503v5.606c0 0.829 0.674 1.503 1.503 1.503h28.914c0.829 0 1.503-0.674 1.503-1.503v-5.606c0-0.829-0.674-1.503-1.503-1.503zM30.84 7.109c0 0.211-0.172 0.383-0.383 0.383h-28.914c-0.211 0-0.383-0.172-0.383-0.383v-5.606c0-0.211 0.172-0.383 0.383-0.383h28.914c0.211 0 0.383 0.172 0.383 0.383v5.606zM5.62 4.306c0 0.525-0.425 0.95-0.95 0.95s-0.95-0.425-0.95-0.95c0-0.525 0.425-0.95 0.95-0.95s0.95 0.425 0.95 0.95zM7.947 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM11.224 3.356c-0.525 0-0.95 0.425-0.95 0.95s0.425 0.95 0.95 0.95c0.525 0 0.95-0.425 0.95-0.95s-0.425-0.95-0.95-0.95zM27.871 3.746h-11.386c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h11.386c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56z"}))},d=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.584 0.099h-29.068c-0.781 0-1.417 0.635-1.417 1.416v29.068c0 0.781 0.635 1.416 1.417 1.416h29.068c0.781 0 1.416-0.635 1.416-1.416v-29.068c0-0.781-0.635-1.416-1.416-1.416zM1.515 1.219h29.068c0.163 0 0.296 0.133 0.296 0.296v3.476h-29.661v-3.476c0-0.163 0.133-0.296 0.296-0.296zM30.584 30.88h-29.068c-0.163 0-0.296-0.133-0.296-0.296v-24.472h29.661v24.472c0 0.163-0.133 0.296-0.296 0.296zM26.999 20.461h-21.062c-0.838 0-1.52 0.682-1.52 1.52v5.601c0 0.838 0.682 1.52 1.52 1.52h21.062c0.838 0 1.52-0.682 1.52-1.52v-5.601c0-0.838-0.682-1.52-1.52-1.52zM27.399 27.582c0 0.221-0.18 0.4-0.4 0.4h-21.062c-0.221 0-0.4-0.18-0.4-0.4v-5.601c0-0.221 0.179-0.4 0.4-0.4h21.062c0.221 0 0.4 0.179 0.4 0.4v5.601zM5.937 16.247h5.432c0.838 0 1.52-0.682 1.52-1.52v-5.432c0-0.838-0.682-1.52-1.52-1.52h-5.432c-0.838 0-1.52 0.682-1.52 1.52v5.432c0 0.838 0.682 1.52 1.52 1.52zM5.537 9.294c0-0.221 0.179-0.4 0.4-0.4h5.432c0.221 0 0.4 0.179 0.4 0.4v5.432c0 0.221-0.18 0.4-0.4 0.4h-5.432c-0.221 0-0.4-0.18-0.4-0.4v-5.432zM27.959 17.714h-22.982c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h22.982c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 14.793h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 11.433h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM27.959 8.072h-12.696c-0.309 0-0.56 0.251-0.56 0.56s0.251 0.56 0.56 0.56h12.696c0.309 0 0.56-0.251 0.56-0.56s-0.251-0.56-0.56-0.56zM4.543 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM7.384 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9zM10.224 3.051c0 0.497-0.403 0.9-0.9 0.9s-0.9-0.403-0.9-0.9c0-0.497 0.403-0.9 0.9-0.9s0.9 0.403 0.9 0.9z"}))},p=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.276 3.351h-14.587l-3.23-3.028c-0.103-0.097-0.239-0.15-0.38-0.15h-12.354c-0.307 0-0.556 0.249-0.556 0.556v30.697c0 0.307 0.249 0.556 0.556 0.556h30.551c0.307 0 0.556-0.249 0.556-0.556v-27.518c0-0.307-0.249-0.556-0.556-0.556zM1.281 1.286h11.578l3.23 3.028c0.103 0.097 0.239 0.15 0.38 0.15h14.25v3.013h-29.439v-6.191zM30.719 30.87h-29.439v-22.281h29.439v22.281z"}))},m=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.958 13.988h-0.64c-0.572-5.298-4.029-9.744-8.764-11.73h5.439v0.555c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.23c-0.309 0-0.559 0.25-0.559 0.559v0.555h-9.319v-0.555c0-0.309-0.25-0.559-0.559-0.559h-2.229c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.229c0.309 0 0.559-0.25 0.559-0.559v-0.555h5.439c-4.735 1.987-8.191 6.432-8.764 11.73h-0.64c-0.309 0-0.559 0.25-0.559 0.559v2.229c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559h-0.464c0.709-6.044 5.49-10.86 11.518-11.621v0.446c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-0.446c6.028 0.761 10.809 5.578 11.518 11.621h-0.464c-0.309 0-0.559 0.25-0.559 0.559v2.23c0 0.309 0.25 0.559 0.559 0.559h2.23c0.309 0 0.559-0.25 0.559-0.559v-2.229c0-0.309-0.25-0.559-0.559-0.559zM29.223 2.253h-1.111v-1.111h1.111v1.111zM2.777 1.142h1.111v1.111h-1.111v-1.111zM2.712 15.608v0.609h-1.111v-0.973c0.001-0.046 0.002-0.092 0.003-0.138h1.108v0.501zM16 1.142c0.186 0 0.371 0.005 0.555 0.012v1.099h-1.111v-1.099c0.184-0.007 0.37-0.012 0.556-0.012zM30.399 15.25v0.967h-1.111v-1.111h1.107c0.002 0.048 0.003 0.096 0.004 0.144zM16.512 4.461c-0.089-0.204-0.29-0.336-0.513-0.336s-0.424 0.132-0.513 0.336l-7.287 16.694c-0.058 0.134-0.062 0.285-0.011 0.421l0.009 0.023c0.059 0.157 0.186 0.279 0.345 0.333 1.743 0.585 2.914 2.213 2.914 4.052 0 0.766-0.206 1.518-0.595 2.175-0.012 0.020-0.022 0.041-0.032 0.063-0.063 0.091-0.101 0.201-0.101 0.32v2.832c0 0.307 0.248 0.557 0.555 0.559l9.42 0.068c0.001 0 0.003 0 0.004 0 0.307 0 0.557-0.248 0.559-0.555 0.002-0.309-0.246-0.561-0.555-0.563l-8.865-0.064v-1.405h8.654c0.234 0 0.443-0.145 0.524-0.364l0.153-0.41c0.059-0.158 0.043-0.335-0.043-0.48-0.389-0.657-0.595-1.409-0.595-2.174 0-1.838 1.171-3.467 2.914-4.052 0.16-0.054 0.287-0.176 0.346-0.334l0.009-0.023c0.051-0.136 0.047-0.287-0.011-0.42l-7.287-16.694zM16 20.028c0.619 0 1.122 0.503 1.122 1.122s-0.504 1.122-1.122 1.122c-0.619 0-1.122-0.503-1.122-1.122s0.503-1.122 1.122-1.122zM19.424 25.983c0 0.802 0.179 1.591 0.52 2.31h-7.887c0.341-0.719 0.52-1.509 0.52-2.31 0-2.121-1.235-4.020-3.127-4.894l5.991-13.726v11.616c-0.966 0.249-1.682 1.128-1.682 2.17 0 1.236 1.005 2.241 2.241 2.241s2.241-1.005 2.241-2.241c0-1.043-0.716-1.921-1.682-2.17v-11.616l5.991 13.726c-1.892 0.874-3.127 2.773-3.127 4.894z"}))},s=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M30.424 0.171h-28.847c-0.775 0-1.406 0.631-1.406 1.406v28.848c0 0.775 0.631 1.406 1.406 1.406h28.847c0.775 0 1.406-0.631 1.406-1.406v-28.848c0-0.775-0.631-1.406-1.406-1.406zM1.576 1.282h28.847c0.162 0 0.294 0.132 0.294 0.294v3.45h-29.435v-3.45c0-0.162 0.132-0.294 0.294-0.294zM30.424 30.718h-28.847c-0.162 0-0.294-0.132-0.294-0.294v-24.286h29.435v24.286c0 0.162-0.132 0.294-0.294 0.294zM3.688 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM6.507 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM9.326 3.994c0.493 0 0.893-0.4 0.893-0.893s-0.4-0.893-0.893-0.893-0.893 0.4-0.893 0.893c0 0.493 0.4 0.893 0.893 0.893zM20.662 19.394l3.855-3.758c0.152-0.148 0.206-0.369 0.141-0.57s-0.239-0.348-0.449-0.378l-5.328-0.774-2.383-4.828c-0.094-0.19-0.287-0.31-0.498-0.31s-0.405 0.12-0.498 0.31l-2.383 4.828-5.328 0.774c-0.209 0.030-0.383 0.177-0.449 0.378s-0.011 0.422 0.141 0.57l3.855 3.758-0.91 5.307c-0.036 0.209 0.050 0.419 0.221 0.544s0.398 0.141 0.585 0.042l4.766-2.506 4.766 2.506c0.081 0.043 0.17 0.064 0.259 0.064 0.115 0 0.23-0.036 0.327-0.106 0.171-0.124 0.257-0.335 0.221-0.544l-0.91-5.307zM16.259 21.661c-0.162-0.085-0.355-0.085-0.517 0l-4.027 2.117 0.769-4.485c0.031-0.18-0.029-0.364-0.16-0.492l-3.258-3.176 4.503-0.654c0.181-0.026 0.338-0.14 0.418-0.304l2.014-4.080 2.014 4.080c0.081 0.164 0.238 0.278 0.419 0.304l4.503 0.654-3.258 3.176c-0.131 0.128-0.191 0.312-0.16 0.492l0.769 4.485-4.027-2.117zM16 25.179c-0.307 0-0.556 0.249-0.556 0.556v1.887c0 0.307 0.249 0.556 0.556 0.556s0.556-0.249 0.556-0.556v-1.887c0-0.307-0.249-0.556-0.556-0.556zM25.319 20.446l-1.794-0.583c-0.293-0.095-0.606 0.065-0.7 0.357s0.065 0.606 0.357 0.7l1.794 0.583c0.057 0.019 0.115 0.027 0.172 0.027 0.234 0 0.452-0.149 0.529-0.384 0.095-0.292-0.065-0.606-0.357-0.7zM20.218 12.197c0.099 0.072 0.213 0.106 0.326 0.106 0.172 0 0.341-0.079 0.45-0.229l1.109-1.526c0.18-0.248 0.125-0.596-0.123-0.776s-0.596-0.125-0.776 0.123l-1.109 1.526c-0.18 0.248-0.125 0.596 0.123 0.776zM11.006 12.075c0.109 0.15 0.278 0.229 0.45 0.229 0.113 0 0.228-0.034 0.326-0.106 0.248-0.18 0.303-0.528 0.123-0.776l-1.109-1.526c-0.18-0.248-0.528-0.303-0.776-0.123s-0.303 0.528-0.123 0.776l1.109 1.526zM8.475 19.863l-1.794 0.583c-0.292 0.095-0.452 0.408-0.357 0.7 0.076 0.235 0.294 0.384 0.529 0.384 0.057 0 0.115-0.009 0.172-0.027l1.794-0.583c0.292-0.095 0.452-0.408 0.357-0.7s-0.408-0.452-0.7-0.357z"}))},u=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M6.348 13.197c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.803-2.873-2.769-2.873zM25.842 3.161c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557zM25.742 22.433c-0.826 0-1.641 0.22-2.359 0.636-0.567 0.328-1.040 0.758-1.41 1.252l-11.344-6.569c0.069-0.174 0.13-0.353 0.179-0.537 0.276-1.036 0.194-2.11-0.226-3.079l11.319-6.555c0.878 1.235 2.316 1.986 3.848 1.986 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353-0.826 0-1.641 0.22-2.359 0.636-2.051 1.188-2.872 3.694-2.015 5.833l-11.344 6.569c-0.884-1.176-2.285-1.888-3.776-1.888-0.825 0-1.641 0.22-2.359 0.636-2.25 1.303-3.021 4.194-1.718 6.444 0.841 1.452 2.406 2.353 4.085 2.353 0.826 0 1.641-0.22 2.359-0.636 0.595-0.345 1.097-0.805 1.483-1.35l11.319 6.554c-0.567 1.323-0.526 2.888 0.249 4.227 0.841 1.452 2.406 2.353 4.085 2.353 0.825 0 1.641-0.22 2.359-0.636 1.090-0.631 1.869-1.649 2.194-2.866s0.155-2.488-0.476-3.578c-0.841-1.452-2.406-2.353-4.085-2.353zM23.941 1.734c0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.798-0.995-1.719-0.407-3.927 1.312-4.922zM8.056 19.117c-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.833 0.611 1.803 0.363 2.733s-0.843 1.707-1.675 2.189zM29.226 28.077c-0.248 0.93-0.843 1.707-1.675 2.189-0.549 0.318-1.171 0.486-1.801 0.486-1.283 0-2.479-0.689-3.121-1.797-0.995-1.719-0.407-3.927 1.312-4.922 0.549-0.318 1.171-0.486 1.801-0.486 1.283 0 2.479 0.689 3.121 1.798 0.482 0.832 0.611 1.803 0.363 2.733zM25.842 24.346c-0.308 0-0.557 0.249-0.557 0.557s0.249 0.557 0.557 0.557c0.495 0 1.655 0.598 1.655 1.759 0 0.308 0.249 0.557 0.557 0.557s0.557-0.249 0.557-0.557c0-1.886-1.802-2.873-2.769-2.873z"}))},b=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M16 27.667l7.849-7.849c0.146-0.139 0.464-0.469 0.478-0.483l0.006-0.007c1.972-2.116 3.059-4.874 3.059-7.766 0-6.282-5.11-11.392-11.392-11.392s-11.392 5.11-11.392 11.392c0 2.893 1.086 5.651 3.058 7.766l8.334 8.339zM16 1.265c5.677 0 10.297 4.619 10.297 10.297 0 2.613-0.981 5.104-2.761 7.016-0.092 0.096-0.343 0.353-0.446 0.451l-7.089 7.089-7.539-7.543c-1.779-1.911-2.758-4.401-2.758-7.012 0-5.678 4.619-10.297 10.297-10.297zM17.755 4.005c1.966 0 5.792 2.149 5.792 6.090 0 0.303 0.245 0.548 0.548 0.548s0.548-0.245 0.548-0.548c0-2.051-0.906-3.953-2.552-5.354-1.306-1.112-3.008-1.831-4.335-1.831-0.302 0-0.548 0.245-0.548 0.548s0.245 0.548 0.548 0.548zM22.875 24.197c-0.427-0.174-0.886-0.33-1.371-0.467l-0.897 0.897c2.645 0.631 4.275 1.756 4.275 2.802 0 1.564-3.648 3.306-8.882 3.306s-8.882-1.742-8.882-3.306c0-1.045 1.631-2.171 4.275-2.802l-0.897-0.897c-0.485 0.137-0.944 0.293-1.371 0.467-2.001 0.818-3.102 1.966-3.102 3.232s1.102 2.415 3.102 3.232c1.845 0.754 4.287 1.169 6.875 1.169s5.030-0.415 6.875-1.169c2.001-0.818 3.102-1.966 3.102-3.232s-1.102-2.415-3.102-3.232zM16.032 16.804c-3.043 0-5.519-2.476-5.519-5.519s2.476-5.519 5.519-5.519c3.043 0 5.519 2.476 5.519 5.519s-2.476 5.519-5.519 5.519zM16.032 6.862c-2.439 0-4.423 1.984-4.423 4.423s1.984 4.423 4.423 4.423c2.439 0 4.423-1.984 4.423-4.423s-1.984-4.423-4.423-4.423z"}))},g=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M4.285 5.775c0.004 0 0.009 0.001 0.013 0.001h8.279c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-8.279c-0.307 0-0.556 0.249-0.556 0.556 0 0.302 0.242 0.548 0.542 0.555zM3.743 8.005c0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556h-13.679c-0.307 0-0.556 0.249-0.556 0.556zM17.977 10.236h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 13.022h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 15.807h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM17.977 18.593h-13.679c-0.307 0-0.556 0.249-0.556 0.555s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.555-0.556-0.555zM17.977 21.379h-13.679c-0.307 0-0.556 0.249-0.556 0.556s0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556s-0.249-0.556-0.556-0.556zM17.977 24.165h-13.679c-0.145 0-0.276 0.056-0.375 0.147-0.11 0.102-0.18 0.247-0.18 0.409 0 0.307 0.249 0.556 0.556 0.556h13.679c0.307 0 0.556-0.249 0.556-0.556 0-0.162-0.070-0.307-0.18-0.409-0.099-0.091-0.23-0.147-0.375-0.147zM21.93 4.466l-4.277-3.87c-0.094-0.085-0.212-0.132-0.334-0.139h-15.831c-0.812 0-1.473 0.664-1.473 1.481v28.153c0 0.817 0.661 1.481 1.473 1.481h19.174c0.812 0 1.473-0.664 1.473-1.481v-25.222c-0.008-0.163-0.086-0.308-0.205-0.403zM17.833 2.238l2.331 2.109h-2.331v-2.109zM21.043 30.091c0 0.215-0.171 0.39-0.381 0.39h-19.174c-0.21 0-0.382-0.175-0.382-0.39v-28.153c0-0.215 0.171-0.39 0.382-0.39h15.251v3.348c0 0.303 0.245 0.549 0.547 0.549h3.758v24.647zM31.975 3.213c-0.125-1.57-1.442-2.809-3.044-2.809-0 0-0 0-0 0-0.816 0-1.583 0.318-2.16 0.895-0.519 0.519-0.827 1.191-0.884 1.915h-0.010v0.242c0 0.001-0 0.002-0 0.003s0 0.001 0 0.001l-0 24.342h0.003c0.010 0.096 0.045 0.191 0.108 0.273l2.509 3.305c0.103 0.136 0.264 0.216 0.435 0.216s0.331-0.080 0.435-0.216l2.508-3.305c0.063-0.083 0.098-0.177 0.108-0.274h0.003v-24.589h-0.011zM27.543 2.070c0.371-0.371 0.864-0.575 1.388-0.575h0c0.893 0 1.649 0.6 1.886 1.417h-3.772c0.091-0.315 0.26-0.604 0.498-0.842zM28.362 26.711l-1.394 0 0-22.406h3.926v22.406h-1.442l0-18.071-1.090 0 0 18.071zM28.931 30.148l-1.781-2.346 3.562-0-1.781 2.346z"}))},f=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.908 1.543c0-0.815-0.677-1.478-1.51-1.478h-28.731c-0.815 0-1.478 0.677-1.478 1.51v14.441c0 0.022 0.002 0.044 0.004 0.065-0.003 0.021-0.004 0.043-0.004 0.065v14.357c0 0.815 0.677 1.478 1.51 1.478h28.731c0.815 0 1.478-0.677 1.478-1.51v-14.441c0-0.022-0.002-0.044-0.004-0.065 0.003-0.021 0.004-0.043 0.004-0.065v-14.357zM30.792 1.543v13.799h-4.324c0.587-0.66 0.932-1.525 0.932-2.453 0-0.737-0.218-1.423-0.592-2-0.648-1.066-1.82-1.78-3.156-1.78-2.034 0-3.689 1.655-3.689 3.689 0 0.745 0.223 1.449 0.615 2.039 0.111 0.178 0.236 0.347 0.376 0.504h-4.372v-6.025c0-0.184-0.090-0.347-0.228-0.449-0.101-0.103-0.242-0.167-0.398-0.167h-0.173c-0.24 0-0.453 0.153-0.529 0.38-0.352 1.049-1.332 1.754-2.439 1.754-0.419 0-0.815-0.101-1.166-0.28-0.776-0.444-1.301-1.279-1.301-2.235 0-1.419 1.154-2.574 2.574-2.574 0.408 0 0.799 0.096 1.147 0.27 0.546 0.305 0.976 0.804 1.185 1.426 0.052 0.155 0.169 0.275 0.314 0.335 0.092 0.065 0.204 0.103 0.322 0.103h0.133c0.308 0 0.558-0.25 0.558-0.558v-6.142h13.816c0.217 0 0.394 0.162 0.394 0.362zM1.305 1.575c0-0.217 0.162-0.394 0.362-0.394h13.732v4.404c-0.239-0.216-0.505-0.401-0.793-0.549-0.536-0.297-1.148-0.464-1.791-0.464-2.034 0-3.689 1.655-3.689 3.689 0 1.423 0.81 2.659 1.992 3.274 0.534 0.301 1.149 0.473 1.804 0.473 0.939 0 1.813-0.354 2.476-0.955v4.404h-6.016c-0.308 0-0.558 0.25-0.558 0.558v0.173c0 0.127 0.043 0.245 0.117 0.34 0.065 0.129 0.178 0.231 0.321 0.279 0.562 0.189 1.023 0.558 1.332 1.030 0.232 0.39 0.364 0.842 0.364 1.318 0 1.419-1.154 2.574-2.574 2.574-0.894 0-1.682-0.458-2.144-1.151-0.236-0.389-0.372-0.844-0.372-1.331-0-1.107 0.705-2.087 1.754-2.44 0.227-0.076 0.38-0.289 0.38-0.529v-0.133c0-0.106-0.030-0.204-0.081-0.288-0.068-0.231-0.282-0.4-0.535-0.4h-6.084v-13.883zM1.305 30.505v-13.799h4.324c-0.587 0.66-0.932 1.525-0.932 2.453 0 0.737 0.218 1.424 0.592 2 0.647 1.066 1.82 1.78 3.156 1.78 2.034 0 3.689-1.655 3.689-3.689-0-0.745-0.223-1.449-0.615-2.040-0.111-0.178-0.236-0.347-0.376-0.504h4.372v6.025c0 0.184 0.090 0.347 0.228 0.449 0.101 0.103 0.242 0.167 0.398 0.167h0.173c0.24 0 0.453-0.153 0.529-0.38 0.352-1.049 1.332-1.754 2.439-1.754 0.419 0 0.815 0.101 1.165 0.28 0.776 0.444 1.301 1.279 1.301 2.236 0 1.419-1.154 2.574-2.574 2.574-0.408 0-0.799-0.096-1.147-0.27-0.546-0.305-0.976-0.804-1.185-1.426-0.052-0.155-0.169-0.275-0.314-0.336-0.092-0.065-0.204-0.103-0.322-0.103h-0.133c-0.308 0-0.558 0.25-0.558 0.558v6.142h-13.816c-0.217-0-0.394-0.163-0.394-0.362zM30.792 30.472c0 0.217-0.162 0.394-0.362 0.394h-13.732v-4.404c0.239 0.216 0.505 0.401 0.792 0.548 0.536 0.297 1.148 0.464 1.791 0.464 2.034 0 3.689-1.655 3.689-3.689 0-1.423-0.81-2.659-1.993-3.274-0.534-0.301-1.149-0.473-1.804-0.473-0.939 0-1.813 0.354-2.476 0.955v-4.404h6.016c0.308 0 0.558-0.25 0.558-0.558v-0.173c0-0.126-0.044-0.245-0.117-0.34-0.064-0.129-0.178-0.231-0.321-0.279-0.562-0.189-1.023-0.558-1.332-1.030-0.232-0.389-0.363-0.842-0.363-1.318 0-1.419 1.154-2.574 2.574-2.574 0.894 0 1.682 0.458 2.144 1.151 0.236 0.389 0.372 0.844 0.372 1.331 0 1.107-0.705 2.087-1.754 2.439-0.227 0.076-0.38 0.289-0.38 0.529v0.133c0 0.106 0.030 0.204 0.081 0.289 0.068 0.231 0.282 0.4 0.535 0.4h6.084v13.883z"}))},h=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M15.517 23.581c-0.036 0.002-0.069-0.003-0.102-0.009-0.108-0.019-0.211-0.070-0.294-0.153l-9.153-9.153c-0.104-0.104-0.162-0.245-0.162-0.392s0.058-0.288 0.163-0.392l2.13-2.129c0.217-0.217 0.568-0.217 0.784 0l6.633 6.633 12.94-12.94c0.217-0.217 0.568-0.217 0.785 0l2.13 2.13c0.104 0.104 0.163 0.245 0.163 0.392s-0.058 0.288-0.162 0.392l-15.46 15.46c-0.104 0.104-0.245 0.163-0.392 0.163zM7.145 13.873l8.37 8.37 14.678-14.678-1.345-1.345-12.94 12.94c-0.217 0.217-0.568 0.217-0.785 0l-6.633-6.633-1.345 1.345zM30.087 11.781c0.401 1.337 0.618 2.753 0.618 4.219 0 8.108-6.596 14.704-14.705 14.704s-14.704-6.596-14.704-14.704c0-8.108 6.596-14.705 14.704-14.705 3.79 0 7.25 1.442 9.86 3.805l0.785-0.785c-2.812-2.564-6.549-4.129-10.645-4.129-8.72 0-15.814 7.094-15.814 15.814s7.094 15.814 15.814 15.814c8.72 0 15.814-7.094 15.814-15.814 0-1.784-0.297-3.501-0.845-5.102l-0.883 0.883z"}))},y=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.425 25.368h-3.22v-2.107c-1.234-0.109-2.518-0.463-3.389-0.944l-0.373-0.206 0.93-3.628 0.622 0.341c0.602 0.33 1.835 0.883 3.323 0.883 0.769 0 1.545-0.244 1.545-0.789 0-0.365-0.235-0.783-1.938-1.358-1.985-0.668-4.264-1.78-4.264-4.477 0-2.098 1.387-3.709 3.652-4.289v-2.162h3.22v1.931c1.366 0.11 2.263 0.465 2.838 0.736l0.416 0.196-0.937 3.53-0.621-0.298c-0.539-0.259-1.442-0.692-2.853-0.692-0.488 0-1.307 0.088-1.307 0.681 0 0.448 1.192 0.94 2.231 1.319 2.781 0.973 3.971 2.344 3.971 4.58 0 1.114-0.391 2.124-1.13 2.922-0.668 0.721-1.601 1.236-2.716 1.503v2.328zM15.307 24.266h1.016v-2.139l0.457-0.079c2.090-0.36 3.389-1.676 3.389-3.433 0-1.446-0.551-2.601-3.24-3.542-1.624-0.592-2.962-1.176-2.962-2.357 0-0.862 0.633-1.783 2.409-1.783 1.213 0 2.119 0.278 2.746 0.536l0.36-1.354c-0.565-0.222-1.372-0.445-2.517-0.479l-0.535-0.016v-1.886h-1.016v1.959l-0.45 0.084c-2.005 0.375-3.202 1.61-3.202 3.305 0 1.577 1.051 2.604 3.514 3.432 1.396 0.472 2.688 1.089 2.688 2.402 0 1.149-1.039 1.891-2.647 1.891-1.312 0-2.447-0.366-3.222-0.708l-0.369 1.437c0.709 0.309 1.808 0.617 3.045 0.654l0.535 0.016v2.058zM15.901 30.607c-8.054 0-14.607-6.552-14.607-14.606s6.552-14.607 14.607-14.607c8.054 0 14.607 6.552 14.607 14.607 0 2.567-0.667 4.981-1.834 7.079l1.095 0.293c1.174-2.2 1.841-4.71 1.841-7.373 0-8.662-7.047-15.709-15.709-15.709s-15.709 7.047-15.709 15.709 7.047 15.709 15.709 15.709c2.752 0 5.34-0.712 7.592-1.96l-0.294-1.099c-2.148 1.244-4.641 1.957-7.297 1.957zM29.539 31.709c-0.141 0-0.282-0.054-0.39-0.161l-2.673-2.673-0.86 1.786c-0.1 0.208-0.32 0.331-0.548 0.31s-0.421-0.184-0.481-0.406l-1.977-7.377c-0.051-0.19 0.004-0.393 0.143-0.532s0.342-0.194 0.532-0.143l7.377 1.977c0.222 0.060 0.385 0.252 0.406 0.481s-0.102 0.448-0.31 0.548l-1.787 0.86 2.673 2.672c0.103 0.103 0.161 0.244 0.161 0.39s-0.058 0.286-0.161 0.39l-1.717 1.717c-0.108 0.107-0.249 0.161-0.39 0.161zM26.318 27.385c0.145 0 0.285 0.057 0.39 0.161l2.832 2.832 0.938-0.938-2.832-2.832c-0.126-0.126-0.184-0.306-0.154-0.482s0.143-0.327 0.304-0.404l1.148-0.552-5.020-1.345 1.345 5.020 0.552-1.148c0.077-0.161 0.228-0.274 0.404-0.304 0.031-0.005 0.062-0.008 0.092-0.008zM20.272 5.201c1.977 0 5.826 2.162 5.826 6.126 0 0.304 0.247 0.551 0.551 0.551s0.551-0.247 0.551-0.551c0-2.063-0.912-3.976-2.568-5.387-1.314-1.119-3.025-1.842-4.361-1.842-0.304 0-0.551 0.247-0.551 0.551s0.247 0.551 0.551 0.551z"}))},w=function(){return wp.element.createElement(o,{viewBox:"0 0 32 32",style:{padding:"1px",fill:"#000000"},xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M31.438 1.423h-30.877c-0.31 0-0.562 0.251-0.562 0.562v22.175c0 0.31 0.251 0.562 0.562 0.562h3.103v5.294c0 0.201 0.107 0.386 0.281 0.486 0.087 0.050 0.184 0.075 0.281 0.075s0.194-0.025 0.281-0.075l10.012-5.78h16.919c0.31 0 0.562-0.251 0.562-0.562v-22.175c0-0.31-0.251-0.562-0.562-0.562zM30.877 23.598h-16.508c-0.099 0-0.195 0.026-0.281 0.075l-9.3 5.369v-4.883c0-0.31-0.251-0.562-0.562-0.562h-3.103v-21.052h29.753v21.052zM4.386 7.532h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 11.865h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 16.198h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.251-0.562 0.562s0.251 0.562 0.562 0.562zM4.386 20.53h22.894c0.31 0 0.562-0.251 0.562-0.562s-0.251-0.562-0.562-0.562h-22.894c-0.31 0-0.562 0.252-0.562 0.562s0.251 0.562 0.562 0.562z"}))},v=function(){return wp.element.createElement(o,{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"}))},k=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"4.744",width:"11.022",height:"2.512"}))},T=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{y:"8.744",width:"11.022",x:"4.489",height:"2.512"}))},E=function(){return wp.element.createElement(o,{className:"wp-block-themeisle-icon-buttom-group-custom-icon",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(l,{d:"M17.294,17.287l-14.588,0l0,-14.574l14.588,0c0,4.858 0,9.716 0,14.574Zm-13.738,-0.85l12.888,0l0,-12.874l-12.888,0c0,4.291 0,8.583 0,12.874Z"}),wp.element.createElement("rect",{x:"4.489",y:"12.802",width:"11.022",height:"2.512"}))},x=wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},wp.element.createElement(l,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"})),C=wp.element.createElement(o,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement(l,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(42),n(2)),r=wp.i18n.__,i=wp.components,c=i.Button,d=i.Dropdown,p=i.Icon,m=i.IconButton,s=wp.compose,u=s.compose,b=s.withInstanceId,g=wp.data,f=g.withSelect,h=g.withDispatch,y=wp.viewport.withViewportMatch;t.a=u(b,y({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"}),f((function(e,t){var n=e("themeisle-gutenberg/data").getView,a=e("core/edit-post").__experimentalGetPreviewDeviceType,l=!(t.isLarger||t.isLarge||t.isSmall||t.isSmaller);return{view:a&&!l?a():n()}})),h((function(e,t){var n=e("themeisle-gutenberg/data").updateView,a=e("core/edit-post").__experimentalSetPreviewDeviceType,l=!(t.isLarger||t.isLarge||t.isSmall||t.isSmaller);return{updateView:a&&!l?a:n}})))((function(e){var t=e.instanceId,n=e.label,a=e.className,i=e.children,s=e.view,u=e.updateView,b="inspector-responsive-control-".concat(t);return wp.element.createElement("div",{id:b,className:l()("wp-block-themeisle-blocks-responsive-control",a)},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(d,{position:"top left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(m,{icon:"Mobile"===s?"smartphone":s.toLowerCase(),label:r("Responsiveness Settings"),className:"is-button",onClick:n,"aria-expanded":t})},renderContent:function(){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-responsive-control-settings-title"},r("View")),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Desktop"===s}),onClick:function(){return u("Desktop")}},"Desktop"===s&&wp.element.createElement(p,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Desktop"))),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Tablet"===s}),onClick:function(){return u("Tablet")}},"Tablet"===s&&wp.element.createElement(p,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Tablet"))),wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-responsive-control-settings-item",{"is-selected":"Mobile"===s}),onClick:function(){return u("Mobile")}},"Mobile"===s&&wp.element.createElement(p,{icon:o.e}),wp.element.createElement("span",{className:"popover-title"},r("Mobile"))))}}))),i))}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=(n(43),wp.element),r=o.Fragment,i=o.useRef,c=function(e){var t=e.id,n=e.index,a=e.option,l=e.min,o=e.max,c=e.onChange,d=i(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-sizing-control-item"},n.disabled?wp.element.createElement("input",{type:"number",disabled:n.disabled,className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a)}):wp.element.createElement(r,null,wp.element.createElement("input",{type:"number",className:"wp-block-themeisle-blocks-sizing-control-item-input",id:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a,"-").concat(t),value:void 0!==n.value?n.value:"",min:l,max:o,ref:d,onChange:function(e){return c(n.type,parseInt(e.target.value))}})),n.label&&wp.element.createElement("label",{className:"wp-block-themeisle-blocks-sizing-control-item-label",htmlFor:"wp-block-themeisle-blocks-sizing-control-item-input-".concat(a,"-").concat(t)},n.label))},d=wp.i18n.__,p=wp.components.IconButton,m=wp.compose.withInstanceId;t.a=m((function(e){var t=e.instanceId,n=e.label,a=e.type,o=e.min,r=e.max,i=e.changeType,m=e.options,s=e.onChange,u="inspector-sizing-control-".concat(t);return m&&1>m.length?d("Please specify more options."):wp.element.createElement("div",{id:u,className:"wp-block-themeisle-blocks-sizing-control"},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("label",{className:"components-base-control__label",htmlFor:u},n),wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-sizing-control-wrapper",{linking:a})},m.map((function(e,n){return wp.element.createElement(c,{id:t,index:e,option:n,min:o,max:r,onChange:s})})),a&&wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-sizing-control-item","toggle-linking",{"is-linked":"linked"===a})},wp.element.createElement(p,{icon:"linked"===a?"admin-links":"editor-unlink",tooltip:d("linked"===a?"Unlink Values":"Link Values"),className:"wp-block-themeisle-blocks-sizing-control-item-input",onClick:function(){return i("linked"===a?"unlinked":"linked")}})))))}))},function(e,t,n){"use strict";t.a={"themeisle-blocks/advanced-heading":{tag:"h2",headingColor:"#000000",fontStyle:"normal",textTransform:"none",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:0,marginTop:0,marginBottom:25},"themeisle-blocks/button-group":{spacing:20,collapse:"collapse-none",fontSize:18,fontStyle:"normal",data:{color:"#ffffff",background:"#32373c",paddingTopBottom:12,paddingLeftRight:24}},"themeisle-blocks/font-awesome-icons":{fontSize:16,padding:5,margin:5},"themeisle-blocks/advanced-columns":{columnsGap:"default",paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginBottom:20,columnsHTMLTag:"div",horizontalAlign:"unset",columnsHeight:"auto",verticalAlign:"unset",hide:!1,hideTablet:!1,hideMobile:!1},"themeisle-blocks/advanced-column":{paddingType:"linked",paddingTypeTablet:"linked",paddingTypeMobile:"linked",padding:20,paddingTop:20,paddingRight:20,paddingBottom:20,paddingLeft:20,marginType:"unlinked",marginTypeTablet:"unlinked",marginTypeMobile:"unlinked",margin:20,marginTop:20,marginRight:0,marginBottom:20,marginLeft:0,columnsHTMLTag:"div"}}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return o}));var a=wp.i18n.__,l=function(e){var t=document.createElement("div");return t.innerHTML=e,void 0!==t.innerText?t.innerText:t.textContent},o=function(e){var t=[a("January"),a("February"),a("March"),a("April"),a("May"),a("June"),a("July"),a("August"),a("September"),a("October"),a("November"),a("December")],n=(e=new Date(e)).getDate(),l=e.getMonth(),o=e.getFullYear();return n+" "+t[l]+", "+o}},function(e,t,n){"use strict";n(53);var a=wp.components,l=a.Dropdown,o=a.IconButton,r=wp.compose.withInstanceId;t.a=r((function(e){var t=e.label,n=e.instanceId,a=e.children,r="inspector-control-panel-control-".concat(n);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-control-panel-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label",for:r},t),wp.element.createElement("div",{className:"floating-controls"},wp.element.createElement(l,{position:"top left",headerTitle:t,expandOnMobile:!0,renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(o,{id:r,icon:"admin-settings",label:t,className:"is-button",onClick:a,"aria-expanded":n})},renderContent:function(){return wp.element.createElement("div",{className:"wp-block-themeisle-popover-settings"},a)}})))))}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(41);function o(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var d=lodash,p=d.startCase,m=d.toLower,s=wp.i18n.__,u=wp.compose.withInstanceId,b=wp.components,g=b.Button,f=b.BaseControl,h=b.Dropdown,y=b.MenuGroup,w=b.MenuItem,v=b.SelectControl,k=b.TextControl,T=wp.element,E=T.useEffect,x=T.useState;t.a=u((function(e){var t=e.instanceId,n=e.label,a=e.value,i=e.valueVariant,c=e.valueStyle,d=e.valueTransform,u=e.isSelect,b=void 0!==u&&u,T=e.onChangeFontFamily,C=e.onChangeFontVariant,S=e.onChangeFontStyle,M=e.onChangeTextTransform;E((function(){fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyClGdkPJ1BvgLOol5JAkQY4Mv2lkLYu00k").then((function(e){return e.json()})).then((function(e){R(e.items),a&&e.items.find((function(e){if(a===e.family){var t=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:p(m(e)),value:e}}));return A(t)}}))}))}),[]);var B=r(x(null),2),O=B[0],R=B[1],L=r(x(null),2),N=L[0],A=L[1],I=r(x(""),2),z=I[0],P=I[1],H="inspector-google-fonts-control-".concat(t);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-fonts-control"},wp.element.createElement(f,{label:n,id:H},null!==O?b?wp.element.createElement(v,{value:a||"",id:H,options:[{label:s("Default"),value:""}].concat(o(O.map((function(e){return{label:e.family,value:e.family}})))),onChange:function(e){var t=[];if(""===e)return t=[{label:s("Regular"),value:"regular"},{label:s("Italic"),value:"italic"}],T(void 0),void A(t);T(e),t=O.find((function(t){return e===t.family})).variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:p(m(e)),value:e}})),A(t)}}):wp.element.createElement(h,{contentClassName:"wp-block-themeisle-blocks-google-fonts-popover",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(g,{isLarge:!0,className:"wp-block-themeisle-blocks-google-fonts-button",id:H,onClick:n,"aria-expanded":t},a||s("Select Font Family"))},renderContent:function(e){var t=e.onToggle;return wp.element.createElement(y,{label:s("Google Fonts")},wp.element.createElement(k,{value:z,onChange:function(e){return P(e)}}),wp.element.createElement("div",{className:"components-popover__items"},wp.element.createElement(w,{onClick:function(){t(),T(void 0),A([]),P("")}},s("Default")),O.map((function(e){if(!z||e.family.toLowerCase().includes(z.toLowerCase()))return wp.element.createElement(w,{className:l()({"is-selected":e.family===a}),onClick:function(){t(),T(e.family);var n=e.variants.filter((function(e){return!1===e.includes("italic")})).map((function(e){return{label:p(m(e)),value:e}}));A(n),P("")}},e.family)}))))}}):s("Loading…")),N&&wp.element.createElement(v,{label:s("Font Width"),value:i||"regular",options:N,onChange:C}),wp.element.createElement(v,{label:s("Font Style"),value:c,options:[{label:s("Regular"),value:"normal"},{label:s("Italic"),value:"italic"}],onChange:S}),wp.element.createElement(v,{label:s("Font Transform"),value:d,options:[{label:s("Default"),value:"none"},{label:s("Uppercase"),value:"uppercase"},{label:s("Lowercase"),value:"lowercase"},{label:s("Capitalize"),value:"capitalize"}],onChange:M}))}))},function(e,t){e.exports=React},function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return g}));var a=n(0),l=n.n(a),o=(n(62),wp.components),r=o.BaseControl,i=o.Button,c=o.Dropdown,d=o.IconButton,p=o.Toolbar,m=wp.compose.withInstanceId,s=wp.blockEditor.BlockControls,u=wp.element.Fragment,b=m((function(e){var t=e.instanceId,n=e.label,a=e.value,o=e.options,c=e.onChange,d="inspector-style-switcher-control-".concat(t);return wp.element.createElement(r,{id:d,label:n},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},o.map((function(e){return wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-style-switcher-item",{"is-active":e.value===a}),tabIndex:"0",onClick:function(){return function(e){return c(e)}(e.value)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-label"},e.label))}))))})),g=function(e){var t=e.label,n=e.value,a=e.options,o=e.onChange;return wp.element.createElement(s,null,wp.element.createElement(p,{className:"wp-themesiel-blocks-block-styles-components-toolbar"},wp.element.createElement(c,{contentClassName:"wp-themesiel-blocks-block-styles-popover-content",position:"bottom center",renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(d,{className:"components-dropdown-menu__toggle",icon:"admin-appearance",onClick:a,"aria-haspopup":"true","aria-expanded":n,label:t,tooltip:t},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(u,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher"},a.map((function(e){return wp.element.createElement(i,{className:l()("wp-block-themeisle-blocks-style-switcher-item",{"is-active":e.value===n}),tabIndex:"0",onClick:function(){return function(e){return o(e)}(e.value)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-preview"},wp.element.createElement("img",{src:e.image})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-style-switcher-item-label"},e.label))}))))}})))}},,function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(70),n(71),wp.components),r=o.SVG,i=o.Path;t.default=function(e){var t=e.type,n=e.front,a=e.style,o=e.fill,c=e.invert,d=e.width,p=e.height;return"none"!==a&&wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&d?{transform:"".concat(d?"scaleX( ".concat(d/100," )"):"")}:{}},"bigTriangle"===a&&!1===c&&wp.element.createElement(r,{id:"bigTriangle",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement(i,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===c&&wp.element.createElement(r,{id:"bigTriangle",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===c&&wp.element.createElement(r,{id:"rightCurve",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===c&&wp.element.createElement(r,{id:"rightCurve",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement(r,{id:"curve",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===c&&wp.element.createElement(r,{id:"slant",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement(i,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===c&&wp.element.createElement(r,{id:"slant",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"bottom"===t})},wp.element.createElement(i,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement(r,{id:"cloud",fill:o,viewBox:"0 0 100 100",width:"100%",height:p?"".concat(p,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:l()({rotate:"top"===t})},wp.element.createElement(i,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))}},function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(67),n(2)),r=wp.i18n.__,i=wp.components,c=i.Button,d=i.ButtonGroup,p=i.Icon,m=i.IconButton,s=i.Tooltip,u=wp.compose.withInstanceId;t.default=u((function(e){var t=e.label,n=e.instanceId,a=e.backgroundType,i=e.changeBackgroundType,u="inspector-background-control-".concat(n);return wp.element.createElement("div",{id:u,className:"components-base-control wp-block-themeisle-blocks-advanced-columns-background-control"},wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},t),wp.element.createElement(d,{className:"linking-controls"},wp.element.createElement(m,{icon:"admin-customizer",label:r("Color"),className:l()("is-button",{"is-primary":"color"===a}),onClick:function(){i("color")}}),wp.element.createElement(m,{icon:"format-image",label:r("Image"),className:l()("is-button",{"is-primary":"image"===a}),onClick:function(){i("image")}}),wp.element.createElement(s,{text:r("Gradient")},wp.element.createElement(c,{label:r("Gradient"),className:l()("is-button",{"is-primary":"gradient"===a}),onClick:function(){i("gradient")}},wp.element.createElement(p,{icon:o.b})))))))}))},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";t.a={1:{equal:["100"]},2:{equal:["50","50"],oneTwo:["33.34","66.66"],twoOne:["66.66","33.34"]},3:{equal:["33.33","33.33","33.33"],oneOneTwo:["25","25","50"],twoOneOne:["50","25","25"],oneTwoOne:["25","50","25"],oneThreeOne:["20","60","20"]},4:{equal:["25","25","25","25"]},5:{equal:["20","20","20","20","20"]},6:{equal:["16.66","16.66","16.66","16.66","16.66","16.66"]}}},function(e,t,n){"use strict";n(68);var a=n(0),l=n.n(a),o=wp.components,r=o.Dashicon,i=o.Tooltip,c=function(e){var t=e.title,n=e.firstColor,a=e.secondColor,o=e.isSelected,c=e.onChange,d=wp.element.createElement("button",{type:"button","aria-pressed":o,className:l()("wp-block-themeisle-blocks-gradient-picker-control-option",{"is-active":o}),style:{background:"linear-gradient(90deg, ".concat(n," 0%, ").concat(a," 100%)")},onClick:function(){return c(n,0,a,100,"linear",90,"center center")}});return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-option-wrapper"},t?wp.element.createElement(i,{text:t},d):d,o&&wp.element.createElement(r,{icon:"saved"}))},d=wp.i18n.__,p=[{title:d("Reef"),firstColor:"#36d1dc",secondColor:"#5b86e5"},{title:d("Mild"),firstColor:"#67B26F",secondColor:"#4ca2cd"},{title:d("Mojito"),firstColor:"#1D976C",secondColor:"#93F9B9"},{title:d("Nelson"),firstColor:"#f2709c",secondColor:"#ff9472"},{title:d("Orange Fun"),firstColor:"#fc4a1a",secondColor:"#f7b733"},{title:d("Evening Night"),firstColor:"#005AA7",secondColor:"#FFFDE4"},{title:d("Calm Darya"),firstColor:"#5f2c82",secondColor:"#49a09d"},{title:d("Opa"),firstColor:"#3D7EAA",secondColor:"#FFE47A"},{title:d("Bora Bora"),firstColor:"#2BC0E4",secondColor:"#EAECC6"},{title:d("Electric Violet"),firstColor:"#4776E6",secondColor:"#8E54E9"},{title:d("Pinky"),firstColor:"#DD5E89",secondColor:"#F7BB97"},{title:d("Purple Paradise"),firstColor:"#1D2B64",secondColor:"#F8CDDA"}],m=wp.i18n.__,s=wp.components,u=s.Button,b=s.ColorIndicator,g=s.Dropdown,f=s.RangeControl,h=s.SelectControl,y=wp.compose.withInstanceId,w=wp.blockEditor.ColorPalette,v=wp.element.Fragment;t.a=y((function(e){var t,n=e.label,a=e.instanceId,l=e.value,o=e.customGradient,r=void 0===o||o,i=e.onChange,d="inspector-gradient-picker-control-".concat(a),s=function(e){var t=e.firstColor,n=void 0===t?l.firstColor:t,a=e.firstLocation,o=void 0===a?l.firstLocation:a,r=e.secondColor,c=void 0===r?l.secondColor:r,d=e.secondLocation,p=void 0===d?l.secondLocation:d,m=e.type,s=void 0===m?l.type:m,u=e.angle,b=void 0===u?l.angle:u,g=e.position,f=void 0===g?l.position:g;i(n,o,c,p,s,b,f)};t="linear"===l.type?"".concat(l.angle,"deg"):"at ".concat(l.position);var y="".concat(l.type,"-gradient( ").concat(t,", ").concat(l.firstColor||"rgba( 0, 0, 0, 0 )"," ").concat(l.firstLocation,"%, ").concat(l.secondColor||"rgba( 0, 0, 0, 0 )"," ").concat(l.secondLocation,"% )"),k=p.some((function(e){return e.firstColor===l.firstColor&&e.secondColor===l.secondColor}));return wp.element.createElement("div",{id:d,className:"wp-block-themeisle-blocks-gradient-picker-control"},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n,!k&&wp.element.createElement(b,{colorValue:y}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-presets"},p.map((function(e){return wp.element.createElement(c,{title:e.title,firstColor:e.firstColor,secondColor:e.secondColor,isSelected:e.firstColor===l.firstColor&&e.secondColor===l.secondColor,onChange:i})})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-gradient-picker-control-custom-wrapper"},r&&wp.element.createElement(g,{className:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-link-action",contentClassName:"wp-block-themeisle-blocks-gradient-picker-control-dropdown-content",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(u,{"aria-expanded":t,onClick:n,isLink:!0},m("Custom Gradient"))},renderContent:function(){return wp.element.createElement(v,null,wp.element.createElement("p",null,m("First Color")),wp.element.createElement(w,{label:m("Color"),clearable:!1,value:l.firstColor,onChange:function(e){return s({firstColor:e})}}),wp.element.createElement(f,{label:m("Location"),value:l.firstLocation,min:0,max:100,onChange:function(e){return s({firstLocation:e})}}),wp.element.createElement("p",null,m("Second Color")),wp.element.createElement(w,{label:m("Color"),clearable:!1,value:l.secondColor,onChange:function(e){return s({secondColor:e})}}),wp.element.createElement(f,{label:m("Location"),value:l.secondLocation,min:0,max:100,onChange:function(e){return s({secondLocation:e})}}),wp.element.createElement(h,{label:m("Type"),value:l.type,options:[{label:"Linear",value:"linear"},{label:"Radial",value:"radial"}],onChange:function(e){return s({type:e})}}),"linear"===l.type?wp.element.createElement(f,{label:m("Angle"),value:l.angle,min:0,max:360,onChange:function(e){return s({angle:e})}}):wp.element.createElement(h,{label:m("Position"),value:l.position,options:[{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){return s({position:e})}}))}}),wp.element.createElement(u,{className:"wp-block-themeisle-blocks-gradient-picker-control-clear",type:"button",isSmall:!0,isDefault:!0,onClick:function(){return i("#ffffff",0,"#ffffff",100,"linear",90,"center center")}},m("Clear"))))))}))},,function(e,t,n){"use strict";var a=n(0),l=n.n(a);n(54);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var i=wp.i18n.__,c=wp.blockEditor.InspectorAdvancedControls,d=wp.compose.withInstanceId,p=wp.components,m=p.BaseControl,s=p.IconButton,u=p.Notice,b=wp.element.useState;t.a=d((function(e){var t=e.instanceId,n=e.value,a=e.onChange,r=o(b(!1),2),d=r[0],p=r[1],g=o(b(n),2),f=g[0],h=g[1],y=void 0!==window.themeisleGutenberg.blockIDs&&n!==f&&window.themeisleGutenberg.blockIDs.includes(f);return wp.element.createElement(c,null,wp.element.createElement(m,{label:i("HTML Anchor"),help:i("Anchors lets you link directly to a section on a page."),id:"wp-block-themeisle-blocks-html-anchor-control-".concat(t)},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-html-anchor-control"},wp.element.createElement("input",{type:"text",className:"wp-block-themeisle-blocks-html-anchor-control-input",readonly:!d&&"readonly",value:d?f:n,onChange:function(e){return h(e.target.value)},onClick:function(e){return e.target.select()}}),wp.element.createElement(s,{icon:d?"yes":"edit",tooltip:i(d?"Save":"Edit"),disabled:!!y,className:l()("wp-block-themeisle-blocks-html-anchor-control-button",{"is-saved":!d}),onClick:function(){if(d&&n!==f){var e=window.themeisleGutenberg.blockIDs.findIndex((function(e){return e===n}));window.themeisleGutenberg.blockIDs[e]=f,a(f)}p(!d)}}))),y&&wp.element.createElement(u,{status:"warning",isDismissible:!1,className:"wp-block-themeisle-blocks-anchor-control-notice"},i("This ID has already been used in this page. Please consider using a different ID to avoid conflict.")))}))},function(e,t,n){"use strict";var a=n(0),l=n.n(a),o=n(21);n(57);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=wp.i18n.__,d=wp.apiFetch,p=wp.components,m=p.BaseControl,s=p.IconButton,u=p.Popover,b=wp.compose,g=b.compose,f=b.withInstanceId,h=wp.data.withSelect,y=wp.element,w=y.useEffect,v=y.useRef,k=y.useState,T=wp.keycodes,E=T.DOWN,x=T.ENTER,C=T.TAB,S=T.UP,M=wp.url.addQueryArgs;t.a=g(f,h((function(e){if(e("core/block-editor"))return{fetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))((function(e){var t=e.instanceId,n=e.label,a=e.help,i=e.placeholder,p=e.value,b=e.className,g=e.onChange,f=e.children,h=e.fetchLinkSuggestions;w((function(){I&&null!==H&&void 0!==B[H]&&!T&&null!==y.current&&(T=!0,Object(o.a)(B[H],y.current,{onlyScrollIfNeeded:!0}),setTimeout((function(){T=!1}),100))}));var y=v(null),T=!1,B=[],O=[],R=r(k(!1),2),L=R[0],N=R[1],A=r(k(!1),2),I=A[0],z=A[1],P=r(k(null),2),H=P[0],_=P[1],D=r(k([]),2),j=D[0],F=D[1],G=function(e){return function(t){B[e]=t}},V=function(e){g(e),z(!1)},W="inspector-link-control-".concat(t);return wp.element.createElement(m,{label:n,id:W,help:a,className:b},wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-link-control-wrapper",{"is-open":L})},wp.element.createElement("input",{type:"url",placeholder:i,value:p,onChange:function(e){g(e.target.value),function(e){var t;1>=e.length||/^https?:/.test(e)?z(!1):(z(!0),(t=h?h(e):d({path:M("/wp/v2/search",{search:e,per_page:20,type:"post"})})).then((function(e){O===t&&(F(e),_(null))})),O=t)}(e.target.value)},onKeyDown:function(e){if(I&&1<=j.length){var t=j[H];switch(e.keyCode){case S:e.stopPropagation(),e.preventDefault();var n=H?H-1:j.length-1;_(n);break;case E:e.stopPropagation(),e.preventDefault();var a=null===H||H===j.length-1?0:H+1;_(a);break;case C:case x:null!==H&&(e.stopPropagation(),V(t.url))}}},className:l()("components-text-control__input",{"is-full":void 0===f})}),I&&0<j.length&&wp.element.createElement(u,{position:"bottom",noArrow:!0,focusOnMount:!1,className:"wp-block-themeisle-blocks-link-control-popover"},wp.element.createElement("div",{ref:y,className:"wp-block-themeisle-blocks-link-control-popover-container"},j.map((function(e,t){return wp.element.createElement("button",{key:e.id,role:"option",tabIndex:"-1",ref:G(t),className:l()("block-editor-url-input__suggestion","editor-url-input__suggestion",{"is-selected":t===H}),onClick:function(){return V(e.url)}},e.title||c("Untitled Post"))})))),void 0!==f&&wp.element.createElement(s,{icon:"admin-generic",tooltip:c("Link Options"),onClick:function(){return N(!L)}})),L&&f)}))},,,,function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=(n(69),n(3)),r=wp.i18n.__,i=wp.components,c=i.Button,d=i.Path,p=i.Rect,m=i.SVG,s=i.Tooltip,u=wp.compose.compose,b=wp.data.withSelect,g=wp.element.Fragment;t.default=u(b((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t,n=e.label,a=e.onClick,i=e.layout,u=e.layoutTablet,b=e.layoutMobile,f=e.columns,h=e.view;return"Desktop"===h?t=i:"Tablet"===h?t=u:"Mobile"===h&&(t=b),wp.element.createElement(o.a,{label:n,className:"wp-block-themeisle-blocks-advanced-columns-layout-control"},1===f&&wp.element.createElement(s,{text:r("Single Row")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}))))||2===f&&wp.element.createElement(g,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("1:2")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwo"===t}),onClick:function(){return a("oneTwo")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("2:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOne"===t}),onClick:function(){return a("twoOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"28.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||3===f&&wp.element.createElement(g,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("1:1:2")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneOneTwo"===t}),onClick:function(){return a("oneOneTwo")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"12.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("2:1:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoOneOne"===t}),onClick:function(){return a("twoOneOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"32.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("1:2:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneTwoOne"===t}),onClick:function(){return a("oneTwoOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"31.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("1:3:1")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"oneThreeOne"===t}),onClick:function(){return a("oneThreeOne")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"11.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"33.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||4===f&&wp.element.createElement(g,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"32.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(g,null,wp.element.createElement(s,{text:r("Two Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===t}),onClick:function(){return a("twoColumnGrid")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"4",y:"22.9",width:"40",height:"2.2"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"}))))))||5===f&&wp.element.createElement(g,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"10.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"34.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"26.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"18.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"})))))||6===f&&wp.element.createElement(g,null,wp.element.createElement(s,{text:r("Equal")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"equal"===t}),onClick:function(){return a("equal")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"10.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"35.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"29.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"16.4",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"})))),("Mobile"==h||"Tablet"==h)&&wp.element.createElement(g,null,wp.element.createElement(s,{text:r("Two Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"twoColumnGrid"===t}),onClick:function(){return a("twoColumnGrid")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"4",y:"18.9",width:"40",height:"2.2"}),wp.element.createElement(p,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"4",y:"26.9",width:"40",height:"2.2"})))),wp.element.createElement(s,{text:r("Three Column Grid")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"threeColumnGrid"===t}),onClick:function(){return a("threeColumnGrid")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"4",y:"22.9",width:"40",height:"2.2"}),wp.element.createElement(p,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(p,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(s,{text:r("Collapsed Rows")},wp.element.createElement(c,{className:l()("wp-block-themeisle-blocks-advanced-column-layout",{selected:"collapsedRows"===t}),onClick:function(){return a("collapsedRows")}},wp.element.createElement(m,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(d,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(p,{x:"6",y:"22.9",width:"36",height:"2.2"})))))))}))},function(e,t,n){"use strict";n.r(t);n(72);var a=n(2),l=n(0),o=n.n(l),r=n(104);n(73);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var d=lodash,p=d.startCase,m=d.toLower,s=wp.i18n.__,u=wp.components,b=u.Button,g=u.Dashicon,f=u.Icon,h=u.TextControl,y=u.Tooltip,w=u.SelectControl,v=function(e){var t,n=e.preview,l=e.tab,r=e.blocksCategories,c=e.templateCategories,d=e.selectedCategory,u=e.selectedTemplate,v=e.search,k=e.togglePreview,T=e.changeTab,E=e.close,x=e.importTemplate,C=e.selectCategory,S=e.changeSearch,M=(t=("block"===l?r:c).map((function(e){return{label:p(m(e)),value:e}})),[{label:s("All Categories"),value:"all"}].concat(i(t)));return wp.element.createElement("div",{className:"library-modal-control-panel"},wp.element.createElement("div",{className:"library-modal-header"},wp.element.createElement("div",{className:"library-modal-header-logo"},n?wp.element.createElement(b,{className:"library-modal-header-tabs-button back-to-library","aria-label":s("Back to Library"),onClick:k},wp.element.createElement(g,{icon:"arrow-left-alt"})," ",s("Back to Library")):wp.element.createElement("div",{className:"library-modal-header-tabs-button"},wp.element.createElement(f,{icon:a.m}))),!n&&wp.element.createElement("div",{className:"library-modal-header-tabs"},wp.element.createElement(b,{className:o()("library-modal-header-tabs-button",{"is-selected":"block"===l}),onClick:function(){return T("block")}},wp.element.createElement(g,{icon:"screenoptions"}),s("Blocks")),wp.element.createElement(b,{className:o()("library-modal-header-tabs-button",{"is-selected":"template"===l}),onClick:function(){return T("template")}},wp.element.createElement(g,{icon:"editor-table"}),s("Templates"))),wp.element.createElement("div",{className:"library-modal-header-actions"},n&&wp.element.createElement(b,{className:"library-modal-header-tabs-button insert-button",onClick:function(){return x(u.template_url)},tabindex:"0"},wp.element.createElement(g,{icon:"arrow-down-alt",size:16}),s("Insert")),wp.element.createElement(y,{text:s("Close")},wp.element.createElement(b,{className:"library-modal-header-tabs-button","aria-label":s("Close settings"),onClick:E},wp.element.createElement(g,{icon:"no-alt"}))))),!n&&wp.element.createElement("div",{className:"library-modal-actions"},wp.element.createElement(w,{className:"library-modal-category-control",value:"all"===d?"all":d,onChange:C,options:M}),wp.element.createElement(h,{type:"text",value:v||"",placeholder:s("Search"),className:"library-modal-search-control",onChange:S})))},k=wp.i18n.__,T=wp.components.Notice,E=wp.element.Fragment,x=function(e){var t=e.isError,n=e.removeError,a=e.isMissing,l=e.removeMissing,o=e.missingBlocks;return wp.element.createElement(E,null,!Boolean(themeisleGutenberg.isCompatible)&&wp.element.createElement("div",{className:"library-modal-error"},wp.element.createElement(T,{status:"warning",isDismissible:!1,className:"version-warning",actions:[{label:k("Update Now"),url:themeisleGutenberg.updatePath}]},k("You are using an older version of Otter. Use the latest version of Otter to have maximum compatibility with Template Library."))),t&&wp.element.createElement("div",{className:"library-modal-error"},wp.element.createElement(T,{status:"error",onRemove:n},k("There seems to be an error. Please try again."))),a&&wp.element.createElement("div",{className:"library-modal-error"},wp.element.createElement(T,{status:"warning",className:"library-modal-missing",onRemove:l},k("You seem to be missing some blocks that are required by your selected template."),wp.element.createElement("details",null,wp.element.createElement("summary",null,k("View Missing Blocks")),wp.element.createElement("ul",null,o.map((function(e){return wp.element.createElement("li",null,e)})))))))},C=n(22),S=n.n(C),M=wp.i18n.__,B=wp.components.Button,O=function(e){var t=e.template,n=e.togglePreview,a=e.importTemplate;return wp.element.createElement("div",{"aria-label":t.title||M("Untitled Gutenberg Template"),className:"library-modal-content__item",tabindex:"0"},wp.element.createElement("div",{className:"library-modal-content__preview"},wp.element.createElement(S.a,null,wp.element.createElement("img",{src:t.screenshot_url||"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/default.jpg"}))),wp.element.createElement("div",{className:"library-modal-content__footer"},wp.element.createElement("div",{className:"library-modal-content__footer_meta"},t.title&&"template"===t.type&&wp.element.createElement("h4",{className:"library-modal-content__footer_meta_title"},t.title,t.author&&M(" by ")+t.author," "),t.author&&"block"===t.type&&wp.element.createElement("h4",{className:"library-modal-content__footer_meta_author"},M("Author:")," ",t.author)),wp.element.createElement("div",{className:"library-modal-content__footer_actions"},t.demo_url&&wp.element.createElement(B,{isDefault:!0,isLarge:!0,className:"library-modal-overlay__actions",onClick:function(){return n(t)},tabindex:"0"},M("Preview")),wp.element.createElement(B,{isPrimary:!0,isLarge:!0,className:"library-modal-overlay__actions",onClick:function(){return a(t.template_url)},tabindex:"0"},M("Insert")))))},R=wp.i18n.__,L=wp.components.Spinner,N=function(e){var t=e.preview,n=e.isLoaded,a=e.data,l=e.tab,o=e.selectedTemplate,r=e.selectedCategory,i=e.search,c=e.togglePreview,d=e.importTemplate;return t?wp.element.createElement("div",{className:"library-modal-preview"},wp.element.createElement("iframe",{src:o.demo_url})):n?wp.element.createElement("div",{className:"library-modal-content"},a.map((function(e){if(e.template_url&&("all"===r||e.categories&&e.categories.includes(r))&&(!i||e.keywords&&e.keywords.some((function(e){return e.toLowerCase().includes(i.toLowerCase())})))&&l===e.type)return wp.element.createElement(O,{template:e,togglePreview:c,importTemplate:d})})),wp.element.createElement("div",{"aria-label":R("Coming Soon"),className:"library-modal-content__item"},wp.element.createElement("div",{className:"library-modal-content__preview"},wp.element.createElement(S.a,null,wp.element.createElement("img",{src:"https://raw.githubusercontent.com/Codeinwp/gutenberg-templates/master/assets/images/coming-soon.jpg"}))))):wp.element.createElement("div",{className:"library-modal-loader"},wp.element.createElement(L,null))};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 I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function P(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function H(e){return function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){P(o,a,l,r,i,"next",e)}function i(e){P(o,a,l,r,i,"throw",e)}r(void 0)}))}}var _=wp.apiFetch,D=wp.components.Modal,j=wp.compose.compose,F=wp.data,G=F.withSelect,V=F.withDispatch,W=wp.element,q=W.useEffect,U=W.useState,Z=j(G((function(e,t){var n=t.clientId,a=e("core/block-editor").getBlock,l=e("core/blocks").getBlockTypes;return{block:a(n),availableBlocks:l()}})),V((function(e,t){var n=t.block,a=e("core/block-editor").replaceBlocks;return{importBlocks:function(e){return a(n.clientId,e)}}})))((function(e){var t=e.close,n=e.availableBlocks,a=e.importBlocks;q((function(){(function(){var e=H(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_({path:"themeisle-gutenberg-blocks/v1/fetch_templates"});case 2:t=e.sent,n=[],a=[],t.map((function(e){e.categories&&e.template_url&&("block"===e.type&&e.categories.map((function(e){n.push(e)})),"template"===e.type&&e.categories.map((function(e){a.push(e)})))})),n=n.filter((function(e,t,n){return n.indexOf(e)===t})).sort(),a=a.filter((function(e,t,n){return n.indexOf(e)===t})).sort(),B(n),L(a),j(t),m(!0);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[]);var l=I(U("block"),2),i=l[0],c=l[1],d=I(U(!1),2),p=d[0],m=d[1],s=I(U(!1),2),u=s[0],b=s[1],g=I(U(!1),2),f=g[0],h=g[1],y=I(U("all"),2),w=y[0],k=y[1],T=I(U(""),2),E=T[0],C=T[1],S=I(U([]),2),M=S[0],B=S[1],O=I(U([]),2),R=O[0],L=O[1],z=I(U([]),2),P=z[0],j=z[1],F=I(U(!1),2),G=F[0],V=F[1],W=I(U(null),2),Z=W[0],$=W[1],Q=I(U([]),2),K=Q[0],J=Q[1],Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;V(!G),$(e)},X=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):"object"===A(t)&&Object.keys(t).map((function(n){"clientId"===n&&(t[n]=Object(r.a)()),"innerBlocks"===n&&t[n].map((function(t){e(t)}))})),t},ee=function e(t){var a=!1,l=[];return Array.isArray(t)?t.map((function(t){return e(t)})):"object"===A(t)&&Object.keys(t).some((function(o){"name"===o&&(void 0===n.find((function(e){return e.name===t.name}))&&(l.push(t.name),a=!0));"innerBlocks"===o&&t[o].map((function(t){return e(t)}))})),l=l.concat(l).filter((function(e,t,n){return n.indexOf(e)===t})),J(l),a},te=function(){var e=H(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return V(!1),m(!1),J([]),e.next=5,_({path:"themeisle-gutenberg-blocks/v1/import_template?url=".concat(t)});case 5:n=e.sent,null!==(n=X(n))?(m(!0),ee(n)?h(!0):a(n)):(m(!0),b(!0));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return wp.element.createElement(D,{className:o()("wp-block-themeisle-library-modal",{"is-preview":G}),onRequestClose:t,isDismissable:!1,shouldCloseOnClickOutside:!1},wp.element.createElement(v,{preview:G,tab:i,changeTab:function(e){c(e),k("all"),C("")},blocksCategories:M,templateCategories:R,selectedTemplate:Z,selectedCategory:w,search:E,togglePreview:Y,close:t,importTemplate:te,selectCategory:function(e){return k(e)},changeSearch:function(e){return C(e)}}),wp.element.createElement(x,{isError:u,isMissing:f,missingBlocks:K,removeError:function(){return b(!1)},removeMissing:function(){return h(!1)}}),wp.element.createElement(N,{preview:G,isLoaded:p,data:P,tab:i,selectedTemplate:Z,selectedCategory:w,search:E,togglePreview:Y,importTemplate:te}))}));function $(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var K=wp.i18n.__,J=wp.components,Y=J.Button,X=J.Dashicon,ee=J.Icon,te=J.Path,ne=J.Placeholder,ae=J.Rect,le=J.SVG,oe=J.Tooltip,re=wp.element.useState;t.default=function(e){var t=e.clientId,n=e.setupColumns,l=$(re(!1),2),o=l[0],r=l[1];return wp.element.createElement(ne,{label:K("Select Layout"),instructions:K("Select a layout to start with, or make one yourself."),icon:wp.element.createElement(ee,{icon:a.g}),isColumnLayout:!0,className:"wp-block-themeisle-onboarding-component"},wp.element.createElement("div",{className:"wp-block-themeisle-layout-picker"},wp.element.createElement(oe,{text:K("Equal")},wp.element.createElement(Y,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"equal")}},wp.element.createElement(le,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(te,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(ae,{x:"22.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(oe,{text:K("1:2")},wp.element.createElement(Y,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"oneTwo")}},wp.element.createElement(le,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(te,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(ae,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(oe,{text:K("2:1")},wp.element.createElement(Y,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(2,"twoOne")}},wp.element.createElement(le,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(te,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(ae,{x:"28.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(oe,{text:K("Equal")},wp.element.createElement(Y,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"equal")}},wp.element.createElement(le,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(te,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(ae,{x:"28.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(ae,{x:"16.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(oe,{text:K("1:1:2")},wp.element.createElement(Y,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"oneOneTwo")}},wp.element.createElement(le,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(te,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(ae,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(ae,{x:"12.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(oe,{text:K("2:1:1")},wp.element.createElement(Y,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(3,"twoOneOne")}},wp.element.createElement(le,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(te,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(ae,{x:"22.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(ae,{x:"32.9",y:"13",width:"2.2",height:"22"})))),wp.element.createElement(oe,{text:K("Equal")},wp.element.createElement(Y,{isLarge:!0,className:"wp-block-themeisle-blocks-advanced-column-layout",onClick:function(){return n(4,"equal")}},wp.element.createElement(le,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/1999/xlink"},wp.element.createElement(te,{d:"M41.8,13.2V34.8H6.2V13.2H41.8M42,11H6a2,2,0,0,0-2,2V35a2,2,0,0,0,2,2H42a2,2,0,0,0,2-2V13a2,2,0,0,0-2-2Z"}),wp.element.createElement(ae,{x:"13.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(ae,{x:"32.9",y:"13",width:"2.2",height:"22"}),wp.element.createElement(ae,{x:"22.9",y:"13",width:"2.2",height:"22"}))))),wp.element.createElement(oe,{text:K("Open Template Library")},wp.element.createElement(Y,{isPrimary:!0,isLarge:!0,className:"wp-block-themeisle-template-library",onClick:function(){return r(!0)}},wp.element.createElement(X,{icon:"category"}),K("Template Library")),o&&wp.element.createElement(Z,{clientId:t,close:function(){return r(!1)}})),wp.element.createElement("div",{className:"wp-block-themeisle-layout-skipper"},wp.element.createElement(Y,{isLink:!0,onClick:function(){return n(1,"equal")}},K("Skip"))))}},function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),o=n(7),r=wp.components,i=r.Placeholder,c=r.Spinner,d=(0,wp.data.withSelect)((function(e,t){var n=t.id,a=t.alt,l=t.size,o=n?e("core").getMedia(n):void 0,r=o?0<Object.keys(o.media_details.sizes).length&&o.media_details.sizes[l]?o.media_details.sizes[l].source_url:o.source_url:null;return o?{thumbnail:r,alt:o.alt_text||a}:{alt:a}}))((function(e){var t=e.alt,n=e.id,a=e.thumbnail,l=e.link,o=wp.element.createElement(i,{className:"wp-themeisle-block-spinner"},wp.element.createElement(c,null));return a&&(o=wp.element.createElement("img",{src:a,alt:t,"data-id":n})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-image"},wp.element.createElement("a",{href:l},o))})),p=wp.i18n,m=p.__,s=p.sprintf,u=function(e){var t=e.className,n=e.attributes,a=e.posts,r=e.categoriesList,i=e.authors,c=n.titleTag||"h5";return wp.element.createElement("div",{className:l()(t,"is-grid","wp-block-themeisle-blocks-posts-grid-columns-".concat(n.columns),{"has-shadow":n.imageBoxShadow})},a.map((function(e){var t,a;return r&&(t=r.find((function(t){return t.id===e.categories[0]}))),i&&(a=i.find((function(t){return t.id===e.author}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-blog wp-block-themeisle-blocks-posts-grid-post-plain"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post"},0!==e.featured_media&&n.displayFeaturedImage&&wp.element.createElement(d,{id:e.featured_media,link:e.link,alt:e.title.rendered,size:n.imageSize}),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-body"},n.template.map((function(l){return"category"===l&&void 0!==t&&n.displayCategory&&r?wp.element.createElement("span",{class:"wp-block-themeisle-blocks-posts-grid-post-category"},t.name):"title"===l&&n.displayTitle?wp.element.createElement(c,{className:"wp-block-themeisle-blocks-posts-grid-post-title"},wp.element.createElement("a",{href:e.link},Object(o.b)(e.title.rendered))):"meta"===l&&n.displayMeta&&(n.displayDate||n.displayAuthor)?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-meta"},n.displayDate&&s(m("on %s"),Object(o.a)(e.date)),n.displayAuthor&&void 0!==a&&i&&s(m(" by %s"),a.name)):"description"===l&&0<n.excerptLength&&n.displayDescription?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-description"},Object(o.b)(e.excerpt.rendered).substring(0,n.excerptLength)+"…"):void 0})))))})))},b=wp.i18n,g=b.__,f=b.sprintf,h=function(e){var t=e.className,n=e.attributes,a=e.posts,r=e.categoriesList,i=e.authors,c=n.titleTag||"h5";return wp.element.createElement("div",{className:l()(t,"is-list",{"has-shadow":n.imageBoxShadow})},a.map((function(e){var t,a;return r&&(t=r.find((function(t){return t.id===e.categories[0]}))),i&&(a=i.find((function(t){return t.id===e.author}))),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post-blog wp-block-themeisle-blocks-posts-grid-post-plain"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-posts-grid-post"},0!==e.featured_media&&n.displayFeaturedImage&&wp.element.createElement(d,{id:e.featured_media,link:e.link,alt:e.title.rendered,size:n.imageSize}),wp.element.createElement("div",{className:l()("wp-block-themeisle-blocks-posts-grid-post-body",{"is-full":!n.displayFeaturedImage})},n.template.map((function(l){return"category"===l&&void 0!==t&&n.displayCategory&&r?wp.element.createElement("span",{class:"wp-block-themeisle-blocks-posts-grid-post-category"},t.name):"title"===l&&n.displayTitle?wp.element.createElement(c,{className:"wp-block-themeisle-blocks-posts-grid-post-title"},wp.element.createElement("a",{href:e.link},Object(o.b)(e.title.rendered))):"meta"===l&&n.displayMeta&&(n.displayDate||n.displayAuthor)?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-meta"},n.displayDate&&f(g("on %s"),Object(o.a)(e.date)),n.displayAuthor&&void 0!==a&&i&&f(g(" by %s"),a.name)):"description"===l&&0<n.excerptLength&&n.displayDescription?wp.element.createElement("p",{className:"wp-block-themeisle-blocks-posts-grid-post-description"},Object(o.b)(e.excerpt.rendered).substring(0,n.excerptLength)+"…"):void 0})))))})))};t.default=function(e){var t=e.className,n=e.attributes,a=e.posts,l=e.categoriesList,o=e.authors;return"grid"===n.style?wp.element.createElement(u,{className:t,attributes:n,posts:a,categoriesList:l,authors:o}):"list"===n.style?wp.element.createElement(h,{className:t,attributes:n,posts:a,categoriesList:l,authors:o}):void 0}},,,function(e,t,n){"use strict";n.r(t);var a,l=n(2);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}var r=(o(a={id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},columnsWidth:{type:"number"},horizontalAlign:{type:"string",default:"unset"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},reverseColumnsTablet:{type:"boolean",default:!1}},"reverseColumnsTablet",{type:"boolean",default:!1}),o(a,"columnsHTMLTag",{type:"string",default:"div"}),a),i=n(0),c=n.n(i),d=n(6),p=n.n(d);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=wp.blockEditor.InnerBlocks,g=wp.components,f=g.SVG,h=g.Path,y=function(e){var t=e.type,n=e.front,a=e.style,l=e.fill,o=e.invert,r=e.width,i=e.height;return"none"!==a&&wp.element.createElement("div",{className:c()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!n&&r?{transform:"".concat(r?"scaleX( ".concat(r/100," )"):"")}:{}},"bigTriangle"===a&&!1===o&&wp.element.createElement(f,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===a&&!0===o&&wp.element.createElement(f,{id:"bigTriangle",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===a&&!1===o&&wp.element.createElement(f,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===a&&!0===o&&wp.element.createElement(f,{id:"rightCurve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===a&&wp.element.createElement(f,{id:"curve",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===a&&!1===o&&wp.element.createElement(f,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===a&&!0===o&&wp.element.createElement(f,{id:"slant",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"".concat("bottom"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===a&&wp.element.createElement(f,{id:"cloud",fill:l,viewBox:"0 0 100 100",width:"100%",height:i?"".concat(i,"px"):"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"".concat("top"===t?"rotate(180deg)":"")}:{}},wp.element.createElement(h,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},w=[{attributes:{align:{type:"string"},id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},horizontalAlign:{type:"string",default:"unset"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},supports:{align:["wide","full"],html:!1},save:function(e){var t,n,a,l,o,r,i=e.attributes,d=i.id,m=i.columns,u=i.layout,g=i.layoutTablet,f=i.layoutMobile,h=i.columnsGap,w=i.columnsWidth,v=i.horizontalAlign,k=i.verticalAlign,T=i.backgroundType,E=i.backgroundColor,x=i.backgroundImageURL,C=i.backgroundAttachment,S=i.backgroundPosition,M=i.backgroundRepeat,B=i.backgroundSize,O=i.backgroundGradientFirstColor,R=i.backgroundGradientFirstLocation,L=i.backgroundGradientSecondColor,N=i.backgroundGradientSecondLocation,A=i.backgroundGradientType,I=i.backgroundGradientAngle,z=i.backgroundGradientPosition,P=i.backgroundOverlayOpacity,H=i.backgroundOverlayType,_=i.backgroundOverlayColor,D=i.backgroundOverlayImageURL,j=i.backgroundOverlayAttachment,F=i.backgroundOverlayPosition,G=i.backgroundOverlayRepeat,V=i.backgroundOverlaySize,W=i.backgroundOverlayGradientFirstColor,q=i.backgroundOverlayGradientFirstLocation,U=i.backgroundOverlayGradientSecondColor,Z=i.backgroundOverlayGradientSecondLocation,$=i.backgroundOverlayGradientType,Q=i.backgroundOverlayGradientAngle,K=i.backgroundOverlayGradientPosition,J=i.backgroundOverlayFilterBlur,Y=i.backgroundOverlayFilterBrightness,X=i.backgroundOverlayFilterContrast,ee=i.backgroundOverlayFilterGrayscale,te=i.backgroundOverlayFilterHue,ne=i.backgroundOverlayFilterSaturate,ae=i.backgroundOverlayBlend,le=i.borderType,oe=i.border,re=i.borderTop,ie=i.borderRight,ce=i.borderBottom,de=i.borderLeft,pe=i.borderColor,me=i.borderRadiusType,se=i.borderRadius,ue=i.borderRadiusTop,be=i.borderRadiusRight,ge=i.borderRadiusBottom,fe=i.borderRadiusLeft,he=i.boxShadow,ye=i.boxShadowColor,we=i.boxShadowColorOpacity,ve=i.boxShadowBlur,ke=i.boxShadowSpread,Te=i.boxShadowHorizontal,Ee=i.boxShadowVertical,xe=i.dividerTopType,Ce=i.dividerTopColor,Se=i.dividerTopInvert,Me=i.dividerBottomType,Be=i.dividerBottomColor,Oe=i.dividerBottomInvert,Re=i.hide,Le=i.hideTablet,Ne=i.hideMobile,Ae=i.columnsHTMLTag;("color"===T&&(t={background:E}),"image"===T&&(t={backgroundImage:"url( '".concat(x,"' )"),backgroundAttachment:C,backgroundPosition:S,backgroundRepeat:M,backgroundSize:B}),"gradient"===T)&&(r="linear"===A?"".concat(I,"deg"):"at ".concat(z),t={background:"".concat(A,"-gradient( ").concat(r,", ").concat(O||"rgba( 0, 0, 0, 0 )"," ").concat(R,"%, ").concat(L||"rgba( 0, 0, 0, 0 )"," ").concat(N,"% )")});"linked"===le&&(a={borderWidth:"".concat(oe,"px"),borderStyle:"solid",borderColor:pe}),"unlinked"===le&&(a={borderTopWidth:"".concat(re,"px"),borderRightWidth:"".concat(ie,"px"),borderBottomWidth:"".concat(ce,"px"),borderLeftWidth:"".concat(de,"px"),borderStyle:"solid",borderColor:pe}),"linked"===me&&(l={borderRadius:"".concat(se,"px")}),"unlinked"===me&&(l={borderTopLeftRadius:"".concat(ue,"px"),borderTopRightRadius:"".concat(be,"px"),borderBottomRightRadius:"".concat(ge,"px"),borderBottomLeftRadius:"".concat(fe,"px")}),!0===he&&(o={boxShadow:"".concat(Te,"px ").concat(Ee,"px ").concat(ve,"px ").concat(ke,"px ").concat(p()(ye||"#000000",we))});var Ie,ze=s({},t,{},a,{},l,{},o,{justifyContent:v});("color"===H&&(n={background:_,opacity:P/100}),"image"===H&&(n={backgroundImage:"url( '".concat(D,"' )"),backgroundAttachment:j,backgroundPosition:F,backgroundRepeat:G,backgroundSize:V,opacity:P/100}),"gradient"===H)&&(Ie="linear"===$?"".concat(Q,"deg"):"at ".concat(K),n={background:"".concat($,"-gradient( ").concat(Ie,", ").concat(W||"rgba( 0, 0, 0, 0 )"," ").concat(q,"%, ").concat(U||"rgba( 0, 0, 0, 0 )"," ").concat(Z,"% )"),opacity:P/100});var Pe=s({},n,{mixBlendMode:ae,filter:"blur( ".concat(J/10,"px ) brightness( ").concat(Y/10," ) contrast( ").concat(X/10," ) grayscale( ").concat(ee/100," ) hue-rotate( ").concat(te,"deg ) saturate( ").concat(ne/10," )")}),He={};w&&(He={maxWidth:w+"px"});var _e=Re?"":"has-desktop-".concat(u,"-layout"),De=Le?"":"has-tablet-".concat(g,"-layout"),je=Ne?"":"has-mobile-".concat(f,"-layout"),Fe=c()(e.className,"has-".concat(m,"-columns"),_e,De,je,{"hide-in-desktop":Re},{"hide-in-tablet":Le},{"hide-in-mobile":Ne},"has-".concat(h,"-gap"),"has-vertical-".concat(k));return wp.element.createElement(Ae,{className:Fe,id:d,style:ze},wp.element.createElement("div",{className:"wp-themeisle-block-overlay",style:Pe}),wp.element.createElement(y,{type:"top",front:!0,style:xe,fill:Ce,invert:Se}),wp.element.createElement("div",{className:"innerblocks-wrap",style:He},wp.element.createElement(b.Content,null)),wp.element.createElement(y,{type:"bottom",front:!0,style:Me,fill:Be,invert:Oe}))}},{attributes:{id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},horizontalAlign:{type:"string",default:"unset"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},supports:{align:["wide","full"],html:!1},save:function(e){var t,n,a,l,o,r,i=e.attributes,d=e.className,m=i.columnsHTMLTag;("color"===i.backgroundType&&(t={background:i.backgroundColor}),"image"===i.backgroundType&&(t={backgroundImage:"url( '".concat(i.backgroundImageURL,"' )"),backgroundAttachment:i.backgroundAttachment,backgroundPosition:i.backgroundPosition,backgroundRepeat:i.backgroundRepeat,backgroundSize:i.backgroundSize}),"gradient"===i.backgroundType)&&(r="linear"===i.backgroundGradientType?"".concat(i.backgroundGradientAngle,"deg"):"at ".concat(i.backgroundGradientPosition),t={background:"".concat(i.backgroundGradientType,"-gradient( ").concat(r,", ").concat(i.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientFirstLocation,"%, ").concat(i.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundGradientSecondLocation,"% )")});"linked"===i.borderType&&(a={borderWidth:"".concat(i.border,"px"),borderStyle:"solid",borderColor:i.borderColor}),"unlinked"===i.borderType&&(a={borderTopWidth:"".concat(i.borderTop,"px"),borderRightWidth:"".concat(i.borderRight,"px"),borderBottomWidth:"".concat(i.borderBottom,"px"),borderLeftWidth:"".concat(i.borderLeft,"px"),borderStyle:"solid",borderColor:i.borderColor}),"linked"===i.borderRadiusType&&(l={borderRadius:"".concat(i.borderRadius,"px")}),"unlinked"===i.borderRadiusType&&(l={borderTopLeftRadius:"".concat(i.borderRadiusTop,"px"),borderTopRightRadius:"".concat(i.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(i.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(i.borderRadiusLeft,"px")}),!0===i.boxShadow&&(o={boxShadow:"".concat(i.boxShadowHorizontal,"px ").concat(i.boxShadowVertical,"px ").concat(i.boxShadowBlur,"px ").concat(i.boxShadowSpread,"px ").concat(p()(i.boxShadowColor?i.boxShadowColor:"#000000",i.boxShadowColorOpacity))});var u,g=s({},t,{},a,{},l,{},o,{justifyContent:i.horizontalAlign});("color"===i.backgroundOverlayType&&(n={background:i.backgroundOverlayColor,opacity:i.backgroundOverlayOpacity/100}),"image"===i.backgroundOverlayType&&(n={backgroundImage:"url( '".concat(i.backgroundOverlayImageURL,"' )"),backgroundAttachment:i.backgroundOverlayAttachment,backgroundPosition:i.backgroundOverlayPosition,backgroundRepeat:i.backgroundOverlayRepeat,backgroundSize:i.backgroundOverlaySize,opacity:i.backgroundOverlayOpacity/100}),"gradient"===i.backgroundOverlayType)&&(u="linear"===i.backgroundOverlayGradientType?"".concat(i.backgroundOverlayGradientAngle,"deg"):"at ".concat(i.backgroundOverlayGradientPosition),n={background:"".concat(i.backgroundOverlayGradientType,"-gradient( ").concat(u,", ").concat(i.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundOverlayGradientFirstLocation,"%, ").concat(i.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(i.backgroundOverlayGradientSecondLocation,"% )"),opacity:i.backgroundOverlayOpacity/100});var f=s({},n,{mixBlendMode:i.backgroundOverlayBlend}),h={};i.columnsWidth&&(h={maxWidth:i.columnsWidth+"px"});var w=i.hide?"":"has-desktop-".concat(i.layout,"-layout"),v=i.hideTablet?"":"has-tablet-".concat(i.layoutTablet,"-layout"),k=i.hideMobile?"":"has-mobile-".concat(i.layoutMobile,"-layout"),T=c()(d,"has-".concat(i.columns,"-columns"),w,v,k,{"hide-in-desktop":i.hide},{"hide-in-tablet":i.hideTablet},{"hide-in-mobile":i.hideMobile},"has-".concat(i.columnsGap,"-gap"),"has-vertical-".concat(i.verticalAlign));return wp.element.createElement(m,{className:T,id:i.id,style:g},wp.element.createElement("div",{className:"wp-themeisle-block-overlay",style:f}),wp.element.createElement(y,{type:"top",front:!0,style:i.dividerTopType,fill:i.dividerTopColor,invert:i.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap",style:h},wp.element.createElement(b.Content,null)),wp.element.createElement(y,{type:"bottom",front:!0,style:i.dividerBottomType,fill:i.dividerBottomColor,invert:i.dividerBottomInvert}))}}],v=n(5),k=n(16),T=n(24),E=n(4),x=n(3),C=n(14),S=n(17),M=n(8),B=n(19);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 R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var N=wp.i18n.__,A=wp.blockEditor,I=A.ColorPalette,z=A.InspectorControls,P=A.MediaPlaceholder,H=wp.components,_=H.BaseControl,D=H.Button,j=H.ButtonGroup,F=H.Dashicon,G=H.Icon,V=H.IconButton,W=H.PanelBody,q=H.Tooltip,U=H.ToggleControl,Z=H.RangeControl,$=H.SelectControl,Q=wp.compose.compose,K=wp.data.withSelect,J=wp.element,Y=J.Fragment,X=J.useState,ee=Q(K((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.attributes,n=e.setAttributes,a=e.updateColumnsWidth,o=e.dividerViewType,r=e.setDividerViewType,i=e.view,d=R(X("layout"),2),p=d[0],m=d[1],s=function(){var e;return"Desktop"===i&&(e=t.paddingType),"Tablet"===i&&(e=t.paddingTypeTablet),"Mobile"===i&&(e=t.paddingTypeMobile),e};s=s();var u={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},b={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},g={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},f=function(e){var n;return"top"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===i&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===i&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===i&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},h=function(){var e;return"Desktop"===i&&(e=t.marginType),"Tablet"===i&&(e=t.marginTypeTablet),"Mobile"===i&&(e=t.marginTypeMobile),e};h=h();var y={top:"marginTop",bottom:"marginBottom"},w={top:"marginTopTablet",bottom:"marginBottomTablet"},v={top:"marginTopMobile",bottom:"marginBottomMobile"},k=function(e){var n;return"top"==e&&("Desktop"===i&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===i&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===i&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"bottom"==e&&("Desktop"===i&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===i&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===i&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),n},L=function(e){if(t.horizontalAlign===e)return n({horizontalAlign:"unset"});n({horizontalAlign:e})},A=function(){var e;return"Desktop"===i&&(e=t.columnsHeightCustom),"Tablet"===i&&(e=t.columnsHeightCustomTablet),"Mobile"===i&&(e=t.columnsHeightCustomMobile),e};A=A();var H=function(e){if(t.verticalAlign===e)return n({verticalAlign:"unset"});n({verticalAlign:e})},Q=function(){n({backgroundImageID:"",backgroundImageURL:""})},K=function(){n({backgroundOverlayImageID:"",backgroundOverlayImageURL:""})},J={top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},ee=function(e){var n;return"top"==e&&(n="linked"===t.borderType?t.border:t.borderTop),"right"==e&&(n="linked"===t.borderType?t.border:t.borderRight),"bottom"==e&&(n="linked"===t.borderType?t.border:t.borderBottom),"left"==e&&(n="linked"===t.borderType?t.border:t.borderLeft),n},te={top:"borderRadiusTop",right:"borderRadiusRight",bottom:"borderRadiusBottom",left:"borderRadiusLeft"},ne=function(e){var n;return"top"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusTop),"right"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusRight),"bottom"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusBottom),"left"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusLeft),n},ae=function(){var e;return"top"==o&&(e=t.dividerTopType),"bottom"==o&&(e=t.dividerBottomType),e};ae=ae();var le=function(){var e;return"top"==o&&(e=t.dividerTopColor),"bottom"==o&&(e=t.dividerBottomColor),e};le=le();var oe=function(){var e;return"top"==o&&("Desktop"==i&&(e=t.dividerTopWidth),"Tablet"==i&&(e=t.dividerTopWidthTablet),"Mobile"==i&&(e=t.dividerTopWidthMobile)),"bottom"==o&&("Desktop"==i&&(e=t.dividerBottomWidth),"Tablet"==i&&(e=t.dividerBottomWidthTablet),"Mobile"==i&&(e=t.dividerBottomWidthMobile)),e};oe=oe();var re=function(){var e;return"top"==o&&("Desktop"==i&&(e=t.dividerTopHeight),"Tablet"==i&&(e=t.dividerTopHeightTablet),"Mobile"==i&&(e=t.dividerTopHeightMobile)),"bottom"==o&&("Desktop"==i&&(e=t.dividerBottomHeight),"Tablet"==i&&(e=t.dividerBottomHeightTablet),"Mobile"==i&&(e=t.dividerBottomHeightMobile)),e};re=re();var ie=function(){var e;return"top"==o&&(e=t.dividerTopInvert),"bottom"==o&&(e=t.dividerBottomInvert),e};ie=ie();var ce=function(e,t){"Desktop"===t&&n({hide:e}),"Tablet"===t&&n({hideTablet:e}),"Mobile"===t&&n({hideMobile:e})},de=function(e,t){"Tablet"===t&&n({reverseColumnsTablet:e}),"Mobile"===t&&n({reverseColumnsMobile:e})};return wp.element.createElement(Y,null,wp.element.createElement(z,null,wp.element.createElement(W,{className:"wp-block-themeisle-blocks-advanced-columns-header-panel"},wp.element.createElement(D,{className:c()("header-tab",{"is-selected":"layout"===p}),onClick:function(){return m("layout")}},wp.element.createElement("span",null,wp.element.createElement(F,{icon:"editor-table"}),N("Layout"))),wp.element.createElement(D,{className:c()("header-tab",{"is-selected":"style"===p}),onClick:function(){return m("style")}},wp.element.createElement("span",null,wp.element.createElement(F,{icon:"admin-customizer"}),N("Style"))),wp.element.createElement(D,{className:c()("header-tab",{"is-selected":"advanced"===p}),onClick:function(){return m("advanced")}},wp.element.createElement("span",null,wp.element.createElement(F,{icon:"admin-generic"}),N("Advanced")))),"layout"===p&&wp.element.createElement(Y,null,wp.element.createElement(W,{title:N("Columns & Layout")},wp.element.createElement(Z,{label:N("Columns"),value:t.columns,onChange:function(e){6>=e&&(n({columns:e,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),a(e,"equal")),6<e&&(n({columns:6,layout:"equal",layoutTablet:"equal",layoutMobile:"collapsedRows"}),a(6,"equal")),1>=e&&(n({columns:1,layout:"equal",layoutTablet:"equal",layoutMobile:"equal"}),a(1,"equal"))},min:1,max:6}),wp.element.createElement(T.default,{label:N("Layout"),columns:t.columns,layout:t.layout,layoutTablet:t.layoutTablet,layoutMobile:t.layoutMobile,onClick:function(e){"Desktop"===i&&(n({layout:e}),a(t.columns,e)),"Tablet"===i&&n({layoutTablet:e}),"Mobile"===i&&n({layoutMobile:e})}}),wp.element.createElement($,{label:N("Columns Gap"),value:t.columnsGap,options:[{label:"Default (10px)",value:"default"},{label:"No Gap",value:"nogap"},{label:"Narrow (5px)",value:"narrow"},{label:"Extended (15px)",value:"extended"},{label:"Wide (20px)",value:"wide"},{label:"Wider (30px)",value:"wider"}],onChange:function(e){n({columnsGap:e})}})),wp.element.createElement(W,{title:N("Spacing"),initialOpen:!1},wp.element.createElement(x.a,{label:"Padding"},wp.element.createElement(E.a,{type:s,min:0,max:500,changeType:function(e){"Desktop"===i&&n({paddingType:e}),"Tablet"===i&&n({paddingTypeTablet:e}),"Mobile"===i&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===i&&("linked"===t.paddingType?n({padding:a}):n(O({},u[e],a))),"Tablet"===i&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(O({},b[e],a))),"Mobile"===i&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(O({},g[e],a)))},options:[{label:N("Top"),type:"top",value:f("top")},{label:N("Right"),type:"right",value:f("right")},{label:N("Bottom"),type:"bottom",value:f("bottom")},{label:N("Left"),type:"left",value:f("left")}]})),wp.element.createElement(x.a,{label:"Margin"},wp.element.createElement(E.a,{type:h,min:-500,max:500,changeType:function(e){"Desktop"===i&&n({marginType:e}),"Tablet"===i&&n({marginTypeTablet:e}),"Mobile"===i&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===i&&("linked"===t.marginType?n({margin:a}):n(O({},y[e],a))),"Tablet"===i&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(O({},w[e],a))),"Mobile"===i&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(O({},v[e],a)))},options:[{label:N("Top"),type:"top",value:k("top")},{label:N("Right"),disabled:!0},{label:N("Bottom"),type:"bottom",value:k("bottom")},{label:N("Left"),disabled:!0}]}))),wp.element.createElement(W,{title:N("Section Structure"),initialOpen:!1},wp.element.createElement(Z,{label:N("Maximum Content Width"),value:t.columnsWidth||"",onChange:function(e){(0<=e&&1200>=e||void 0===e)&&n({columnsWidth:e})},min:0,max:1200}),t.columnsWidth&&wp.element.createElement(_,{label:"Horizontal Align"},wp.element.createElement(j,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(q,{text:N("Left")},wp.element.createElement(V,{icon:"editor-alignleft",className:"is-button is-large",isPrimary:"flex-start"===t.horizontalAlign,onClick:function(){return L("flex-start")}})),wp.element.createElement(q,{text:N("Center")},wp.element.createElement(V,{icon:"editor-aligncenter",className:"is-button is-large",isPrimary:"center"===t.horizontalAlign,onClick:function(){return L("center")}})),wp.element.createElement(q,{text:N("Right")},wp.element.createElement(V,{icon:"editor-alignright",className:"is-button is-large",isPrimary:"flex-end"===t.horizontalAlign,onClick:function(){return L("flex-end")}})))),wp.element.createElement($,{label:N("Minimum Height"),value:t.columnsHeight,options:[{label:"Default",value:"auto"},{label:"Fit to Screen",value:"100vh"},{label:"Custom",value:"custom"}],onChange:function(e){n({columnsHeight:e})}}),"custom"===t.columnsHeight&&wp.element.createElement(x.a,{label:"Custom Height"},wp.element.createElement(Z,{value:A||"",onChange:function(e){"Desktop"===i&&n({columnsHeightCustom:e}),"Tablet"===i&&n({columnsHeightCustomTablet:e}),"Mobile"===i&&n({columnsHeightCustomMobile:e})},min:0,max:1e3})),wp.element.createElement(_,{label:"Vertical Align"},wp.element.createElement(j,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(q,{text:N("Top")},wp.element.createElement(D,{className:"components-icon-button is-button is-large",isPrimary:"flex-start"===t.verticalAlign,onClick:function(){return H("flex-start")}},wp.element.createElement(G,{icon:l.t,size:20}))),wp.element.createElement(q,{text:N("Middle")},wp.element.createElement(D,{className:"components-icon-button is-button is-large",isPrimary:"center"===t.verticalAlign,onClick:function(){return H("center")}},wp.element.createElement(G,{icon:l.k,size:20}))),wp.element.createElement(q,{text:N("Bottom")},wp.element.createElement(D,{className:"components-icon-button is-button is-large",isPrimary:"flex-end"===t.verticalAlign,onClick:function(){return H("flex-end")}},wp.element.createElement(G,{icon:l.c,size:20})))))))||"style"===p&&wp.element.createElement(Y,null,wp.element.createElement(W,{title:N("Background Settings"),className:"wp-block-themeisle-image-container"},wp.element.createElement(C.default,{label:N("Background Type"),backgroundType:t.backgroundType,changeBackgroundType:function(e){n({backgroundType:e})}}),"color"===t.backgroundType&&wp.element.createElement(Y,null,wp.element.createElement("p",null,N("Background Color")),wp.element.createElement(I,{label:"Background Color",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}}))||"image"===t.backgroundType&&(t.backgroundImageURL?wp.element.createElement(Y,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:Q},wp.element.createElement(F,{icon:"trash"}),wp.element.createElement("span",null,N("Remove Image"))))),wp.element.createElement(D,{isDefault:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:Q},N("Change or Remove Image")),wp.element.createElement(M.a,{label:"Background Settings"},wp.element.createElement($,{label:N("Background Attachment"),value:t.backgroundAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundAttachment:e})}}),wp.element.createElement($,{label:N("Background Position"),value:t.backgroundPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundPosition:e})}}),wp.element.createElement($,{label:N("Background Repeat"),value:t.backgroundRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundRepeat:e})}}),wp.element.createElement($,{label:N("Background Size"),value:t.backgroundSize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundSize:e})}}))):wp.element.createElement(P,{icon:"format-image",labels:{title:N("Background Image"),name:N("an image")},value:t.backgroundImageID,onSelect:function(e){n({backgroundImageID:e.id,backgroundImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundType&&wp.element.createElement(S.a,{label:"Background Gradient",value:{firstColor:t.backgroundGradientFirstColor,firstLocation:t.backgroundGradientFirstLocation,secondColor:t.backgroundGradientSecondColor,secondLocation:t.backgroundGradientSecondLocation,type:t.backgroundGradientType,angle:t.backgroundGradientAngle,position:t.backgroundGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundGradientFirstColor:e,backgroundGradientFirstLocation:t,backgroundGradientSecondColor:a,backgroundGradientSecondLocation:l,backgroundGradientType:o,backgroundGradientAngle:r,backgroundGradientPosition:i})}})),wp.element.createElement(W,{title:N("Background Overlay"),className:"wp-block-themeisle-image-container",initialOpen:!1},wp.element.createElement(C.default,{label:N("Overlay Type"),backgroundType:t.backgroundOverlayType,changeBackgroundType:function(e){n({backgroundOverlayType:e})}}),wp.element.createElement(Z,{label:N("Overlay Opacity"),value:t.backgroundOverlayOpacity,onChange:function(e){n({backgroundOverlayOpacity:e})},min:0,max:100}),"color"===t.backgroundOverlayType&&wp.element.createElement(Y,null,wp.element.createElement("p",null,N("Overlay Color")),wp.element.createElement(I,{label:"Overlay Color",value:t.backgroundOverlayColor,onChange:function(e){n({backgroundOverlayColor:e})}}))||"image"===t.backgroundOverlayType&&(t.backgroundOverlayImageURL?wp.element.createElement(Y,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundOverlayImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:K},wp.element.createElement(F,{icon:"trash"}),wp.element.createElement("span",null,N("Remove Image"))))),wp.element.createElement(D,{isDefault:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:K},N("Change or Remove Image")),wp.element.createElement(M.a,{label:"Background Settings"},wp.element.createElement($,{label:N("Background Attachment"),value:t.backgroundOverlayAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundOverlayAttachment:e})}}),wp.element.createElement($,{label:N("Background Position"),value:t.backgroundOverlayPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundOverlayPosition:e})}}),wp.element.createElement($,{label:N("Background Repeat"),value:t.backgroundOverlayRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundOverlayRepeat:e})}}),wp.element.createElement($,{label:N("Background Size"),value:t.backgroundOverlaySize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundOverlaySize:e})}}))):wp.element.createElement(P,{icon:"format-image",labels:{title:N("Background Image"),name:N("an image")},value:t.backgroundOverlayImageID,onSelect:function(e){n({backgroundOverlayImageID:e.id,backgroundOverlayImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundOverlayType&&wp.element.createElement(S.a,{label:"Background Gradient",value:{firstColor:t.backgroundOverlayGradientFirstColor,firstLocation:t.backgroundOverlayGradientFirstLocation,secondColor:t.backgroundOverlayGradientSecondColor,secondLocation:t.backgroundOverlayGradientSecondLocation,type:t.backgroundOverlayGradientType,angle:t.backgroundOverlayGradientAngle,position:t.backgroundOverlayGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundOverlayGradientFirstColor:e,backgroundOverlayGradientFirstLocation:t,backgroundOverlayGradientSecondColor:a,backgroundOverlayGradientSecondLocation:l,backgroundOverlayGradientType:o,backgroundOverlayGradientAngle:r,backgroundOverlayGradientPosition:i})}}),wp.element.createElement(M.a,{label:"CSS Filters"},wp.element.createElement(Z,{label:N("Blur"),value:t.backgroundOverlayFilterBlur,onChange:function(e){n({backgroundOverlayFilterBlur:e})},min:0,max:100}),wp.element.createElement(Z,{label:N("Brightness"),value:t.backgroundOverlayFilterBrightness,onChange:function(e){n({backgroundOverlayFilterBrightness:e})},min:0,max:100}),wp.element.createElement(Z,{label:N("Contrast"),value:t.backgroundOverlayFilterContrast,onChange:function(e){n({backgroundOverlayFilterContrast:e})},min:0,max:100}),wp.element.createElement(Z,{label:N("Grayscale"),value:t.backgroundOverlayFilterGrayscale,onChange:function(e){n({backgroundOverlayFilterGrayscale:e})},min:0,max:100}),wp.element.createElement(Z,{label:N("Hue"),value:t.backgroundOverlayFilterHue,onChange:function(e){n({backgroundOverlayFilterHue:e})},min:0,max:360}),wp.element.createElement(Z,{label:N("Saturation"),value:t.backgroundOverlayFilterSaturate,onChange:function(e){n({backgroundOverlayFilterSaturate:e})},min:0,max:100})),wp.element.createElement($,{label:N("Blend Mode"),value:t.backgroundOverlayBlend,options:[{label:"Normal",value:"normal"},{label:"Multiply",value:"multiply"},{label:"Screen",value:"screen"},{label:"Overlay",value:"overlay"},{label:"Darken",value:"darken"},{label:"Lighten",value:"lighten"},{label:"Color Dodge",value:"color-dodge"},{label:"Color Burn",value:"color-burn"},{label:"Hard Light",value:"hard-light"},{label:"Soft Light",value:"soft-light"},{label:"Difference",value:"difference"},{label:"Exclusion",value:"exclusion"},{label:"Hue",value:"hue"},{label:"Saturation",value:"saturation"},{label:"Color",value:"color"},{label:"Luminosity",value:"luminosity"}],onChange:function(e){n({backgroundOverlayBlend:e})}})),wp.element.createElement(W,{title:N("Border"),className:"wp-block-themeisle-border-container",initialOpen:!1},wp.element.createElement(E.a,{label:N("Border Width"),type:t.borderType,min:0,max:500,changeType:function(e){n({borderType:e})},onChange:function(e,a){"linked"===t.borderType?n({border:a}):n(O({},J[e],a))},options:[{label:N("Top"),type:"top",value:ee("top")},{label:N("Right"),type:"right",value:ee("right")},{label:N("Bottom"),type:"bottom",value:ee("bottom")},{label:N("Left"),type:"left",value:ee("left")}]}),wp.element.createElement(Y,null,wp.element.createElement("p",null,N("Border Color")),wp.element.createElement(I,{label:"Border Color",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(E.a,{label:N("Border Radius"),type:t.borderRadiusType,min:0,max:500,changeType:function(e){n({borderRadiusType:e})},onChange:function(e,a){"linked"===t.borderRadiusType?n({borderRadius:a}):n(O({},te[e],a))},options:[{label:N("Top"),type:"top",value:ne("top")},{label:N("Right"),type:"right",value:ne("right")},{label:N("Bottom"),type:"bottom",value:ne("bottom")},{label:N("Left"),type:"left",value:ne("left")}]}),wp.element.createElement(U,{label:"Box Shadow",checked:t.boxShadow,onChange:function(){n({boxShadow:!t.boxShadow})}}),t.boxShadow&&wp.element.createElement(Y,null,wp.element.createElement(Y,null,wp.element.createElement("p",null,N("Shadow Color")),wp.element.createElement(I,{label:"Shadow Color",value:t.boxShadowColor,onChange:function(e){n({boxShadowColor:e})}})),wp.element.createElement(M.a,{label:"Border Shadow"},wp.element.createElement(Z,{label:N("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(Z,{label:N("Blur"),value:t.boxShadowBlur,onChange:function(e){n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(Z,{label:N("Spread"),value:t.boxShadowSpread,onChange:function(e){n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(Z,{label:N("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(Z,{label:N("Vertical"),value:t.boxShadowVertical,onChange:function(e){n({boxShadowVertical:e})},min:-100,max:100})))),wp.element.createElement(W,{title:N("Shape Divider"),initialOpen:!1,className:"wp-block-themeisle-shape-divider"},wp.element.createElement(j,null,wp.element.createElement(D,{className:"is-button",isPrimary:"top"===o,onClick:function(){return r("top")}},N("Top")),wp.element.createElement(D,{className:"is-button",isPrimary:"bottom"===o,onClick:function(){return r("bottom")}},N("Bottom"))),wp.element.createElement($,{label:N("Type"),value:ae,options:[{label:"None",value:"none"},{label:"Triangle",value:"bigTriangle"},{label:"Right Curve",value:"rightCurve"},{label:"Curve",value:"curve"},{label:"Slant",value:"slant"},{label:"Cloud",value:"cloud"}],onChange:function(e){"top"==o&&n({dividerTopType:e}),"bottom"==o&&n({dividerBottomType:e})}}),"none"!==ae&&wp.element.createElement(Y,null,wp.element.createElement(Y,null,wp.element.createElement("p",null,N("Color")),wp.element.createElement(I,{label:N("Color"),value:le,onChange:function(e){"top"==o&&n({dividerTopColor:e}),"bottom"==o&&n({dividerBottomColor:e})}})),wp.element.createElement(x.a,{label:"Width"},wp.element.createElement(Z,{value:oe,onChange:function(e){"top"==o&&("Desktop"==i&&n({dividerTopWidth:e}),"Tablet"==i&&n({dividerTopWidthTablet:e}),"Mobile"==i&&n({dividerTopWidthMobile:e})),"bottom"==o&&("Desktop"==i&&n({dividerBottomWidth:e}),"Tablet"==i&&n({dividerBottomWidthTablet:e}),"Mobile"==i&&n({dividerBottomWidthMobile:e}))},min:0,max:500})),wp.element.createElement(x.a,{label:"Height"},wp.element.createElement(Z,{value:re,onChange:function(e){"top"==o&&("Desktop"==i&&n({dividerTopHeight:e}),"Tablet"==i&&n({dividerTopHeightTablet:e}),"Mobile"==i&&n({dividerTopHeightMobile:e})),"bottom"==o&&("Desktop"==i&&n({dividerBottomHeight:e}),"Tablet"==i&&n({dividerBottomHeightTablet:e}),"Mobile"==i&&n({dividerBottomHeightMobile:e}))},min:0,max:500})),"curve"!==ae&&"cloud"!==ae&&wp.element.createElement(U,{label:"Invert Shape Divider",checked:ie,onChange:function(){"top"==o&&n({dividerTopInvert:!t.dividerTopInvert}),"bottom"==o&&n({dividerBottomInvert:!t.dividerBottomInvert})}}))))||"advanced"===p&&wp.element.createElement(Y,null,wp.element.createElement(W,{title:N("Responsive")},wp.element.createElement(U,{label:"Hide this section in Desktop devices?",checked:t.hide,onChange:function(e){return ce(e,"desktop")}}),wp.element.createElement(U,{label:"Hide this section in Tablet devices?",checked:t.hideTablet,onChange:function(e){return ce(e,"tablet")}}),wp.element.createElement(U,{label:"Hide this section in Mobile devices?",checked:t.hideMobile,onChange:function(e){return ce(e,"mobile")}}),wp.element.createElement("hr",null),!t.hideTablet&&"collapsedRows"===t.layoutTablet&&wp.element.createElement(U,{label:"Reverse Columns in Tablet devices?",checked:t.reverseColumnsTablet,onChange:function(e){return de(e,"tablet")}}),!t.hideMobile&&"collapsedRows"===t.layoutMobile&&wp.element.createElement(U,{label:"Reverse Columns in Mobile devices?",checked:t.reverseColumnsMobile,onChange:function(e){return de(e,"mobile")}})),wp.element.createElement(W,{title:N("Section Settings"),initialOpen:!1},wp.element.createElement($,{label:N("HTML Tag"),value:t.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){n({columnsHTMLTag:e})}})))),wp.element.createElement(B.a,{value:t.id,onChange:function(e){n({id:e})}}))}));function te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ne(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var ae=wp.i18n.__,le=wp.blockEditor,oe=le.__experimentalBlockNavigationList,re=le.BlockControls,ie=wp.components,ce=ie.IconButton,de=ie.Modal,pe=ie.Toolbar,me=wp.compose.compose,se=wp.data,ue=se.withSelect,be=se.withDispatch,ge=wp.element,fe=ge.Fragment,he=ge.useState,ye=me(ue((function(e,t){var n=t.clientId,a=e("core/block-editor"),l=a.getSelectedBlockClientId;return{block:(0,a.getBlock)(n),selectedBlockClientId:l()}})),be((function(e){return{selectBlock:e("core/block-editor").selectBlock}})))((function(e){var t=e.block,n=e.selectedBlockClientId,a=e.selectBlock,o=te(he(!1),2),r=o[0],i=o[1];return wp.element.createElement(fe,null,wp.element.createElement(re,null,wp.element.createElement(pe,{className:"wp-themesiel-blocks-block-navigator-components-toolbar"},wp.element.createElement(ce,{className:"components-toolbar__control",label:ae("Open block navigator"),onClick:function(){return i(!0)},icon:l.l}))),r&&wp.element.createElement(de,{title:ae("Block Navigator"),closeLabel:ae("Close"),onRequestClose:function(){return i(!1)}},wp.element.createElement(oe,{blocks:[t],selectedBlockClientId:n,selectBlock:a,showNestedBlocks:!0})))})),we=n(13),ve=n(25);function ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||Ee(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e){return function(e){if(Array.isArray(e))return xe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Ee(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){if(e){if("string"==typeof e)return xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,t):void 0}}function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach((function(t){Me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Be=lodash,Oe=Be.isEqual,Re=Be.times,Le=wp.compose.compose,Ne=wp.data,Ae=Ne.withDispatch,Ie=Ne.withSelect,ze=wp.blockEditor,Pe=ze.__experimentalBlockNavigationList,He=ze.InnerBlocks,_e=wp.element,De=_e.Fragment,je=_e.useEffect,Fe=_e.useState,Ge=wp.viewport.withViewportMatch,Ve=[],We=Le(Ae((function(e){return{updateBlockAttributes:e("core/block-editor").updateBlockAttributes}})),Ie((function(e,t){var n=t.clientId,a=e("core/block-editor").getBlock,l=e("core/edit-post").__experimentalGetPreviewDeviceType;return{sectionBlock:a(n),isViewportAvailable:!!l,isPreviewDesktop:!!l&&"Desktop"===l(),isPreviewTablet:!!l&&"Tablet"===l(),isPreviewMobile:!!l&&"Mobile"===l()}})),Ge({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"}))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,o=e.name,i=e.updateBlockAttributes,d=e.sectionBlock,m=e.isLarger,s=e.isLarge,u=e.isSmall,b=e.isSmaller,g=e.isViewportAvailable,f=e.isPreviewDesktop,h=e.isPreviewTablet,y=e.isPreviewMobile;je((function(){w()}),[]);var w=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,i="wp-block-themeisle-blocks-advanced-columns-".concat(l.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(Oe(v.a[o],window.themeisleGutenberg.globalDefaults[o])||(a=Se({},window.themeisleGutenberg.globalDefaults[o]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==r[e].default&&t[e]!==r[e].default)return delete a[e]})))),n(Se({},a,{id:i})),Ve.push(i),e.push(i)}else if(Ve.includes(t.id)){var c="wp-block-themeisle-blocks-advanced-columns-".concat(l.substr(0,8));n({id:c}),Ve.push(c)}else Ve.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=Te(e)},T=ke(Fe("top"),2),E=T[0],x=T[1],C=m&&!s&&u&&!b,S=!m&&!s&&u&&!b,M=!(m||s||u||b);g&&!M&&(C=f,S=h,M=y);var B,O,R,L,N,A,I,z=t.columnsHTMLTag;(C&&(B={paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustom,"px"):t.columnsHeight}),S&&(B={paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustomTablet,"px"):t.columnsHeight}),M&&(B={paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px"),minHeight:"custom"===t.columnsHeight?"".concat(t.columnsHeightCustomMobile,"px"):t.columnsHeight}),"color"===t.backgroundType&&(O={background:t.backgroundColor}),"image"===t.backgroundType&&(O={backgroundImage:"url( '".concat(t.backgroundImageURL,"' )"),backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType)&&(I="linear"===t.backgroundGradientType?"".concat(t.backgroundGradientAngle,"deg"):"at ".concat(t.backgroundGradientPosition),(t.backgroundGradientFirstColor||t.backgroundGradientSecondColor)&&(O={background:"".concat(t.backgroundGradientType,"-gradient( ").concat(I,", ").concat(t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientFirstLocation,"%, ").concat(t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientSecondLocation,"% )")}));"linked"===t.borderType&&(L={borderWidth:"".concat(t.border,"px"),borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(L={borderTopWidth:"".concat(t.borderTop,"px"),borderRightWidth:"".concat(t.borderRight,"px"),borderBottomWidth:"".concat(t.borderBottom,"px"),borderLeftWidth:"".concat(t.borderLeft,"px"),borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(N={borderRadius:"".concat(t.borderRadius,"px")}),"unlinked"===t.borderRadiusType&&(N={borderTopLeftRadius:"".concat(t.borderRadiusTop,"px"),borderTopRightRadius:"".concat(t.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(t.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(t.borderRadiusLeft,"px")}),!0===t.boxShadow&&(A={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(p()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))});var P,H=Se({},B,{},O,{},L,{},N,{},A,{alignItems:t.horizontalAlign});("color"===t.backgroundOverlayType&&(R={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(R={backgroundImage:"url( '".concat(t.backgroundOverlayImageURL,"' )"),backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType)&&(P="linear"===t.backgroundOverlayGradientType?"".concat(t.backgroundOverlayGradientAngle,"deg"):"at ".concat(t.backgroundOverlayGradientPosition),R={background:"".concat(t.backgroundOverlayGradientType,"-gradient( ").concat(P,", ").concat(t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundOverlayGradientFirstLocation,"%, ").concat(t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundOverlayGradientSecondLocation,"% )"),opacity:t.backgroundOverlayOpacity/100});var _=Se({},R,{mixBlendMode:t.backgroundOverlayBlend,filter:"blur( ".concat(t.backgroundOverlayFilterBlur/10,"px ) brightness( ").concat(t.backgroundOverlayFilterBrightness/10," ) contrast( ").concat(t.backgroundOverlayFilterContrast/10," ) grayscale( ").concat(t.backgroundOverlayFilterGrayscale/100," ) hue-rotate( ").concat(t.backgroundOverlayFilterHue,"deg ) saturate( ").concat(t.backgroundOverlayFilterSaturate/10," )")}),D={};t.columnsWidth&&(D={maxWidth:t.columnsWidth+"px"});var j=c()(a,"has-".concat(t.columns,"-columns"),"has-desktop-".concat(t.layout,"-layout"),"has-tablet-".concat(t.layoutTablet,"-layout"),"has-mobile-".concat(t.layoutMobile,"-layout"),"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign),{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},{"has-viewport-desktop":C},{"has-viewport-tablet":S},{"has-viewport-mobile":M}),F=function(){var e;return C&&(e=t.dividerTopWidth),S&&(e=t.dividerTopWidthTablet),M&&(e=t.dividerTopWidthMobile),e};F=F();var G=function(){var e;return C&&(e=t.dividerBottomWidth),S&&(e=t.dividerBottomWidthTablet),M&&(e=t.dividerBottomWidthMobile),e};G=G();var V=function(){var e;return C&&(e=t.dividerTopHeight),S&&(e=t.dividerTopHeightTablet),M&&(e=t.dividerTopHeightMobile),e};V=V();var W=function(){var e;return C&&(e=t.dividerBottomHeight),S&&(e=t.dividerBottomHeightTablet),M&&(e=t.dividerBottomHeightMobile),e};W=W();var q;return t.columns?wp.element.createElement(De,null,Pe&&wp.element.createElement(ye,{clientId:l}),wp.element.createElement(ee,{attributes:t,setAttributes:n,updateColumnsWidth:function(e,t){d.innerBlocks.map((function(n,a){i(n.clientId,{columnWidth:k.a[e][t][a]})}))},dividerViewType:E,setDividerViewType:x}),wp.element.createElement(z,{className:j,id:t.id,style:H},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay",style:_}),wp.element.createElement(we.default,{type:"top",style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert,width:F,height:V}),wp.element.createElement("div",{className:"innerblocks-wrap",style:D},wp.element.createElement(He,{allowedBlocks:["themeisle-blocks/advanced-columns"],template:(q=t.columns,Re(q,(function(e){return["themeisle-blocks/advanced-column",{columnWidth:k.a[q][t.layout][e]}]}))),templateLock:"all"})),wp.element.createElement(we.default,{type:"bottom",style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert,width:G,height:W}))):wp.element.createElement(ve.default,{clientId:l,setupColumns:function(e,t){n(1>=e?{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"equal"}:{columns:e,layout:t,layoutTablet:"equal",layoutMobile:"collapsedRows"})}})})),qe=wp.blockEditor.InnerBlocks,Ue=function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag,l=t.hide?"":"has-desktop-".concat(t.layout,"-layout"),o=t.hideTablet?"":"has-tablet-".concat(t.layoutTablet,"-layout"),r=t.hideMobile?"":"has-mobile-".concat(t.layoutMobile,"-layout"),i=c()(n,"has-".concat(t.columns,"-columns"),l,o,r,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},{"has-reverse-columns-tablet":t.reverseColumnsTablet&&!t.hideTablet&&"collapsedRows"===t.layoutTablet},{"has-reverse-columns-mobile":t.reverseColumnsMobile&&!t.hideMobile&&"collapsedRows"===t.layoutMobile},"has-".concat(t.columnsGap,"-gap"),"has-vertical-".concat(t.verticalAlign));return wp.element.createElement(a,{className:i,id:t.id},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-advanced-columns-overlay"}),wp.element.createElement(we.default,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),wp.element.createElement("div",{className:"innerblocks-wrap"},wp.element.createElement(qe.Content,null)),wp.element.createElement(we.default,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))},Ze=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-columns",{title:Ze("Section"),description:Ze("Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like."),icon:l.g,category:"themeisle-blocks",keywords:["advanced columns","layout","grid"],attributes:r,supports:{align:["wide","full"],html:!1},deprecated:w,edit:We,save:Ue})},function(e,t,n){"use strict";n.r(t);var a=n(2),l={id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:20},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRight:{type:"number",default:0},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},o=n(6),r=n.n(o);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}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=wp.blockEditor.InnerBlocks,p=[{attributes:{id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginRight:{type:"number",default:0},marginRightTablet:{type:"number",default:0},marginRightMobile:{type:"number",default:0},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number",default:0},marginLeftMobile:{type:"number",default:0},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},supports:{inserter:!1,reusable:!1,html:!1},save:function(e){var t,n,a,l,o,p=e.attributes,m=e.className,s=p.columnsHTMLTag;("color"===p.backgroundType&&(t={background:p.backgroundColor}),"image"===p.backgroundType&&(t={backgroundImage:"url( '".concat(p.backgroundImageURL,"' )"),backgroundAttachment:p.backgroundAttachment,backgroundPosition:p.backgroundPosition,backgroundRepeat:p.backgroundRepeat,backgroundSize:p.backgroundSize}),"gradient"===p.backgroundType)&&(o="linear"===p.backgroundGradientType?"".concat(p.backgroundGradientAngle,"deg"):"at ".concat(p.backgroundGradientPosition),t={background:"".concat(p.backgroundGradientType,"-gradient( ").concat(o,", ").concat(p.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundGradientFirstLocation,"%, ").concat(p.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(p.backgroundGradientSecondLocation,"% )")});"linked"===p.borderType&&(n={borderWidth:"".concat(p.border,"px"),borderStyle:"solid",borderColor:p.borderColor}),"unlinked"===p.borderType&&(n={borderTopWidth:"".concat(p.borderTop,"px"),borderRightWidth:"".concat(p.borderRight,"px"),borderBottomWidth:"".concat(p.borderBottom,"px"),borderLeftWidth:"".concat(p.borderLeft,"px"),borderStyle:"solid",borderColor:p.borderColor}),"linked"===p.borderRadiusType&&(a={borderRadius:"".concat(p.borderRadius,"px")}),"unlinked"===p.borderRadiusType&&(a={borderTopLeftRadius:"".concat(p.borderRadiusTop,"px"),borderTopRightRadius:"".concat(p.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(p.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(p.borderRadiusLeft,"px")}),!0===p.boxShadow&&(l={boxShadow:"".concat(p.boxShadowHorizontal,"px ").concat(p.boxShadowVertical,"px ").concat(p.boxShadowBlur,"px ").concat(p.boxShadowSpread,"px ").concat(r()(p.boxShadowColor?p.boxShadowColor:"#000000",p.boxShadowColorOpacity))});var u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{},n,{},a,{},l);return wp.element.createElement(s,{className:m,id:p.id,style:u},wp.element.createElement(d.Content,null))}}],m=n(5),s=n(16),u=n(0),b=n.n(u),g=n(4),f=n(3),h=n(14),y=n(17),w=n(8);function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var E=wp.i18n.__,x=wp.blockEditor,C=x.ColorPalette,S=x.InspectorControls,M=x.MediaPlaceholder,B=wp.components,O=B.Button,R=B.Dashicon,L=B.PanelBody,N=B.ToggleControl,A=B.RangeControl,I=B.SelectControl,z=wp.compose.compose,P=wp.data.withSelect,H=wp.element,_=H.Fragment,D=H.useEffect,j=H.useRef,F=H.useState,G=z(P((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.attributes,n=e.setAttributes,a=e.isSelected,l=e.clientId,o=e.adjacentBlock,r=e.parentBlock,i=e.updateBlockAttributes,c=e.adjacentBlockClientId,d=e.view;D((function(){if(1<r.innerBlocks.length&&!c){var e=r.innerBlocks.findIndex((function(e){return e.clientId===l})),t=r.innerBlocks[e-1];T.current=t.clientId,x.current=t.attributes.columnWidth}}),[]),D((function(){if(1<r.innerBlocks.length)if(c)x.current=o.attributes.columnWidth,T.current=c,u.current=t.columnWidth;else{var e=r.innerBlocks.findIndex((function(e){return e.clientId===l})),n=r.innerBlocks[e-1];x.current=n.attributes.columnWidth,T.current=n.clientId,u.current=t.columnWidth}}),[a,t.columnWidth,r.innerBlocks.length]);var p=k(F("layout"),2),m=p[0],s=p[1],u=j(t.columnWidth),T=j(c&&c),x=j(o&&o.attributes.columnWidth),B=function(){var e;return"Desktop"===d&&(e=t.paddingType),"Tablet"===d&&(e=t.paddingTypeTablet),"Mobile"===d&&(e=t.paddingTypeMobile),e};B=B();var z={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},P={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},H={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},G=function(e){var n;return"top"==e&&("Desktop"===d&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===d&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===d&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===d&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===d&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===d&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===d&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===d&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===d&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===d&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===d&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===d&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},V=function(){var e;return"Desktop"===d&&(e=t.marginType),"Tablet"===d&&(e=t.marginTypeTablet),"Mobile"===d&&(e=t.marginTypeMobile),e};V=V();var W={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},q={top:"marginTopTablet",right:"marginRightTablet",bottom:"marginBottomTablet",left:"marginLeftTablet"},U={top:"marginTopMobile",right:"marginRightMobile",bottom:"marginBottomMobile",left:"marginLeftMobile"},Z=function(e){var n;return"top"==e&&("Desktop"===d&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===d&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===d&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"right"==e&&("Desktop"===d&&(n="linked"===t.marginType?t.margin:t.marginRight),"Tablet"===d&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginRightTablet),"Mobile"===d&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginRightMobile)),"bottom"==e&&("Desktop"===d&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===d&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===d&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),"left"==e&&("Desktop"===d&&(n="linked"===t.marginType?t.margin:t.marginLeft),"Tablet"===d&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginLeftTablet),"Mobile"===d&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginLeftMobile)),n},$=function(){n({backgroundImageID:"",backgroundImageURL:""})},Q={top:"borderTop",right:"borderRight",bottom:"borderBottom",left:"borderLeft"},K=function(e){var n;return"top"==e&&(n="linked"===t.borderType?t.border:t.borderTop),"right"==e&&(n="linked"===t.borderType?t.border:t.borderRight),"bottom"==e&&(n="linked"===t.borderType?t.border:t.borderBottom),"left"==e&&(n="linked"===t.borderType?t.border:t.borderLeft),n},J={top:"borderRadiusTop",right:"borderRadiusRight",bottom:"borderRadiusBottom",left:"borderRadiusLeft"},Y=function(e){var n;return"top"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusTop),"right"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusRight),"bottom"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusBottom),"left"==e&&(n="linked"===t.borderRadiusType?t.borderRadius:t.borderRadiusLeft),n};return wp.element.createElement(S,null,wp.element.createElement(L,{className:"wp-block-themeisle-blocks-advanced-columns-header-panel"},wp.element.createElement(O,{className:b()("header-tab",{"is-selected":"layout"===m}),onClick:function(){return s("layout")}},wp.element.createElement("span",null,wp.element.createElement(R,{icon:"editor-table"}),E("Layout"))),wp.element.createElement(O,{className:b()("header-tab",{"is-selected":"style"===m}),onClick:function(){return s("style")}},wp.element.createElement("span",null,wp.element.createElement(R,{icon:"admin-customizer"}),E("Style"))),wp.element.createElement(O,{className:b()("header-tab",{"is-selected":"advanced"===m}),onClick:function(){return s("advanced")}},wp.element.createElement("span",null,wp.element.createElement(R,{icon:"admin-generic"}),E("Advanced")))),"layout"===m&&wp.element.createElement(_,null,wp.element.createElement(L,{title:E("Spacing")},1<r.innerBlocks.length&&wp.element.createElement(A,{label:E("Column Width"),value:Number(t.columnWidth),onChange:function(e){var t=e||10,a=Number(u.current)-t+Number(x.current);u.current=t,x.current=a,n({columnWidth:t.toFixed(2)}),i(T.current,{columnWidth:a.toFixed(2)})},min:10,max:Number(t.columnWidth)+Number(x.current)-10}),wp.element.createElement(f.a,{label:"Padding"},wp.element.createElement(g.a,{type:B,min:0,max:500,changeType:function(e){"Desktop"===d&&n({paddingType:e}),"Tablet"===d&&n({paddingTypeTablet:e}),"Mobile"===d&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===d&&("linked"===t.paddingType?n({padding:a}):n(v({},z[e],a))),"Tablet"===d&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(v({},P[e],a))),"Mobile"===d&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(v({},H[e],a)))},options:[{label:E("Top"),type:"top",value:G("top")},{label:E("Right"),type:"right",value:G("right")},{label:E("Bottom"),type:"bottom",value:G("bottom")},{label:E("Left"),type:"left",value:G("left")}]})),wp.element.createElement(f.a,{label:"Margin"},wp.element.createElement(g.a,{type:V,min:-500,max:500,changeType:function(e){"Desktop"===d&&n({marginType:e}),"Tablet"===d&&n({marginTypeTablet:e}),"Mobile"===d&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===d&&("linked"===t.marginType?n({margin:a}):n(v({},W[e],a))),"Tablet"===d&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(v({},q[e],a))),"Mobile"===d&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(v({},U[e],a)))},options:[{label:E("Top"),type:"top",value:Z("top")},{label:E("Right"),type:"right",value:Z("right")},{label:E("Bottom"),type:"bottom",value:Z("bottom")},{label:E("Left"),type:"left",value:Z("left")}]}))))||"style"===m&&wp.element.createElement(_,null,wp.element.createElement(L,{title:E("Background Settings"),className:"wp-block-themeisle-image-container"},wp.element.createElement(h.default,{label:E("Background Type"),backgroundType:t.backgroundType,changeBackgroundType:function(e){n({backgroundType:e})}}),"color"===t.backgroundType&&wp.element.createElement(_,null,wp.element.createElement("p",null,E("Background Color")),wp.element.createElement(C,{label:"Background Color",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}}))||"image"===t.backgroundType&&(t.backgroundImageURL?wp.element.createElement(_,null,wp.element.createElement("div",{className:"wp-block-themeisle-image-container-body"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-area"},wp.element.createElement("div",{className:"wp-block-themeisle-image-container-holder",style:{backgroundImage:"url('".concat(t.backgroundImageURL,"')")}}),wp.element.createElement("div",{className:"wp-block-themeisle-image-container-delete",onClick:$},wp.element.createElement(R,{icon:"trash"}),wp.element.createElement("span",null,E("Remove Image"))))),wp.element.createElement(O,{isDefault:!0,className:"wp-block-themeisle-image-container-delete-button",onClick:$},E("Change or Remove Image")),wp.element.createElement(w.a,{label:"Background Settings"},wp.element.createElement(I,{label:E("Background Attachment"),value:t.backgroundAttachment,options:[{label:"Scroll",value:"scroll"},{label:"Fixed",value:"fixed"},{label:"Local",value:"local"}],onChange:function(e){n({backgroundAttachment:e})}}),wp.element.createElement(I,{label:E("Background Position"),value:t.backgroundPosition,options:[{label:"Default",value:"top left"},{label:"Top Left",value:"top left"},{label:"Top Center",value:"top center"},{label:"Top Right",value:"top right"},{label:"Center Left",value:"center left"},{label:"Center Center",value:"center center"},{label:"Center Right",value:"center right"},{label:"Bottom Left",value:"bottom left"},{label:"Bottom Center",value:"bottom center"},{label:"Bottom Right",value:"bottom right"}],onChange:function(e){n({backgroundPosition:e})}}),wp.element.createElement(I,{label:E("Background Repeat"),value:t.backgroundRepeat,options:[{label:"Repeat",value:"repeat"},{label:"No-repeat",value:"no-repeat"}],onChange:function(e){n({backgroundRepeat:e})}}),wp.element.createElement(I,{label:E("Background Size"),value:t.backgroundSize,options:[{label:"Auto",value:"auto"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"}],onChange:function(e){n({backgroundSize:e})}}))):wp.element.createElement(M,{icon:"format-image",labels:{title:E("Background Image"),name:E("an image")},value:t.backgroundImageID,onSelect:function(e){n({backgroundImageID:e.id,backgroundImageURL:e.url})},accept:"image/*",allowedTypes:["image"]}))||"gradient"===t.backgroundType&&wp.element.createElement(y.a,{label:"Background Gradient",value:{firstColor:t.backgroundGradientFirstColor,firstLocation:t.backgroundGradientFirstLocation,secondColor:t.backgroundGradientSecondColor,secondLocation:t.backgroundGradientSecondLocation,type:t.backgroundGradientType,angle:t.backgroundGradientAngle,position:t.backgroundGradientPosition},onChange:function(e,t,a,l,o,r,i){n({backgroundGradientFirstColor:e,backgroundGradientFirstLocation:t,backgroundGradientSecondColor:a,backgroundGradientSecondLocation:l,backgroundGradientType:o,backgroundGradientAngle:r,backgroundGradientPosition:i})}})),wp.element.createElement(L,{title:E("Border"),className:"wp-block-themeisle-border-container",initialOpen:!1},wp.element.createElement(g.a,{label:E("Border Width"),type:t.borderType,min:0,max:500,changeType:function(e){n({borderType:e})},onChange:function(e,a){"linked"===t.borderType?n({border:a}):n(v({},Q[e],a))},options:[{label:E("Top"),type:"top",value:K("top")},{label:E("Right"),type:"right",value:K("right")},{label:E("Bottom"),type:"bottom",value:K("bottom")},{label:E("Left"),type:"left",value:K("left")}]}),wp.element.createElement(_,null,wp.element.createElement("p",null,E("Border Color")),wp.element.createElement(C,{label:"Border Color",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(g.a,{label:E("Border Radius"),type:t.borderRadiusType,min:0,max:500,changeType:function(e){n({borderRadiusType:e})},onChange:function(e,a){"linked"===t.borderRadiusType?n({borderRadius:a}):n(v({},J[e],a))},options:[{label:E("Top"),type:"top",value:Y("top")},{label:E("Right"),type:"right",value:Y("right")},{label:E("Bottom"),type:"bottom",value:Y("bottom")},{label:E("Left"),type:"left",value:Y("left")}]}),wp.element.createElement(N,{label:"Box Shadow",checked:t.boxShadow,onChange:function(){n({boxShadow:!t.boxShadow})}}),t.boxShadow&&wp.element.createElement(_,null,wp.element.createElement(_,null,wp.element.createElement("p",null,E("Shadow Color")),wp.element.createElement(C,{label:"Shadow Color",value:t.boxShadowColor,onChange:function(e){n({boxShadowColor:e})}})),wp.element.createElement(w.a,{label:"Shadow Properties"},wp.element.createElement(A,{label:E("Opacity"),value:t.boxShadowColorOpacity,onChange:function(e){n({boxShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(A,{label:E("Blur"),value:t.boxShadowBlur,onChange:function(e){n({boxShadowBlur:e})},min:0,max:100}),wp.element.createElement(A,{label:E("Spread"),value:t.boxShadowSpread,onChange:function(e){n({boxShadowSpread:e})},min:-100,max:100}),wp.element.createElement(A,{label:E("Horizontal"),value:t.boxShadowHorizontal,onChange:function(e){n({boxShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(A,{label:E("Vertical"),value:t.boxShadowVertical,onChange:function(e){n({boxShadowVertical:e})},min:-100,max:100})))))||"advanced"===m&&wp.element.createElement(L,{title:E("Section Settings")},wp.element.createElement(I,{label:E("HTML Tag"),value:t.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){n({columnsHTMLTag:e})}})))}));function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||q(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){if(e){if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=lodash.isEqual,J=wp.components.ResizableBox,Y=wp.compose.compose,X=wp.data,ee=X.withDispatch,te=X.withSelect,ne=wp.blockEditor.InnerBlocks,ae=wp.element,le=ae.Fragment,oe=ae.useEffect,re=ae.useState,ie=wp.viewport.withViewportMatch,ce=[],de=Y(ee((function(e){return{updateBlockAttributes:e("core/block-editor").updateBlockAttributes}})),te((function(e,t){var n=t.clientId,a=e("core/block-editor"),l=a.getAdjacentBlockClientId,o=a.getBlock,r=a.getBlockRootClientId,i=e("core/edit-post").__experimentalGetPreviewDeviceType,c=o(n),d=l(n),p=o(d),m=r(n);return{adjacentBlockClientId:d,adjacentBlock:p,parentClientId:m,parentBlock:o(m),hasInnerBlocks:!(!c||!c.innerBlocks.length),isViewportAvailable:!!i,isPreviewDesktop:!!i&&"Desktop"===i(),isPreviewTablet:!!i&&"Tablet"===i(),isPreviewMobile:!!i&&"Mobile"===i()}})),ie({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"}))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.isSelected,i=e.clientId,c=e.name,d=e.toggleSelection,p=e.updateBlockAttributes,u=e.adjacentBlockClientId,b=e.adjacentBlock,g=e.parentClientId,f=e.parentBlock,h=e.hasInnerBlocks,y=e.isLarger,w=e.isLarge,v=e.isSmall,k=e.isSmaller,T=e.isViewportAvailable,E=e.isPreviewDesktop,x=e.isPreviewTablet,C=e.isPreviewMobile;oe((function(){S()}),[]);var S=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,o="wp-block-themeisle-blocks-advanced-column-".concat(i.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(K(m.a[c],window.themeisleGutenberg.globalDefaults[c])||(a=$({},window.themeisleGutenberg.globalDefaults[c]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n($({},a,{id:o})),ce.push(o),e.push(o)}else if(ce.includes(t.id)){var r="wp-block-themeisle-blocks-advanced-column-".concat(i.substr(0,8));n({id:r}),ce.push(r)}else ce.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=W(e)},M=V(re(0),2),B=M[0],O=M[1],R=V(re(0),2),L=R[0],N=R[1],A=y&&!w&&v&&!k,I=!y&&!w&&v&&!k,z=!(y||w||v||k);T&&!z&&(A=E,I=x,z=C),void 0===t.columnWidth&&f.innerBlocks.map((function(e,t){if(i===e.clientId){var n=f.attributes.columns,a=f.attributes.layout;p(i,{columnWidth:s.a[n][a][t]})}}));var P=document.getElementById("block-".concat(i));null!==P&&(P.style.flexBasis=A?"".concat(t.columnWidth,"%"):"");var H,_,D,j,F,q,U=t.columnsHTMLTag;(A&&(H={paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginRight:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginRight,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px"),marginLeft:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginLeft,"px")}),I&&(H={paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginRight:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginRightTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px"),marginLeft:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginLeftTablet,"px")}),z&&(H={paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginRight:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginRightMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px"),marginLeft:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginLeftMobile,"px")}),"color"===t.backgroundType&&(_={background:t.backgroundColor}),"image"===t.backgroundType&&(_={backgroundImage:"url( '".concat(t.backgroundImageURL,"' )"),backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType)&&(q="linear"===t.backgroundGradientType?"".concat(t.backgroundGradientAngle,"deg"):"at ".concat(t.backgroundGradientPosition),(t.backgroundGradientFirstColor||t.backgroundGradientSecondColor)&&(_={background:"".concat(t.backgroundGradientType,"-gradient( ").concat(q,", ").concat(t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientFirstLocation,"%, ").concat(t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"," ").concat(t.backgroundGradientSecondLocation,"% )")}));"linked"===t.borderType&&(D={borderWidth:"".concat(t.border,"px"),borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(D={borderTopWidth:"".concat(t.borderTop,"px"),borderRightWidth:"".concat(t.borderRight,"px"),borderBottomWidth:"".concat(t.borderBottom,"px"),borderLeftWidth:"".concat(t.borderLeft,"px"),borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(j={borderRadius:"".concat(t.borderRadius,"px")}),"unlinked"===t.borderRadiusType&&(j={borderTopLeftRadius:"".concat(t.borderRadiusTop,"px"),borderTopRightRadius:"".concat(t.borderRadiusRight,"px"),borderBottomRightRadius:"".concat(t.borderRadiusBottom,"px"),borderBottomLeftRadius:"".concat(t.borderRadiusLeft,"px")}),!0===t.boxShadow&&(F={boxShadow:"".concat(t.boxShadowHorizontal,"px ").concat(t.boxShadowVertical,"px ").concat(t.boxShadowBlur,"px ").concat(t.boxShadowSpread,"px ").concat(r()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity))});var Z=$({},H,{},_,{},D,{},j,{},F);return wp.element.createElement(le,null,wp.element.createElement(G,{attributes:t,setAttributes:n,isSelected:o,clientId:i,adjacentBlock:b,parentBlock:f,updateBlockAttributes:p,adjacentBlockClientId:u}),wp.element.createElement(J,{className:"block-library-spacer__resize-container wp-themeisle-block-advanced-column-resize-container",enable:{right:!!u},handleWrapperClass:"wp-themeisle-block-advanced-column-resize-container-handle",onResizeStart:function(){var e=document.querySelector("#block-".concat(i," .wp-themeisle-block-advanced-column-resize-container-handle .components-resizable-box__handle")),n=document.createElement("div"),a=document.createElement("div");n.setAttribute("class","resizable-tooltip resizable-tooltip-left"),n.innerHTML="".concat(parseFloat(t.columnWidth).toFixed(0),"%"),e.appendChild(n),a.setAttribute("class","resizable-tooltip resizable-tooltip-right"),a.innerHTML="".concat(parseFloat(b.attributes.columnWidth).toFixed(0),"%"),e.appendChild(a),O(t.columnWidth),N(b.attributes.columnWidth),d(!1)},onResize:function(e,t,a,l){var o=document.getElementById("block-".concat(g)).getBoundingClientRect().width,r=l.width/o*100,i=parseFloat(B)+r,c=L-r,d=document.querySelector(".resizable-tooltip-left"),m=document.querySelector(".resizable-tooltip-right");10<=i&&10<=c&&(d.innerHTML="".concat(i.toFixed(0),"%"),m.innerHTML="".concat(c.toFixed(0),"%"),n({columnWidth:i.toFixed(2)}),p(u,{columnWidth:c.toFixed(2)}))},onResizeStop:function(){var e=document.querySelector(".resizable-tooltip-left"),t=document.querySelector(".resizable-tooltip-right");e.parentNode.removeChild(e),t.parentNode.removeChild(t),d(!0)}},wp.element.createElement(U,{className:a,id:t.id,style:Z},wp.element.createElement(ne,{templateLock:!1,renderAppender:!h&&ne.ButtonBlockAppender}))))})),pe=wp.blockEditor.InnerBlocks,me=function(e){var t=e.attributes,n=e.className,a=t.columnsHTMLTag;return wp.element.createElement(a,{className:n,id:t.id},wp.element.createElement(pe.Content,null))},se=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-column",{title:se("Section Column"),description:se("A single column within a Section block."),parent:["themeisle-blocks/advanced-columns"],icon:a.f,category:"themeisle-blocks",attributes:l,deprecated:p,supports:{inserter:!1,reusable:!1,html:!1},edit:de,save:me})},function(e,t,n){"use strict";n.r(t);var a=n(2),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["themeisle-blocks/advanced-heading",{content:l("Basic"),align:"center",tag:"h3",fontSize:24}],["themeisle-blocks/advanced-heading",{content:l("$9.99"),align:"center",tag:"h4",fontSize:36,fontFamily:"Roboto Slab",fontVariant:"normal"}],["themeisle-blocks/advanced-heading",{content:l("Per Month"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["core/separator",{}],["themeisle-blocks/advanced-heading",{content:l("First Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["core/separator",{}],["themeisle-blocks/advanced-heading",{content:l("Second Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["core/separator",{}],["themeisle-blocks/advanced-heading",{content:l("Last Feature"),align:"center",tag:"p",fontSize:12,marginBottom:0}],["core/separator",{}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:l("Buy Now"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/pricing",{title:p("Pricing"),description:p("Pricing tables are a critical part in showcasing your services, prices and overall offerings."),icon:a.p,category:"themeisle-blocks",keywords:["pricing","table","money"],edit:i,save:d})},function(e,t,n){"use strict";n.r(t);var a=n(2),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["themeisle-blocks/font-awesome-icons",{fontSize:62,prefix:"fab",icon:"angellist"}],["themeisle-blocks/advanced-heading",{content:l("Basic"),align:"center",tag:"h4",marginBottom:20}],["themeisle-blocks/advanced-heading",{content:l("Lorem ipsum dolor sit amet elit do, consectetur adipiscing, sed eiusmod tempor incididunt ut labore et dolore magna aliqua."),align:"center",color:"#999999",tag:"p",fontSize:14,marginBottom:20}],["themeisle-blocks/button-group",{align:"center",buttons:1,data:[{text:l("Know More"),newTab:!1,color:"#ffffff",background:"#32373c",hoverColor:"#ffffff",hoverBackground:"#444a50",borderSize:0,borderRadius:3,boxShadow:!1,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",paddingTopBottom:12,paddingLeftRight:24}]}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/service",{title:p("Service"),description:p("Use this Service block to showcase services your website offers."),icon:a.q,category:"themeisle-blocks",keywords:["services","icon","features"],edit:i,save:d})},function(e,t,n){"use strict";n.r(t);var a=n(2),l=wp.i18n.__,o=wp.blockEditor.InnerBlocks,r=[["core/image",{align:"center"}],["themeisle-blocks/advanced-heading",{content:l("John Doe"),align:"center",fontSize:24,tag:"h3",marginTop:25,marginBottom:10,marginTopTablet:25,marginTopMobile:25}],["themeisle-blocks/advanced-heading",{content:l("Jedi Master"),align:"center",fontSize:14,tag:"h4",marginTop:10,marginBottom:10}],["themeisle-blocks/advanced-heading",{content:l('"What is the point of being alive if you don’t at least try to do something remarkable?"'),align:"center",color:"#999999",tag:"p",fontSize:14,marginTop:10,marginBottom:20}]],i=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(o,{template:r}))},c=wp.blockEditor.InnerBlocks,d=function(e){var t=e.className;return wp.element.createElement("div",{className:t},wp.element.createElement(c.Content,null))},p=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/testimonials",{title:p("Testimonials"),description:p("Display kudos from customers and clients and display them on your website."),icon:a.s,category:"themeisle-blocks",keywords:["testimonials","quotes","business"],edit:i,save:d})},,,function(e,t,n){n(37),n(95),n(101),n(96),n(94),n(97),n(92),n(100),n(26),n(99),n(30),n(29),n(14),n(24),n(25),n(13),n(80),n(98),n(93),n(88),n(31),n(32),e.exports=n(33)},function(e,t,n){"use strict";n.r(t);n(38);n.p=window.themeisleGutenberg.packagePath},,,,,,,function(e,t){function n(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function a(e){return function(){var t=this,a=arguments;return new Promise((function(l,o){var r=e.apply(t,a);function i(e){n(r,l,o,i,c,"next",e)}function c(e){n(r,l,o,i,c,"throw",e)}i(void 0)}))}}var l=lodash.debounce,o=wp.apiFetch,r=wp.data,i=r.select,c=r.subscribe,d=l(a(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i("core/editor"),n=t.getCurrentPostId,a=n(),e.next=4,o({path:"themeisle-gutenberg-blocks/v1/save_post_meta/".concat(a),method:"POST"});case 4:case"end":return e.stop()}}),e)}))),1e3),p={};c((function(){var e=i("core/editor"),t=e.isCurrentPostPublished,n=e.isSavingPost,a=e.isPublishingPost,l=e.isAutosavingPost,r=e.__experimentalGetReusableBlocks,c=e.__experimentalIsSavingReusableBlock,m=l(),s=a(),u=n(),b=r(),g=t();b.map((function(e){if(e){var t=(n=e.id,c(n));t&&!e.isTemporary&&(p[e.id]={id:e.id,isSaving:!0}),t||e.isTemporary||!p[e.id]||e.id===p[e.id].id&&!t&&p[e.id].isSaving&&(p[e.id].isSaving=!1,o({path:"themeisle-gutenberg-blocks/v1/save_block_meta/".concat(e.id),method:"POST"}))}var n})),!(s||g&&u)||m||status||d()}))},function(e,t){var n=wp.data.registerStore,a={viewType:"Desktop"};n("themeisle-gutenberg/data",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_VIEW"===t.type?{viewType:t.viewType}:e},selectors:{getView:function(e){return e.viewType}},actions:{updateView:function(e){return{type:"UPDATE_VIEW",viewType:e}}}})},,function(e,t,n){},,function(e,t,n){},function(e,t){var n=wp.i18n.__,a=wp.richText,l=a.registerFormatType,o=a.toggleFormat,r=wp.blockEditor,i=r.RichTextShortcut,c=r.RichTextToolbarButton,d=wp.element.Fragment,p="themeisle-blocks/mark";l(p,{name:p,title:n("Highlight"),tagName:"mark",className:null,edit:function(e){var t=e.isActive,a=e.value,l=e.onChange,r=function(){return l(o(a,{type:p}))};return wp.element.createElement(d,null,wp.element.createElement(i,{type:"primary",character:"m",onUse:r}),wp.element.createElement(c,{icon:"admin-customizer",title:n("Highlight"),onClick:r,isActive:t,shortcutType:"access",shortcutCharacter:"m"}))}})},,,,,,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,,,function(e,t,n){},function(e,t,n){},,,,,function(e,t,n){},,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(81),n(82),n(29),n(30)},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},function(e,t,n){},,function(e,t,n){"use strict";n.r(t);n(31),n(32),n(33)},,,,function(e,t,n){"use strict";n.r(t);n(60),n(61);var a=n(2),l={id:{type:"string"},style:{type:"string",default:"standard"},location:{type:"string",default:"La Sagrada Familia, Barcelona, Spain"},latitude:{type:"string"},longitude:{type:"string"},type:{type:"string",default:"roadmap"},zoom:{type:"number",default:15},height:{type:"number",default:400},draggable:{type:"boolean",default:!0},mapTypeControl:{type:"boolean",default:!0},zoomControl:{type:"boolean",default:!0},fullscreenControl:{type:"boolean",default:!0},streetViewControl:{type:"boolean",default:!0},markers:{type:"array",default:[]}},o=n(0),r=n.n(o),i=n(104),c=wp.i18n.__,d=wp.components,p=d.Button,m=d.ExternalLink,s=d.Placeholder,u=d.Spinner,b=d.TextControl,g=function(e){var t=e.className,n=e.api,a=e.isAPILoaded,l=e.isAPISaved,o=e.isSaving,r=e.changeAPI,i=e.saveAPIKey;return a?l?void 0:wp.element.createElement(s,{icon:"admin-site",label:c("Google Maps"),instructions:c("A Google Maps API key is required, please enter one below."),className:t},wp.element.createElement("div",{className:"components-placeholder__actions"},wp.element.createElement(b,{type:"text",placeholder:c("Google Maps API Key"),value:n,className:"components-placeholder__input",onChange:r}),wp.element.createElement(p,{isLarge:!0,isDefault:!0,type:"submit",onClick:i,isBusy:o,disabled:""===n},c("Save"))),wp.element.createElement("div",{className:"components-placeholder__learn-more"},c("You need to activate Maps and Places API.")," ",wp.element.createElement(m,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key"},c("Need an API key? Get one here.")))):wp.element.createElement(s,{className:"wp-themeisle-block-spinner"},wp.element.createElement(u,null),c("Loading…"))},f=n(11),h=wp.i18n.__,y=wp.components,w=y.BaseControl,v=y.Button,k=y.ExternalLink,T=y.IconButton,E=y.SelectControl,x=y.TextControl,C=y.TextareaControl,S=wp.element.useRef,M=function(e){var t=e.marker,n=e.isOpen,a=e.isPlaceAPIAvailable,l=e.openMarker,o=e.removeMarker,i=e.changeMarkerProp,c=S(null);return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker"},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker-title-area"},wp.element.createElement(v,{className:"wp-block-themeisle-blocks-google-map-marker-title",onClick:function(){return l(t.id)}},t.title||h("Custom Marker")),wp.element.createElement(T,{icon:"no-alt",label:h("Remove Marker"),className:"wp-block-themeisle-blocks-google-map-marker-remove",onClick:function(){return o(t.id)}})),wp.element.createElement("div",{className:r()("wp-block-themeisle-blocks-google-map-marker-control-area",{opened:t.id===n})},wp.element.createElement(w,{label:h("Location"),id:"themeisle-location-search-".concat(t.id)},wp.element.createElement("input",{type:"text",id:"themeisle-location-search-".concat(t.id),placeholder:h("Enter a location…"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:c,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var n=new google.maps.places.SearchBox(c.current);n.addListener("places_changed",(function(){var e=n.getPlaces();e&&0<e.length&&e.forEach((function(e){var n=e.formatted_address||e.name,a=e.geometry.location.lat(),l=e.geometry.location.lng();i(t.id,"location",n),i(t.id,"latitude",a),i(t.id,"longitude",l)}))}))},onChange:function(e){return i(t.id,"location",e.target.value)},disabled:!a}),!a&&wp.element.createElement("p",null,h("To enable locations earch, please ensure Places API is activated in the Google Developers Console.")+" ",wp.element.createElement(k,{href:"https://developers.google.com/places/web-service/intro"},h("More info.")))),wp.element.createElement(x,{label:h("Latitude"),type:"text",value:t.latitude,onChange:function(e){return i(t.id,"latitude",e)}}),wp.element.createElement(x,{label:h("Longitude"),type:"text",value:t.longitude,onChange:function(e){return i(t.id,"longitude",e)}}),wp.element.createElement(E,{label:h("Map Icon"),value:t.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:h("Red"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:h("Blue"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:h("Yellow"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:h("Green"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:h("Orange"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:function(e){return i(t.id,"icon",e)}}),wp.element.createElement(x,{label:h("Title"),type:"text",value:t.title,onChange:function(e){return i(t.id,"title",e)}}),wp.element.createElement(C,{label:h("Description"),type:"text",value:t.description,onChange:function(e){return i(t.id,"description",e)}})))};function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var R=wp.i18n.__,L=wp.components.Button,N=wp.element,A=N.Fragment,I=N.useEffect,z=N.useState,P=function(e){var t=e.initialOpen,n=e.markers,a=e.isPlaceAPIAvailable,l=e.addMarker,o=e.removeMarker,r=e.changeMarkerProp;I((function(){!1!==t&&d(t)}),[t]);var i=B(z(null),2),c=i[0],d=i[1],p=function(e){c===e&&(e=null),d(e)};return wp.element.createElement(A,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-google-map-marker-group"},n.map((function(e){return wp.element.createElement(M,{marker:e,isOpen:c,isPlaceAPIAvailable:a,openMarker:p,removeMarker:o,changeMarkerProp:r})}))),wp.element.createElement(L,{isDefault:!0,isLarge:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:l},R("Add Marker")))},H=wp.i18n.__,_=wp.components,D=_.BaseControl,j=_.Button,F=_.ExternalLink,G=_.PanelBody,V=_.RangeControl,W=_.SelectControl,q=_.TextControl,U=_.ToggleControl,Z=wp.blockEditor.InspectorControls,$=wp.element.useRef,Q=function(e){var t=e.attributes,n=e.setAttributes,a=e.map,l=e.changeStyle,o=e.isPlaceAPIAvailable,r=e.isMarkerOpen,i=e.setMarkerOpen,c=e.removeMarker,d=e.changeMarkerProp,p=e.addMarkerManual,m=e.api,s=e.isSaving,u=e.changeAPI,b=e.saveAPIKey,g=$(null);return wp.element.createElement(Z,null,wp.element.createElement(G,{title:H("Styles"),initialOpen:!1},wp.element.createElement(f.b,{value:t.style,options:[{label:H("Standard"),value:"standard",image:themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:H("Silver"),value:"silver",image:themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:H("Retro"),value:"retro",image:themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:H("Dark"),value:"dark",image:themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:H("Night"),value:"night",image:themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:H("Aubergine"),value:"aubergine",image:themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:l})),wp.element.createElement(G,{title:H("Location")},wp.element.createElement(D,{label:H("Location"),id:"wp-block-themeisle-blocks-google-map-search"},wp.element.createElement("input",{type:"text",id:"wp-block-themeisle-blocks-google-map-search",placeholder:H("Enter a location…"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:g,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var t=new google.maps.places.SearchBox(g.current);t.addListener("places_changed",(function(){var e=t.getPlaces();e&&0<e.length&&e.forEach((function(e){var t=e.geometry.location.lat(),l=e.geometry.location.lng(),o=new google.maps.LatLng(t,l);a.setCenter(o),n({location:e.formatted_address||e.name,latitude:t.toString(),longitude:l.toString()})}))}))},onChange:function(e){n({location:e.target.value})},disabled:!o}),!o&&wp.element.createElement("p",null,H("To enable locations earch, please ensure Places API is activated in the Google Developers Console.")+" ",wp.element.createElement(F,{href:"https://developers.google.com/places/web-service/intro"},H("More info.")))),wp.element.createElement(q,{label:H("Latitude"),type:"text",placeholder:H("Enter latitude…"),value:t.latitude,onChange:function(e){n({latitude:e.toString()});var l=Number(e),o=t.longitude,r=new google.maps.LatLng(l,o);a.setCenter(r)}}),wp.element.createElement(q,{label:H("Longitude"),type:"text",placeholder:H("Enter longitude"),value:t.longitude,onChange:function(e){n({longitude:e.toString()});var l=t.latitude,o=Number(e),r=new google.maps.LatLng(l,o);a.setCenter(r)}})),wp.element.createElement(G,{title:H("Positioning & Zooming"),initialOpen:!1},wp.element.createElement(W,{label:H("Map Type"),value:t.type,options:[{label:H("Road Map"),value:"roadmap"},{label:H("Satellite View"),value:"satellite"},{label:H("Hybrid"),value:"hybrid"},{label:H("Terrain"),value:"terrain"}],onChange:function(e){n({type:e}),a.setMapTypeId(google.maps.MapTypeId[e.toUpperCase()])}}),wp.element.createElement(V,{label:H("Map Zoom Level"),value:t.zoom,onChange:function(e){n({zoom:e}),a.setZoom(e)},min:0,max:20}),wp.element.createElement(V,{label:H("Map Height"),value:t.height,onChange:function(e){n({height:e})},min:100,max:1400})),wp.element.createElement(G,{title:H("Controls"),initialOpen:!1},wp.element.createElement(D,null,H("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.")),wp.element.createElement(U,{label:"Draggable Map",checked:t.draggable,onChange:function(){n({draggable:!t.draggable})}}),wp.element.createElement(U,{label:"Map Type Control",checked:t.mapTypeControl,onChange:function(){n({mapTypeControl:!t.mapTypeControl})}}),wp.element.createElement(U,{label:"Zoom Control",checked:t.zoomControl,onChange:function(){n({zoomControl:!t.zoomControl})}}),wp.element.createElement(U,{label:"Full Screen Control",checked:t.fullscreenControl,onChange:function(){n({fullscreenControl:!t.fullscreenControl})}}),wp.element.createElement(U,{label:"Streen View Control",checked:t.streetViewControl,onChange:function(){n({streetViewControl:!t.streetViewControl})}})),wp.element.createElement(G,{title:H("Markers"),initialOpen:!1,opened:!1!==r||void 0,onToggle:function(){!1!==r&&i(!0)}},wp.element.createElement(P,{markers:t.markers,removeMarker:c,changeMarkerProp:d,addMarker:p,isPlaceAPIAvailable:o,initialOpen:r})),wp.element.createElement(G,{title:H("Global Settings"),initialOpen:!1},wp.element.createElement(q,{label:H("Google Maps API Key"),type:"text",placeholder:H("Google Maps API Key"),value:m,className:"components-placeholder__input",onChange:u,help:H("Changing the API key effects all Google Map Embed blocks. You will have to refresh the page after changing your API keys.")}),wp.element.createElement(j,{isLarge:!0,isDefault:!0,type:"submit",onClick:b,isBusy:s},H("Save API Key"))))};function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Y=wp.i18n.__,X=wp.components,ee=X.BaseControl,te=X.Button,ne=X.ButtonGroup,ae=X.Modal,le=X.SelectControl,oe=X.TextControl,re=X.TextareaControl,ie=wp.element,ce=ie.useEffect,de=ie.useRef,pe=ie.useState,me=ie.Fragment,se=function(e){var t=e.marker,n=e.isAdvanced,a=e.isPlaceAPIAvailable,l=e.addMarker,o=e.close;ce((function(){d(t.id),s(t.location),g(t.title),y(t.icon),k(t.description),x(t.latitude),M(t.longitude)}),[t]);var r=de(null),i=K(pe(t.id),2),c=i[0],d=i[1],p=K(pe(t.location),2),m=p[0],s=p[1],u=K(pe(t.title),2),b=u[0],g=u[1],f=K(pe(t.icon),2),h=f[0],y=f[1],w=K(pe(t.description),2),v=w[0],k=w[1],T=K(pe(t.latitude),2),E=T[0],x=T[1],C=K(pe(t.longitude),2),S=C[0],M=C[1];return wp.element.createElement(ae,{title:Y("Add Marker"),onRequestClose:o,shouldCloseOnClickOutside:!1},n&&wp.element.createElement(me,null,wp.element.createElement(ee,{label:Y("Location"),id:"themeisle-location-search-".concat(t.id)},wp.element.createElement("input",{type:"text",id:"themeisle-location-search-".concat(c),placeholder:Y("Enter a location…"),value:m,className:"wp-block-themeisle-blocks-google-map-search",ref:r,onFocus:function(){var e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((function(t){return e[t].remove()}));var t=new google.maps.places.SearchBox(r.current);t.addListener("places_changed",(function(){var e=t.getPlaces();e&&0<e.length&&e.forEach((function(e){var t=e.formatted_address||e.name,n=e.geometry.location.lat(),a=e.geometry.location.lng();s(t),x(n),M(a)}))}))},onChange:function(e){return s(e.target.value)},disabled:!a})),wp.element.createElement(oe,{label:Y("Latitude"),type:"text",value:E,onChange:x}),wp.element.createElement(oe,{label:Y("Longitude"),type:"text",value:S,onChange:M})),wp.element.createElement(oe,{label:Y("Title"),type:"text",value:b,onChange:g}),wp.element.createElement(re,{label:Y("Description"),type:"text",value:v,onChange:k}),wp.element.createElement(le,{label:Y("Map Icon"),value:h||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:Y("Red"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:Y("Blue"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:Y("Yellow"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:Y("Green"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:Y("Orange"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:y}),wp.element.createElement(ne,null,wp.element.createElement(te,{isLarge:!0,isPrimary:!0,onClick:function(){return l(m,b,h,v,E,S)}},Y("Add")),wp.element.createElement(te,{isLarge:!0,isDefault:!0,onClick:o},Y("Cancel"))))},ue=wp.i18n.__,be=wp.components.Button,ge=wp.element,fe=ge.Fragment,he=ge.useEffect,ye=function(e){var t=e.attributes,n=e.className,a=e.initMap,l=e.displayMap,o=e.isMapLoaded,i=e.selectMarker,c=e.isSelectingMarker;return he((function(){l&&a()}),[l]),wp.element.createElement(fe,null,wp.element.createElement("div",{id:t.id,className:r()(n,{"is-selecting-marker":c}),style:{height:t.height+"px"}}),o&&wp.element.createElement(be,{className:"wp-block-themeisle-blocks-google-map-marker-button",title:ue("Add Button"),onClick:i},wp.element.createElement("span",{className:"dashicons dashicons-sticky"})))},we={standard:[],silver:[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],retro:[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],dark:[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],night:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],aubergine:[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]};function ve(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||Ee(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e){return function(e){if(Array.isArray(e))return xe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Ee(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){if(e){if("string"==typeof e)return xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,t):void 0}}function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Ce=wp.i18n.__,Se=wp.components.ResizableBox,Me=wp.element,Be=Me.Fragment,Oe=Me.useEffect,Re=Me.useRef,Le=Me.useState,Ne=[],Ae=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,o=e.isSelected,c=e.toggleSelection;Oe((function(){ee(),window.isMapLoaded=window.isMapLoaded||!1,window["removeMarker_".concat(l.substr(0,8))]=oe,m.current=document.createElement("script"),m.current.type="text/javascript",m.current.async=!0,m.current.defer=!0,m.current.id="themeisle-google-map-api-loading"}),[]),Oe((function(){!1!==x&&void 0!==window.google&&s.current.setOptions({mapTypeControl:!!o||t.mapTypeControl,zoomControl:!!o||t.zoomControl,fullscreenControl:!!o||t.fullscreenControl,streetViewControl:!!o||t.streetViewControl})}),[o]),Oe((function(){b.current=Te(t.markers)}),[t.markers]);var d=Re([]),p=Re(null),m=Re(null),s=Re(null),u=Re(null),b=Re(Te(t.markers)),h=ke(Le(""),2),y=h[0],w=h[1],v=ke(Le(!1),2),k=v[0],T=v[1],E=ke(Le(!1),2),x=E[0],C=E[1],S=ke(Le(!1),2),M=S[0],B=S[1],O=ke(Le(!1),2),R=O[0],L=O[1],N=ke(Le(!0),2),A=N[0],I=N[1],z=ke(Le(!1),2),P=z[0],H=z[1],_=ke(Le(!1),2),D=_[0],j=_[1],F=ke(Le(!1),2),G=F[0],V=F[1],W=ke(Le(!1),2),q=W[0],U=W[1],Z=ke(Le(!1),2),$=Z[0],K=Z[1],J=ke(Le({}),2),Y=J[0],X=J[1],ee=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t.id){e.next=7;break}return a="wp-block-themeisle-blocks-google-map-".concat(l.substr(0,8)),e.next=4,n({id:a});case 4:Ne.push(a),e.next=15;break;case 7:if(!Ne.includes(t.id)){e.next=14;break}return o="wp-block-themeisle-blocks-google-map-".concat(l.substr(0,8)),e.next=11,n({id:o});case 11:Ne.push(o),e.next=15;break;case 14:Ne.push(t.id);case 15:return e.next=17,wp.api.loadPromise.then((function(){p.current=new wp.api.models.Settings}));case 17:!1===Boolean(themeisleGutenberg.mapsAPI)?k||p.current.fetch().then((function(e){w(e.themeisle_google_map_block_api_key),T(!0),""!==e.themeisle_google_map_block_api_key&&(C(!0),te(e.themeisle_google_map_block_api_key))})):k||(w(themeisleGutenberg.mapsAPI),T(!0),C(!0),te(themeisleGutenberg.mapsAPI));case 18:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){ve(o,a,l,r,i,"next",e)}function i(e){ve(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}(),te=function(e){window.isMapLoaded||(window.isMapLoaded=!0,m.current.onload=function(){document.getElementById("themeisle-google-map-api-loading").id="themeisle-google-map-api",H(!0)},m.current.src="https://maps.googleapis.com/maps/api/js?key=".concat(e,"&libraries=places&cache=").concat(Math.random()),document.head.appendChild(m.current)),document.getElementById("themeisle-google-map-api")&&H(!0)},ne=function(e,t,n,a){var o='<div class="wp-block-themeisle-blocks-map-overview"><h6 class="wp-block-themeisle-blocks-map-overview-title">'.concat(n,'</h6><div class="wp-block-themeisle-blocks-map-overview-content">').concat(a?"<p>".concat(a,"</p>"):"",'<a class="wp-block-themeisle-blocks-map-overview-delete" onclick="removeMarker_').concat(l.substr(0,8),"( '").concat(t,"' )\">").concat(Ce("Delete Marker"),"</a></div></div>"),r=new google.maps.InfoWindow({content:o});e.addListener("click",(function(){u.current=r,r.open(s.current,e)})),google.maps.event.addListener(r,"domready",(function(){j(t)})),google.maps.event.addListener(r,"closeclick",(function(){j(!1)}))},ae=function(e){e.forEach((function(e){var t=e.latitude,n=e.longitude,a=new google.maps.LatLng(t,n),l=new google.maps.Marker({position:a,map:s.current,title:e.title,draggable:!0,icon:e.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png"});google.maps.event.addListener(l,"dragend",(function(t){var n=t.latLng.lat(),a=t.latLng.lng();le(e.id,"latitude",n),le(e.id,"longitude",a)})),d.current.push(l),google.maps.event.addListener(l,"click",(function(){u.current&&u.current.close()})),ne(l,e.id,e.title,e.description)}))},le=function(e,t,a){var l=Te(b.current);l.map((function(n){if(n.id===e)return n[t]=a.toString()})),re(),ae(l),n({markers:l})},oe=function(e){var t=Te(b.current);t=t.filter((function(t){return t.id!==e})),n({markers:t}),re(),j(!1),0<t.length&&ae(t)},re=function(){for(var e=0;e<d.current.length;e++)d.current[e].setMap(null);d.current=[]},ie=function(){!1===Boolean(themeisleGutenberg.mapsAPI)&&(L(!0),new wp.api.models.Settings({themeisle_google_map_block_api_key:y}).save().then((function(e){var t=!1;""!==e.themeisle_google_map_block_api_key&&(t=!0),L(!1),C(t),""!==e.themeisle_google_map_block_api_key&&(window.isMapLoaded=!1,te(e.themeisle_google_map_block_api_key))})))},ce=function(e){n({style:e}),s.current.setOptions({styles:we[e]})};return k&&x?wp.element.createElement(Be,null,wp.element.createElement(f.a,{label:Ce("Block Styles"),value:t.style,options:[{label:Ce("Standard"),value:"standard",image:themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:Ce("Silver"),value:"silver",image:themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:Ce("Retro"),value:"retro",image:themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:Ce("Dark"),value:"dark",image:themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:Ce("Night"),value:"night",image:themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:Ce("Aubergine"),value:"aubergine",image:themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:ce}),wp.element.createElement(Q,{attributes:t,setAttributes:n,map:s.current,changeStyle:ce,isPlaceAPIAvailable:A,isMarkerOpen:D,setMarkerOpen:j,removeMarker:oe,changeMarkerProp:le,addMarkerManual:function(){var e=Object(i.a)(),t=Ce("Custom Marker"),n=s.current.getCenter(),a=n.lat(),l=n.lng();U(!0),K(!0),X({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:l})},api:y,isSaving:R,changeAPI:w,saveAPIKey:ie}),q&&wp.element.createElement(se,{marker:Y,isAdvanced:$,isPlaceAPIAvailable:A,close:function(){return U(!1)},addMarker:function(e,a,l,o,r,c){var p=new google.maps.LatLng(r,c),m=Object(i.a)(),b=new google.maps.Marker({position:p,map:s.current,title:a,draggable:!0,icon:l});google.maps.event.addListener(b,"dragend",(function(e){var t=e.latLng.lat(),n=e.latLng.lng();le(m,"latitude",t),le(m,"longitude",n)})),d.current.push(b);var g=Te(t.markers),f={id:m,location:e,title:a,icon:l,description:o,latitude:r,longitude:c};g.push(f),n({markers:g}),google.maps.event.addListener(b,"click",(function(){u.current&&u.current.close()})),ne(b,f.id,a,o),U(!1),V(!1)}}),wp.element.createElement(Se,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:function(){c(!1)},onResizeStop:function(e,a,l,o){n({height:parseInt(t.height+o.height,10)}),c(!0)},className:r()("wp-block-themeisle-blocks-google-map-resizer",{"is-focused":o})},wp.element.createElement(ye,{attributes:t,className:a,initMap:function(){if(s.current=new google.maps.Map(document.getElementById(t.id),{center:{lat:Number(t.latitude)||41.4036299,lng:Number(t.longitude)||2.1743558000000576},gestureHandling:"cooperative",zoom:t.zoom,mapTypeId:t.type,styles:we[t.style]}),t.location&&void 0===t.latitude&&void 0===t.longitude){var e={query:t.location,fields:["name","geometry"]};new google.maps.places.PlacesService(s.current).findPlaceFromQuery(e,(function(e,t){t===google.maps.places.PlacesServiceStatus.OK&&0<e.length&&s.current.setCenter(e[0].geometry.location)}))}google.maps.event.addListenerOnce(s.current,"idle",(function(){B(!0)})),s.current.addListener("zoom_changed",(function(){var e=s.current.getZoom();n({zoom:e})})),s.current.addListener("maptypeid_changed",(function(){var e=s.current.getMapTypeId();n({type:e})})),s.current.addListener("bounds_changed",(function(){var e=s.current.getCenter(),t=e.lat(),a=e.lng();n({latitude:t.toString(),longitude:a.toString()})})),0<t.markers.length&&ae(t.markers);var a={query:t.location,fields:["name","geometry"]};new google.maps.places.PlacesService(s.current).findPlaceFromQuery(a,(function(e,t){"REQUEST_DENIED"===t&&I(!1)}))},displayMap:P,isMapLoaded:M,selectMarker:function(){V(!G),G?google.maps.event.clearListeners(s.current,"click"):s.current.addListener("click",(function(e){google.maps.event.clearListeners(s.current,"click");var t=Object(i.a)(),n=Ce("Custom Marker"),a=e.latLng.lat(),l=e.latLng.lng();U(!0),K(!1),X({id:t,location:"",title:n,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:l})}))},isSelectingMarker:G}))):wp.element.createElement(g,{className:a,api:y,isAPILoaded:k,isAPISaved:x,changeAPI:w,saveAPIKey:ie})},Ie=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/google-map",{title:Ie("Google Map"),description:Ie("Display a Google Map on your website with Google Map block."),icon:a.j,category:"themeisle-blocks",keywords:["map","google","orbitfox"],attributes:l,supports:{align:["wide","full"],html:!1},edit:Ae,save:function(){return null}})},function(e,t,n){"use strict";n.r(t);n(86),n(87);var a={id:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-themeisle-blocks-slider-item-wrapper",query:{id:{type:"number",source:"attribute",selector:"img",attribute:"data-id"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption",default:""}}},perView:{type:"number",default:1},gap:{type:"number",default:0},peek:{type:"number",default:0},autoplay:{type:"boolean",default:!0},delay:{type:"number",default:2},hideArrows:{type:"boolean",default:!1},hideBullets:{type:"boolean",default:!1},height:{type:"number",default:400}},l=n(0),o=n.n(l),r=wp.components,i=r.Path,c=r.SVG,d=wp.element.Fragment,p=function(e){var t=e.attributes;return wp.element.createElement(d,null,!t.hideArrows&&wp.element.createElement("div",{className:"glide__arrows","data-glide-el":"controls"},wp.element.createElement("button",{className:"glide__arrow glide__arrow--left","data-glide-dir":"<"},wp.element.createElement(c,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},wp.element.createElement(i,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"}))),wp.element.createElement("button",{className:"glide__arrow glide__arrow--right","data-glide-dir":">"},wp.element.createElement(c,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 100 100"},wp.element.createElement(i,{d:"M 10,50 L 60,100 L 70,90 L 30,50 L 70,10 L 60,0 Z"})))),!t.hideBullets&&wp.element.createElement("div",{className:"glide__bullets","data-glide-el":"controls[nav]"},t.images.map((function(e,t){return wp.element.createElement("button",{className:"glide__bullet","data-glide-dir":"=".concat(t)})}))))},m=wp.blockEditor.RichText,s=[{attributes:{id:{type:"string"},align:{type:"string"},images:{type:"array",default:[],source:"query",selector:".wp-block-themeisle-blocks-slider-item-wrapper",query:{id:{type:"number",source:"attribute",selector:"img",attribute:"data-id"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption",default:""}}},perView:{type:"number",default:1},gap:{type:"number",default:0},peek:{type:"number",default:0},autoplay:{type:"boolean",default:!0},height:{type:"number",default:400}},supports:{align:["wide","full"]},save:function(e){var t=e.attributes,n=e.className;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":t.autoplay},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides",style:{height:"".concat(t.height,"px")}},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.createElement("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!m.isEmpty(e.caption)&&wp.element.createElement(m.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(p,{attributes:t})))}}],u=lodash,b=u.filter,g=u.every,f=wp.blocks.createBlock,h={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=g(e,["align",t])?t:void 0;var n=b(e,(function(e){return e.url}));return f("themeisle-blocks/slider",{images:n.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:t})}},{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.align;return f("themeisle-blocks/slider",{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:n})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return 0<t.length?t.map((function(e){var t=e.id,a=e.url,l=e.alt,o=e.caption;return f("core/image",{id:t,url:a,alt:l,caption:o,align:n})})):f("core/image",{align:n})}},{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.align;return f("core/gallery",{images:t.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})),align:n})}}]},y=lodash.debounce,w=wp.blockEditor.MediaPlaceholder,v=function(e){var t=e.labels,n=e.icon,a=e.isAppender,l=void 0!==a&&a,o=e.value,r=void 0===o?{}:o,i=e.onSelectImages,c=y(i,250);return wp.element.createElement(w,{labels:t,icon:n,accept:"image/*",allowedTypes:["image"],isAppender:l,className:"wp-block-themeisle-blocks-slider-uploader",value:r,onSelect:c,multiple:!0})},k=wp.i18n.__,T=lodash.max,E=wp.blockEditor.InspectorControls,x=wp.components,C=x.PanelBody,S=x.RangeControl,M=x.ToggleControl,B=wp.element.Fragment,O=function(e){var t=e.attributes,n=e.setAttributes,a=e.slider,l=e.changePerView;return wp.element.createElement(E,null,wp.element.createElement(C,{title:k("Settings")},t.images.length&&wp.element.createElement(B,null,wp.element.createElement(S,{label:k("Slides Per Page"),help:k("A number of visible slides."),value:t.perView,onChange:l,min:1,max:T([Math.round(t.images.length/2),1])}),1<t.perView&&wp.element.createElement(B,null,wp.element.createElement(S,{label:k("Gap"),help:k("A size of the space between slides."),value:t.gap,onChange:function(e){n({gap:Number(e)}),a.update({gap:Number(e)})},min:0,max:100}),wp.element.createElement(S,{label:k("Peek"),help:k("The value of the future slides which have to be visible in the current slide."),value:t.peek,onChange:function(e){n({peek:Number(e)}),a.update({peek:Number(e)})},min:0,max:100})),wp.element.createElement(S,{label:k("Height"),help:k("Slider height in pixels."),value:t.height,onChange:function(e){n({height:Number(e)})},min:100,max:1400}),wp.element.createElement(M,{label:k("Autoplay"),help:k("Autoplay slider in the front."),checked:t.autoplay,onChange:function(e){n({autoplay:e})}}),t.autoplay&&wp.element.createElement(S,{label:k("Delay"),help:k("Delay in slide change (in seconds)."),value:t.delay,onChange:function(e){n({delay:e})},min:1,max:10}),wp.element.createElement(M,{label:k("Hide Arrows"),help:k("Hide navigation arrows."),checked:t.hideArrows,onChange:function(e){n({hideArrows:e})}}),wp.element.createElement(M,{label:k("Hide Bullets"),help:k("Hide navigation bullets."),checked:t.hideBullets,onChange:function(e){n({hideBullets:e})}}))))};function R(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var N=wp.i18n.__,A=lodash.filter,I=wp.blockEditor.RichText,z=wp.components.IconButton,P=wp.element.Fragment,H=function(e){var t=e.images,n=e.image,a=e.index,l=e.isFirstItem,r=e.isLastItem,i=e.isSelected,c=e.setAttributes,d=e.setSelectedImage,p=function(e,n){var a=R(t);a.splice(n,1,t[e]),a.splice(e,1,t[n]),d(n),c({images:a})};return wp.element.createElement("div",{className:o()("wp-block-themeisle-blocks-slider-item-wrapper glide__slide",{"is-selected":i}),tabIndex:"0",onClick:function(){return d(n.id)},onFocus:function(){return d(n.id)}},wp.element.createElement("figure",null,wp.element.createElement("img",{key:n.id,className:"wp-block-themeisle-blocks-slider-item",src:n.url,alt:n.alt,title:n.alt,"data-id":n.id}),i&&wp.element.createElement(P,null,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-move-menu"},wp.element.createElement(z,{icon:"arrow-left-alt2",onClick:l?void 0:function(){0!==a&&p(a,a-1)},className:"wp-block-themeisle-blocks-slider-item-move-backward",label:N("Move image backward"),"aria-disabled":l,disabled:!i}),wp.element.createElement(z,{icon:"arrow-right-alt2",onClick:r?void 0:function(){a!==t.length-1&&p(a,a+1)},className:"wp-block-themeisle-blocks-slider-item-move-forward",label:N("Move image forward"),"aria-disabled":r,disabled:!i})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-delete-menu"},wp.element.createElement(z,{icon:"no-alt",onClick:function(){var e=A(t,(function(e,t){return a!==t}));d(null),c({images:e})},className:"wp-block-themeisle-blocks-slider-item-delete",label:N("Remove image")}))),(i||!I.isEmpty(n.caption))&&wp.element.createElement(I,{tagName:"figcaption",placeholder:i?N("Write caption…"):null,value:n.caption,onChange:function(e){var n=R(t);n[a].caption=e,c({images:n})},multiline:!1})))};function _(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||F(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||F(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){if(e){if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var V=wp.i18n.__,W=lodash.max,q=wp.components.ResizableBox,U=wp.element,Z=U.Fragment,$=U.useEffect,Q=U.useRef,K=U.useState,J=[],Y=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,l=e.clientId,r=e.isSelected,i=e.toggleSelection;$((function(){return b(),function(){t.images.length&&c.current.destroy()}}),[]),$((function(){t.images.length&&(u(null),null!==c.current&&(c.current.destroy(),g()))}),[r,t.align]),$((function(){t.images.length&&t.perView>t.images.length&&h(W([Math.round(t.images.length/2),1]))}),[t.images]);var c=Q(null),d=Q(null),m=j(K(null),2),s=m[0],u=m[1],b=function(){var e,a=(e=regeneratorRuntime.mark((function e(){var a,o,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[],void 0!==t.id){e.next=10;break}return o="wp-block-themeisle-blocks-slider-".concat(l.substr(0,8)),e.next=5,n({id:o});case 5:J.push(o),d.current=o,a.push(o),e.next=21;break;case 10:if(!J.includes(t.id)){e.next=18;break}return r="wp-block-themeisle-blocks-slider-".concat(l.substr(0,8)),e.next=14,n({id:r});case 14:J.push(r),d.current=r,e.next=21;break;case 18:J.push(t.id),d.current=t.id,a.push(t.id);case 21:window.themeisleGutenberg.blockIDs=_(a),t.images.length&&g();case 23:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){D(o,a,l,r,i,"next",e)}function i(e){D(o,a,l,r,i,"throw",e)}r(void 0)}))});return function(){return a.apply(this,arguments)}}(),g=function(){c.current=new Glide("#".concat(t.id||d.current),{type:"carousel",keyboard:!1,perView:t.perView,gap:t.gap,peek:t.peek,autoplay:!1,breakpoints:{800:{perView:1,peek:0,gap:0}}}).mount()},f=function(e){n({images:e.map((function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}))}),null!==c.current&&c.current.destroy(),g()},h=function(e){n({perView:Number(e)}),c.current.update({perView:Number(e)}),1===e&&(n({gap:0,peek:0}),c.current.update({gap:0,peek:0}))};return Array.isArray(t.images)&&!t.images.length?wp.element.createElement(v,{labels:{title:V("Slider"),instructions:V("Drag images, upload new ones or select files from your library.")},icon:"images-alt2",onSelectImages:f}):wp.element.createElement(Z,null,wp.element.createElement(O,{attributes:t,setAttributes:n,slider:c.current,changePerView:h}),wp.element.createElement(q,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:function(){i(!1)},onResizeStop:function(e,a,l,o){n({height:parseInt(t.height+o.height,10)}),i(!0)},className:o()("wp-block-themeisle-blocks-slider-resizer",{"is-focused":r})},wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",a)},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides",style:{height:"".concat(t.height,"px")}},t.images.map((function(e,a){return wp.element.createElement(H,{images:t.images,image:e,index:a,isFirstItem:0===a,isLastItem:a+1===t.images.length,isSelected:r&&e.id===s,setAttributes:n,setSelectedImage:u})}))),wp.element.createElement(p,{attributes:t})))),r&&wp.element.createElement(v,{labels:{title:"",instructions:""},icon:null,onSelectImages:f,isAppender:!0,value:t.images}))},X=wp.blockEditor.RichText,ee=function(e){var t=e.attributes,n=e.className,a=t.autoplay&&2!==t.delay?1e3*t.delay:t.autoplay;return wp.element.createElement("div",{id:t.id,className:o()("wp-block-themeisle-blocks-slider","glide",n),"data-per-view":t.perView,"data-gap":t.gap,"data-peek":t.peek,"data-autoplay":a,"data-height":"".concat(t.height,"px")},wp.element.createElement("div",{className:"glide__track","data-glide-el":"track"},wp.element.createElement("div",{className:"glide__slides"},t.images.map((function(e){return wp.element.createElement("div",{className:"wp-block-themeisle-blocks-slider-item-wrapper glide__slide",tabIndex:"0"},wp.element.createElement("figure",null,wp.element.createElement("img",{key:e.id,className:"wp-block-themeisle-blocks-slider-item",src:e.url,alt:e.alt,title:e.alt,"data-id":e.id}),!X.isEmpty(e.caption)&&wp.element.createElement(X.Content,{tagName:"figcaption",value:e.caption})))}))),wp.element.createElement(p,{attributes:t})))},te=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/slider",{title:te("Slider"),description:te("Minimal image slider to showcase beautiful images."),icon:"images-alt2",category:"themeisle-blocks",keywords:["slider","gallery","carousel"],attributes:a,deprecated:s,transforms:h,supports:{align:["wide","full"]},edit:Y,save:ee})},function(e,t,n){"use strict";n.r(t);n(55),n(56);var a=n(2),l={id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""},{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""}]}},o=n(0),r=n.n(o);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=lodash.times,m=wp.editor.RichText,s=wp.element.Fragment,u=[{attributes:{id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number",default:18},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string",default:"normal"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24},{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24}]}},save:function(e){var t=e.attributes,n=t.id,a=t.buttons,l=t.align,o=t.collapse,i=t.fontSize,d=t.fontFamily,u=t.fontStyle,b=t.fontVariant,g=t.textTransform,f=t.lineHeight,h=t.data,y={fontSize:"".concat(i,"px"),fontFamily:d,fontWeight:b,fontStyle:u,textTransform:g,lineHeight:f&&"".concat(f,"px")},w="collapse-none"!==o?o:"";return wp.element.createElement("div",{id:n,className:r()(e.className,w),style:{justifyContent:l,alignItems:l||"flex-start"}},p(a,(function(e){return function(e){var t=c({},y,{borderWidth:"".concat(h[e].borderSize,"px"),borderRadius:"".concat(h[e].borderRadius,"px"),padding:"".concat(h[e].paddingTopBottom,"px ").concat(h[e].paddingLeftRight,"px")});return wp.element.createElement(s,null,wp.element.createElement("a",{href:h[e].link,target:h[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e)),style:t},("left"===h[e].iconType||"only"===h[e].iconType)&&wp.element.createElement("i",{className:r()(h[e].prefix,"fa-fw","fa-".concat(h[e].icon),{"margin-right":"left"===h[e].iconType})}),"only"!==h[e].iconType&&wp.element.createElement(m.Content,{tagName:"span",value:h[e].text}),"right"===h[e].iconType&&wp.element.createElement("i",{className:"".concat(h[e].prefix," fa-fw fa-").concat(h[e].icon," margin-left")})))}(e)})))}},{attributes:{id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number",default:18},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string",default:"normal"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24},{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24}]}},save:function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse?t.collapse:"",l={fontSize:"".concat(t.fontSize,"px"),fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px")};return wp.element.createElement("div",{id:t.id,className:r()(n,a),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},p(t.buttons,(function(e){return function(e){var n=c({},l,{borderWidth:"".concat(t.data[e].borderSize,"px"),borderRadius:"".concat(t.data[e].borderRadius,"px"),padding:"".concat(t.data[e].paddingTopBottom,"px ").concat(t.data[e].paddingLeftRight,"px")});return wp.element.createElement(s,null,wp.element.createElement("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(e)),style:n,rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&wp.element.createElement("i",{className:r()(t.data[e].prefix,"fa-fw","fa-".concat(t.data[e].icon),{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&wp.element.createElement(m.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&wp.element.createElement("i",{className:"".concat(t.data[e].prefix," fa-fw fa-").concat(t.data[e].icon," margin-left")})))}(e)})))}}],b=n(18),g=n.n(b),f=n(5),h=n(9),y=wp.i18n.__,w=wp.components,v=w.Dropdown,k=w.IconButton,T=w.RangeControl,E=w.Toolbar,x=wp.blockEditor,C=x.AlignmentToolbar,S=x.BlockControls,M=wp.element.Fragment,B=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontSize,l=e.changeFontFamily,o=e.changeFontVariant,r=e.changeFontStyle,i=e.changeTextTransform,c=e.changeLineHeight;return wp.element.createElement(S,null,wp.element.createElement(C,{value:t.align,onChange:function(e){n({align:e})},alignmentControls:[{icon:"editor-alignleft",title:y("Align left"),align:"flex-start"},{icon:"editor-aligncenter",title:y("Align center"),align:"center"},{icon:"editor-alignright",title:y("Align right"),align:"flex-end"}]}),wp.element.createElement(E,{className:"wp-themesiel-blocks-button-group-components-toolbar"},wp.element.createElement(v,{contentClassName:"wp-themesiel-blocks-button-group-popover-content",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(k,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:n,"aria-haspopup":"true","aria-expanded":t,label:y("Typography Settings"),tooltip:y("Typography Settings")},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(M,null,wp.element.createElement(T,{label:y("Font Size"),value:t.fontSize,onChange:a,min:0,max:50}),wp.element.createElement(h.a,{label:y("Font Family"),value:t.fontFamily,onChangeFontFamily:l,isSelect:!0,valueVariant:t.fontVariant,onChangeFontVariant:o,valueStyle:t.fontStyle,onChangeFontStyle:r,valueTransform:t.textTransform,onChangeTextTransform:i}),wp.element.createElement(T,{label:y("Line Height"),value:t.lineHeight,onChange:c,min:0,max:200}))}})))},O=n(7),R=n(8),L=n(20),N=n(4);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 I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var P=wp.i18n.__,H=lodash.times,_=wp.components,D=_.BaseControl,j=_.Button,F=_.ButtonGroup,G=_.Dashicon,V=_.Dropdown,W=_.MenuGroup,q=_.MenuItem,U=_.Icon,Z=_.PanelBody,$=_.Placeholder,Q=_.RangeControl,K=_.SelectControl,J=_.Spinner,Y=_.ToggleControl,X=wp.blockEditor,ee=X.ColorPalette,te=X.InspectorControls,ne=wp.element,ae=ne.Fragment,le=ne.useState,oe=React.lazy((function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,106))})),re=function(e){var t=e.attributes,n=e.setAttributes,l=e.selectedButton,o=e.wait,i=e.changeButtons,c=e.changeButton,d=e.updateButton,p=e.changeFontSize,m=e.changeFontFamily,s=e.changeFontVariant,u=e.changeFontStyle,b=e.changeTextTransform,g=e.changeLineHeight,f=I(le("buttons"),2),y=f[0],w=f[1],v=I(le(!1),2),k=v[0],T=v[1];return wp.element.createElement(te,null,wp.element.createElement(Z,{className:"wp-block-themeisle-blocks-button-group-header-panel"},wp.element.createElement(j,{className:r()("header-tab",{"is-selected":"buttons"===y}),onClick:function(){return w("buttons")}},wp.element.createElement("span",null,wp.element.createElement(U,{icon:a.d}),P("Buttons"))),wp.element.createElement(j,{className:r()("header-tab",{"is-selected":"group"===y}),onClick:function(){return w("group")}},wp.element.createElement("span",null,wp.element.createElement(G,{icon:"admin-generic"}),P("Group Settings")))),"buttons"===y&&wp.element.createElement(ae,null,wp.element.createElement(Z,{opened:!0},wp.element.createElement(Q,{label:P("Number of Buttons"),value:t.buttons,onChange:i,min:1,max:5}),wp.element.createElement(D,{label:P("Edit Button"),className:"wp-block-themeisle-blocks-select-button-container"},wp.element.createElement(V,{contentClassName:"wp-block-themeisle-blocks-select-button-popover",position:"bottom center",renderToggle:function(e){var n=e.isOpen,a=e.onToggle;return wp.element.createElement(j,{isLarge:!0,className:"wp-block-themeisle-blocks-select-button-button",onClick:a,"aria-expanded":n},P("Button")+" "+(l+1)+": "+Object(O.b)(t.data[l].text))},renderContent:function(e){var n=e.onToggle;return wp.element.createElement(W,null,H(t.buttons,(function(e){return wp.element.createElement(q,{onClick:function(){c(e),n()}},P("Button")+" "+(e+1)+": "+Object(O.b)(t.data[e].text))})))}}))),o?wp.element.createElement($,{className:"wp-themeisle-block-spinner"},wp.element.createElement(J,null)):wp.element.createElement(ae,null,wp.element.createElement(Z,{title:P("Link")},wp.element.createElement(L.a,{label:"Link",placeholder:P("https://…"),value:t.data[l].link,onChange:function(e){return d({link:e},l)}},wp.element.createElement(Y,{label:"Open in New Tab?",checked:t.data[l].newTab,onChange:function(){return d({newTab:!t.data[l].newTab},l)}}))),wp.element.createElement(Z,{title:P("Color & Border"),initialOpen:!1},wp.element.createElement(F,{className:"wp-block-themeisle-blocks-button-group-hover-control"},wp.element.createElement(j,{isDefault:!0,isLarge:!0,isPrimary:!k,onClick:function(){return T(!1)}},P("Normal")),wp.element.createElement(j,{isDefault:!0,isLarge:!0,isPrimary:k,onClick:function(){return T(!0)}},P("Hover"))),k?wp.element.createElement(ae,null,wp.element.createElement(D,{label:"Hover Color"},wp.element.createElement(ee,{label:"Hover Color",value:t.data[l].hoverColor,onChange:function(e){return d({hoverColor:e},l)}})),wp.element.createElement(D,{label:"Hover Background"},wp.element.createElement(ee,{label:"Hover Background",value:t.data[l].hoverBackground,onChange:function(e){return d({hoverBackground:e},l)}})),wp.element.createElement(D,{label:"Hover Border"},wp.element.createElement(ee,{label:"Hover Border",value:t.data[l].hoverBorder,onChange:function(e){return d({hoverBorder:e},l)}}))):wp.element.createElement(ae,null,wp.element.createElement(D,{label:"Color"},wp.element.createElement(ee,{label:"Color",value:t.data[l].color,onChange:function(e){return d({color:e},l)}})),wp.element.createElement(D,{label:"Background"},wp.element.createElement(ee,{label:"Background",value:t.data[l].background,onChange:function(e){return d({background:e},l)}})),wp.element.createElement(D,{label:"Border"},wp.element.createElement(ee,{label:"Border",value:t.data[l].border,onChange:function(e){return d({border:e},l)}}))),wp.element.createElement(Q,{label:P("Border Width"),className:"border-width",beforeIcon:"move",value:t.data[l].borderSize,onChange:function(e){return d({borderSize:e},l)},min:0,max:10}),wp.element.createElement(Q,{label:P("Border Radius"),beforeIcon:"move",value:t.data[l].borderRadius,onChange:function(e){return d({borderRadius:e},l)},min:0,max:100})),wp.element.createElement(Z,{title:P("Box Shadow"),initialOpen:!1},wp.element.createElement(Y,{label:"Box Shadow",checked:t.data[l].boxShadow,onChange:function(){return d({boxShadow:!t.data[l].boxShadow},l)}}),t.data[l].boxShadow&&wp.element.createElement(ae,null,wp.element.createElement(F,{className:"wp-block-themeisle-blocks-button-group-hover-control"},wp.element.createElement(j,{isDefault:!0,isLarge:!0,isPrimary:!k,onClick:function(){return T(!1)}},P("Normal")),wp.element.createElement(j,{isDefault:!0,isLarge:!0,isPrimary:k,onClick:function(){return T(!0)}},P("Hover"))),!k&&wp.element.createElement(ae,null,wp.element.createElement(D,{label:"Shadow Color"},wp.element.createElement(ee,{label:"Shadow Color",value:t.data[l].boxShadowColor,onChange:function(e){return d({boxShadowColor:e},l)}})),wp.element.createElement(R.a,{label:"Shadow Properties"},wp.element.createElement(Q,{label:P("Opacity"),value:t.data[l].boxShadowColorOpacity,onChange:function(e){return d({boxShadowColorOpacity:e},l)},min:0,max:100}),wp.element.createElement(Q,{label:P("Blur"),value:t.data[l].boxShadowBlur,onChange:function(e){return d({boxShadowBlur:e},l)},min:0,max:100}),wp.element.createElement(Q,{label:P("Spread"),value:t.data[l].boxShadowSpread,onChange:function(e){return d({boxShadowSpread:e},l)},min:-100,max:100}),wp.element.createElement(Q,{label:P("Horizontal"),value:t.data[l].boxShadowHorizontal,onChange:function(e){return d({boxShadowHorizontal:e},l)},min:-100,max:100}),wp.element.createElement(Q,{label:P("Vertical"),value:t.data[l].boxShadowVertical,onChange:function(e){return d({boxShadowVertical:e},l)},min:-100,max:100})))||k&&wp.element.createElement(ae,null,wp.element.createElement(D,{label:"Hover Shadow Color"},wp.element.createElement(ee,{label:"Hover Shadow Color",value:t.data[l].hoverBoxShadowColor,onChange:function(e){return d({hoverBoxShadowColor:e},l)}})),wp.element.createElement(R.a,{label:"Hover Shadow Properties"},wp.element.createElement(Q,{label:P("Opacity"),value:t.data[l].hoverBoxShadowColorOpacity,onChange:function(e){return d({hoverBoxShadowColorOpacity:e},l)},min:0,max:100}),wp.element.createElement(Q,{label:P("Blur"),value:t.data[l].hoverBoxShadowBlur,onChange:function(e){return d({hoverBoxShadowBlur:e},l)},min:0,max:100}),wp.element.createElement(Q,{label:P("Spread"),value:t.data[l].hoverBoxShadowSpread,onChange:function(e){return d({hoverBoxShadowSpread:e},l)},min:-100,max:100}),wp.element.createElement(Q,{label:P("Horizontal"),value:t.data[l].hoverBoxShadowHorizontal,onChange:function(e){return d({hoverBoxShadowHorizontal:e},l)},min:-100,max:100}),wp.element.createElement(Q,{label:P("Vertical"),value:t.data[l].hoverBoxShadowVertical,onChange:function(e){return d({hoverBoxShadowVertical:e},l)},min:-100,max:100}))))),wp.element.createElement(Z,{title:P("Icon Settings"),initialOpen:!1},wp.element.createElement(K,{label:P("Icon Position"),value:t.data[l].iconType,options:[{label:"No Icon",value:"none"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Icon Only",value:"only"}],onChange:function(e){return d({iconType:e},l)}}),"none"!==t.data[l].iconType&&wp.element.createElement(ae,null,wp.element.createElement(React.Suspense,{fallback:wp.element.createElement($,{className:"wp-themeisle-block-spinner"},wp.element.createElement(J,null))},wp.element.createElement(oe,{label:P("Icon Picker"),prefix:t.data[l].prefix,icon:t.data[l].icon,onChange:function(e){"object"===A(e)?d({icon:e.name,prefix:e.prefix},l):d({icon:e},l)}})))),wp.element.createElement(Z,{title:P("Spacing"),initialOpen:!1},wp.element.createElement(N.a,{label:P("Padding"),min:0,max:100,onChange:function(e,t){return function(e,t,n){"top"!==e&&"bottom"!==e||d({paddingTopBottom:t},n),"left"!==e&&"right"!==e||d({paddingLeftRight:t},n)}(e,t,l)},options:[{label:P("Top"),type:"top",value:t.data[l].paddingTopBottom},{label:P("Right"),type:"right",value:t.data[l].paddingLeftRight},{label:P("Bottom"),type:"bottom",value:t.data[l].paddingTopBottom},{label:P("Left"),type:"left",value:t.data[l].paddingLeftRight}]}))))||"group"===y&&wp.element.createElement(ae,null,wp.element.createElement(Z,{title:P("Spacing")},wp.element.createElement(Q,{label:P("Spacing"),value:t.spacing,onChange:function(e){n({spacing:e})},min:0,max:50}),wp.element.createElement(K,{label:P("Collapse On"),value:t.collapse,options:[{label:"None",value:"collapse-none"},{label:"Desktop",value:"collapse-desktop"},{label:"Tablet",value:"collapse-tablet"},{label:"Mobile",value:"collapse-mobile"}],onChange:function(e){n({collapse:e})}})),wp.element.createElement(Z,{title:P("Typography Settings"),initialOpen:!1},wp.element.createElement(Q,{label:P("Font Size"),value:t.fontSize,onChange:p,min:0,max:50}),wp.element.createElement(h.a,{label:P("Font Family"),value:t.fontFamily,onChangeFontFamily:m,valueVariant:t.fontVariant,onChangeFontVariant:s,valueStyle:t.fontStyle,onChangeFontStyle:u,valueTransform:t.textTransform,onChangeTextTransform:b}),wp.element.createElement(Q,{label:P("Line Height"),value:t.lineHeight,onChange:g,min:0,max:200}))))},ie=n(6),ce=n.n(ie);function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return se(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var ue=wp.i18n.__,be=wp.blockEditor.RichText,ge=wp.element,fe=ge.Fragment,he=ge.useState,ye=function(e){var t=e.index,n=e.attributes,a=e.changeButton,l=e.updateButton,o=me(he((function(){return 0===t})),2),i=o[0],c=o[1],d={};n.data[t].boxShadow&&(d={boxShadow:"".concat(n.data[t].boxShadowHorizontal,"px ").concat(n.data[t].boxShadowVertical,"px ").concat(n.data[t].boxShadowBlur,"px ").concat(n.data[t].boxShadowSpread,"px ").concat(ce()(n.data[t].boxShadowColor?n.data[t].boxShadowColor:"#000000",n.data[t].boxShadowColorOpacity))});var p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily,fontWeight:n.fontVariant,fontStyle:n.fontStyle,textTransform:n.textTransform,lineHeight:n.lineHeight&&"".concat(n.lineHeight,"px"),color:n.data[t].color,background:n.data[t].background,border:"".concat(n.data[t].borderSize,"px solid ").concat(n.data[t].border),borderRadius:"".concat(n.data[t].borderRadius,"px"),paddingTop:"".concat(n.data[t].paddingTopBottom,"px"),paddingBottom:"".concat(n.data[t].paddingTopBottom,"px"),paddingLeft:"".concat(n.data[t].paddingLeftRight,"px"),paddingRight:"".concat(n.data[t].paddingLeftRight,"px"),marginLeft:0===t?"0px":"".concat(n.spacing/2,"px"),marginRight:n.buttons===t+1?"0px":"".concat(n.spacing/2,"px")},d);return wp.element.createElement(fe,null,wp.element.createElement("style",null,"#".concat(n.id," .wp-block-themeisle-blocks-button-").concat(t,":hover {\n\t\t\t\t\tcolor: ").concat(n.data[t].hoverColor?n.data[t].hoverColor:n.data[t].color," !important;\n\t\t\t\t\tbackground: ").concat(n.data[t].hoverBackground?n.data[t].hoverBackground:n.data[t].background," !important;\n\t\t\t\t\tborder: ").concat(n.data[t].borderSize,"px solid ").concat(n.data[t].hoverBorder?n.data[t].hoverBorder:n.data[t].border," !important;\n\t\t\t\t\t").concat(n.data[t].boxShadow?"box-shadow: ".concat(n.data[t].hoverBoxShadowHorizontal,"px ").concat(n.data[t].hoverBoxShadowVertical,"px ").concat(n.data[t].hoverBoxShadowBlur,"px ").concat(n.data[t].hoverBoxShadowSpread,"px ").concat(ce()(n.data[t].hoverBoxShadowColor?n.data[t].hoverBoxShadowColor:"#000000",n.data[t].hoverBoxShadowColorOpacity)," !important;"):"","\n\t\t\t\t}")),wp.element.createElement("div",{style:p,className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(t),"wp-block-button__link"),onClick:function(){c(!0),a(t)},onBlur:function(){return c(!1)}},("left"===n.data[t].iconType||"only"===n.data[t].iconType)&&wp.element.createElement("i",{className:r()(n.data[t].prefix,"fa-fw","fa-".concat(n.data[t].icon),{"margin-right":"left"===n.data[t].iconType})}),"only"!==n.data[t].iconType&&wp.element.createElement(be,{placeholder:ue("Add text…"),value:n.data[t].text,onChange:function(e){return l({text:e},t)},tagName:"div",keepPlaceholderOnFocus:i,withoutInteractiveFormatting:!0}),"right"===n.data[t].iconType&&wp.element.createElement("i",{className:"".concat(n.data[t].prefix," fa-fw fa-").concat(n.data[t].icon," margin-left")})))};function we(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||ke(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(e){return function(e){if(Array.isArray(e))return Te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ke(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e,t){if(e){if("string"==typeof e)return Te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Te(e,t):void 0}}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){Ce(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Se=wp.i18n.__,Me=lodash,Be=Me.isEqual,Oe=Me.omit,Re=Me.pick,Le=Me.times,Ne=wp.components.IconButton,Ae=wp.element,Ie=Ae.Fragment,ze=Ae.useEffect,Pe=Ae.useState,He=[],_e=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.name,i=e.isSelected,c=e.clientId;ze((function(){d()}),[]);var d=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,r="wp-block-themeisle-blocks-button-group-".concat(c.substr(0,8));if(void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&!Be(f.a[o],window.themeisleGutenberg.globalDefaults[o])){a=Oe(xe({},window.themeisleGutenberg.globalDefaults[o]),"data"),Object.keys(a).map((function(e){if(t[e]!==a[e]&&(void 0!==l[e].default||void 0!==l[e].default&&t[e]!==l[e].default))return delete a[e]}));var i=Re(xe({},window.themeisleGutenberg.globalDefaults[o]),"data"),d=[];t.data.forEach((function(e,t){var n=xe({},i.data);Object.keys(n).map((function(a){if(e[a]!==n[a]&&(void 0===l.data.default[t][a]||void 0!==l.data.default[t][a]&&e[a]!==l.data.default[t][a]))return delete n[a]})),d.push(xe({},e,{},n))})),Be(d,t.data)||(a.data=d)}n(xe({},a,{id:r})),He.push(r),e.push(r)}else if(He.includes(t.id)){var p="wp-block-themeisle-blocks-button-group-".concat(c.substr(0,8));n({id:p}),He.push(p)}else He.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=ve(e)},p=we(Pe(0),2),m=p[0],s=p[1],u=we(Pe(!1),2),b=u[0],h=u[1],y=function(e){s(e),h(!0),setTimeout((function(){h(!1)}),500)},w=function(e){if(1<=e&&5>=e){if(t.data.length<e){var a=ve(t.data);Le(e-t.data.length,(function(){a.push({text:t.data[0].text,link:t.data[0].link,newTab:t.data[0].newTab,color:t.data[0].color,border:t.data[0].border,background:t.data[0].background,hoverColor:t.data[0].hoverColor,hoverBackground:t.data[0].hoverBackground,hoverBorder:t.data[0].hoverBorder,borderSize:t.data[0].borderSize,borderRadius:t.data[0].borderRadius,boxShadow:t.data[0].boxShadow,boxShadowColor:t.data[0].boxShadowColor,boxShadowColorOpacity:t.data[0].boxShadowColorOpacity,boxShadowBlur:t.data[0].boxShadowBlur,boxShadowSpread:t.data[0].boxShadowSpread,boxShadowHorizontal:t.data[0].boxShadowHorizontal,boxShadowVertical:t.data[0].boxShadowVertical,hoverBoxShadowColor:t.data[0].hoverBoxShadowColor,hoverBoxShadowColorOpacity:t.data[0].hoverBoxShadowColorOpacity,hoverBoxShadowBlur:t.data[0].hoverBoxShadowBlur,hoverBoxShadowSpread:t.data[0].hoverBoxShadowSpread,hoverBoxShadowHorizontal:t.data[0].hoverBoxShadowHorizontal,hoverBoxShadowVertical:t.data[0].hoverBoxShadowVertical,iconType:t.data[0].iconType,prefix:t.data[0].prefix,icon:t.data[0].icon,paddingTopBottom:t.data[0].paddingTopBottom,paddingLeftRight:t.data[0].paddingLeftRight})})),n({data:a})}n({buttons:e}),s(0)}},v=function(e){n({fontSize:e})},k=function(e){n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},T=function(e){n({fontVariant:e})},E=function(e){n({fontStyle:e})},x=function(e){n({textTransform:e})},C=function(e){n({lineHeight:e})},S=function(e,a){var l=t.data.map((function(t,n){return a===n&&(t=xe({},t,{},e)),t}));n({data:l})},M="collapse-none"!==t.collapse?t.collapse:"";return wp.element.createElement(Ie,null,t.fontFamily&&wp.element.createElement(g.a,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&["".concat(t.fontVariant+("italic"===t.fontStyle?":i":""))]}]}),wp.element.createElement(B,{attributes:t,setAttributes:n,changeFontSize:v,changeFontFamily:k,changeFontVariant:T,changeFontStyle:E,changeTextTransform:x,changeLineHeight:C}),wp.element.createElement(re,{attributes:t,setAttributes:n,selectedButton:m,wait:b,changeButtons:w,changeButton:y,updateButton:S,changeFontSize:v,changeFontFamily:k,changeFontVariant:T,changeFontStyle:E,changeTextTransform:x,changeLineHeight:C}),wp.element.createElement("div",{id:t.id,className:r()(a,M,"wp-block-button"),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},Le(t.buttons,(function(e){return wp.element.createElement(ye,{index:e,attributes:t,isSelected:i,changeButton:y,updateButton:S})})),i&&4>=t.buttons&&wp.element.createElement(Ne,{className:"wp-block-themeisle-blocks-button-inserter",icon:"plus-alt",onClick:function(){return w(t.buttons+1)},label:Se("Add Button")})))},De=wp.blockEditor.RichText,je=wp.element.Fragment,Fe=function(e){var t=e.index,n=e.attributes;return wp.element.createElement(je,null,wp.element.createElement("a",{href:n.data[t].link,target:n.data[t].newTab?"_blank":"_self",className:r()("wp-block-themeisle-blocks-button","wp-block-themeisle-blocks-button-".concat(t),"wp-block-button__link"),rel:"noopener noreferrer"},("left"===n.data[t].iconType||"only"===n.data[t].iconType)&&wp.element.createElement("i",{className:r()(n.data[t].prefix,"fa-fw","fa-".concat(n.data[t].icon),{"margin-right":"left"===n.data[t].iconType})}),"only"!==n.data[t].iconType&&wp.element.createElement(De.Content,{tagName:"span",value:n.data[t].text}),"right"===n.data[t].iconType&&wp.element.createElement("i",{className:"".concat(n.data[t].prefix," fa-fw fa-").concat(n.data[t].icon," margin-left")})))},Ge=lodash.times,Ve=function(e){var t=e.attributes,n=e.className,a="collapse-none"!==t.collapse&&t.collapse;return wp.element.createElement("div",{id:t.id,className:r()(n,a,"wp-block-button")},Ge(t.buttons,(function(e){return wp.element.createElement(Fe,{index:e,attributes:t})})))},We=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/button-group",{title:We("Button Group"),description:We("Prompt visitors to take action with a button group."),icon:a.d,category:"themeisle-blocks",keywords:[We("buttons"),We("button group"),We("advanced buttons")],attributes:l,deprecated:u,edit:_e,save:Ve})},function(e,t,n){"use strict";n.r(t);n(39);var a=n(2);n(40);function l(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var r=e.apply(t,n);function i(e){l(r,a,o,i,c,"next",e)}function c(e){l(r,a,o,i,c,"throw",e)}i(void 0)}))}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var c=wp.i18n.__,d=wp.blocks.getBlockType,p=wp.components,m=p.Button,s=p.Icon,u=p.Modal,b=wp.element,g=b.Fragment,f=b.useState,h=function(e){var t=e.blockName,n=e.saveConfig,a=e.resetConfig,l=e.children,i=d(t),p=r(f(!1),2),b=p[0],h=p[1],y=r(f(!1),2),w=y[0],v=y[1];return i?wp.element.createElement(g,null,wp.element.createElement(m,{className:"wp-block-themeisle-blocks-options-global-defaults-list-item block-editor-block-types-list__item",onClick:function(){return h(!0)}},wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list-item-icon"},wp.element.createElement(s,{icon:i.icon.src})),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list-item-title"},i.title)),b&&wp.element.createElement(u,{title:i.title,onRequestClose:function(){return h(!1)},shouldCloseOnClickOutside:!1,overlayClassName:"wp-block-themeisle-blocks-options-global-defaults-modal"},l,wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-actions"},wp.element.createElement(m,{isLink:!0,isDestructive:!0,onClick:function(){return a(t)}},c("Reset")),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-actions-primary"},wp.element.createElement(m,{isDefault:!0,isLarge:!0,onClick:function(){return h(!1)}},c("Close")),wp.element.createElement(m,{isPrimary:!0,isLarge:!0,isBusy:w,onClick:o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v(!0),e.next=3,n();case 3:v(!1);case 4:case"end":return e.stop()}}),e)})))},c("Save")))))):null},y=n(9),w=n(3),v=n(4);function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=wp.i18n.__,E=wp.blockEditor.ColorPalette,x=wp.components,C=x.BaseControl,S=x.PanelBody,M=x.RangeControl,B=x.SelectControl,O=wp.compose.compose,R=wp.data.withSelect,L=wp.element.Fragment,N=O(R((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=e.view,o=function(){var e;return"Desktop"===l&&(e=n.fontSize),"Tablet"===l&&(e=n.fontSizeTablet),"Mobile"===l&&(e=n.fontSizeMobile),e};o=o();var r=function(){var e;return"Desktop"===l&&(e=n.paddingType),"Tablet"===l&&(e=n.paddingTypeTablet),"Mobile"===l&&(e=n.paddingTypeMobile),e};r=r();var i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},c={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},d={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},p=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},m=function(){var e;return"Desktop"===l&&(e=n.marginType),"Tablet"===l&&(e=n.marginTypeTablet),"Mobile"===l&&(e=n.marginTypeMobile),e};m=m();var s={top:"marginTop",bottom:"marginBottom"},u={top:"marginTopTablet",bottom:"marginBottomTablet"},b={top:"marginTopMobile",bottom:"marginBottomMobile"},g=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),t};return wp.element.createElement(L,null,wp.element.createElement(S,{title:T("General Settings")},wp.element.createElement(B,{label:T("HTML Tag"),value:n.tag,options:[{label:T("Heading 1"),value:"h1"},{label:T("Heading 2"),value:"h2"},{label:T("Heading 3"),value:"h3"},{label:T("Heading 4"),value:"h4"},{label:T("Heading 5"),value:"h5"},{label:T("Heading 6"),value:"h6"},{label:T("Division"),value:"div"},{label:T("Paragraph"),value:"p"},{label:T("Span"),value:"span"}],onChange:function(e){return a(t,{tag:e})}}),wp.element.createElement(C,{label:"Heading Color"},wp.element.createElement(E,{value:n.headingColor,onChange:function(e){return a(t,{headingColor:e})}})),wp.element.createElement("hr",null),wp.element.createElement(w.a,{label:"Font Size"},wp.element.createElement(M,{value:o||"",onChange:function(e){"Desktop"===l&&a(t,{fontSize:e}),"Tablet"===l&&a(t,{fontSizeTablet:e}),"Mobile"===l&&a(t,{fontSizeMobile:e})},min:1,max:500}))),wp.element.createElement(S,{title:T("Typography Settings"),initialOpen:!1},wp.element.createElement(y.a,{label:T("Font Family"),value:n.fontFamily,onChangeFontFamily:function(e){a(t,e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:n.fontVariant,onChangeFontVariant:function(e){return a(t,{fontVariant:e})},valueStyle:n.fontStyle,onChangeFontStyle:function(e){return a(t,{fontStyle:e})},valueTransform:n.textTransform,onChangeTextTransform:function(e){return a(t,{textTransform:e})}}),wp.element.createElement("hr",null),wp.element.createElement(M,{label:T("Line Height"),value:n.lineHeight||"",onChange:function(e){return a(t,{lineHeight:e})},min:0,max:200}),wp.element.createElement("hr",null),wp.element.createElement(M,{label:T("Letter Spacing"),value:n.letterSpacing||"",onChange:function(e){return a(t,{letterSpacing:e})},min:-50,max:100})),wp.element.createElement(S,{title:T("Spacing"),initialOpen:!1},wp.element.createElement(w.a,{label:"Padding"},wp.element.createElement(v.a,{type:r,min:0,max:500,changeType:function(e){"Desktop"===l&&a(t,{paddingType:e}),"Tablet"===l&&a(t,{paddingTypeTablet:e}),"Mobile"===l&&a(t,{paddingTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.paddingType?a(t,{padding:o}):a(t,k({},i[e],o))),"Tablet"===l&&("linked"===n.paddingTypeTablet?a(t,{paddingTablet:o}):a(t,k({},c[e],o))),"Mobile"===l&&("linked"===n.paddingTypeMobile?a(t,{paddingMobile:o}):a(t,k({},d[e],o)))},options:[{label:T("Top"),type:"top",value:p("top")},{label:T("Right"),type:"right",value:p("right")},{label:T("Bottom"),type:"bottom",value:p("bottom")},{label:T("Left"),type:"left",value:p("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(w.a,{label:"Margin"},wp.element.createElement(v.a,{type:m,min:-500,max:500,changeType:function(e){"Desktop"===l&&a(t,{marginType:e}),"Tablet"===l&&a(t,{marginTypeTablet:e}),"Mobile"===l&&a(t,{marginTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.marginType?a(t,{margin:o}):a(t,k({},s[e],o))),"Tablet"===l&&("linked"===n.marginTypeTablet?a(t,{marginTablet:o}):a(t,k({},u[e],o))),"Mobile"===l&&("linked"===n.marginTypeMobile?a(t,{marginMobile:o}):a(t,k({},b[e],o)))},options:[{label:T("Top"),type:"top",value:g("top")},{label:T("Right"),disabled:!0},{label:T("Bottom"),type:"bottom",value:g("bottom")},{label:T("Left"),disabled:!0}]}))))}));function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var z=wp.i18n.__,P=lodash.cloneDeep,H=wp.components,_=H.BaseControl,D=H.Button,j=H.ButtonGroup,F=H.PanelBody,G=H.RangeControl,V=H.SelectControl,W=wp.blockEditor.ColorPalette,q=wp.element,U=q.Fragment,Z=q.useState,$=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=A(Z(!1),2),o=l[0],r=l[1],i=function(e,l){var o=P(n.data);o[e]=l,a(t,{data:o})};return wp.element.createElement(U,null,wp.element.createElement(F,{title:z("Color & Border")},wp.element.createElement(j,{className:"wp-block-themeisle-blocks-button-group-hover-control"},wp.element.createElement(D,{isDefault:!0,isLarge:!0,isPrimary:!o,onClick:function(){return r(!1)}},z("Normal")),wp.element.createElement(D,{isDefault:!0,isLarge:!0,isPrimary:o,onClick:function(){return r(!0)}},z("Hover"))),o?wp.element.createElement(U,null,wp.element.createElement(_,{label:"Hover Color"},wp.element.createElement(W,{label:"Hover Color",value:n.data.hoverColor,onChange:function(e){return i("hoverColor",e)}})),wp.element.createElement("hr",null),wp.element.createElement(_,{label:"Hover Background"},wp.element.createElement(W,{label:"Hover Background",value:n.data.hoverBackground,onChange:function(e){return i("hoverBackground",e)}})),wp.element.createElement("hr",null),wp.element.createElement(_,{label:"Hover Border"},wp.element.createElement(W,{label:"Hover Border",value:n.data.hoverBorder,onChange:function(e){return i("hoverBorder",e)}}))):wp.element.createElement(U,null,wp.element.createElement(_,{label:"Color"},wp.element.createElement(W,{label:"Color",value:n.data.color,onChange:function(e){return i("color",e)}})),wp.element.createElement("hr",null),wp.element.createElement(_,{label:"Background"},wp.element.createElement(W,{label:"Background",value:n.data.background,onChange:function(e){return i("background",e)}})),wp.element.createElement("hr",null),wp.element.createElement(_,{label:"Border"},wp.element.createElement(W,{label:"Border",value:n.data.border,onChange:function(e){return i("border",e)}}))),wp.element.createElement("hr",null),wp.element.createElement(G,{label:z("Border Size"),value:n.data.borderSize||"",onChange:function(e){return i("borderSize",e)},min:0,max:10}),wp.element.createElement("hr",null),wp.element.createElement(G,{label:z("Border Radius"),value:n.data.borderRadius||"",onChange:function(e){return i("borderRadius",e)},min:0,max:100})),wp.element.createElement(F,{title:z("Spacing"),initialOpen:!1},wp.element.createElement(v.a,{label:z("Button Padding"),min:0,max:100,onChange:i,options:[{label:z("Top"),type:"paddingTopBottom",value:n.data.paddingTopBottom},{label:z("Right"),type:"paddingLeftRight",value:n.data.paddingLeftRight},{label:z("Bottom"),type:"paddingTopBottom",value:n.data.paddingTopBottom},{label:z("Left"),type:"paddingLeftRight",value:n.data.paddingLeftRight}]}),wp.element.createElement("hr",null),wp.element.createElement(G,{label:z("Group Spacing"),value:n.spacing,onChange:function(e){return a(t,{spacing:e})},min:0,max:50}),wp.element.createElement("hr",null),wp.element.createElement(V,{label:z("Collapse On"),value:n.collapse,options:[{label:"None",value:"collapse-none"},{label:"Desktop",value:"collapse-desktop"},{label:"Tablet",value:"collapse-tablet"},{label:"Mobile",value:"collapse-mobile"}],onChange:function(e){return a(t,{collapse:e})}})),wp.element.createElement(F,{title:z("Typography Settings"),initialOpen:!1},wp.element.createElement(G,{label:z("Font Size"),value:n.fontSize||"",onChange:function(e){return a(t,{fontSize:e})},min:0,max:50}),wp.element.createElement("hr",null),wp.element.createElement(y.a,{label:z("Font Family"),value:n.fontFamily,onChangeFontFamily:function(e){a(t,e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:n.fontVariant,onChangeFontVariant:function(e){return a(t,{fontVariant:e})},valueStyle:n.fontStyle,onChangeFontStyle:function(e){return a(t,{fontStyle:e})},valueTransform:n.textTransform,onChangeTextTransform:function(e){return a(t,{textTransform:e})}}),wp.element.createElement("hr",null),wp.element.createElement(G,{label:z("Line Height"),value:n.lineHeight||"",onChange:function(e){return a(t,{lineHeight:e})},min:0,max:200})))};function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return K(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var J=wp.i18n.__,Y=wp.components,X=Y.BaseControl,ee=Y.Button,te=Y.ButtonGroup,ne=Y.PanelBody,ae=Y.RangeControl,le=wp.blockEditor,oe=le.ColorPalette,re=le.ContrastChecker,ie=wp.element,ce=ie.Fragment,de=ie.useState,pe=function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=Q(de(!1),2),o=l[0],r=l[1];return wp.element.createElement(ce,null,wp.element.createElement(ne,{title:J("Sizing")},wp.element.createElement(ae,{label:J("Icon Size"),value:n.fontSize||"",initialPosition:16,onChange:function(e){return a(t,{fontSize:e})},min:12,max:140,beforeIcon:"minus",afterIcon:"plus"}),wp.element.createElement("hr",null),wp.element.createElement(ae,{label:J("Padding"),value:n.padding||"",initialPosition:5,onChange:function(e){return a(t,{padding:e})},min:0,max:100,beforeIcon:"minus",afterIcon:"plus"}),wp.element.createElement("hr",null),wp.element.createElement(ae,{label:J("Margin"),value:n.margin||"",initialPosition:5,onChange:function(e){return a(t,{margin:e})},min:0,max:100,beforeIcon:"minus",afterIcon:"plus"})),wp.element.createElement(ne,{title:J("Color"),initialOpen:!1},wp.element.createElement(te,{className:"wp-block-themeisle-blocks-font-awesome-icons-hover-control"},wp.element.createElement(ee,{isDefault:!0,isLarge:!0,isPrimary:!o,onClick:function(){return r(!1)}},J("Normal")),wp.element.createElement(ee,{isDefault:!0,isLarge:!0,isPrimary:o,onClick:function(){return r(!0)}},J("Hover"))),o?wp.element.createElement(ce,null,wp.element.createElement(X,{label:"Hover Background"},wp.element.createElement(oe,{label:"Hover Background",value:n.backgroundColorHover,onChange:function(e){return a(t,{backgroundColorHover:e})}})),wp.element.createElement(X,{label:"Hover Icon"},wp.element.createElement(oe,{label:"Hover Icon",value:n.textColorHover,onChange:function(e){return a(t,{textColorHover:e})}})),wp.element.createElement(re,{textColor:n.textColorHover,backgroundColor:n.backgroundColorHover})):wp.element.createElement(ce,null,wp.element.createElement(X,{label:"Background"},wp.element.createElement(oe,{label:"Background",value:n.backgroundColor,onChange:function(e){return a(t,{backgroundColor:e})}})),wp.element.createElement(X,{label:"Icon"},wp.element.createElement(oe,{label:"Icon",value:n.textColor,onChange:function(e){return a(t,{textColor:e})}})),wp.element.createElement(re,{textColor:n.textColor,backgroundColor:n.backgroundColor}))))};function me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var se=wp.i18n.__,ue=wp.components,be=ue.BaseControl,ge=ue.Button,fe=ue.ButtonGroup,he=ue.Icon,ye=ue.IconButton,we=ue.PanelBody,ve=ue.RangeControl,ke=ue.SelectControl,Te=ue.ToggleControl,Ee=ue.Tooltip,xe=wp.compose.compose,Ce=wp.data.withSelect,Se=wp.element.Fragment,Me=xe(Ce((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.blockName,n=e.defaults,l=e.changeConfig,o=e.view,r=function(){var e;return"Desktop"===o&&(e=n.paddingType),"Tablet"===o&&(e=n.paddingTypeTablet),"Mobile"===o&&(e=n.paddingTypeMobile),e};r=r();var i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},c={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},d={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},p=function(e){var t;return"top"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===o&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===o&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===o&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},m=function(){var e;return"Desktop"===o&&(e=n.marginType),"Tablet"===o&&(e=n.marginTypeTablet),"Mobile"===o&&(e=n.marginTypeMobile),e};m=m();var s={top:"marginTop",bottom:"marginBottom"},u={top:"marginTopTablet",bottom:"marginBottomTablet"},b={top:"marginTopMobile",bottom:"marginBottomMobile"},g=function(e){var t;return"top"==e&&("Desktop"===o&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===o&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===o&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"bottom"==e&&("Desktop"===o&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===o&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===o&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),t},f=function(e){if(n.horizontalAlign===e)return l(t,{horizontalAlign:"unset"});l(t,{horizontalAlign:e})},h=function(){var e;return"Desktop"===o&&(e=n.columnsHeightCustom),"Tablet"===o&&(e=n.columnsHeightCustomTablet),"Mobile"===o&&(e=n.columnsHeightCustomMobile),e};h=h();var y=function(e){if(n.verticalAlign===e)return l(t,{verticalAlign:"unset"});l(t,{verticalAlign:e})};return wp.element.createElement(Se,null,wp.element.createElement(we,{title:se("Sizing")},wp.element.createElement(ke,{label:se("Columns Gap"),value:n.columnsGap,options:[{label:"Default (10px)",value:"default"},{label:"No Gap",value:"nogap"},{label:"Narrow (5px)",value:"narrow"},{label:"Extended (15px)",value:"extended"},{label:"Wide (20px)",value:"wide"},{label:"Wider (30px)",value:"wider"}],onChange:function(e){return l(t,{columnsGap:e})}}),wp.element.createElement(w.a,{label:"Padding"},wp.element.createElement(v.a,{type:r,min:0,max:500,changeType:function(e){"Desktop"===o&&l(t,{paddingType:e}),"Tablet"===o&&l(t,{paddingTypeTablet:e}),"Mobile"===o&&l(t,{paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===o&&("linked"===n.paddingType?l(t,{padding:a}):l(t,me({},i[e],a))),"Tablet"===o&&("linked"===n.paddingTypeTablet?l(t,{paddingTablet:a}):l(t,me({},c[e],a))),"Mobile"===o&&("linked"===n.paddingTypeMobile?l(t,{paddingMobile:a}):l(t,me({},d[e],a)))},options:[{label:se("Top"),type:"top",value:p("top")},{label:se("Right"),type:"right",value:p("right")},{label:se("Bottom"),type:"bottom",value:p("bottom")},{label:se("Left"),type:"left",value:p("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(w.a,{label:"Margin"},wp.element.createElement(v.a,{type:m,min:-500,max:500,changeType:function(e){"Desktop"===o&&l(t,{marginType:e}),"Tablet"===o&&l(t,{marginTypeTablet:e}),"Mobile"===o&&l(t,{marginTypeMobile:e})},onChange:function(e,a){"Desktop"===o&&("linked"===n.marginType?l(t,{margin:a}):l(t,me({},s[e],a))),"Tablet"===o&&("linked"===n.marginTypeTablet?l(t,{marginTablet:a}):l(t,me({},u[e],a))),"Mobile"===o&&("linked"===n.marginTypeMobile?l(t,{marginMobile:a}):l(t,me({},b[e],a)))},options:[{label:se("Top"),type:"top",value:g("top")},{label:se("Right"),disabled:!0},{label:se("Bottom"),type:"bottom",value:g("bottom")},{label:se("Left"),disabled:!0}]}))),wp.element.createElement(we,{title:se("Section Structure"),initialOpen:!1},wp.element.createElement(ke,{label:se("HTML Tag"),value:n.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){return l(t,{columnsHTMLTag:e})}}),wp.element.createElement("hr",null),wp.element.createElement(ve,{label:se("Maximum Content Width"),value:n.columnsWidth||"",onChange:function(e){(0<=e&&1200>=e||void 0===e)&&l(t,{columnsWidth:e})},min:0,max:1200}),wp.element.createElement("hr",null),n.columnsWidth&&wp.element.createElement(Se,null,wp.element.createElement(be,{label:"Horizontal Align"},wp.element.createElement(fe,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(Ee,{text:se("Left")},wp.element.createElement(ye,{icon:"editor-alignleft",className:"is-button is-large",isPrimary:"flex-start"===n.horizontalAlign,onClick:function(){return f("flex-start")}})),wp.element.createElement(Ee,{text:se("Center")},wp.element.createElement(ye,{icon:"editor-aligncenter",className:"is-button is-large",isPrimary:"center"===n.horizontalAlign,onClick:function(){return f("center")}})),wp.element.createElement(Ee,{text:se("Right")},wp.element.createElement(ye,{icon:"editor-alignright",className:"is-button is-large",isPrimary:"flex-end"===n.horizontalAlign,onClick:function(){return f("flex-end")}})))),wp.element.createElement("hr",null)),wp.element.createElement(ke,{label:se("Minimum Height"),value:n.columnsHeight,options:[{label:"Default",value:"auto"},{label:"Fit to Screen",value:"100vh"},{label:"Custom",value:"custom"}],onChange:function(e){return l(t,{columnsHeight:e})}}),wp.element.createElement("hr",null),"custom"===n.columnsHeight&&wp.element.createElement(Se,null,wp.element.createElement(w.a,{label:"Custom Height"},wp.element.createElement(ve,{value:h||"",onChange:function(e){"Desktop"===o&&l(t,{columnsHeightCustom:e}),"Tablet"===o&&l(t,{columnsHeightCustomTablet:e}),"Mobile"===o&&l(t,{columnsHeightCustomMobile:e})},min:0,max:1e3})),wp.element.createElement("hr",null)),wp.element.createElement(be,{label:"Vertical Align"},wp.element.createElement(fe,{className:"wp-block-themeisle-icon-buttom-group"},wp.element.createElement(Ee,{text:se("Top")},wp.element.createElement(ge,{className:"components-icon-button is-button is-large",isPrimary:"flex-start"===n.verticalAlign,onClick:function(){return y("flex-start")}},wp.element.createElement(he,{icon:a.t,size:20}))),wp.element.createElement(Ee,{text:se("Middle")},wp.element.createElement(ge,{className:"components-icon-button is-button is-large",isPrimary:"center"===n.verticalAlign,onClick:function(){return y("center")}},wp.element.createElement(he,{icon:a.k,size:20}))),wp.element.createElement(Ee,{text:se("Bottom")},wp.element.createElement(ge,{className:"components-icon-button is-button is-large",isPrimary:"flex-end"===n.verticalAlign,onClick:function(){return y("flex-end")}},wp.element.createElement(he,{icon:a.c,size:20})))))),wp.element.createElement(we,{title:se("Responsive"),initialOpen:!1},wp.element.createElement(Te,{label:"Hide this section in Desktop devices?",checked:n.hide,onChange:function(e){return l(t,{hide:e})}}),wp.element.createElement(Te,{label:"Hide this section in Tablet devices?",checked:n.hideTablet,onChange:function(e){return l(t,{hideTablet:e})}}),wp.element.createElement(Te,{label:"Hide this section in Mobile devices?",checked:n.hideMobile,onChange:function(e){return l(t,{hideMobile:e})}})))}));function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oe=wp.i18n.__,Re=wp.components,Le=Re.PanelBody,Ne=Re.SelectControl,Ae=wp.compose.compose,Ie=wp.data.withSelect,ze=wp.element.Fragment,Pe=Ae(Ie((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.blockName,n=e.defaults,a=e.changeConfig,l=e.view,o=function(){var e;return"Desktop"===l&&(e=n.paddingType),"Tablet"===l&&(e=n.paddingTypeTablet),"Mobile"===l&&(e=n.paddingTypeMobile),e};o=o();var r={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},i={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},c={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},d=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingTop),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingTopTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingRight),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingRightTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingBottom),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingBottomTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.paddingType?n.padding:n.paddingLeft),"Tablet"===l&&(t="linked"===n.paddingTypeTablet?n.paddingTablet:n.paddingLeftTablet),"Mobile"===l&&(t="linked"===n.paddingTypeMobile?n.paddingMobile:n.paddingLeftMobile)),t},p=function(){var e;return"Desktop"===l&&(e=n.marginType),"Tablet"===l&&(e=n.marginTypeTablet),"Mobile"===l&&(e=n.marginTypeMobile),e};p=p();var m={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},s={top:"marginTopTablet",right:"marginRightTablet",bottom:"marginBottomTablet",left:"marginLeftTablet"},u={top:"marginTopMobile",right:"marginRightMobile",bottom:"marginBottomMobile",left:"marginLeftMobile"},b=function(e){var t;return"top"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginTop),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginTopTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginTopMobile)),"right"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginRight),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginRightTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginRightMobile)),"bottom"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginBottom),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginBottomTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginBottomMobile)),"left"==e&&("Desktop"===l&&(t="linked"===n.marginType?n.margin:n.marginLeft),"Tablet"===l&&(t="linked"===n.marginTypeTablet?n.marginTablet:n.marginLeftTablet),"Mobile"===l&&(t="linked"===n.marginTypeMobile?n.marginMobile:n.marginLeftMobile)),t};return wp.element.createElement(ze,null,wp.element.createElement(Le,{title:Oe("Sizing")},wp.element.createElement(w.a,{label:"Padding"},wp.element.createElement(v.a,{type:o,min:0,max:500,changeType:function(e){"Desktop"===l&&a(t,{paddingType:e}),"Tablet"===l&&a(t,{paddingTypeTablet:e}),"Mobile"===l&&a(t,{paddingTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.paddingType?a(t,{padding:o}):a(t,Be({},r[e],o))),"Tablet"===l&&("linked"===n.paddingTypeTablet?a(t,{paddingTablet:o}):a(t,Be({},i[e],o))),"Mobile"===l&&("linked"===n.paddingTypeMobile?a(t,{paddingMobile:o}):a(t,Be({},c[e],o)))},options:[{label:Oe("Top"),type:"top",value:d("top")},{label:Oe("Right"),type:"right",value:d("right")},{label:Oe("Bottom"),type:"bottom",value:d("bottom")},{label:Oe("Left"),type:"left",value:d("left")}]})),wp.element.createElement("hr",null),wp.element.createElement(w.a,{label:"Margin"},wp.element.createElement(v.a,{type:p,min:-500,max:500,changeType:function(e){"Desktop"===l&&a(t,{marginType:e}),"Tablet"===l&&a(t,{marginTypeTablet:e}),"Mobile"===l&&a(t,{marginTypeMobile:e})},onChange:function(e,o){"Desktop"===l&&("linked"===n.marginType?a(t,{margin:o}):a(t,Be({},m[e],o))),"Tablet"===l&&("linked"===n.marginTypeTablet?a(t,{marginTablet:o}):a(t,Be({},s[e],o))),"Mobile"===l&&("linked"===n.marginTypeMobile?a(t,{marginMobile:o}):a(t,Be({},u[e],o)))},options:[{label:Oe("Top"),type:"top",value:b("top")},{label:Oe("Right"),type:"right",value:b("right")},{label:Oe("Bottom"),type:"bottom",value:b("bottom")},{label:Oe("Left"),type:"left",value:b("left")}]}))),wp.element.createElement(Le,{title:Oe("Section Settings"),initialOpen:!1},wp.element.createElement(Ne,{label:Oe("HTML Tag"),value:n.columnsHTMLTag,options:[{label:"Default (div)",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:function(e){return a(t,{columnsHTMLTag:e})}})))})),He=wp.i18n.__,_e=wp.components.PanelBody,De=function(e){var t=e.blockDefaults,n=e.changeConfig,a=e.resetConfig,l=e.saveConfig,o=[{name:"themeisle-blocks/advanced-heading",control:N},{name:"themeisle-blocks/button-group",control:$},{name:"themeisle-blocks/font-awesome-icons",control:pe},{name:"themeisle-blocks/advanced-columns",control:Me},{name:"themeisle-blocks/advanced-column",control:Pe}];return wp.element.createElement(_e,{title:"Global Defaults",className:"wp-block-themeisle-blocks-options-global-defaults"},He("With Global Defaults, you can set site-wide block defaults for Otter."),wp.element.createElement("div",{className:"wp-block-themeisle-blocks-options-global-defaults-list"},o.map((function(e){var o=e.control;return wp.element.createElement(h,{blockName:e.name,saveConfig:l,resetConfig:a},wp.element.createElement(o,{blockName:e.name,defaults:t[e.name],changeConfig:n}))}))))},je=n(5);function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return We(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return We(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function qe(e){return(qe="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 Ue(e,t,n,a,l,o,r){try{var i=e[o](r),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(a,l)}function Ze(e){return function(){var t=this,n=arguments;return new Promise((function(a,l){var o=e.apply(t,n);function r(e){Ue(o,a,l,r,i,"next",e)}function i(e){Ue(o,a,l,r,i,"throw",e)}r(void 0)}))}}var $e=wp.i18n.__,Qe=lodash,Ke=Qe.cloneDeep,Je=Qe.isEqual,Ye=Qe.merge,Xe=wp.apiFetch,et=wp.components,tt=et.PanelBody,nt=et.Snackbar,at=et.ToggleControl,lt=wp.data.withDispatch,ot=wp.element,rt=ot.Fragment,it=ot.useEffect,ct=ot.useRef,dt=ot.useState,pt=wp.editPost,mt=pt.PluginSidebar,st=pt.PluginSidebarMoreMenuItem,ut=lt((function(e){return{createNotice:e("core/notices").createNotice}}))((function(e){var t=e.createNotice;it(Ze(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xe({path:"wp/v2/users/me?context=edit"});case 2:if(!e.sent.capabilities.manage_options){e.next=8;break}return l(!0),e.next=7,wp.api.loadPromise.then((function(){b.current=new wp.api.models.Settings}));case 7:!1===r&&b.current.fetch().then((function(e){if(u(Boolean(e.themeisle_blocks_settings_default_block)),""!==e.themeisle_blocks_settings_global_defaults){var t=Ke(je.a);"object"===qe(window.themeisleGutenberg.themeDefaults)&&(t=Ye(t,window.themeisleGutenberg.themeDefaults)),t=Ye(t,JSON.parse(e.themeisle_blocks_settings_global_defaults)),window.themeisleGutenberg.globalDefaults=JSON.parse(e.themeisle_blocks_settings_global_defaults),p(t)}else{var n=Ke(je.a);"object"===qe(window.themeisleGutenberg.themeDefaults)&&(n=Ye(n,window.themeisleGutenberg.themeDefaults)),window.themeisleGutenberg.globalDefaults={},p(n)}i(!1)}));case 8:case"end":return e.stop()}}),e)}))),[]);var n=Ve(dt(!1),2),a=n[0],l=n[1],o=Ve(dt(!1),2),r=o[0],i=o[1],c=Ve(dt({}),2),d=c[0],p=c[1],m=Ve(dt(!1),2),s=m[0],u=m[1],b=ct(null),g=function(e){nt&&t("info",e,{isDismissible:!0,type:"snackbar"})},f=function(){var e=Ze(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Ke(d),Object.keys(t).forEach((function(e){Object.keys(t[e]).forEach((function(n){(void 0!==je.a[e][n]&&t[e][n]===je.a[e][n]||"object"===qe(t[e][n])&&Je(t[e][n],je.a[e][n]))&&delete t[e][n]}))})),n=new wp.api.models.Settings({themeisle_blocks_settings_global_defaults:JSON.stringify(t)}),e.next=5,n.save().then((function(){window.themeisleGutenberg.globalDefaults=t,g($e("Option updated."))}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return wp.element.createElement(rt,null,a&&wp.element.createElement(st,{target:"wp-block-themeisle-blocks-options"},$e("Otter Options")),wp.element.createElement(mt,{title:$e("Otter Options"),name:"wp-block-themeisle-blocks-options"},wp.element.createElement(tt,{className:"wp-block-themeisle-blocks-options-general"},wp.element.createElement(at,{label:$e("Make Section block your default block for Pages?"),checked:s,onChange:function(){new wp.api.models.Settings({themeisle_blocks_settings_default_block:!Boolean(s)}).save().then((function(e){u(Boolean(e.themeisle_blocks_settings_default_block)),g($e("Option updated."))}))}})),wp.element.createElement(De,{blockDefaults:d,changeConfig:function(e,t){var n=Ke(d);for(var a in t)n[e][a]=t[a];p(n)},resetConfig:function(e){var t=Ke(d),n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){Ge(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},je.a[e]);t[e]=n,p(t)},saveConfig:f})))})),bt=(n(44),n(45),wp.components.Icon),gt=wp.element.Fragment;(0,wp.plugins.registerPlugin)("themeisle-blocks",{icon:wp.element.createElement(bt,{icon:a.m}),render:function(){return wp.element.createElement(gt,null,wp.element.createElement(ut,null))}})},function(e,t,n){"use strict";n.r(t);n(48),n(49),n(50);var a=n(2),l={id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTop:{type:"number",default:0},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"}},o=n(0),r=n.n(o),i=n(6),c=n.n(i);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=wp.blockEditor.RichText,s=[{attributes:{id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number",default:0},paddingMobile:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number",default:0},paddingTopMobile:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number",default:0},paddingRightMobile:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number",default:0},paddingBottomMobile:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number",default:0},paddingLeftMobile:{type:"number",default:0},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number",default:0},marginMobile:{type:"number",default:0},marginTop:{type:"number",default:0},marginTopTablet:{type:"number",default:0},marginTopMobile:{type:"number",default:0},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number",default:25},marginBottomMobile:{type:"number",default:20}},save:function(e){var t,n=e.attributes,a=e.className;n.textShadow&&(t={textShadow:"".concat(n.textShadowHorizontal,"px ").concat(n.textShadowVertical,"px ").concat(n.textShadowBlur,"px ").concat(c()(n.textShadowColor?n.textShadowColor:"#000000",n.textShadowColorOpacity))});var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({color:n.headingColor,fontFamily:n.fontFamily,fontWeight:"regular"===n.fontVariant?"normal":n.fontVariant,fontStyle:n.fontStyle,textTransform:n.textTransform,lineHeight:n.lineHeight&&"".concat(n.lineHeight,"px"),letterSpacing:n.letterSpacing&&"".concat(n.letterSpacing,"px")},t);return wp.element.createElement(m.Content,{tagName:n.tag,value:n.content,id:n.id,className:r()(n.id,a),style:l})}}],u=wp.blocks.createBlock,b={from:[{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return u("themeisle-blocks/advanced-heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return u("themeisle-blocks/advanced-heading",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return u("core/paragraph",{content:t})}}]},g=n(18),f=n.n(g),h=n(5),y=n(9),w=wp.i18n.__,v=wp.components,k=v.Dropdown,T=v.DropdownMenu,E=v.IconButton,x=v.RangeControl,C=v.SVG,S=v.Toolbar,M=wp.blockEditor.BlockControls,B=wp.element.Fragment,O=function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontFamily,l=e.changeFontVariant,o=e.changeFontStyle,r=e.changeTextTransform,i=e.changeLineHeight,c=e.changeLetterSpacing,d=function(e){return"h1"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H1")):"h2"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H2")):"h3"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H3")):"h4"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H4")):"h5"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H5")):"h6"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H6")):"div"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DIV")):"p"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{x:"0",y:"15"},"P")):"span"===e?wp.element.createElement(C,{style:{width:"25px",height:"20px"}},wp.element.createElement("text",{style:{fontSize:"12px"},x:"0",y:"15"},"SPAN")):void 0},p=function(e){n({tag:e})};return wp.element.createElement(M,null,wp.element.createElement(T,{icon:d(t.tag),label:w("Select tag"),className:"components-toolbar",controls:[{title:w("Heading 1"),icon:d("h1"),onClick:function(){return p("h1")}},{title:w("Heading 2"),icon:d("h2"),onClick:function(){return p("h2")}},{title:w("Heading 3"),icon:d("h3"),onClick:function(){return p("h3")}},{title:w("Heading 4"),icon:d("h4"),onClick:function(){return p("h4")}},{title:w("Heading 5"),icon:d("h5"),onClick:function(){return p("h5")}},{title:w("Heading 6"),icon:d("h6"),onClick:function(){return p("h6")}},{title:w("Division"),icon:d("div"),onClick:function(){return p("div")}},{title:w("Paragraph"),icon:d("p"),onClick:function(){return p("p")}},{title:w("Span Tag"),icon:d("span"),onClick:function(){return p("span")}}]}),wp.element.createElement(S,{className:"wp-themesiel-blocks-advanced-heading-components-toolbar"},wp.element.createElement(k,{contentClassName:"wp-themesiel-blocks-advanced-heading-popover-content",position:"bottom center",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(E,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:n,"aria-haspopup":"true","aria-expanded":t,label:w("Typography Settings"),tooltip:w("Typography Settings")},wp.element.createElement("span",{className:"components-dropdown-menu__indicator"}))},renderContent:function(){return wp.element.createElement(B,null,wp.element.createElement(y.a,{label:w("Font Family"),value:t.fontFamily,onChangeFontFamily:a,isSelect:!0,valueVariant:t.fontVariant,onChangeFontVariant:l,valueStyle:t.fontStyle,onChangeFontStyle:o,valueTransform:t.textTransform,onChangeTextTransform:r}),wp.element.createElement(x,{label:w("Line Height"),value:t.lineHeight,onChange:i,min:0,max:200}),wp.element.createElement(x,{label:w("Letter Spacing"),value:t.letterSpacing,onChange:c,min:-50,max:100}))}})))},R=n(8),L=n(3),N=n(4),A=n(19);function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var H=wp.i18n.__,_=wp.blockEditor,D=_.AlignmentToolbar,j=_.ColorPalette,F=_.InspectorControls,G=wp.components,V=G.Button,W=G.Dashicon,q=G.PanelBody,U=G.RangeControl,Z=G.ToggleControl,$=wp.compose.compose,Q=wp.data.withSelect,K=wp.element,J=K.Fragment,Y=K.useState,X=$(Q((function(e){var t=e("themeisle-gutenberg/data").getView,n=e("core/edit-post").__experimentalGetPreviewDeviceType;return{view:n?n():t()}})))((function(e){var t=e.attributes,n=e.setAttributes,a=e.changeFontFamily,l=e.changeFontVariant,o=e.changeFontStyle,i=e.changeTextTransform,c=e.changeLineHeight,d=e.changeLetterSpacing,p=e.view,m=z(Y("style"),2),s=m[0],u=m[1],b=function(){var e;return"Desktop"===p&&(e=t.fontSize),"Tablet"===p&&(e=t.fontSizeTablet),"Mobile"===p&&(e=t.fontSizeMobile),e};b=b();var g=function(){var e;return"Desktop"===p&&(e=t.align),"Tablet"===p&&(e=t.alignTablet),"Mobile"===p&&(e=t.alignMobile),e};g=g();var f=function(){var e;return"Desktop"===p&&(e=t.paddingType),"Tablet"===p&&(e=t.paddingTypeTablet),"Mobile"===p&&(e=t.paddingTypeMobile),e};f=f();var h={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},w={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},v={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},k=function(e){var n;return"top"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingTop),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile)),"right"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingRight),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile)),"bottom"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingBottom),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile)),"left"==e&&("Desktop"===p&&(n="linked"===t.paddingType?t.padding:t.paddingLeft),"Tablet"===p&&(n="linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet),"Mobile"===p&&(n="linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile)),n},T=function(){var e;return"Desktop"===p&&(e=t.marginType),"Tablet"===p&&(e=t.marginTypeTablet),"Mobile"===p&&(e=t.marginTypeMobile),e};T=T();var E={top:"marginTop",bottom:"marginBottom"},x={top:"marginTopTablet",bottom:"marginBottomTablet"},C={top:"marginTopMobile",bottom:"marginBottomMobile"},S=function(e){var n;return"top"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginTop),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile)),"bottom"==e&&("Desktop"===p&&(n="linked"===t.marginType?t.margin:t.marginBottom),"Tablet"===p&&(n="linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet),"Mobile"===p&&(n="linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile)),n};return wp.element.createElement(J,null,wp.element.createElement(F,null,wp.element.createElement(q,{className:"wp-block-themeisle-blocks-advanced-heading-header-panel"},wp.element.createElement(V,{className:r()("header-tab",{"is-selected":"style"===s}),onClick:function(){return u("style")}},wp.element.createElement("span",null,wp.element.createElement(W,{icon:"admin-customizer"}),H("Style"))),wp.element.createElement(V,{className:r()("header-tab",{"is-selected":"advanced"===s}),onClick:function(){return u("advanced")}},wp.element.createElement("span",null,wp.element.createElement(W,{icon:"admin-generic"}),H("Advanced")))),"style"===s&&wp.element.createElement(J,null,wp.element.createElement(q,{title:H("General Settings")},wp.element.createElement(J,null,wp.element.createElement("p",null,H("Heading Color")),wp.element.createElement(j,{label:"Heading Color",value:t.headingColor,onChange:function(e){n({headingColor:e})}})),wp.element.createElement(L.a,{label:"Font Size"},wp.element.createElement(U,{value:b||"",onChange:function(e){"Desktop"===p&&n({fontSize:e}),"Tablet"===p&&n({fontSizeTablet:e}),"Mobile"===p&&n({fontSizeMobile:e})},min:1,max:500})),wp.element.createElement(L.a,{label:"Alignment"},wp.element.createElement(D,{value:g,onChange:function(e){"Desktop"===p&&n({align:e}),"Tablet"===p&&n({alignTablet:e}),"Mobile"===p&&n({alignMobile:e})},isCollapsed:!1}))),wp.element.createElement(q,{title:H("Typography Settings"),initialOpen:!1},wp.element.createElement(y.a,{label:H("Font Family"),value:t.fontFamily,onChangeFontFamily:a,valueVariant:t.fontVariant,onChangeFontVariant:l,valueStyle:t.fontStyle,onChangeFontStyle:o,valueTransform:t.textTransform,onChangeTextTransform:i}),wp.element.createElement(U,{label:H("Line Height"),value:t.lineHeight,onChange:c,min:0,max:200}),wp.element.createElement(U,{label:H("Letter Spacing"),value:t.letterSpacing,onChange:d,min:-50,max:100}),wp.element.createElement(Z,{label:"Shadow Properties",checked:t.textShadow,onChange:function(e){n({textShadow:e})}}),t.textShadow&&wp.element.createElement(J,null,wp.element.createElement(J,null,wp.element.createElement("p",null,H("Color")),wp.element.createElement(j,{label:H("Color"),value:t.textShadowColor,onChange:function(e){n({textShadowColor:e})}})),wp.element.createElement(R.a,{label:"Shadow Properties"},wp.element.createElement(U,{label:H("Opacity"),value:t.textShadowColorOpacity,onChange:function(e){n({textShadowColorOpacity:e})},min:0,max:100}),wp.element.createElement(U,{label:H("Blur"),value:t.textShadowBlur,onChange:function(e){n({textShadowBlur:e})},min:0,max:100}),wp.element.createElement(U,{label:H("Horizontal"),value:t.textShadowHorizontal,onChange:function(e){n({textShadowHorizontal:e})},min:-100,max:100}),wp.element.createElement(U,{label:H("Vertical"),value:t.textShadowVertical,onChange:function(e){n({textShadowVertical:e})},min:-100,max:100})))))||"advanced"===s&&wp.element.createElement(J,null,wp.element.createElement(q,{title:H("Highlight Color")},wp.element.createElement(J,null,wp.element.createElement("p",null,H("Highlight Color")),wp.element.createElement(j,{label:"Highlight Color",value:t.highlightColor,onChange:function(e){n({highlightColor:e})}})),wp.element.createElement(J,null,wp.element.createElement("p",null,H("Highlight Background")),wp.element.createElement(j,{label:"Highlight Background",value:t.highlightBackground,onChange:function(e){n({highlightBackground:e})}}))),wp.element.createElement(q,{title:H("Spacing"),initialOpen:!1},wp.element.createElement(L.a,{label:"Padding"},wp.element.createElement(N.a,{type:f,min:0,max:500,changeType:function(e){"Desktop"===p&&n({paddingType:e}),"Tablet"===p&&n({paddingTypeTablet:e}),"Mobile"===p&&n({paddingTypeMobile:e})},onChange:function(e,a){"Desktop"===p&&("linked"===t.paddingType?n({padding:a}):n(I({},h[e],a))),"Tablet"===p&&("linked"===t.paddingTypeTablet?n({paddingTablet:a}):n(I({},w[e],a))),"Mobile"===p&&("linked"===t.paddingTypeMobile?n({paddingMobile:a}):n(I({},v[e],a)))},options:[{label:H("Top"),type:"top",value:k("top")},{label:H("Right"),type:"right",value:k("right")},{label:H("Bottom"),type:"bottom",value:k("bottom")},{label:H("Left"),type:"left",value:k("left")}]})),wp.element.createElement(L.a,{label:"Margin"},wp.element.createElement(N.a,{type:T,min:-500,max:500,changeType:function(e){"Desktop"===p&&n({marginType:e}),"Tablet"===p&&n({marginTypeTablet:e}),"Mobile"===p&&n({marginTypeMobile:e})},onChange:function(e,a){"Desktop"===p&&("linked"===t.marginType?n({margin:a}):n(I({},E[e],a))),"Tablet"===p&&("linked"===t.marginTypeTablet?n({marginTablet:a}):n(I({},x[e],a))),"Mobile"===p&&("linked"===t.marginTypeMobile?n({marginMobile:a}):n(I({},C[e],a)))},options:[{label:H("Top"),type:"top",value:S("top")},{label:H("Right"),disabled:!0},{label:H("Bottom"),type:"bottom",value:S("bottom")},{label:H("Left"),disabled:!0}]}))))),wp.element.createElement(A.a,{value:t.id,onChange:function(e){n({id:e})}}))}));function ee(e){return function(e){if(Array.isArray(e))return te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return te(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oe=wp.i18n.__,re=lodash.isEqual,ie=wp.blocks.createBlock,ce=wp.blockEditor.RichText,de=wp.compose.compose,pe=wp.data.withSelect,me=wp.element,se=me.Fragment,ue=me.useEffect,be=wp.viewport.withViewportMatch,ge=[],fe=de(be({isLarger:">= large",isLarge:"<= large",isSmall:">= small",isSmaller:"<= small"}),pe((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}})))((function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.clientId,i=e.mergeBlocks,d=e.name,p=e.insertBlocksAfter,m=e.onReplace,s=e.isLarger,u=e.isLarge,b=e.isSmall,g=e.isSmaller,y=e.isViewportAvailable,w=e.isPreviewDesktop,v=e.isPreviewTablet,k=e.isPreviewMobile;ue((function(){T()}),[]);var T=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,r="wp-block-themeisle-blocks-advanced-heading-".concat(o.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(re(h.a[d],window.themeisleGutenberg.globalDefaults[d])||(a=ae({},window.themeisleGutenberg.globalDefaults[d]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(ae({},a,{id:r})),ge.push(r),e.push(r)}else if(ge.includes(t.id)){var i="wp-block-themeisle-blocks-advanced-heading-".concat(o.substr(0,8));n({id:i}),ge.push(i)}else ge.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=ee(e)},E=s&&!u&&b&&!g,x=!s&&!u&&b&&!g,C=!(s||u||b||g);y&&!C&&(E=w,x=v,C=k);var S,M,B,R=function(e){n(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},L=function(e){n({fontVariant:e})},N=function(e){n({fontStyle:e})},A=function(e){n({textTransform:e})},I=function(e){n({lineHeight:e})},z=function(e){n({letterSpacing:e})};E&&(S={fontSize:"".concat(t.fontSize,"px")},M={textAlign:t.align,paddingTop:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingTop,"px"),paddingRight:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingRight,"px"),paddingBottom:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingBottom,"px"),paddingLeft:"linked"===t.paddingType?"".concat(t.padding,"px"):"".concat(t.paddingLeft,"px"),marginTop:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginTop,"px"),marginBottom:"linked"===t.marginType?"".concat(t.margin,"px"):"".concat(t.marginBottom,"px")}),x&&(S={fontSize:"".concat(t.fontSizeTablet,"px")},M={textAlign:t.alignTablet,paddingTop:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingTopTablet,"px"),paddingRight:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingRightTablet,"px"),paddingBottom:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingBottomTablet,"px"),paddingLeft:"linked"===t.paddingTypeTablet?"".concat(t.paddingTablet,"px"):"".concat(t.paddingLeftTablet,"px"),marginTop:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginTopTablet,"px"),marginBottom:"linked"===t.marginTypeTablet?"".concat(t.marginTablet,"px"):"".concat(t.marginBottomTablet,"px")}),C&&(S={fontSize:"".concat(t.fontSizeMobile,"px")},M={textAlign:t.alignMobile,paddingTop:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingTopMobile,"px"),paddingRight:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingRightMobile,"px"),paddingBottom:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingBottomMobile,"px"),paddingLeft:"linked"===t.paddingTypeMobile?"".concat(t.paddingMobile,"px"):"".concat(t.paddingLeftMobile,"px"),marginTop:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginTopMobile,"px"),marginBottom:"linked"===t.marginTypeMobile?"".concat(t.marginMobile,"px"):"".concat(t.marginBottomMobile,"px")}),t.textShadow&&(B={textShadow:"".concat(t.textShadowHorizontal,"px ").concat(t.textShadowVertical,"px ").concat(t.textShadowBlur,"px ").concat(c()(t.textShadowColor?t.textShadowColor:"#000000",t.textShadowColorOpacity))});var P=ae({color:t.headingColor},S,{fontFamily:t.fontFamily?t.fontFamily:"inherit",fontWeight:"regular"===t.fontVariant?"normal":t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&"".concat(t.lineHeight,"px"),letterSpacing:t.letterSpacing&&"".concat(t.letterSpacing,"px")},M,{},B);return wp.element.createElement(se,null,wp.element.createElement("style",null,".".concat(t.id," mark {\n\t\t\t\t\t\tcolor: ").concat(t.highlightColor,";\n\t\t\t\t\t\tbackground: ").concat(t.highlightBackground,";\n\t\t\t\t\t}")),t.fontFamily&&wp.element.createElement(f.a,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&["".concat(t.fontVariant+("italic"===t.fontStyle?":i":""))]}]}),wp.element.createElement(O,{attributes:t,setAttributes:n,changeFontFamily:R,changeFontVariant:L,changeFontStyle:N,changeTextTransform:A,changeLineHeight:I,changeLetterSpacing:z}),wp.element.createElement(X,{attributes:t,setAttributes:n,changeFontFamily:R,changeFontVariant:L,changeFontStyle:N,changeTextTransform:A,changeLineHeight:I,changeLetterSpacing:z}),wp.element.createElement(ce,{identifier:"content",className:r()(t.id,a),value:t.content,placeholder:oe("Write heading…"),tagName:t.tag,formattingControls:["bold","italic","link","strikethrough","mark"],allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","themeisle-blocks/mark"],onMerge:i,unstableOnSplit:p?function(e,t){n({content:e});for(var a=arguments.length,l=new Array(a>2?a-2:0),o=2;o<a;o++)l[o-2]=arguments[o];p([].concat(l,[ie("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return m([])},style:P,onChange:function(e){n({content:e})}}))})),he=wp.blockEditor.RichText,ye=function(e){var t=e.attributes,n=e.className;return wp.element.createElement(he.Content,{tagName:t.tag,value:t.content,id:t.id,className:r()(t.id,n)})},we=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/advanced-heading",{title:we("Advanced Heading"),description:we("Advanced Heading gives a spin to editor's Heading block with much needed customization options."),icon:a.i,category:"themeisle-blocks",keywords:[we("heading"),we("title"),we("advanced heading")],attributes:l,deprecated:s,transforms:b,edit:fe,save:ye})},function(e,t,n){"use strict";n.r(t);n(58),n(59);var a=n(2),l={id:{type:"string"},align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},link:{type:"string"},newTab:{type:"boolean",default:!1},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}};function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=[{attributes:{prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},supports:{align:["left","center","right"]},migrate:function(e){var t="center";return e.className.includes("alignleft")&&(t="left"),e.className.includes("aligncenter")&&(t="center"),e.className.includes("alignright")&&(t="right"),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{align:t,className:""})},save:function(e){var t={borderRadius:e.attributes.borderRadius+"%",fontSize:e.attributes.fontSize+"px",padding:e.attributes.padding+"px"},n={color:e.attributes.textColor,backgroundColor:e.attributes.backgroundColor,borderColor:e.attributes.borderColor,borderRadius:e.attributes.borderRadius+"%",borderStyle:"solid",borderWidth:e.attributes.borderSize+"px",display:"inline-block",margin:e.attributes.margin+"px"};return wp.element.createElement("p",{className:e.className,style:{textAlign:e.attributes.align}},wp.element.createElement("span",{className:"".concat(e.className,"-container"),style:n},wp.element.createElement("i",{className:"".concat(e.attributes.prefix," fa-").concat(e.attributes.icon),style:t})))}},{attributes:{align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},save:function(e){var t={borderRadius:e.attributes.borderRadius+"%",fontSize:e.attributes.fontSize+"px",padding:e.attributes.padding+"px"},n={color:e.attributes.textColor,backgroundColor:e.attributes.backgroundColor,borderColor:e.attributes.borderColor,borderRadius:e.attributes.borderRadius+"%",borderStyle:"solid",borderWidth:e.attributes.borderSize+"px",display:"inline-block",margin:e.attributes.margin+"px"};return wp.element.createElement("p",{className:e.className,style:{textAlign:e.attributes.align}},wp.element.createElement("span",{className:"undefined-container",style:n},wp.element.createElement("i",{className:"".concat(e.attributes.prefix," fa-").concat(e.attributes.icon),style:t})))}},{attributes:{id:{type:"string"},align:{type:"string"},prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},link:{type:"string"},newTab:{type:"boolean",default:!1},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},save:function(e){var t=e.attributes,n=e.className,a={borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"},l={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},o=function(){return wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:l})};return wp.element.createElement("p",{className:n,id:t.id,style:{textAlign:t.align}},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:a},t.link?wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",style:{color:t.textColor},rel:"noopener noreferrer"},wp.element.createElement(o,null)):wp.element.createElement(o,null)))}}],c=n(5),d=wp.i18n.__,p=wp.blockEditor,m=p.AlignmentToolbar,s=p.BlockControls,u=function(e){var t=e.attributes,n=e.setAttributes;return wp.element.createElement(s,null,wp.element.createElement(m,{value:t.align,onChange:function(e){n({align:e})},alignmentControls:[{icon:"editor-alignleft",title:d("Align left"),align:"left"},{icon:"editor-aligncenter",title:d("Align center"),align:"center"},{icon:"editor-alignright",title:d("Align right"),align:"right"}]}))},b=n(20);function g(e){return(g="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 f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,l=!1,o=void 0;try{for(var r,i=e[Symbol.iterator]();!(a=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var y=wp.i18n.__,w=wp.components,v=w.BaseControl,k=w.Button,T=w.ButtonGroup,E=w.PanelBody,x=w.Placeholder,C=w.RangeControl,S=w.Spinner,M=w.ToggleControl,B=wp.blockEditor,O=B.ColorPalette,R=B.ContrastChecker,L=B.InspectorControls,N=wp.element,A=N.Fragment,I=N.useState,z=React.lazy((function(){return Promise.all([n.e(0),n.e(1)]).then(n.bind(null,106))})),P=function(e){var t=e.attributes,n=e.setAttributes,a=f(I(!1),2),l=a[0],o=a[1];return wp.element.createElement(L,null,wp.element.createElement(E,{title:y("Icon Settings")},wp.element.createElement(React.Suspense,{fallback:wp.element.createElement(x,{className:"wp-themeisle-block-spinner"},wp.element.createElement(S,null))},wp.element.createElement(z,{label:y("Icon Picker"),prefix:t.prefix,icon:t.icon,onChange:function(e){"object"===g(e)?n({icon:e.name,prefix:e.prefix}):n({icon:e})}})),wp.element.createElement(b.a,{label:y("Link"),placeholder:"https://…",value:t.link,onChange:function(e){n({link:e})}},wp.element.createElement(M,{label:"Open in New Tab?",checked:t.newTab,onChange:function(){n({newTab:!t.newTab})}}))),wp.element.createElement(E,{title:y("Icon Sizes"),initialOpen:!1},wp.element.createElement(C,{label:y("Icon Size"),value:t.fontSize||"",initialPosition:16,onChange:function(e){n({fontSize:e})},min:12,max:140,beforeIcon:"minus",afterIcon:"plus"}),wp.element.createElement(C,{label:y("Padding"),value:t.padding||"",initialPosition:5,onChange:function(e){n({padding:e})},min:0,max:100,beforeIcon:"minus",afterIcon:"plus"}),wp.element.createElement(C,{label:y("Margin"),value:t.margin||"",initialPosition:5,onChange:function(e){n({margin:e})},min:0,max:100,beforeIcon:"minus",afterIcon:"plus"})),wp.element.createElement(E,{title:y("Color"),initialOpen:!1},wp.element.createElement(T,{className:"wp-block-themeisle-blocks-font-awesome-icons-hover-control"},wp.element.createElement(k,{isDefault:!0,isLarge:!0,isPrimary:!l,onClick:function(){return o(!1)}},y("Normal")),wp.element.createElement(k,{isDefault:!0,isLarge:!0,isPrimary:l,onClick:function(){return o(!0)}},y("Hover"))),l?wp.element.createElement(A,null,wp.element.createElement(v,{label:"Hover Background"},wp.element.createElement(O,{label:"Hover Background",value:t.backgroundColorHover,onChange:function(e){n({backgroundColorHover:e})}})),wp.element.createElement(v,{label:"Hover Icon"},wp.element.createElement(O,{label:"Hover Icon",value:t.textColorHover,onChange:function(e){n({textColorHover:e})}})),wp.element.createElement(v,{label:"Hover Border"},wp.element.createElement(O,{label:"Hover Border",value:t.borderColorHover,onChange:function(e){n({borderColorHover:e})}})),wp.element.createElement(R,{textColor:t.textColorHover,backgroundColor:t.backgroundColorHover})):wp.element.createElement(A,null,wp.element.createElement(v,{label:"Background"},wp.element.createElement(O,{label:"Background",value:t.backgroundColor,onChange:function(e){n({backgroundColor:e})}})),wp.element.createElement(v,{label:"Icon"},wp.element.createElement(O,{label:"Icon",value:t.textColor,onChange:function(e){n({textColor:e})}})),wp.element.createElement(v,{label:"Border"},wp.element.createElement(O,{label:"Border",value:t.borderColor,onChange:function(e){n({borderColor:e})}})),wp.element.createElement(R,{textColor:t.textColor,backgroundColor:t.backgroundColor}))),wp.element.createElement(E,{title:y("Border Settings"),initialOpen:!1},wp.element.createElement(C,{label:y("Border Size"),value:t.borderSize,onChange:function(e){n({borderSize:e})},min:0,max:120,beforeIcon:"minus",afterIcon:"plus"}),wp.element.createElement(C,{label:y("Border Radius"),value:t.borderRadius,onChange:function(e){n({borderRadius:e})},min:0,max:100,beforeIcon:"grid-view",afterIcon:"marker"})))};function H(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G=lodash.isEqual,V=wp.element,W=V.Fragment,q=V.useEffect,U=[],Z=function(e){var t=e.attributes,n=e.setAttributes,a=e.className,o=e.clientId,r=e.name;q((function(){i()}),[]);var i=function(){var e=window.themeisleGutenberg.blockIDs?window.themeisleGutenberg.blockIDs:[];if(void 0===t.id){var a,i="wp-block-themeisle-blocks-font-awesome-icons-".concat(o.substr(0,8));void 0!==(window.themeisleGutenberg.globalDefaults?window.themeisleGutenberg.globalDefaults:void 0)&&(G(c.a[r],window.themeisleGutenberg.globalDefaults[r])||(a=j({},window.themeisleGutenberg.globalDefaults[r]),Object.keys(a).map((function(e){if(t[e]!==a[e]&&void 0!==l[e].default&&t[e]!==l[e].default)return delete a[e]})))),n(j({},a,{id:i})),U.push(i),e.push(i)}else if(U.includes(t.id)){var d="wp-block-themeisle-blocks-font-awesome-icons-".concat(o.substr(0,8));n({id:d}),U.push(d)}else U.push(t.id),e.push(t.id);window.themeisleGutenberg.blockIDs=H(e)},d={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},p={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return wp.element.createElement(W,null,wp.element.createElement(u,{attributes:t,setAttributes:n}),wp.element.createElement(P,{attributes:t,setAttributes:n}),wp.element.createElement("style",null,"#".concat(t.id," .").concat(a,"-container:hover {\n\t\t\t\t\t\tcolor: ").concat(t.textColorHover?t.textColorHover:t.textColor," !important;\n\t\t\t\t\t\tbackground: ").concat(t.backgroundColorHover?t.backgroundColorHover:t.backgroundColor," !important;\n\t\t\t\t\t\tborder-color: ").concat(t.borderColorHover?t.borderColorHover:t.borderColor," !important;\n\t\t\t\t\t}")),wp.element.createElement("p",{className:a,id:t.id,style:{textAlign:t.align}},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:p},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon),style:d}))))},$=function(e){var t=e.attributes,n=e.className;return wp.element.createElement("p",{className:n,id:t.id},wp.element.createElement("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?wp.element.createElement("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon)})):wp.element.createElement("i",{className:"".concat(t.prefix," fa-").concat(t.icon)})))},Q=wp.i18n.__;(0,wp.blocks.registerBlockType)("themeisle-blocks/font-awesome-icons",{title:Q("Font Awesome Icons"),description:Q("Share buttons for your website visitors to share content on any social sharing service."),icon:a.h,category:"themeisle-blocks",keywords:["font awesome","dashicons","icons"],attributes:l,deprecated:i,edit:Z,save:$})},function(e,t,n){"use strict";n.r(t);n(83),n(84),n(85);var a=n(2),l={facebook:{type:"boolean",default:!0},twitter:{type:"boolean",default:!0},linkedin:{type:"boolean",default:!0},pinterest:{type:"boolean",default:!1},tumblr:{type:"boolean",default:!1},reddit:{type:"boolean",default:!1}},o=n(0),r=n.n(o),i=wp.i18n.__,c={facebook:{label:i("Facebook"),icon:"facebook-f"},twitter:{label:i("Twitter"),icon:"twitter"},linkedin:{label:i("Linkedin"),icon:"linkedin-in"},pinterest:{label:i("Pinterest"),icon:"pinterest-p"},tumblr:{label:i("Tumblr"),icon:"tumblr"},reddit:{label:i("Reddit"),icon:"reddit-alien"}},d=wp.components,p=d.Path,m=d.SVG,s=function(e){var t=e.icon;return"facebook"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 264 512"},wp.element.createElement(p,{fill:"currentColor",d:"M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"})):"twitter"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(p,{fill:"currentColor",d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"})):"linkedin"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},wp.element.createElement(p,{fill:"currentColor",d:"M100.3 480H7.4V180.9h92.9V480zM53.8 140.1C24.1 140.1 0 115.5 0 85.8 0 56.1 24.1 32 53.8 32c29.7 0 53.8 24.1 53.8 53.8 0 29.7-24.1 54.3-53.8 54.3zM448 480h-92.7V334.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V480h-92.8V180.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V480z"})):"pinterest"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},wp.element.createElement(p,{fill:"currentColor",d:"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"})):"tumblr"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},wp.element.createElement(p,{fill:"currentColor",d:"M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"})):"reddit"===t?wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(p,{fill:"currentColor",d:"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"})):wp.element.createElement(m,{className:"wp-block-themeisle-toolbar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},wp.element.createElement(p,{fill:"currentColor",d:"M208 88.286c0-10 6.286-21.714 17.715-21.714 11.142 0 17.714 11.714 17.714 21.714 0 10.285-6.572 21.714-17.714 21.714C214.286 110 208 98.571 208 88.286zm304 160c0 36.001-11.429 102.286-36.286 129.714-22.858 24.858-87.428 61.143-120.857 70.572l-1.143.286v32.571c0 16.286-12.572 30.571-29.143 30.571-10 0-19.429-5.714-24.572-14.286-5.427 8.572-14.856 14.286-24.856 14.286-10 0-19.429-5.714-24.858-14.286-5.142 8.572-14.571 14.286-24.57 14.286-10.286 0-19.429-5.714-24.858-14.286-5.143 8.572-14.571 14.286-24.571 14.286-18.857 0-29.429-15.714-29.429-32.857-16.286 12.285-35.715 19.428-56.571 19.428-22 0-43.429-8.285-60.286-22.857 10.285-.286 20.571-2.286 30.285-5.714-20.857-5.714-39.428-18.857-52-36.286 21.37 4.645 46.209 1.673 67.143-11.143-22-22-56.571-58.857-68.572-87.428C1.143 321.714 0 303.714 0 289.429c0-49.714 20.286-160 86.286-160 10.571 0 18.857 4.858 23.143 14.857a158.792 158.792 0 0 1 12-15.428c2-2.572 5.714-5.429 7.143-8.286 7.999-12.571 11.714-21.142 21.714-34C182.571 45.428 232 17.143 285.143 17.143c6 0 12 .285 17.714 1.143C313.714 6.571 328.857 0 344.572 0c14.571 0 29.714 6 40 16.286.857.858 1.428 2.286 1.428 3.428 0 3.714-10.285 13.429-12.857 16.286 4.286 1.429 15.714 6.858 15.714 12 0 2.857-2.857 5.143-4.571 7.143 31.429 27.714 49.429 67.143 56.286 108 4.286-5.143 10.285-8.572 17.143-8.572 10.571 0 20.857 7.144 28.571 14.001C507.143 187.143 512 221.714 512 248.286zM188 89.428c0 18.286 12.571 37.143 32.286 37.143 19.714 0 32.285-18.857 32.285-37.143 0-18-12.571-36.857-32.285-36.857-