AMP for WordPress - Version 1.3.0

Version Description

Download this release

Release Info

Developer westonruter
Plugin Icon 128x128 AMP for WordPress
Version 1.3.0
Comparing to
See all releases

Code changes from version 1.2.2 to 1.3.0

amp.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin URI: https://amp-wp.org
6
  * Author: AMP Project Contributors
7
  * Author URI: https://github.com/ampproject/amp-wp/graphs/contributors
8
- * Version: 1.2.2
9
  * Text Domain: amp
10
  * Domain Path: /languages/
11
  * License: GPLv2 or later
@@ -15,7 +15,7 @@
15
 
16
  define( 'AMP__FILE__', __FILE__ );
17
  define( 'AMP__DIR__', dirname( __FILE__ ) );
18
- define( 'AMP__VERSION', '1.2.2' );
19
 
20
  /**
21
  * Errors encountered while loading the plugin.
@@ -149,17 +149,6 @@ if ( count( $_amp_missing_functions ) > 0 ) {
149
 
150
  unset( $_amp_required_extensions, $_amp_missing_extensions, $_amp_required_constructs, $_amp_missing_classes, $_amp_missing_functions, $_amp_required_extension, $_amp_construct_type, $_amp_construct, $_amp_constructs );
151
 
152
- if ( ! file_exists( AMP__DIR__ . '/vendor/autoload.php' ) || ! file_exists( AMP__DIR__ . '/vendor/sabberworm/php-css-parser' ) || ! file_exists( AMP__DIR__ . '/assets/js/amp-block-editor.js' ) ) {
153
- $_amp_load_errors->add(
154
- 'build_required',
155
- sprintf(
156
- /* translators: %s: composer install && npm install && npm run build */
157
- __( 'You appear to be running the AMP plugin from source. Please do %s to finish installation.', 'amp' ), // phpcs:ignore WordPress.Security.EscapeOutput
158
- '<code>composer install &amp;&amp; npm install &amp;&amp; npm run build</code>'
159
- )
160
- );
161
- }
162
-
163
  /**
164
  * Displays an admin notice about why the plugin is unable to load.
165
  *
@@ -240,6 +229,29 @@ if ( 'amp' !== basename( AMP__DIR__ ) ) {
240
  add_action( 'admin_notices', '_amp_incorrect_plugin_slug_admin_notice' );
241
  }
242
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
243
  require_once AMP__DIR__ . '/includes/class-amp-autoloader.php';
244
  AMP_Autoloader::register();
245
 
@@ -370,7 +382,11 @@ function amp_init() {
370
  add_action( 'wp_loaded', 'amp_story_templates' );
371
 
372
  if ( defined( 'WP_CLI' ) && WP_CLI ) {
373
- WP_CLI::add_command( 'amp', new AMP_CLI() );
 
 
 
 
374
  }
375
 
376
  /*
@@ -461,6 +477,7 @@ function amp_maybe_add_actions() {
461
 
462
  // Prevent infinite URL space under /amp/ endpoint.
463
  global $wp;
 
464
  wp_parse_str( $wp->matched_query, $path_args );
465
  if ( isset( $path_args[ amp_get_slug() ] ) && '' !== $path_args[ amp_get_slug() ] ) {
466
  wp_safe_redirect( amp_get_permalink( $post->ID ), 301 );
5
  * Plugin URI: https://amp-wp.org
6
  * Author: AMP Project Contributors
7
  * Author URI: https://github.com/ampproject/amp-wp/graphs/contributors
8
+ * Version: 1.3.0
9
  * Text Domain: amp
10
  * Domain Path: /languages/
11
  * License: GPLv2 or later
15
 
16
  define( 'AMP__FILE__', __FILE__ );
17
  define( 'AMP__DIR__', dirname( __FILE__ ) );
18
+ define( 'AMP__VERSION', '1.3.0' );
19
 
20
  /**
21
  * Errors encountered while loading the plugin.
149
 
150
  unset( $_amp_required_extensions, $_amp_missing_extensions, $_amp_required_constructs, $_amp_missing_classes, $_amp_missing_functions, $_amp_required_extension, $_amp_construct_type, $_amp_construct, $_amp_constructs );
151
 
 
 
 
 
 
 
 
 
 
 
 
152
  /**
153
  * Displays an admin notice about why the plugin is unable to load.
154
  *
229
  add_action( 'admin_notices', '_amp_incorrect_plugin_slug_admin_notice' );
230
  }
231
 
232
+ /**
233
+ * Print admin notice if the Xdebug extension is loaded.
234
+ *
235
+ * @since 1.3
236
+ */
237
+ function _amp_xdebug_admin_notice() {
238
+ ?>
239
+ <div class="notice notice-warning">
240
+ <p>
241
+ <?php
242
+ esc_html_e(
243
+ 'Your server currently has the Xdebug PHP extension loaded. This can cause some of the AMP plugin\'s processes to timeout depending on your system resources and configuration. Please deactivate Xdebug for the best experience.',
244
+ 'amp'
245
+ );
246
+ ?>
247
+ </p>
248
+ </div>
249
+ <?php
250
+ }
251
+ if ( extension_loaded( 'xdebug' ) ) {
252
+ add_action( 'admin_notices', '_amp_xdebug_admin_notice' );
253
+ }
254
+
255
  require_once AMP__DIR__ . '/includes/class-amp-autoloader.php';
256
  AMP_Autoloader::register();
257
 
382
  add_action( 'wp_loaded', 'amp_story_templates' );
383
 
384
  if ( defined( 'WP_CLI' ) && WP_CLI ) {
385
+ if ( class_exists( 'WP_CLI\Dispatcher\CommandNamespace' ) ) {
386
+ WP_CLI::add_command( 'amp', 'AMP_CLI_Namespace' );
387
+ }
388
+
389
+ WP_CLI::add_command( 'amp validation', 'AMP_CLI_Validation_Command' );
390
  }
391
 
392
  /*
477
 
478
  // Prevent infinite URL space under /amp/ endpoint.
479
  global $wp;
480
+ $path_args = [];
481
  wp_parse_str( $wp->matched_query, $path_args );
482
  if ( isset( $path_args[ amp_get_slug() ] ) && '' !== $path_args[ amp_get_slug() ] ) {
483
  wp_safe_redirect( amp_get_permalink( $post->ID ), 301 );
assets/css/admin-bar-rtl.css DELETED
@@ -1,1181 +0,0 @@
1
- /*
2
- This is forked from core's admin-bar.css from WP 5.3-alpha at 160fc055da156248277513dd5256fbcc66faa5a7.
3
-
4
- https://github.com/WordPress/wordpress-develop/blob/160fc055da156248277513dd5256fbcc66faa5a7/src/wp-includes/css/admin-bar.css
5
-
6
- - References to .hover have been replaced with :focus-within (which is not supported in IE11).
7
- - Universal selector properties have been removed which interferes with AMP shadow elements.
8
- */
9
-
10
- #wpadminbar * {
11
- height: auto;
12
- width: auto;
13
- margin: 0;
14
- padding: 0;
15
- /* Removed because interferes with amp-img>img: position: static; */
16
- text-shadow: none;
17
- text-transform: none;
18
- letter-spacing: normal;
19
- font-size: 13px;
20
- font-weight: 400;
21
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
22
- line-height: 2.46153846;
23
- border-radius: 0;
24
- box-sizing: content-box;
25
- transition: none;
26
- -webkit-font-smoothing: subpixel-antialiased; /* Prevent Safari from switching to standard antialiasing on hover */
27
- -moz-osx-font-smoothing: auto; /* Prevent Firefox from inheriting from themes that use other values */
28
- }
29
-
30
- .rtl #wpadminbar * {
31
- font-family: Tahoma, sans-serif;
32
- }
33
-
34
- html:lang(he-il) .rtl #wpadminbar * {
35
- font-family: Arial, sans-serif;
36
- }
37
-
38
- #wpadminbar .ab-empty-item {
39
- cursor: default;
40
- }
41
-
42
- #wpadminbar .ab-empty-item,
43
- #wpadminbar a.ab-item,
44
- #wpadminbar > #wp-toolbar span.ab-label,
45
- #wpadminbar > #wp-toolbar span.noticon {
46
- color: #eee;
47
- }
48
-
49
- #wpadminbar #wp-admin-bar-site-name a.ab-item,
50
- #wpadminbar #wp-admin-bar-my-sites a.ab-item {
51
- white-space: nowrap;
52
- overflow: hidden;
53
- text-overflow: ellipsis;
54
- }
55
-
56
- #wpadminbar ul li:before,
57
- #wpadminbar ul li:after {
58
- content: normal;
59
- }
60
-
61
- #wpadminbar a,
62
- #wpadminbar a:hover,
63
- #wpadminbar a img,
64
- #wpadminbar a img:hover {
65
- border: none;
66
- text-decoration: none;
67
- background: none;
68
- }
69
-
70
- #wpadminbar a:focus,
71
- #wpadminbar a:active,
72
- #wpadminbar input[type="text"],
73
- #wpadminbar input[type="password"],
74
- #wpadminbar input[type="number"],
75
- #wpadminbar input[type="search"],
76
- #wpadminbar input[type="email"],
77
- #wpadminbar input[type="url"],
78
- #wpadminbar select,
79
- #wpadminbar textarea,
80
- #wpadminbar div {
81
- box-shadow: none;
82
- }
83
-
84
- #wpadminbar a:focus {
85
- /* Inherits transparent outline only visible in Windows High Contrast mode */
86
- outline-offset: -1px;
87
- }
88
-
89
- #wpadminbar {
90
- direction: rtl;
91
- color: #ccc;
92
- font-size: 13px;
93
- font-weight: 400;
94
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
95
- line-height: 2.46153846;
96
- height: 32px;
97
- position: fixed;
98
- top: 0;
99
- right: 0;
100
- width: 100%;
101
- min-width: 600px; /* match the min-width of the body in wp-admin/css/common.css */
102
- z-index: 99999;
103
- background: #23282d;
104
- }
105
-
106
- #wpadminbar .ab-sub-wrapper,
107
- #wpadminbar ul,
108
- #wpadminbar ul li {
109
- background: none;
110
- clear: none;
111
- list-style: none;
112
- margin: 0;
113
- padding: 0;
114
- position: relative;
115
- text-indent: 0;
116
- z-index: 99999;
117
- }
118
-
119
- #wpadminbar ul#wp-admin-bar-root-default>li {
120
- margin-left: 0;
121
- }
122
-
123
- #wpadminbar .quicklinks ul {
124
- text-align: right;
125
- }
126
-
127
- #wpadminbar li {
128
- float: right;
129
- }
130
-
131
- #wpadminbar .ab-empty-item {
132
- outline: none;
133
- }
134
-
135
- #wpadminbar .quicklinks .ab-top-secondary > li {
136
- float: left;
137
- }
138
-
139
- #wpadminbar .quicklinks a,
140
- #wpadminbar .quicklinks .ab-empty-item,
141
- #wpadminbar .shortlink-input {
142
- height: 32px;
143
- display: block;
144
- padding: 0 10px;
145
- margin: 0;
146
- }
147
-
148
- #wpadminbar .quicklinks > ul > li > a {
149
- padding: 0 7px 0 8px;
150
- }
151
-
152
- #wpadminbar .menupop .ab-sub-wrapper,
153
- #wpadminbar .shortlink-input {
154
- margin: 0;
155
- padding: 0;
156
- box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
157
- background: #32373c;
158
- display: none;
159
- position: absolute;
160
- float: none;
161
- }
162
-
163
- #wpadminbar.ie7 .menupop .ab-sub-wrapper,
164
- #wpadminbar.ie7 .shortlink-input {
165
- top: 32px;
166
- right: 0;
167
- }
168
-
169
- #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper {
170
- min-width: 100%;
171
- }
172
-
173
- #wpadminbar .ab-top-secondary .menupop .ab-sub-wrapper {
174
- left: 0;
175
- right: auto;
176
- }
177
-
178
- #wpadminbar .ab-submenu {
179
- padding: 6px 0;
180
- }
181
-
182
- #wpadminbar .selected .shortlink-input {
183
- display: block;
184
- }
185
-
186
- #wpadminbar .quicklinks .menupop ul li {
187
- float: none;
188
- }
189
-
190
- #wpadminbar .quicklinks .menupop ul li a strong {
191
- font-weight: 600;
192
- }
193
-
194
- #wpadminbar .quicklinks .menupop ul li .ab-item,
195
- #wpadminbar .quicklinks .menupop ul li a strong,
196
- #wpadminbar .quicklinks .menupop:focus-within ul li .ab-item,
197
- #wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item,
198
- #wpadminbar .shortlink-input {
199
- line-height: 2;
200
- height: 26px;
201
- white-space: nowrap;
202
- min-width: 140px;
203
- }
204
-
205
- #wpadminbar .shortlink-input {
206
- width: 200px;
207
- }
208
-
209
- #wpadminbar.nojs li:hover > .ab-sub-wrapper,
210
- #wpadminbar li:focus-within > .ab-sub-wrapper {
211
- display: block;
212
- }
213
-
214
- #wpadminbar .menupop li:hover > .ab-sub-wrapper,
215
- #wpadminbar .menupop li:focus-within > .ab-sub-wrapper {
216
- margin-right: 100%;
217
- margin-top: -32px;
218
- }
219
-
220
- #wpadminbar .ab-top-secondary .menupop li:hover > .ab-sub-wrapper,
221
- #wpadminbar .ab-top-secondary .menupop li:focus-within > .ab-sub-wrapper {
222
- margin-right: 0;
223
- right: inherit;
224
- left: 100%;
225
- }
226
-
227
- #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus,
228
- #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
229
- #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item,
230
- #wpadminbar .ab-top-menu > li:focus-within > .ab-item {
231
- background: #32373c;
232
- color: #00b9eb;
233
- }
234
- #wpadminbar .ab-top-menu > li:focus-within > .ab-item {
235
- background: #32373c;
236
- color: #00b9eb;
237
- }
238
-
239
- #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label,
240
- #wpadminbar > #wp-toolbar li:focus-within span.ab-label,
241
- #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label {
242
- color: #00b9eb;
243
- }
244
-
245
- #wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon,
246
- #wpadminbar .ab-icon,
247
- #wpadminbar .ab-item:before,
248
- .wp-admin-bar-arrow {
249
- position: relative;
250
- float: right;
251
- font: normal 20px/1 dashicons;
252
- speak: none;
253
- padding: 4px 0;
254
- -webkit-font-smoothing: antialiased;
255
- -moz-osx-font-smoothing: grayscale;
256
- background-image: none !important;
257
- margin-left: 6px;
258
- }
259
-
260
- #wpadminbar .ab-icon:before,
261
- #wpadminbar .ab-item:before,
262
- #wpadminbar #adminbarsearch:before {
263
- color: #a0a5aa;
264
- color: rgba(240, 245, 250, 0.6);
265
- }
266
-
267
- #wpadminbar .ab-icon:before,
268
- #wpadminbar .ab-item:before,
269
- #wpadminbar #adminbarsearch:before {
270
- position: relative;
271
- transition: all .1s ease-in-out;
272
- }
273
-
274
- #wpadminbar .ab-label {
275
- display: inline-block;
276
- height: 32px;
277
- }
278
-
279
- #wpadminbar .ab-submenu .ab-item {
280
- color: #b4b9be;
281
- color: rgba(240, 245, 250, 0.7);
282
- }
283
-
284
- #wpadminbar .quicklinks .menupop ul li a,
285
- #wpadminbar .quicklinks .menupop ul li a strong,
286
- #wpadminbar .quicklinks .menupop:focus-within ul li a,
287
- #wpadminbar.nojs .quicklinks .menupop:hover ul li a {
288
- color: #b4b9be;
289
- color: rgba(240, 245, 250, 0.7);
290
- }
291
-
292
- #wpadminbar .quicklinks .menupop ul li a:hover,
293
- #wpadminbar .quicklinks .menupop ul li a:focus,
294
- #wpadminbar .quicklinks .menupop ul li a:hover strong,
295
- #wpadminbar .quicklinks .menupop ul li a:focus strong,
296
- #wpadminbar .quicklinks .ab-sub-wrapper .menupop:focus-within > a,
297
- #wpadminbar .quicklinks .menupop:focus-within ul li a:hover,
298
- #wpadminbar .quicklinks .menupop:focus-within ul li a:focus,
299
- #wpadminbar .quicklinks .menupop:focus-within ul li div[tabindex]:hover,
300
- #wpadminbar .quicklinks .menupop:focus-within ul li div[tabindex]:focus,
301
- #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover,
302
- #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,
303
- #wpadminbar li:hover .ab-icon:before,
304
- #wpadminbar li:hover .ab-item:before,
305
- #wpadminbar li a:focus .ab-icon:before,
306
- #wpadminbar li .ab-item:focus:before,
307
- #wpadminbar li .ab-item:focus .ab-icon:before,
308
- #wpadminbar li:focus-within .ab-icon:before,
309
- #wpadminbar li:focus-within .ab-item:before,
310
- #wpadminbar li:hover #adminbarsearch:before,
311
- #wpadminbar li #adminbarsearch.adminbar-focused:before {
312
- color: #00b9eb;
313
- }
314
-
315
- #wpadminbar.mobile .quicklinks .ab-icon:before,
316
- #wpadminbar.mobile .quicklinks .ab-item:before {
317
- color: #b4b9be;
318
- }
319
-
320
- #wpadminbar.mobile .quicklinks :focus-within .ab-icon:before,
321
- #wpadminbar.mobile .quicklinks :focus-within .ab-item:before {
322
- color: #00b9eb;
323
- }
324
-
325
- #wpadminbar .menupop .menupop > .ab-item .wp-admin-bar-arrow:before,
326
- #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before {
327
- position: absolute;
328
- font: normal 17px/1 dashicons;
329
- speak: none;
330
- -webkit-font-smoothing: antialiased;
331
- -moz-osx-font-smoothing: grayscale;
332
- }
333
-
334
- #wpadminbar .menupop .menupop > .ab-item {
335
- display: block;
336
- padding-left: 2em;
337
- }
338
-
339
- #wpadminbar .menupop .menupop > .ab-item .wp-admin-bar-arrow:before {
340
- top: 1px;
341
- left: 10px;
342
- padding: 4px 0;
343
- content: "\f139";
344
- color: inherit;
345
- }
346
-
347
- #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item {
348
- padding-right: 2em;
349
- padding-left: 1em;
350
- }
351
-
352
- #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item .wp-admin-bar-arrow:before {
353
- top: 1px;
354
- right: 6px;
355
- content: "\f141";
356
- }
357
-
358
- #wpadminbar .quicklinks .menupop ul.ab-sub-secondary {
359
- display: block;
360
- position: relative;
361
- left: auto;
362
- margin: 0;
363
- box-shadow: none;
364
- }
365
-
366
- #wpadminbar .quicklinks .menupop ul.ab-sub-secondary,
367
- #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu {
368
- background: #464b50;
369
- }
370
-
371
- #wpadminbar .quicklinks .menupop .ab-sub-secondary > li > a:hover,
372
- #wpadminbar .quicklinks .menupop .ab-sub-secondary > li .ab-item:focus a {
373
- color: #00b9eb;
374
- }
375
-
376
- #wpadminbar .quicklinks a span#ab-updates {
377
- background: #eee;
378
- color: #32373c;
379
- display: inline;
380
- padding: 2px 5px;
381
- font-size: 10px;
382
- font-weight: 600;
383
- border-radius: 10px;
384
- }
385
-
386
- #wpadminbar .quicklinks a:hover span#ab-updates {
387
- background: #fff;
388
- color: #000;
389
- }
390
-
391
- #wpadminbar .ab-top-secondary {
392
- float: left;
393
- }
394
-
395
- #wpadminbar ul li:last-child,
396
- #wpadminbar ul li:last-child .ab-item {
397
- box-shadow: none;
398
- }
399
-
400
- /**
401
- * Recovery Mode
402
- */
403
- #wpadminbar #wp-admin-bar-recovery-mode {
404
- color: #fff;
405
- background-color: #ca4a1f;
406
- }
407
-
408
- #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode:focus-within >.ab-item,
409
- #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus,
410
- #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item,
411
- #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus {
412
- color: #fff;
413
- background-color: #c0461e;
414
- }
415
-
416
- /**
417
- * My Account
418
- */
419
- #wp-admin-bar-my-account > ul {
420
- min-width: 198px;
421
- }
422
-
423
- #wp-admin-bar-my-account > .ab-item:before {
424
- content: "\f110";
425
- top: 2px;
426
- float: left;
427
- margin-right: 6px;
428
- margin-left: 0;
429
- }
430
-
431
- #wp-admin-bar-my-account.with-avatar > .ab-item:before {
432
- display: none;
433
- content: none;
434
- }
435
-
436
- #wp-admin-bar-my-account.with-avatar > ul {
437
- min-width: 270px;
438
- }
439
-
440
- #wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar .ab-item {
441
- white-space: nowrap;
442
- }
443
-
444
- #wpadminbar #wp-admin-bar-user-actions > li {
445
- margin-right: 16px;
446
- margin-left: 16px;
447
- }
448
-
449
- #wpadminbar #wp-admin-bar-user-actions.ab-submenu {
450
- padding: 6px 0 12px;
451
- }
452
-
453
- #wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions > li {
454
- margin-right: 88px;
455
- }
456
-
457
- #wpadminbar #wp-admin-bar-user-info {
458
- margin-top: 6px;
459
- margin-bottom: 15px;
460
- height: auto;
461
- background: none;
462
- }
463
-
464
- #wp-admin-bar-user-info .avatar {
465
- position: absolute;
466
- right: -72px;
467
- top: 4px;
468
- width: 64px;
469
- height: 64px;
470
- }
471
-
472
- #wpadminbar #wp-admin-bar-user-info a {
473
- background: none;
474
- height: auto;
475
- }
476
-
477
- #wpadminbar #wp-admin-bar-user-info span {
478
- background: none;
479
- padding: 0;
480
- height: 18px;
481
- }
482
-
483
- #wpadminbar #wp-admin-bar-user-info .display-name,
484
- #wpadminbar #wp-admin-bar-user-info .username {
485
- display: block;
486
- }
487
-
488
- #wpadminbar #wp-admin-bar-user-info .username {
489
- color: #a0a5aa;
490
- font-size: 11px;
491
- }
492
-
493
- #wpadminbar #wp-admin-bar-my-account.with-avatar > .ab-empty-item img,
494
- #wpadminbar #wp-admin-bar-my-account.with-avatar > a img {
495
- width: 16px; /* Was auto. */
496
- height: 16px;
497
- padding: 0;
498
- border: 1px solid #82878c;
499
- background: #eee;
500
- line-height: 1.84615384;
501
- vertical-align: middle;
502
- margin: -4px 6px 0 0;
503
- float: none;
504
- display: inline-block; /* Was inline. */
505
- }
506
-
507
- #wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar > .ab-empty-item img,
508
- #wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar > a img {
509
- width: 16px; /* Was auto. */
510
- }
511
-
512
- /**
513
- * WP Logo
514
- */
515
- #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon {
516
- width: 15px;
517
- height: 20px;
518
- margin-left: 0;
519
- padding: 6px 0 5px;
520
- }
521
-
522
- #wpadminbar #wp-admin-bar-wp-logo > .ab-item {
523
- padding: 0 7px;
524
- }
525
-
526
- #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
527
- content: "\f120";
528
- top: 2px;
529
- }
530
-
531
- /*
532
- * My Sites & Site Title
533
- */
534
- #wpadminbar .quicklinks li .blavatar {
535
- float: right;
536
- font: normal 16px/1 dashicons !important;
537
- speak: none;
538
- -webkit-font-smoothing: antialiased;
539
- -moz-osx-font-smoothing: grayscale;
540
- color: #eee;
541
- }
542
-
543
- #wpadminbar .quicklinks li a:hover .blavatar,
544
- #wpadminbar .quicklinks li a:focus .blavatar,
545
- #wpadminbar .quicklinks .ab-sub-wrapper .menupop:focus-within > a .blavatar {
546
- color: #00b9eb;
547
- }
548
-
549
- #wpadminbar .quicklinks li .blavatar:before {
550
- content: "\f120";
551
- height: 16px;
552
- width: 16px;
553
- display: inline-block;
554
- margin: 6px -2px 0 8px;
555
- }
556
-
557
- #wpadminbar #wp-admin-bar-appearance {
558
- margin-top: -12px;
559
- }
560
-
561
- #wpadminbar #wp-admin-bar-my-sites > .ab-item:before,
562
- #wpadminbar #wp-admin-bar-site-name > .ab-item:before {
563
- content: "\f541";
564
- top: 2px;
565
- }
566
-
567
- #wpadminbar #wp-admin-bar-customize > .ab-item:before {
568
- content: "\f540";
569
- top: 2px;
570
- }
571
-
572
-
573
- #wpadminbar #wp-admin-bar-edit > .ab-item:before {
574
- content: "\f464";
575
- top: 2px;
576
- }
577
-
578
- #wpadminbar #wp-admin-bar-site-name > .ab-item:before {
579
- content: "\f226";
580
- }
581
-
582
- .wp-admin #wpadminbar #wp-admin-bar-site-name > .ab-item:before {
583
- content: "\f102";
584
- }
585
-
586
-
587
-
588
- /**
589
- * Comments
590
- */
591
- #wpadminbar #wp-admin-bar-comments .ab-icon {
592
- margin-left: 6px;
593
- }
594
-
595
- #wpadminbar #wp-admin-bar-comments .ab-icon:before {
596
- content: "\f101";
597
- top: 3px;
598
- }
599
-
600
- #wpadminbar #wp-admin-bar-comments .count-0 {
601
- opacity: .5;
602
- }
603
-
604
- /**
605
- * New Content
606
- */
607
- #wpadminbar #wp-admin-bar-new-content .ab-icon:before {
608
- content: "\f132";
609
- top: 4px;
610
- }
611
-
612
- /**
613
- * Updates
614
- */
615
- #wpadminbar #wp-admin-bar-updates .ab-icon:before {
616
- content: "\f463";
617
- top: 2px;
618
- }
619
-
620
- /**
621
- * Search
622
- */
623
- #wpadminbar.ie8 #wp-admin-bar-search {
624
- display: block;
625
- min-width: 32px;
626
- }
627
- #wpadminbar #wp-admin-bar-search .ab-item {
628
- padding: 0;
629
- background: transparent;
630
- }
631
-
632
- #wpadminbar #adminbarsearch {
633
- position: relative;
634
- height: 32px;
635
- padding: 0 2px;
636
- z-index: 1;
637
- }
638
-
639
- #wpadminbar #adminbarsearch:before {
640
- position: absolute;
641
- top: 6px;
642
- right: 5px;
643
- z-index: 20;
644
- font: normal 20px/1 dashicons !important;
645
- content: "\f179";
646
- speak: none;
647
- -webkit-font-smoothing: antialiased;
648
- -moz-osx-font-smoothing: grayscale;
649
- }
650
-
651
- /* The admin bar search field needs to reset many styles that might be inherited from the active Theme CSS. See ticket #40313. */
652
- #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input {
653
- display: inline-block;
654
- float: none;
655
- position: relative;
656
- z-index: 30;
657
- font-size: 13px;
658
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
659
- line-height: 1.84615384;
660
- text-indent: 0;
661
- height: 24px;
662
- width: 24px;
663
- max-width: none;
664
- padding: 0 24px 0 3px;
665
- margin: 0;
666
- color: #ccc;
667
- background-color: rgba(255, 255, 255, 0);
668
- border: none;
669
- outline: none;
670
- cursor: pointer;
671
- box-shadow: none;
672
- box-sizing: border-box;
673
- transition-duration: 400ms;
674
- transition-property: width, background;
675
- transition-timing-function: ease;
676
- }
677
-
678
- #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus {
679
- z-index: 10;
680
- color: #000;
681
- width: 200px;
682
- background-color: rgba(255, 255, 255, 0.9);
683
- cursor: text;
684
- border: 0;
685
- }
686
-
687
- #wpadminbar.ie7 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input {
688
- margin-top: 3px;
689
- width: 120px;
690
- }
691
-
692
- #wpadminbar.ie8 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input {
693
- /* IE8 z-index bug with transparent / empty elements - fill in with an encoded transparent GIF */
694
- background: transparent 100% 0 repeat scroll url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
695
- }
696
-
697
- /* IE8 doesn't redraw the pseudo elements unless you make a change to the content */
698
- #wpadminbar.ie8 #adminbarsearch.adminbar-focused:before {
699
- content: "\f179 "; /* extra space */
700
- }
701
-
702
- #wpadminbar.ie8 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus {
703
- background: #fff;
704
- z-index: -1;
705
- }
706
-
707
- #wpadminbar #adminbarsearch .adminbar-button {
708
- display: none;
709
- }
710
-
711
- /**
712
- * Customize support classes
713
- */
714
- .no-customize-support .hide-if-no-customize,
715
- .customize-support .hide-if-customize,
716
- .no-customize-support #wpadminbar .hide-if-no-customize,
717
- .no-customize-support.wp-core-ui .hide-if-no-customize,
718
- .no-customize-support .wp-core-ui .hide-if-no-customize,
719
- .customize-support #wpadminbar .hide-if-customize,
720
- .customize-support.wp-core-ui .hide-if-customize,
721
- .customize-support .wp-core-ui .hide-if-customize {
722
- display: none;
723
- }
724
-
725
- /* Skip link */
726
- #wpadminbar .screen-reader-text,
727
- #wpadminbar .screen-reader-text span {
728
- border: 0;
729
- clip: rect(1px, 1px, 1px, 1px);
730
- -webkit-clip-path: inset(50%);
731
- clip-path: inset(50%);
732
- height: 1px;
733
- margin: -1px;
734
- overflow: hidden;
735
- padding: 0;
736
- position: absolute;
737
- width: 1px;
738
- word-wrap: normal !important;
739
- }
740
-
741
- #wpadminbar .screen-reader-shortcut {
742
- position: absolute;
743
- top: -1000em;
744
- }
745
-
746
- #wpadminbar .screen-reader-shortcut:focus {
747
- right: 6px;
748
- top: 7px;
749
- height: auto;
750
- width: auto;
751
- display: block;
752
- font-size: 14px;
753
- font-weight: 600;
754
- padding: 15px 23px 14px;
755
- background: #f1f1f1;
756
- color: #0073aa;
757
- z-index: 100000;
758
- line-height: normal;
759
- text-decoration: none;
760
- box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
761
- }
762
-
763
- /**
764
- * IE 6-targeted rules
765
- */
766
- * html #wpadminbar {
767
- overflow: hidden;
768
- position: absolute;
769
- }
770
-
771
- * html #wpadminbar .quicklinks ul li a {
772
- float: right;
773
- }
774
-
775
- * html #wpadminbar .menupop a span {
776
- background-image: none;
777
- }
778
-
779
- /* No @font-face support */
780
- .no-font-face #wpadminbar ul.ab-top-menu > li > a.ab-item {
781
- display: block;
782
- width: 45px;
783
- text-align: center;
784
- overflow: hidden;
785
- margin: 0 3px;
786
- }
787
-
788
- .no-font-face #wpadminbar #wp-admin-bar-my-sites > .ab-item,
789
- .no-font-face #wpadminbar #wp-admin-bar-site-name > .ab-item,
790
- .no-font-face #wpadminbar #wp-admin-bar-edit > .ab-item {
791
- text-indent: 0;
792
- }
793
-
794
- .no-font-face #wpadminbar .ab-icon,
795
- .no-font-face #wpadminbar .ab-icon:before,
796
- .no-font-face #wpadminbar a.ab-item:before,
797
- .no-font-face #wpadminbar #wp-admin-bar-wp-logo > .ab-item {
798
- display: none !important;
799
- }
800
-
801
- .no-font-face #wpadminbar ul.ab-top-menu > li > a > span.ab-label {
802
- display: inline;
803
- }
804
-
805
- .no-font-face #wpadminbar #wp-admin-bar-menu-toggle span.ab-icon {
806
- display: inline !important;
807
- }
808
-
809
- .no-font-face #wpadminbar #wp-admin-bar-menu-toggle span.ab-icon:before {
810
- content: "Menu";
811
- font: 14px/45px sans-serif !important;
812
- display: inline-block !important;
813
- color: #fff;
814
- }
815
-
816
- .no-font-face #wpadminbar #wp-admin-bar-site-name a.ab-item {
817
- color: #fff;
818
- }
819
- /* End no @font-face */
820
-
821
- @media screen and (max-width: 782px) {
822
- /* Toolbar Touchification*/
823
- html #wpadminbar {
824
- height: 46px;
825
- min-width: 240px; /* match the min-width of the body in wp-admin/css/common.css */
826
- }
827
-
828
- #wpadminbar * {
829
- font-size: 14px;
830
- font-weight: 400;
831
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
832
- line-height: 2.28571428;
833
- }
834
-
835
- #wpadminbar .quicklinks > ul > li > a,
836
- #wpadminbar .quicklinks .ab-empty-item {
837
- padding: 0;
838
- height: 46px;
839
- line-height: 3.28571428;
840
- width: auto;
841
- }
842
-
843
- #wpadminbar .ab-icon {
844
- font: 40px/1 dashicons !important;
845
- margin: 0;
846
- padding: 0;
847
- width: 52px;
848
- height: 46px;
849
- text-align: center;
850
- }
851
-
852
- #wpadminbar .ab-icon:before {
853
- text-align: center;
854
- }
855
-
856
- #wpadminbar .ab-submenu {
857
- padding: 0;
858
- }
859
-
860
- #wpadminbar #wp-admin-bar-site-name a.ab-item,
861
- #wpadminbar #wp-admin-bar-my-sites a.ab-item,
862
- #wpadminbar #wp-admin-bar-my-account a.ab-item {
863
- text-overflow: clip;
864
- }
865
-
866
- #wpadminbar .quicklinks .menupop ul li .ab-item,
867
- #wpadminbar .quicklinks .menupop ul li a strong,
868
- #wpadminbar .quicklinks .menupop:focus-within ul li .ab-item,
869
- #wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item,
870
- #wpadminbar .shortlink-input {
871
- line-height: 1.6;
872
- }
873
-
874
- #wpadminbar .ab-label {
875
- display: none;
876
- }
877
-
878
- #wpadminbar .menupop li:hover > .ab-sub-wrapper,
879
- #wpadminbar .menupop li:focus-within > .ab-sub-wrapper {
880
- margin-top: -46px;
881
- }
882
-
883
- #wpadminbar .ab-top-menu .menupop .ab-sub-wrapper .menupop > .ab-item {
884
- padding-left: 30px;
885
- }
886
-
887
- #wpadminbar .menupop .menupop > .ab-item:before {
888
- top: 10px;
889
- left: 6px;
890
- }
891
-
892
- #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper .ab-item {
893
- font-size: 16px;
894
- padding: 8px 16px;
895
- }
896
-
897
- #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper a:empty {
898
- display: none;
899
- }
900
-
901
- /* WP logo */
902
- #wpadminbar #wp-admin-bar-wp-logo > .ab-item {
903
- padding: 0;
904
- }
905
-
906
- #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon {
907
- padding: 0;
908
- width: 52px;
909
- height: 46px;
910
- text-align: center;
911
- vertical-align: top;
912
- }
913
-
914
- #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
915
- font: 28px/1 dashicons !important;
916
- top: -3px;
917
- }
918
-
919
- #wpadminbar .ab-icon,
920
- #wpadminbar .ab-item:before {
921
- padding: 0;
922
- }
923
-
924
- /* My Sites and "Site Title" menu */
925
- #wpadminbar #wp-admin-bar-my-sites > .ab-item,
926
- #wpadminbar #wp-admin-bar-site-name > .ab-item,
927
- #wpadminbar #wp-admin-bar-customize > .ab-item,
928
- #wpadminbar #wp-admin-bar-edit > .ab-item,
929
- #wpadminbar #wp-admin-bar-my-account > .ab-item {
930
- text-indent: 100%;
931
- white-space: nowrap;
932
- overflow: hidden;
933
- width: 52px;
934
- padding: 0;
935
- color: #a0a5aa; /* @todo not needed? this text is hidden */
936
- position: relative;
937
- }
938
-
939
- #wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon,
940
- #wpadminbar .ab-icon,
941
- #wpadminbar .ab-item:before {
942
- padding: 0;
943
- margin-left: 0;
944
- }
945
-
946
- #wpadminbar #wp-admin-bar-edit > .ab-item:before,
947
- #wpadminbar #wp-admin-bar-my-sites > .ab-item:before,
948
- #wpadminbar #wp-admin-bar-site-name > .ab-item:before,
949
- #wpadminbar #wp-admin-bar-customize > .ab-item:before,
950
- #wpadminbar #wp-admin-bar-my-account > .ab-item:before {
951
- display: block;
952
- text-indent: 0;
953
- font: normal 32px/1 dashicons;
954
- speak: none;
955
- top: 7px;
956
- width: 52px;
957
- text-align: center;
958
- -webkit-font-smoothing: antialiased;
959
- -moz-osx-font-smoothing: grayscale;
960
- }
961
-
962
- #wpadminbar #wp-admin-bar-appearance {
963
- margin-top: 0;
964
- }
965
-
966
- #wpadminbar .quicklinks li .blavatar:before {
967
- display: none;
968
- }
969
-
970
- /* Search */
971
- #wpadminbar #wp-admin-bar-search {
972
- display: none;
973
- }
974
-
975
- /* New Content */
976
- #wpadminbar #wp-admin-bar-new-content .ab-icon:before {
977
- top: 0;
978
- line-height: 1.33333333;
979
- height: 46px !important;
980
- text-align: center;
981
- width: 52px;
982
- display: block;
983
- }
984
-
985
- /* Updates */
986
- #wpadminbar #wp-admin-bar-updates {
987
- text-align: center;
988
- }
989
-
990
- #wpadminbar #wp-admin-bar-updates .ab-icon:before {
991
- top: 3px;
992
- }
993
-
994
- /* Comments */
995
- #wpadminbar #wp-admin-bar-comments .ab-icon {
996
- margin: 0;
997
- }
998
-
999
- #wpadminbar #wp-admin-bar-comments .ab-icon:before {
1000
- display: block;
1001
- font-size: 34px;
1002
- height: 46px;
1003
- line-height: 1.38235294;
1004
- top: 0;
1005
- }
1006
-
1007
- /* My Account */
1008
- #wpadminbar #wp-admin-bar-my-account > a {
1009
- position: relative;
1010
- white-space: nowrap;
1011
- text-indent: 150%; /* More than 100% indention is needed since this element has padding */
1012
- width: 28px;
1013
- padding: 0 10px;
1014
- overflow: hidden; /* Prevent link text from forcing horizontal scrolling on mobile */
1015
- }
1016
-
1017
- #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img {
1018
- position: absolute;
1019
- top: 13px;
1020
- left: 10px;
1021
- width: 26px;
1022
- height: 26px;
1023
- }
1024
-
1025
- #wpadminbar #wp-admin-bar-user-actions.ab-submenu {
1026
- padding: 0;
1027
- }
1028
-
1029
- #wpadminbar #wp-admin-bar-user-actions.ab-submenu img.avatar {
1030
- display: none;
1031
- }
1032
-
1033
- #wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions > li {
1034
- margin: 0;
1035
- }
1036
-
1037
- #wpadminbar #wp-admin-bar-user-info .display-name {
1038
- height: auto;
1039
- font-size: 16px;
1040
- line-height: 1.5;
1041
- color: #eee;
1042
- }
1043
-
1044
- #wpadminbar #wp-admin-bar-user-info a {
1045
- padding-top: 4px;
1046
- }
1047
-
1048
- #wpadminbar #wp-admin-bar-user-info .username {
1049
- line-height: 0.8 !important;
1050
- margin-bottom: -2px;
1051
- }
1052
-
1053
- /* Show only default top level items */
1054
- #wp-toolbar > ul > li {
1055
- display: none;
1056
- }
1057
-
1058
- #wpadminbar li#wp-admin-bar-menu-toggle,
1059
- #wpadminbar li#wp-admin-bar-wp-logo,
1060
- #wpadminbar li#wp-admin-bar-my-sites,
1061
- #wpadminbar li#wp-admin-bar-updates,
1062
- #wpadminbar li#wp-admin-bar-site-name,
1063
- #wpadminbar li#wp-admin-bar-customize,
1064
- #wpadminbar li#wp-admin-bar-new-content,
1065
- #wpadminbar li#wp-admin-bar-edit,
1066
- #wpadminbar li#wp-admin-bar-comments,
1067
- #wpadminbar li#wp-admin-bar-my-account {
1068
- display: block;
1069
- }
1070
-
1071
- /* Allow dropdown list items to appear normally */
1072
- #wpadminbar li:hover ul li,
1073
- #wpadminbar li:focus-within ul li,
1074
- #wpadminbar li:hover ul li:hover ul li {
1075
- display: list-item;
1076
- }
1077
-
1078
- /* Override default min-width so dropdown lists aren't stretched
1079
- to 100% viewport width at responsive sizes. */
1080
- #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper {
1081
- min-width: -webkit-fit-content;
1082
- min-width: -moz-fit-content;
1083
- min-width: fit-content;
1084
- }
1085
-
1086
- #wpadminbar ul#wp-admin-bar-root-default > li {
1087
- margin-left: 0;
1088
- }
1089
-
1090
- /* Experimental fix for touch toolbar dropdown positioning */
1091
- #wpadminbar .ab-top-menu,
1092
- #wpadminbar .ab-top-secondary,
1093
- #wpadminbar #wp-admin-bar-wp-logo,
1094
- #wpadminbar #wp-admin-bar-my-sites,
1095
- #wpadminbar #wp-admin-bar-site-name,
1096
- #wpadminbar #wp-admin-bar-updates,
1097
- #wpadminbar #wp-admin-bar-comments,
1098
- #wpadminbar #wp-admin-bar-new-content,
1099
- #wpadminbar #wp-admin-bar-edit,
1100
- #wpadminbar #wp-admin-bar-my-account {
1101
- position: static;
1102
- }
1103
-
1104
- #wpadminbar #wp-admin-bar-my-account {
1105
- float: left;
1106
- }
1107
-
1108
- .network-admin #wpadminbar ul#wp-admin-bar-top-secondary > li#wp-admin-bar-my-account {
1109
- margin-left: 0;
1110
- }
1111
-
1112
- /* Realign arrows on taller responsive submenus */
1113
-
1114
- #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before {
1115
- top: 10px;
1116
- right: 0;
1117
- }
1118
- }
1119
-
1120
- /* Smartphone */
1121
- @media screen and (max-width: 600px) {
1122
- /* Removed: #wpadminbar { position: absolute; } */
1123
-
1124
- #wp-responsive-overlay {
1125
- position: fixed;
1126
- top: 0;
1127
- right: 0;
1128
- width: 100%;
1129
- height: 100%;
1130
- z-index: 400;
1131
- }
1132
-
1133
- #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper {
1134
- width: 100%;
1135
- right: 0;
1136
- }
1137
-
1138
- #wpadminbar .menupop .menupop > .ab-item:before {
1139
- display: none;
1140
- }
1141
-
1142
- #wpadminbar #wp-admin-bar-wp-logo.menupop .ab-sub-wrapper {
1143
- margin-right: 0;
1144
- }
1145
-
1146
- #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper {
1147
- margin: 0;
1148
- width: 100%;
1149
- top: auto;
1150
- right: auto;
1151
- position: relative;
1152
- }
1153
-
1154
- #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper .ab-item {
1155
- font-size: 16px;
1156
- padding: 6px 30px 19px 15px;
1157
- }
1158
-
1159
- #wpadminbar li:hover ul li ul li {
1160
- display: list-item;
1161
- }
1162
-
1163
- #wpadminbar li#wp-admin-bar-wp-logo,
1164
- #wpadminbar li#wp-admin-bar-updates {
1165
- display: none;
1166
- }
1167
-
1168
- /* Make submenus full-width at this size */
1169
-
1170
- #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper {
1171
- position: static;
1172
- box-shadow: none;
1173
- }
1174
- }
1175
-
1176
- /* Very narrow screens */
1177
- @media screen and (max-width: 400px) {
1178
- #wpadminbar li#wp-admin-bar-comments {
1179
- display: none;
1180
- }
1181
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/admin-bar.css DELETED
@@ -1,1181 +0,0 @@
1
- /*
2
- This is forked from core's admin-bar.css from WP 5.3-alpha at 160fc055da156248277513dd5256fbcc66faa5a7.
3
-
4
- https://github.com/WordPress/wordpress-develop/blob/160fc055da156248277513dd5256fbcc66faa5a7/src/wp-includes/css/admin-bar.css
5
-
6
- - References to .hover have been replaced with :focus-within (which is not supported in IE11).
7
- - Universal selector properties have been removed which interferes with AMP shadow elements.
8
- */
9
-
10
- #wpadminbar * {
11
- height: auto;
12
- width: auto;
13
- margin: 0;
14
- padding: 0;
15
- /* Removed because interferes with amp-img>img: position: static; */
16
- text-shadow: none;
17
- text-transform: none;
18
- letter-spacing: normal;
19
- font-size: 13px;
20
- font-weight: 400;
21
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
22
- line-height: 2.46153846;
23
- border-radius: 0;
24
- box-sizing: content-box;
25
- transition: none;
26
- -webkit-font-smoothing: subpixel-antialiased; /* Prevent Safari from switching to standard antialiasing on hover */
27
- -moz-osx-font-smoothing: auto; /* Prevent Firefox from inheriting from themes that use other values */
28
- }
29
-
30
- .rtl #wpadminbar * {
31
- font-family: Tahoma, sans-serif;
32
- }
33
-
34
- html:lang(he-il) .rtl #wpadminbar * {
35
- font-family: Arial, sans-serif;
36
- }
37
-
38
- #wpadminbar .ab-empty-item {
39
- cursor: default;
40
- }
41
-
42
- #wpadminbar .ab-empty-item,
43
- #wpadminbar a.ab-item,
44
- #wpadminbar > #wp-toolbar span.ab-label,
45
- #wpadminbar > #wp-toolbar span.noticon {
46
- color: #eee;
47
- }
48
-
49
- #wpadminbar #wp-admin-bar-site-name a.ab-item,
50
- #wpadminbar #wp-admin-bar-my-sites a.ab-item {
51
- white-space: nowrap;
52
- overflow: hidden;
53
- text-overflow: ellipsis;
54
- }
55
-
56
- #wpadminbar ul li:before,
57
- #wpadminbar ul li:after {
58
- content: normal;
59
- }
60
-
61
- #wpadminbar a,
62
- #wpadminbar a:hover,
63
- #wpadminbar a img,
64
- #wpadminbar a img:hover {
65
- border: none;
66
- text-decoration: none;
67
- background: none;
68
- }
69
-
70
- #wpadminbar a:focus,
71
- #wpadminbar a:active,
72
- #wpadminbar input[type="text"],
73
- #wpadminbar input[type="password"],
74
- #wpadminbar input[type="number"],
75
- #wpadminbar input[type="search"],
76
- #wpadminbar input[type="email"],
77
- #wpadminbar input[type="url"],
78
- #wpadminbar select,
79
- #wpadminbar textarea,
80
- #wpadminbar div {
81
- box-shadow: none;
82
- }
83
-
84
- #wpadminbar a:focus {
85
- /* Inherits transparent outline only visible in Windows High Contrast mode */
86
- outline-offset: -1px;
87
- }
88
-
89
- #wpadminbar {
90
- direction: ltr;
91
- color: #ccc;
92
- font-size: 13px;
93
- font-weight: 400;
94
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
95
- line-height: 2.46153846;
96
- height: 32px;
97
- position: fixed;
98
- top: 0;
99
- left: 0;
100
- width: 100%;
101
- min-width: 600px; /* match the min-width of the body in wp-admin/css/common.css */
102
- z-index: 99999;
103
- background: #23282d;
104
- }
105
-
106
- #wpadminbar .ab-sub-wrapper,
107
- #wpadminbar ul,
108
- #wpadminbar ul li {
109
- background: none;
110
- clear: none;
111
- list-style: none;
112
- margin: 0;
113
- padding: 0;
114
- position: relative;
115
- text-indent: 0;
116
- z-index: 99999;
117
- }
118
-
119
- #wpadminbar ul#wp-admin-bar-root-default>li {
120
- margin-right: 0;
121
- }
122
-
123
- #wpadminbar .quicklinks ul {
124
- text-align: left;
125
- }
126
-
127
- #wpadminbar li {
128
- float: left;
129
- }
130
-
131
- #wpadminbar .ab-empty-item {
132
- outline: none;
133
- }
134
-
135
- #wpadminbar .quicklinks .ab-top-secondary > li {
136
- float: right;
137
- }
138
-
139
- #wpadminbar .quicklinks a,
140
- #wpadminbar .quicklinks .ab-empty-item,
141
- #wpadminbar .shortlink-input {
142
- height: 32px;
143
- display: block;
144
- padding: 0 10px;
145
- margin: 0;
146
- }
147
-
148
- #wpadminbar .quicklinks > ul > li > a {
149
- padding: 0 8px 0 7px;
150
- }
151
-
152
- #wpadminbar .menupop .ab-sub-wrapper,
153
- #wpadminbar .shortlink-input {
154
- margin: 0;
155
- padding: 0;
156
- box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
157
- background: #32373c;
158
- display: none;
159
- position: absolute;
160
- float: none;
161
- }
162
-
163
- #wpadminbar.ie7 .menupop .ab-sub-wrapper,
164
- #wpadminbar.ie7 .shortlink-input {
165
- top: 32px;
166
- left: 0;
167
- }
168
-
169
- #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper {
170
- min-width: 100%;
171
- }
172
-
173
- #wpadminbar .ab-top-secondary .menupop .ab-sub-wrapper {
174
- right: 0;
175
- left: auto;
176
- }
177
-
178
- #wpadminbar .ab-submenu {
179
- padding: 6px 0;
180
- }
181
-
182
- #wpadminbar .selected .shortlink-input {
183
- display: block;
184
- }
185
-
186
- #wpadminbar .quicklinks .menupop ul li {
187
- float: none;
188
- }
189
-
190
- #wpadminbar .quicklinks .menupop ul li a strong {
191
- font-weight: 600;
192
- }
193
-
194
- #wpadminbar .quicklinks .menupop ul li .ab-item,
195
- #wpadminbar .quicklinks .menupop ul li a strong,
196
- #wpadminbar .quicklinks .menupop:focus-within ul li .ab-item,
197
- #wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item,
198
- #wpadminbar .shortlink-input {
199
- line-height: 2;
200
- height: 26px;
201
- white-space: nowrap;
202
- min-width: 140px;
203
- }
204
-
205
- #wpadminbar .shortlink-input {
206
- width: 200px;
207
- }
208
-
209
- #wpadminbar.nojs li:hover > .ab-sub-wrapper,
210
- #wpadminbar li:focus-within > .ab-sub-wrapper {
211
- display: block;
212
- }
213
-
214
- #wpadminbar .menupop li:hover > .ab-sub-wrapper,
215
- #wpadminbar .menupop li:focus-within > .ab-sub-wrapper {
216
- margin-left: 100%;
217
- margin-top: -32px;
218
- }
219
-
220
- #wpadminbar .ab-top-secondary .menupop li:hover > .ab-sub-wrapper,
221
- #wpadminbar .ab-top-secondary .menupop li:focus-within > .ab-sub-wrapper {
222
- margin-left: 0;
223
- left: inherit;
224
- right: 100%;
225
- }
226
-
227
- #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus,
228
- #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
229
- #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item,
230
- #wpadminbar .ab-top-menu > li:focus-within > .ab-item {
231
- background: #32373c;
232
- color: #00b9eb;
233
- }
234
- #wpadminbar .ab-top-menu > li:focus-within > .ab-item {
235
- background: #32373c;
236
- color: #00b9eb;
237
- }
238
-
239
- #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label,
240
- #wpadminbar > #wp-toolbar li:focus-within span.ab-label,
241
- #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label {
242
- color: #00b9eb;
243
- }
244
-
245
- #wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon,
246
- #wpadminbar .ab-icon,
247
- #wpadminbar .ab-item:before,
248
- .wp-admin-bar-arrow {
249
- position: relative;
250
- float: left;
251
- font: normal 20px/1 dashicons;
252
- speak: none;
253
- padding: 4px 0;
254
- -webkit-font-smoothing: antialiased;
255
- -moz-osx-font-smoothing: grayscale;
256
- background-image: none !important;
257
- margin-right: 6px;
258
- }
259
-
260
- #wpadminbar .ab-icon:before,
261
- #wpadminbar .ab-item:before,
262
- #wpadminbar #adminbarsearch:before {
263
- color: #a0a5aa;
264
- color: rgba(240, 245, 250, 0.6);
265
- }
266
-
267
- #wpadminbar .ab-icon:before,
268
- #wpadminbar .ab-item:before,
269
- #wpadminbar #adminbarsearch:before {
270
- position: relative;
271
- transition: all .1s ease-in-out;
272
- }
273
-
274
- #wpadminbar .ab-label {
275
- display: inline-block;
276
- height: 32px;
277
- }
278
-
279
- #wpadminbar .ab-submenu .ab-item {
280
- color: #b4b9be;
281
- color: rgba(240, 245, 250, 0.7);
282
- }
283
-
284
- #wpadminbar .quicklinks .menupop ul li a,
285
- #wpadminbar .quicklinks .menupop ul li a strong,
286
- #wpadminbar .quicklinks .menupop:focus-within ul li a,
287
- #wpadminbar.nojs .quicklinks .menupop:hover ul li a {
288
- color: #b4b9be;
289
- color: rgba(240, 245, 250, 0.7);
290
- }
291
-
292
- #wpadminbar .quicklinks .menupop ul li a:hover,
293
- #wpadminbar .quicklinks .menupop ul li a:focus,
294
- #wpadminbar .quicklinks .menupop ul li a:hover strong,
295
- #wpadminbar .quicklinks .menupop ul li a:focus strong,
296
- #wpadminbar .quicklinks .ab-sub-wrapper .menupop:focus-within > a,
297
- #wpadminbar .quicklinks .menupop:focus-within ul li a:hover,
298
- #wpadminbar .quicklinks .menupop:focus-within ul li a:focus,
299
- #wpadminbar .quicklinks .menupop:focus-within ul li div[tabindex]:hover,
300
- #wpadminbar .quicklinks .menupop:focus-within ul li div[tabindex]:focus,
301
- #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover,
302
- #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,
303
- #wpadminbar li:hover .ab-icon:before,
304
- #wpadminbar li:hover .ab-item:before,
305
- #wpadminbar li a:focus .ab-icon:before,
306
- #wpadminbar li .ab-item:focus:before,
307
- #wpadminbar li .ab-item:focus .ab-icon:before,
308
- #wpadminbar li:focus-within .ab-icon:before,
309
- #wpadminbar li:focus-within .ab-item:before,
310
- #wpadminbar li:hover #adminbarsearch:before,
311
- #wpadminbar li #adminbarsearch.adminbar-focused:before {
312
- color: #00b9eb;
313
- }
314
-
315
- #wpadminbar.mobile .quicklinks .ab-icon:before,
316
- #wpadminbar.mobile .quicklinks .ab-item:before {
317
- color: #b4b9be;
318
- }
319
-
320
- #wpadminbar.mobile .quicklinks :focus-within .ab-icon:before,
321
- #wpadminbar.mobile .quicklinks :focus-within .ab-item:before {
322
- color: #00b9eb;
323
- }
324
-
325
- #wpadminbar .menupop .menupop > .ab-item .wp-admin-bar-arrow:before,
326
- #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before {
327
- position: absolute;
328
- font: normal 17px/1 dashicons;
329
- speak: none;
330
- -webkit-font-smoothing: antialiased;
331
- -moz-osx-font-smoothing: grayscale;
332
- }
333
-
334
- #wpadminbar .menupop .menupop > .ab-item {
335
- display: block;
336
- padding-right: 2em;
337
- }
338
-
339
- #wpadminbar .menupop .menupop > .ab-item .wp-admin-bar-arrow:before {
340
- top: 1px;
341
- right: 10px;
342
- padding: 4px 0;
343
- content: "\f139";
344
- color: inherit;
345
- }
346
-
347
- #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item {
348
- padding-left: 2em;
349
- padding-right: 1em;
350
- }
351
-
352
- #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item .wp-admin-bar-arrow:before {
353
- top: 1px;
354
- left: 6px;
355
- content: "\f141";
356
- }
357
-
358
- #wpadminbar .quicklinks .menupop ul.ab-sub-secondary {
359
- display: block;
360
- position: relative;
361
- right: auto;
362
- margin: 0;
363
- box-shadow: none;
364
- }
365
-
366
- #wpadminbar .quicklinks .menupop ul.ab-sub-secondary,
367
- #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu {
368
- background: #464b50;
369
- }
370
-
371
- #wpadminbar .quicklinks .menupop .ab-sub-secondary > li > a:hover,
372
- #wpadminbar .quicklinks .menupop .ab-sub-secondary > li .ab-item:focus a {
373
- color: #00b9eb;
374
- }
375
-
376
- #wpadminbar .quicklinks a span#ab-updates {
377
- background: #eee;
378
- color: #32373c;
379
- display: inline;
380
- padding: 2px 5px;
381
- font-size: 10px;
382
- font-weight: 600;
383
- border-radius: 10px;
384
- }
385
-
386
- #wpadminbar .quicklinks a:hover span#ab-updates {
387
- background: #fff;
388
- color: #000;
389
- }
390
-
391
- #wpadminbar .ab-top-secondary {
392
- float: right;
393
- }
394
-
395
- #wpadminbar ul li:last-child,
396
- #wpadminbar ul li:last-child .ab-item {
397
- box-shadow: none;
398
- }
399
-
400
- /**
401
- * Recovery Mode
402
- */
403
- #wpadminbar #wp-admin-bar-recovery-mode {
404
- color: #fff;
405
- background-color: #ca4a1f;
406
- }
407
-
408
- #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode:focus-within >.ab-item,
409
- #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus,
410
- #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item,
411
- #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus {
412
- color: #fff;
413
- background-color: #c0461e;
414
- }
415
-
416
- /**
417
- * My Account
418
- */
419
- #wp-admin-bar-my-account > ul {
420
- min-width: 198px;
421
- }
422
-
423
- #wp-admin-bar-my-account > .ab-item:before {
424
- content: "\f110";
425
- top: 2px;
426
- float: right;
427
- margin-left: 6px;
428
- margin-right: 0;
429
- }
430
-
431
- #wp-admin-bar-my-account.with-avatar > .ab-item:before {
432
- display: none;
433
- content: none;
434
- }
435
-
436
- #wp-admin-bar-my-account.with-avatar > ul {
437
- min-width: 270px;
438
- }
439
-
440
- #wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar .ab-item {
441
- white-space: nowrap;
442
- }
443
-
444
- #wpadminbar #wp-admin-bar-user-actions > li {
445
- margin-left: 16px;
446
- margin-right: 16px;
447
- }
448
-
449
- #wpadminbar #wp-admin-bar-user-actions.ab-submenu {
450
- padding: 6px 0 12px;
451
- }
452
-
453
- #wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions > li {
454
- margin-left: 88px;
455
- }
456
-
457
- #wpadminbar #wp-admin-bar-user-info {
458
- margin-top: 6px;
459
- margin-bottom: 15px;
460
- height: auto;
461
- background: none;
462
- }
463
-
464
- #wp-admin-bar-user-info .avatar {
465
- position: absolute;
466
- left: -72px;
467
- top: 4px;
468
- width: 64px;
469
- height: 64px;
470
- }
471
-
472
- #wpadminbar #wp-admin-bar-user-info a {
473
- background: none;
474
- height: auto;
475
- }
476
-
477
- #wpadminbar #wp-admin-bar-user-info span {
478
- background: none;
479
- padding: 0;
480
- height: 18px;
481
- }
482
-
483
- #wpadminbar #wp-admin-bar-user-info .display-name,
484
- #wpadminbar #wp-admin-bar-user-info .username {
485
- display: block;
486
- }
487
-
488
- #wpadminbar #wp-admin-bar-user-info .username {
489
- color: #a0a5aa;
490
- font-size: 11px;
491
- }
492
-
493
- #wpadminbar #wp-admin-bar-my-account.with-avatar > .ab-empty-item img,
494
- #wpadminbar #wp-admin-bar-my-account.with-avatar > a img {
495
- width: 16px; /* Was auto. */
496
- height: 16px;
497
- padding: 0;
498
- border: 1px solid #82878c;
499
- background: #eee;
500
- line-height: 1.84615384;
501
- vertical-align: middle;
502
- margin: -4px 0 0 6px;
503
- float: none;
504
- display: inline-block; /* Was inline. */
505
- }
506
-
507
- #wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar > .ab-empty-item img,
508
- #wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar > a img {
509
- width: 16px; /* Was auto. */
510
- }
511
-
512
- /**
513
- * WP Logo
514
- */
515
- #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon {
516
- width: 15px;
517
- height: 20px;
518
- margin-right: 0;
519
- padding: 6px 0 5px;
520
- }
521
-
522
- #wpadminbar #wp-admin-bar-wp-logo > .ab-item {
523
- padding: 0 7px;
524
- }
525
-
526
- #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
527
- content: "\f120";
528
- top: 2px;
529
- }
530
-
531
- /*
532
- * My Sites & Site Title
533
- */
534
- #wpadminbar .quicklinks li .blavatar {
535
- float: left;
536
- font: normal 16px/1 dashicons !important;
537
- speak: none;
538
- -webkit-font-smoothing: antialiased;
539
- -moz-osx-font-smoothing: grayscale;
540
- color: #eee;
541
- }
542
-
543
- #wpadminbar .quicklinks li a:hover .blavatar,
544
- #wpadminbar .quicklinks li a:focus .blavatar,
545
- #wpadminbar .quicklinks .ab-sub-wrapper .menupop:focus-within > a .blavatar {
546
- color: #00b9eb;
547
- }
548
-
549
- #wpadminbar .quicklinks li .blavatar:before {
550
- content: "\f120";
551
- height: 16px;
552
- width: 16px;
553
- display: inline-block;
554
- margin: 6px 8px 0 -2px;
555
- }
556
-
557
- #wpadminbar #wp-admin-bar-appearance {
558
- margin-top: -12px;
559
- }
560
-
561
- #wpadminbar #wp-admin-bar-my-sites > .ab-item:before,
562
- #wpadminbar #wp-admin-bar-site-name > .ab-item:before {
563
- content: "\f541";
564
- top: 2px;
565
- }
566
-
567
- #wpadminbar #wp-admin-bar-customize > .ab-item:before {
568
- content: "\f540";
569
- top: 2px;
570
- }
571
-
572
-
573
- #wpadminbar #wp-admin-bar-edit > .ab-item:before {
574
- content: "\f464";
575
- top: 2px;
576
- }
577
-
578
- #wpadminbar #wp-admin-bar-site-name > .ab-item:before {
579
- content: "\f226";
580
- }
581
-
582
- .wp-admin #wpadminbar #wp-admin-bar-site-name > .ab-item:before {
583
- content: "\f102";
584
- }
585
-
586
-
587
-
588
- /**
589
- * Comments
590
- */
591
- #wpadminbar #wp-admin-bar-comments .ab-icon {
592
- margin-right: 6px;
593
- }
594
-
595
- #wpadminbar #wp-admin-bar-comments .ab-icon:before {
596
- content: "\f101";
597
- top: 3px;
598
- }
599
-
600
- #wpadminbar #wp-admin-bar-comments .count-0 {
601
- opacity: .5;
602
- }
603
-
604
- /**
605
- * New Content
606
- */
607
- #wpadminbar #wp-admin-bar-new-content .ab-icon:before {
608
- content: "\f132";
609
- top: 4px;
610
- }
611
-
612
- /**
613
- * Updates
614
- */
615
- #wpadminbar #wp-admin-bar-updates .ab-icon:before {
616
- content: "\f463";
617
- top: 2px;
618
- }
619
-
620
- /**
621
- * Search
622
- */
623
- #wpadminbar.ie8 #wp-admin-bar-search {
624
- display: block;
625
- min-width: 32px;
626
- }
627
- #wpadminbar #wp-admin-bar-search .ab-item {
628
- padding: 0;
629
- background: transparent;
630
- }
631
-
632
- #wpadminbar #adminbarsearch {
633
- position: relative;
634
- height: 32px;
635
- padding: 0 2px;
636
- z-index: 1;
637
- }
638
-
639
- #wpadminbar #adminbarsearch:before {
640
- position: absolute;
641
- top: 6px;
642
- left: 5px;
643
- z-index: 20;
644
- font: normal 20px/1 dashicons !important;
645
- content: "\f179";
646
- speak: none;
647
- -webkit-font-smoothing: antialiased;
648
- -moz-osx-font-smoothing: grayscale;
649
- }
650
-
651
- /* The admin bar search field needs to reset many styles that might be inherited from the active Theme CSS. See ticket #40313. */
652
- #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input {
653
- display: inline-block;
654
- float: none;
655
- position: relative;
656
- z-index: 30;
657
- font-size: 13px;
658
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
659
- line-height: 1.84615384;
660
- text-indent: 0;
661
- height: 24px;
662
- width: 24px;
663
- max-width: none;
664
- padding: 0 3px 0 24px;
665
- margin: 0;
666
- color: #ccc;
667
- background-color: rgba(255, 255, 255, 0);
668
- border: none;
669
- outline: none;
670
- cursor: pointer;
671
- box-shadow: none;
672
- box-sizing: border-box;
673
- transition-duration: 400ms;
674
- transition-property: width, background;
675
- transition-timing-function: ease;
676
- }
677
-
678
- #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus {
679
- z-index: 10;
680
- color: #000;
681
- width: 200px;
682
- background-color: rgba(255, 255, 255, 0.9);
683
- cursor: text;
684
- border: 0;
685
- }
686
-
687
- #wpadminbar.ie7 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input {
688
- margin-top: 3px;
689
- width: 120px;
690
- }
691
-
692
- #wpadminbar.ie8 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input {
693
- /* IE8 z-index bug with transparent / empty elements - fill in with an encoded transparent GIF */
694
- background: transparent 0 0 repeat scroll url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
695
- }
696
-
697
- /* IE8 doesn't redraw the pseudo elements unless you make a change to the content */
698
- #wpadminbar.ie8 #adminbarsearch.adminbar-focused:before {
699
- content: "\f179 "; /* extra space */
700
- }
701
-
702
- #wpadminbar.ie8 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus {
703
- background: #fff;
704
- z-index: -1;
705
- }
706
-
707
- #wpadminbar #adminbarsearch .adminbar-button {
708
- display: none;
709
- }
710
-
711
- /**
712
- * Customize support classes
713
- */
714
- .no-customize-support .hide-if-no-customize,
715
- .customize-support .hide-if-customize,
716
- .no-customize-support #wpadminbar .hide-if-no-customize,
717
- .no-customize-support.wp-core-ui .hide-if-no-customize,
718
- .no-customize-support .wp-core-ui .hide-if-no-customize,
719
- .customize-support #wpadminbar .hide-if-customize,
720
- .customize-support.wp-core-ui .hide-if-customize,
721
- .customize-support .wp-core-ui .hide-if-customize {
722
- display: none;
723
- }
724
-
725
- /* Skip link */
726
- #wpadminbar .screen-reader-text,
727
- #wpadminbar .screen-reader-text span {
728
- border: 0;
729
- clip: rect(1px, 1px, 1px, 1px);
730
- -webkit-clip-path: inset(50%);
731
- clip-path: inset(50%);
732
- height: 1px;
733
- margin: -1px;
734
- overflow: hidden;
735
- padding: 0;
736
- position: absolute;
737
- width: 1px;
738
- word-wrap: normal !important;
739
- }
740
-
741
- #wpadminbar .screen-reader-shortcut {
742
- position: absolute;
743
- top: -1000em;
744
- }
745
-
746
- #wpadminbar .screen-reader-shortcut:focus {
747
- left: 6px;
748
- top: 7px;
749
- height: auto;
750
- width: auto;
751
- display: block;
752
- font-size: 14px;
753
- font-weight: 600;
754
- padding: 15px 23px 14px;
755
- background: #f1f1f1;
756
- color: #0073aa;
757
- z-index: 100000;
758
- line-height: normal;
759
- text-decoration: none;
760
- box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
761
- }
762
-
763
- /**
764
- * IE 6-targeted rules
765
- */
766
- * html #wpadminbar {
767
- overflow: hidden;
768
- position: absolute;
769
- }
770
-
771
- * html #wpadminbar .quicklinks ul li a {
772
- float: left;
773
- }
774
-
775
- * html #wpadminbar .menupop a span {
776
- background-image: none;
777
- }
778
-
779
- /* No @font-face support */
780
- .no-font-face #wpadminbar ul.ab-top-menu > li > a.ab-item {
781
- display: block;
782
- width: 45px;
783
- text-align: center;
784
- overflow: hidden;
785
- margin: 0 3px;
786
- }
787
-
788
- .no-font-face #wpadminbar #wp-admin-bar-my-sites > .ab-item,
789
- .no-font-face #wpadminbar #wp-admin-bar-site-name > .ab-item,
790
- .no-font-face #wpadminbar #wp-admin-bar-edit > .ab-item {
791
- text-indent: 0;
792
- }
793
-
794
- .no-font-face #wpadminbar .ab-icon,
795
- .no-font-face #wpadminbar .ab-icon:before,
796
- .no-font-face #wpadminbar a.ab-item:before,
797
- .no-font-face #wpadminbar #wp-admin-bar-wp-logo > .ab-item {
798
- display: none !important;
799
- }
800
-
801
- .no-font-face #wpadminbar ul.ab-top-menu > li > a > span.ab-label {
802
- display: inline;
803
- }
804
-
805
- .no-font-face #wpadminbar #wp-admin-bar-menu-toggle span.ab-icon {
806
- display: inline !important;
807
- }
808
-
809
- .no-font-face #wpadminbar #wp-admin-bar-menu-toggle span.ab-icon:before {
810
- content: "Menu";
811
- font: 14px/45px sans-serif !important;
812
- display: inline-block !important;
813
- color: #fff;
814
- }
815
-
816
- .no-font-face #wpadminbar #wp-admin-bar-site-name a.ab-item {
817
- color: #fff;
818
- }
819
- /* End no @font-face */
820
-
821
- @media screen and (max-width: 782px) {
822
- /* Toolbar Touchification*/
823
- html #wpadminbar {
824
- height: 46px;
825
- min-width: 240px; /* match the min-width of the body in wp-admin/css/common.css */
826
- }
827
-
828
- #wpadminbar * {
829
- font-size: 14px;
830
- font-weight: 400;
831
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
832
- line-height: 2.28571428;
833
- }
834
-
835
- #wpadminbar .quicklinks > ul > li > a,
836
- #wpadminbar .quicklinks .ab-empty-item {
837
- padding: 0;
838
- height: 46px;
839
- line-height: 3.28571428;
840
- width: auto;
841
- }
842
-
843
- #wpadminbar .ab-icon {
844
- font: 40px/1 dashicons !important;
845
- margin: 0;
846
- padding: 0;
847
- width: 52px;
848
- height: 46px;
849
- text-align: center;
850
- }
851
-
852
- #wpadminbar .ab-icon:before {
853
- text-align: center;
854
- }
855
-
856
- #wpadminbar .ab-submenu {
857
- padding: 0;
858
- }
859
-
860
- #wpadminbar #wp-admin-bar-site-name a.ab-item,
861
- #wpadminbar #wp-admin-bar-my-sites a.ab-item,
862
- #wpadminbar #wp-admin-bar-my-account a.ab-item {
863
- text-overflow: clip;
864
- }
865
-
866
- #wpadminbar .quicklinks .menupop ul li .ab-item,
867
- #wpadminbar .quicklinks .menupop ul li a strong,
868
- #wpadminbar .quicklinks .menupop:focus-within ul li .ab-item,
869
- #wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item,
870
- #wpadminbar .shortlink-input {
871
- line-height: 1.6;
872
- }
873
-
874
- #wpadminbar .ab-label {
875
- display: none;
876
- }
877
-
878
- #wpadminbar .menupop li:hover > .ab-sub-wrapper,
879
- #wpadminbar .menupop li:focus-within > .ab-sub-wrapper {
880
- margin-top: -46px;
881
- }
882
-
883
- #wpadminbar .ab-top-menu .menupop .ab-sub-wrapper .menupop > .ab-item {
884
- padding-right: 30px;
885
- }
886
-
887
- #wpadminbar .menupop .menupop > .ab-item:before {
888
- top: 10px;
889
- right: 6px;
890
- }
891
-
892
- #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper .ab-item {
893
- font-size: 16px;
894
- padding: 8px 16px;
895
- }
896
-
897
- #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper a:empty {
898
- display: none;
899
- }
900
-
901
- /* WP logo */
902
- #wpadminbar #wp-admin-bar-wp-logo > .ab-item {
903
- padding: 0;
904
- }
905
-
906
- #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon {
907
- padding: 0;
908
- width: 52px;
909
- height: 46px;
910
- text-align: center;
911
- vertical-align: top;
912
- }
913
-
914
- #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
915
- font: 28px/1 dashicons !important;
916
- top: -3px;
917
- }
918
-
919
- #wpadminbar .ab-icon,
920
- #wpadminbar .ab-item:before {
921
- padding: 0;
922
- }
923
-
924
- /* My Sites and "Site Title" menu */
925
- #wpadminbar #wp-admin-bar-my-sites > .ab-item,
926
- #wpadminbar #wp-admin-bar-site-name > .ab-item,
927
- #wpadminbar #wp-admin-bar-customize > .ab-item,
928
- #wpadminbar #wp-admin-bar-edit > .ab-item,
929
- #wpadminbar #wp-admin-bar-my-account > .ab-item {
930
- text-indent: 100%;
931
- white-space: nowrap;
932
- overflow: hidden;
933
- width: 52px;
934
- padding: 0;
935
- color: #a0a5aa; /* @todo not needed? this text is hidden */
936
- position: relative;
937
- }
938
-
939
- #wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon,
940
- #wpadminbar .ab-icon,
941
- #wpadminbar .ab-item:before {
942
- padding: 0;
943
- margin-right: 0;
944
- }
945
-
946
- #wpadminbar #wp-admin-bar-edit > .ab-item:before,
947
- #wpadminbar #wp-admin-bar-my-sites > .ab-item:before,
948
- #wpadminbar #wp-admin-bar-site-name > .ab-item:before,
949
- #wpadminbar #wp-admin-bar-customize > .ab-item:before,
950
- #wpadminbar #wp-admin-bar-my-account > .ab-item:before {
951
- display: block;
952
- text-indent: 0;
953
- font: normal 32px/1 dashicons;
954
- speak: none;
955
- top: 7px;
956
- width: 52px;
957
- text-align: center;
958
- -webkit-font-smoothing: antialiased;
959
- -moz-osx-font-smoothing: grayscale;
960
- }
961
-
962
- #wpadminbar #wp-admin-bar-appearance {
963
- margin-top: 0;
964
- }
965
-
966
- #wpadminbar .quicklinks li .blavatar:before {
967
- display: none;
968
- }
969
-
970
- /* Search */
971
- #wpadminbar #wp-admin-bar-search {
972
- display: none;
973
- }
974
-
975
- /* New Content */
976
- #wpadminbar #wp-admin-bar-new-content .ab-icon:before {
977
- top: 0;
978
- line-height: 1.33333333;
979
- height: 46px !important;
980
- text-align: center;
981
- width: 52px;
982
- display: block;
983
- }
984
-
985
- /* Updates */
986
- #wpadminbar #wp-admin-bar-updates {
987
- text-align: center;
988
- }
989
-
990
- #wpadminbar #wp-admin-bar-updates .ab-icon:before {
991
- top: 3px;
992
- }
993
-
994
- /* Comments */
995
- #wpadminbar #wp-admin-bar-comments .ab-icon {
996
- margin: 0;
997
- }
998
-
999
- #wpadminbar #wp-admin-bar-comments .ab-icon:before {
1000
- display: block;
1001
- font-size: 34px;
1002
- height: 46px;
1003
- line-height: 1.38235294;
1004
- top: 0;
1005
- }
1006
-
1007
- /* My Account */
1008
- #wpadminbar #wp-admin-bar-my-account > a {
1009
- position: relative;
1010
- white-space: nowrap;
1011
- text-indent: 150%; /* More than 100% indention is needed since this element has padding */
1012
- width: 28px;
1013
- padding: 0 10px;
1014
- overflow: hidden; /* Prevent link text from forcing horizontal scrolling on mobile */
1015
- }
1016
-
1017
- #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img {
1018
- position: absolute;
1019
- top: 13px;
1020
- right: 10px;
1021
- width: 26px;
1022
- height: 26px;
1023
- }
1024
-
1025
- #wpadminbar #wp-admin-bar-user-actions.ab-submenu {
1026
- padding: 0;
1027
- }
1028
-
1029
- #wpadminbar #wp-admin-bar-user-actions.ab-submenu img.avatar {
1030
- display: none;
1031
- }
1032
-
1033
- #wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions > li {
1034
- margin: 0;
1035
- }
1036
-
1037
- #wpadminbar #wp-admin-bar-user-info .display-name {
1038
- height: auto;
1039
- font-size: 16px;
1040
- line-height: 1.5;
1041
- color: #eee;
1042
- }
1043
-
1044
- #wpadminbar #wp-admin-bar-user-info a {
1045
- padding-top: 4px;
1046
- }
1047
-
1048
- #wpadminbar #wp-admin-bar-user-info .username {
1049
- line-height: 0.8 !important;
1050
- margin-bottom: -2px;
1051
- }
1052
-
1053
- /* Show only default top level items */
1054
- #wp-toolbar > ul > li {
1055
- display: none;
1056
- }
1057
-
1058
- #wpadminbar li#wp-admin-bar-menu-toggle,
1059
- #wpadminbar li#wp-admin-bar-wp-logo,
1060
- #wpadminbar li#wp-admin-bar-my-sites,
1061
- #wpadminbar li#wp-admin-bar-updates,
1062
- #wpadminbar li#wp-admin-bar-site-name,
1063
- #wpadminbar li#wp-admin-bar-customize,
1064
- #wpadminbar li#wp-admin-bar-new-content,
1065
- #wpadminbar li#wp-admin-bar-edit,
1066
- #wpadminbar li#wp-admin-bar-comments,
1067
- #wpadminbar li#wp-admin-bar-my-account {
1068
- display: block;
1069
- }
1070
-
1071
- /* Allow dropdown list items to appear normally */
1072
- #wpadminbar li:hover ul li,
1073
- #wpadminbar li:focus-within ul li,
1074
- #wpadminbar li:hover ul li:hover ul li {
1075
- display: list-item;
1076
- }
1077
-
1078
- /* Override default min-width so dropdown lists aren't stretched
1079
- to 100% viewport width at responsive sizes. */
1080
- #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper {
1081
- min-width: -webkit-fit-content;
1082
- min-width: -moz-fit-content;
1083
- min-width: fit-content;
1084
- }
1085
-
1086
- #wpadminbar ul#wp-admin-bar-root-default > li {
1087
- margin-right: 0;
1088
- }
1089
-
1090
- /* Experimental fix for touch toolbar dropdown positioning */
1091
- #wpadminbar .ab-top-menu,
1092
- #wpadminbar .ab-top-secondary,
1093
- #wpadminbar #wp-admin-bar-wp-logo,
1094
- #wpadminbar #wp-admin-bar-my-sites,
1095
- #wpadminbar #wp-admin-bar-site-name,
1096
- #wpadminbar #wp-admin-bar-updates,
1097
- #wpadminbar #wp-admin-bar-comments,
1098
- #wpadminbar #wp-admin-bar-new-content,
1099
- #wpadminbar #wp-admin-bar-edit,
1100
- #wpadminbar #wp-admin-bar-my-account {
1101
- position: static;
1102
- }
1103
-
1104
- #wpadminbar #wp-admin-bar-my-account {
1105
- float: right;
1106
- }
1107
-
1108
- .network-admin #wpadminbar ul#wp-admin-bar-top-secondary > li#wp-admin-bar-my-account {
1109
- margin-right: 0;
1110
- }
1111
-
1112
- /* Realign arrows on taller responsive submenus */
1113
-
1114
- #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before {
1115
- top: 10px;
1116
- left: 0;
1117
- }
1118
- }
1119
-
1120
- /* Smartphone */
1121
- @media screen and (max-width: 600px) {
1122
- /* Removed: #wpadminbar { position: absolute; } */
1123
-
1124
- #wp-responsive-overlay {
1125
- position: fixed;
1126
- top: 0;
1127
- left: 0;
1128
- width: 100%;
1129
- height: 100%;
1130
- z-index: 400;
1131
- }
1132
-
1133
- #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper {
1134
- width: 100%;
1135
- left: 0;
1136
- }
1137
-
1138
- #wpadminbar .menupop .menupop > .ab-item:before {
1139
- display: none;
1140
- }
1141
-
1142
- #wpadminbar #wp-admin-bar-wp-logo.menupop .ab-sub-wrapper {
1143
- margin-left: 0;
1144
- }
1145
-
1146
- #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper {
1147
- margin: 0;
1148
- width: 100%;
1149
- top: auto;
1150
- left: auto;
1151
- position: relative;
1152
- }
1153
-
1154
- #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper .ab-item {
1155
- font-size: 16px;
1156
- padding: 6px 15px 19px 30px;
1157
- }
1158
-
1159
- #wpadminbar li:hover ul li ul li {
1160
- display: list-item;
1161
- }
1162
-
1163
- #wpadminbar li#wp-admin-bar-wp-logo,
1164
- #wpadminbar li#wp-admin-bar-updates {
1165
- display: none;
1166
- }
1167
-
1168
- /* Make submenus full-width at this size */
1169
-
1170
- #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper {
1171
- position: static;
1172
- box-shadow: none;
1173
- }
1174
- }
1175
-
1176
- /* Very narrow screens */
1177
- @media screen and (max-width: 400px) {
1178
- #wpadminbar li#wp-admin-bar-comments {
1179
- display: none;
1180
- }
1181
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/amp-stories-editor-compiled-compiled-rtl.css DELETED
@@ -1 +0,0 @@
1
- #amp-story-block-navigation{display:none;position:absolute;right:45px;top:75px;width:300px;min-width:115px;z-index:80;list-style-type:none;padding:0;margin:0}@media (max-width:1200px){.is-sidebar-opened #amp-story-block-navigation{right:0}}@media (min-width:1001px) and (max-width:1100px){.is-sidebar-opened .editor-block-list__layout{margin-left:-100px}}@media (min-width:961px){#amp-story-block-navigation{display:block}}@media (min-width:961px) and (max-width:1000px){.is-sidebar-opened #amp-story-block-navigation{display:none}}#amp-story-block-navigation .editor-inserter{position:absolute;bottom:100%;right:0;width:100%}#amp-story-block-navigation .components-popover:not(.is-mobile).is-center .components-popover__content{transform:translateX(13%)}.post-type-amp_story.folded #amp-story-block-navigation .components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content{margin-right:-50px}#amp-story-block-navigation .block-editor-block-navigation__list{list-style-type:none;margin-bottom:15px}#amp-story-block-navigation .editor-block-navigation__list__static{margin:0;padding:0}#amp-story-block-navigation .components-icon-button .dashicon{margin-left:5px}#amp-story-block-navigation .block-editor-block-navigation__label{margin:0 0 1em;text-transform:uppercase;font-weight:500;font-size:12px;color:#666;letter-spacing:1px}.post-type-amp_story:not(.folded) .edit-post-layout #amp-story-block-navigation{max-width:calc((100vw - 614px)/2 - 45px)}.post-type-amp_story.folded .edit-post-layout #amp-story-block-navigation{max-width:calc((100vw - 490px)/2 - 45px)}.post-type-amp_story .edit-post-layout.is-sidebar-opened #amp-story-block-navigation{max-width:calc((100vw - 894px)/2 - 45px)}.post-type-amp_story.folded #amp-story-block-navigation{max-width:calc(100vw - 370px)}.post-type-amp_story.folded .edit-post-layout.is-sidebar-opened #amp-story-block-navigation{max-width:calc((100vw - 770px)/2 - 45px)}@media (max-width:960px){.block-editor-block-list__block-edit>div>.editor-selectors{display:none}}.edit-post-header-toolbar .components-icon-button.block-editor-block-navigation{display:none}@media (min-width:961px){.edit-post-header-toolbar #amp-story-shortcuts{display:flex}.edit-post-visual-editor .editor-post-title__block{margin-right:0;margin-left:0}.block-editor-block-navigation__container{background:#fff;border:1px solid #eee;padding:1em}.block-editor-block-navigation__container .component-editor__selector button{background:no-repeat 100% 0;padding-right:37px;height:40px;margin:1px 4px 1px 0}.block-editor-block-navigation__container .component-editor__selector .components-button:focus{box-shadow:none}.components-range-control__number{width:60px}}.block-editor-block-navigation__list .block-editor-block-navigation__item{position:relative}.block-editor-block-navigation__list .block-editor-block-navigation__item-is-dragging{cursor:grab}.block-editor-block-navigation__list .block-editor-block-navigation__item .components-drop-zone{border:none;border-radius:0}.block-editor-block-navigation__list .block-editor-block-navigation__item .components-drop-zone.is-dragging-over-element .components-drop-zone__content{display:none}.block-editor-block-navigation__list .block-editor-block-navigation__item .components-drop-zone.is-close-to-bottom{background:none;border-bottom:3px solid #0071a1}.block-editor-block-navigation__list li .block-editor-block-navigation__item .components-drop-zone.is-close-to-top{background:none;border:none}.block-editor-block-navigation__list li:first-child .block-editor-block-navigation__item .components-drop-zone.is-close-to-top{background:none;border-top:3px solid #0071a1;border-bottom:none}#amp-story-editor-carousel{display:none}@media (min-width:961px){#amp-story-editor-carousel{display:block}}#amp-story-editor{position:relative;overflow:hidden}#amp-story-editor>.editor-block-list__layout{padding-right:0;padding-left:0;display:flex;align-items:center;transform:none;transition:transform .3s ease-in-out}#amp-story-editor>.editor-block-list__layout .block-list-appender{display:none}.amp-story-editor-carousel-navigation{display:flex;justify-content:space-between;margin-top:5em}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list{flex:1;display:flex;margin:0;padding:0;list-style-type:none;justify-content:center;max-width:30%}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list .amp-story-editor-carousel-item{flex:1;height:.5em;max-width:5em}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list .amp-story-editor-carousel-item+.amp-story-editor-carousel-item{margin-right:20px}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list button{background:#eff0f1;width:100%;height:100%;display:block}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list button:focus,.editor-styles-wrapper ul.amp-story-editor-carousel-item-list button:hover{background:#e0e0e0}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list .amp-story-editor-carousel-item--active button{background:#666}.amp-story-reorderer{margin-top:100px;display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,169px);grid-gap:0;justify-content:space-between}.amp-story-reorderer .amp-story-reorderer-item{margin:0 auto 10px;width:100%;position:relative}.amp-story-reorderer .amp-story-reorderer-item .amp-story-reorderer-item-page{max-width:165px;height:270px}.amp-story-reorderer .block-editor-block-preview .block-editor-block-preview__content .components-disabled{transform:none;text-align:right;text-align:initial}.amp-story-reorderer .block-editor-block-list__layout .block-editor-block-list__block{padding:0}.amp-story-reorderer .editor-block-list__layout.block-editor-block-list__layout,.amp-story-reorderer .editor-inner-blocks.block-editor-inner-blocks{height:100%;padding:0}.amp-story-reorderer .components-disabled,.amp-story-reorderer .components-disabled div:first-of-type{padding:0;width:100%;height:100%}.amp-story-reorderer .amp-story-reorderer-item .amp-story-reorderer-item-page .wp-block{--preview-scale:0.47;--preview-translateX:-40%;--preview-translateY:-70%;position:absolute;transform:scale(var(--preview-scale)) translateX(var(--preview-translateX)) translateY(var(--preview-translateY))}.amp-story-reorderer .block-editor-block-list__layout>.block-editor-block-list__block>.block-editor-block-list__block-edit{margin-top:0;margin-bottom:0}@media (min-width:600px){.amp-story-reorderer .block-editor-block-list__block-edit{margin-right:-50px;margin-left:-50px}}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone{border:none;border-radius:0;background:transparent}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-active{opacity:0;visibility:hidden}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-over-element,.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-page{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-page{background:#eff0f1;border:none!important;margin:0 10px}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-over-element.is-close-to-right{border-left:3px solid #0071a1}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-over-element.is-close-to-left{border-right:3px solid #0071a1}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone__content,.amp-story-reorderer .amp-story-reorderer-item .is-dragging-over-element .components-drop-zone__content{display:none}.amp-story-reorderer .amp-story-page-preview{border:5px solid #eff0f1;border-radius:5px;background:#fff;width:100%;height:100%;cursor:grab;overflow:hidden}#amp-story-editor .amp-story-reorderer .components-draggable__clone{position:fixed}.amp-story-reorderer .amp-story-page-preview .editor-styles-wrapper{margin:0;height:260px}.amp-story-reorderer .amp-story-page-preview .editor-block-list__layout{padding:0}.amp-story-reorderer .amp-story-page-preview .block-list-appender{display:none}#amp-story-shortcuts{display:inline-flex}#amp-story-controls{text-align:left;padding-left:20px}.amp-story-controls-reorder{box-sizing:border-box;height:49px;width:49px;border:1px solid #aaaeb3;border-radius:50%}#amp-story-controls .amp-story-controls-reorder{display:inline-block;line-height:1}.amp-story-controls-reorder-cancel{padding-top:5px;padding-bottom:5px;margin-left:20px;display:inline-flex}.amp-story-controls-reorder-save{float:left}.amp-story-order-controls .amp-story-controls-description{display:none}.amp-story-order-controls-wrap{display:flex;align-items:center;justify-content:space-between}.amp-story-order-controls-wrap .components-icon-button{display:block;-ms-grid-row-align:start;align-self:start;text-align:center;color:inherit}.amp-story-order-controls-wrap .components-icon-button svg{display:block;margin:0 auto}.wp-block [draggable=true]{-webkit-user-select:auto}.wp-block [draggable=true]:hover{cursor:grab}.wp-block[data-type="amp/amp-story-text"] .editor-rich-text__editable:hover,.wp-block[data-type="core/quote"] .editor-rich-text__editable:hover{cursor:default}#amp-story-controls .editor-inserter__amp-inserter{height:48px;width:48px;background-color:#0085ba;border-radius:50%;margin-left:10px}body.admin-color-sunrise #amp-story-controls .editor-inserter__amp-inserter{background-color:#d1864a}body.admin-color-ocean #amp-story-controls .editor-inserter__amp-inserter{background-color:#a3b9a2}body.admin-color-midnight #amp-story-controls .editor-inserter__amp-inserter{background-color:#e14d43}body.admin-color-ectoplasm #amp-story-controls .editor-inserter__amp-inserter{background-color:#a7b656}body.admin-color-coffee #amp-story-controls .editor-inserter__amp-inserter{background-color:#c2a68c}body.admin-color-blue #amp-story-controls .editor-inserter__amp-inserter{background-color:#82b4cb}body.admin-color-light #amp-story-controls .editor-inserter__amp-inserter{background-color:#0085ba}#amp-story-controls .editor-inserter__amp-inserter svg{margin:0 auto}.amp-stories__template-inserter__popover.components-popover .components-popover__content:not(.is-mobile){width:406px;height:400px;padding:2px;transform:translateX(90%)}.amp-stories__template-inserter__popover:before{border:8px solid #e2e4e7}.amp-stories__template-inserter__popover:after{border:8px solid #fff}.amp-stories__template-inserter__popover:after,.amp-stories__template-inserter__popover:before{border-bottom-style:solid;border-right-color:transparent;border-left-color:transparent;border-top:none;margin-right:-15px}.amp-stories__editor-inserter__results .components-spinner{margin-left:calc(50% - 9px);margin-top:128px}.amp-stories__template-inserter__popover.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:before{border-bottom:8px solid #e2e4e7}.amp-stories__template-inserter__popover.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:after{border-bottom:8px solid #fff}@media (min-width:782px){.amp-stories__template-inserter__popover.block-editor-inserter__popover:not(.is-mobile)>.components-popover__content{overflow-y:scroll}}@media (min-width:600px){.amp-stories__template-inserter__popover .block-editor-block-list__block .block-editor-block-list__block-edit{margin:0}}.edit-post-layout:not(.is-sidebar-opened) .amp-stories__template-inserter__popover.components-popover .components-popover__content:not(.is-mobile){right:auto;transform:none}.amp-stories__template-inserter__popover.block-editor-inserter__popover .block-editor-block-types-list{margin:0;padding:5px}.amp-stories__template-inserter__popover.components-popover.is-top .components-popover__content{bottom:auto}.amp-stories__template-inserter__popover.components-popover:not(.is-without-arrow):not(.is-mobile).is-top{margin-top:55px}.amp-stories__editor-inserter__results li{display:block;list-style-type:none;width:160px;height:268px;float:right;margin:15px}.amp-stories__editor-inserter__results li amp-story-grid-layer,.amp-stories__editor-inserter__results li amp-story-page{display:block;width:100%;height:100%}.amp-stories__editor-inserter__results .block-editor-block-preview{width:160px;height:268px;margin:10px;padding:0}.amo-stories__editor-inserter__results .components-placeholder,.amp-stories__editor-inserter__results .block-editor-block-preview .block-editor-block-preview__content{padding:0;width:100%;height:100%}.amp-stories__editor-inserter__results .block-editor-block-preview__content .reusable-block-indicator,.amp-stories__editor-inserter__results .block-editor-block-preview__content .rotatable-box-wrap{display:none}.amp-stories__blank-page-inserter{height:100%;width:100%}.amp-stories__blank-page-inserter svg{margin:0 auto}.amp-stories__editor-inserter__results .block-editor-block-preview{pointer-events:auto}.amo-stories__editor-inserter__results .editor-block-list__insertion-point,.amp-stories__editor-inserter__results .block-list-appender{display:none}.amp-stories__editor-inserter__results .block-editor-block-preview .block-editor-block-preview__content .components-disabled{transform:none;text-align:right;text-align:initial}.amp-stories__editor-inserter__results .components-disabled,.amp-stories__editor-inserter__results .components-disabled .editor-inner-blocks,.amp-stories__editor-inserter__results .components-disabled div:first-of-type{padding:0;height:268px}.amp-stories__editor-inserter__results .block-editor-block-preview .block-editor-block-preview__content>div{transform:none}.amp-stories__editor-inserter__results .components-resizable-box__container.amp-story-resize-container .amp-story-resize-container{max-width:none}.amp-stories__editor-inserter__results .block-editor-block-preview .wp-block[data-type="core/image"]{width:180%}.amp-stories__editor-inserter__results .block-editor-block-preview .wp-block{--preview-scale:0.48;--preview-translateX:-55%;--preview-translateY:-40%;height:auto!important;position:absolute;transform:scale(.48) translateX(55%) translateY(-40%)}.amp-stories__editor-inserter__results .components-disabled .wp-block div{height:auto!important}@media (min-width:600px){.amp-stories__editor-inserter__results .block-editor-block-list__layout .block-editor-block-list__block{padding:0}}.amp-stories__editor-inserter__results .block-editor-block-types-list{padding:10px}.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-mover{display:none!important}.components-draggable__clone .block-editor-block-list__block .rotatable-box-wrap{display:none;opacity:0}.block-editor-block-list__layout .block-editor-block-list__block.is-rotating>.block-editor-block-list__block-edit:before,.editor-inner-blocks .block-editor-block-list__block.is-rotating .block-editor-block-contextual-toolbar,.editor-inner-blocks .block-editor-block-list__block.is-rotating .block-editor-block-list__breadcrumb,.editor-inner-blocks .block-editor-block-list__block.is-rotating .block-editor-block-list__insertion-point{display:none!important}.block-editor-block-list__block .rotatable-box-wrap{position:absolute;left:-14px;bottom:-25px;right:calc(50% - 15px);width:30px;height:25px}.block-editor-block-list__block .rotatable-box-wrap:before{display:block;content:"";cursor:inherit;border-right:1px solid #007cba;box-shadow:inset 3px 0 0 0 #555d66;height:40px;width:0;margin:0 auto}body.admin-color-sunrise .block-editor-block-list__block .rotatable-box-wrap:before{border-right:1px solid #837425}body.admin-color-ocean .block-editor-block-list__block .rotatable-box-wrap:before{border-right:1px solid #5e7d5e}body.admin-color-midnight .block-editor-block-list__block .rotatable-box-wrap:before{border-right:1px solid #497b8d}body.admin-color-ectoplasm .block-editor-block-list__block .rotatable-box-wrap:before{border-right:1px solid #523f6d}body.admin-color-coffee .block-editor-block-list__block .rotatable-box-wrap:before{border-right:1px solid #59524c}body.admin-color-blue .block-editor-block-list__block .rotatable-box-wrap:before{border-right:1px solid #417e9b}body.admin-color-light .block-editor-block-list__block .rotatable-box-wrap:before{border-right:1px solid #007cba}.block-editor-block-list__block .rotatable-box-wrap .rotatable-box-wrap__handle{display:block;opacity:1;transition:opacity .3s;position:absolute;bottom:-20px;right:calc(50% - 25px);width:50px;height:24px;padding:4px;cursor:move;background:transparent;border:none}.rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#0085ba;border:2px solid #fff;border-radius:50%;content:"";cursor:inherit;display:block;height:16px;width:16px;margin:0 auto}body.admin-color-sunrise .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#d1864a}body.admin-color-ocean .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#a3b9a2}body.admin-color-midnight .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#e14d43}body.admin-color-ectoplasm .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#a7b656}body.admin-color-coffee .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#c2a68c}body.admin-color-blue .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#82b4cb}body.admin-color-light .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#0085ba}.wp-block.is-typing .rotatable-box-wrap,.wp-block .rotatable-box-wrap{display:block;opacity:0;transition:opacity .3s}.wp-block.amp-page-active .wp-block.is-rotating .rotatable-box-wrap,.wp-block.amp-page-active .wp-block .rotatable-box-wrap:hover,.wp-block.amp-page-active .wp-block:hover .rotatable-box-wrap{opacity:1}.wp-block.amp-page-active .wp-block.is-rotating .components-resizable-box__handle:hover,.wp-block.amp-page-active .wp-block.is-rotating:hover .components-resizable-box__handle{opacity:0}.components-preview-picker__buttons{display:flex;justify-content:space-between;align-items:center}.components-preview-picker__dropdown-content .components-button{display:block;position:relative;padding:10px 40px 10px 20px;width:100%;text-align:right}.components-preview-picker__dropdown-content .components-button:hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-preview-picker__dropdown-content .components-button:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-preview-picker__dropdown-content .components-button .dashicon{position:absolute;top:calc(50% - 10px);right:10px}.components-preview-picker__dropdown-content .components-button .editor-block-icon{position:absolute;top:calc(50% - 10px);left:10px}.components-preview-picker__buttons .components-preview-picker__selector{background:none;position:relative;width:200px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-preview-picker__buttons .components-preview-picker__selector:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-preview-picker__buttons .components-preview-picker__selector:after{content:"";pointer-events:none;display:block;width:0;height:0;border-right:3px solid transparent;border-left:3px solid transparent;border-top:5px solid;margin-right:4px;margin-left:2px;left:8px;top:12px;position:absolute}.amp-story-resize-container .components-resizable-box__handle-right{left:-14px;height:50px;top:calc(50% - 25px)}.amp-story-resize-container .components-resizable-box__handle-right:before{margin:0}.amp-story-resize-container .components-resizable-box__handle-bottom{bottom:-14px;width:50px;right:calc(50% - 25px)}.amp-story-editor__rotate-container .components-resizable-box__handle{display:none!important}.wp-block-image .components-resizable-box__container img{height:100%;-o-object-fit:cover;object-fit:cover;-webkit-user-drag:none}.block-editor-block-list__block[data-type="core/image"] img{-webkit-user-drag:none}.amp-story-resize-container .components-resizable-box__handle-bottom:before{margin:0 auto}.amp-story-resize-container .amp-story-editor__rotate-container{height:100%}.wp-block .components-resizable-box__handle,.wp-block.is-typing .components-resizable-box__handle{display:block;opacity:0;transition:opacity .3s}.wp-block.amp-page-active .wp-block .components-resizable-box__handle:hover,.wp-block.amp-page-active .wp-block:hover .components-resizable-box__handle{opacity:1}.editor-block-list__layout div[data-type="amp/amp-story-cta"]{top:80%;right:0;width:100%;height:20%}.editor-block-list__layout div[data-type="amp/amp-story-cta"] *{max-height:110px}.amp-block-story-cta__link img{-o-object-fit:contain;object-fit:contain}.editor-block-list__layout div[data-type="amp/amp-story-cta"] .editor-block-mover{display:none}.block-editor-block-list__block[data-type="amp/amp-story-cta"][data-align=center]{text-align:center}.block-editor-block-list__block[data-type="amp/amp-story-cta"][data-align=right]{text-align:right}.block-editor-block-list__block[data-type="amp/amp-story-cta"] .block-editor-block-list__block-edit{width:100%}.block-editor-block-list__block[data-type="amp/amp-story-cta"] .block-editor-block-list__block-edit:before{right:0;left:0}.block-editor-block-list__block[data-type="amp/amp-story-cta"] .block-editor-block-contextual-toolbar{margin-right:-1px;margin-left:0}.wp-block-amp-amp-story-cta{display:inline-block;margin-bottom:0;position:relative}.wp-block-amp-amp-story-cta [contenteditable]{cursor:text}.wp-block-amp-amp-story-cta .block-editor-rich-text__editable[data-is-placeholder-visible=true]+.block-editor-rich-text__editable{opacity:.8}.block-editor-block-preview__content .wp-block-amp-amp-story-cta{max-width:100%}.wp-block-amp-amp-story-cta .block-editor-rich-text__editable[data-is-placeholder-visible=true]{height:auto}.wp-block-amp-amp-story-cta .amp-block-story-cta__link{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.amp-block-story-cta__link{border:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:18px;margin:0;padding:12px 24px;text-align:center;text-decoration:none;white-space:normal;word-wrap:break-word}.amp-block-story-cta__inline-link{background:#fff;display:flex;flex-wrap:wrap;align-items:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:374px;position:absolute;z-index:10;margin-top:-1.5em}.amp-block-story-cta__inline-link .block-editor-url-input{width:auto}.amp-block-story-cta__inline-link .block-editor-url-input__suggestions{width:302px;z-index:10}.amp-block-story-cta__inline-link>.dashicon{width:36px}.amp-block-story-cta__inline-link .dashicon{color:#8f98a1}.amp-block-story-cta__inline-link .block-editor-url-input input[type=text]:-ms-input-placeholder{color:#8f98a1}.amp-block-story-cta__inline-link .block-editor-url-input input[type=text]::-ms-input-placeholder{color:#8f98a1}.amp-block-story-cta__inline-link .block-editor-url-input input[type=text]::placeholder{color:#8f98a1}[data-align=center] .amp-block-story-cta__inline-link{margin-right:auto;margin-left:auto}[data-align=right] .amp-block-story-cta__inline-link{margin-right:auto;margin-left:0}.block-editor-block-list__layout .block-editor-block-list__block[data-type="amp/amp-story-page"]>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb{display:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit:before{right:-3px;top:-3px;left:-3px;bottom:-3px}.block-editor-block-list__layout .block-editor-block-list__block[data-type="amp/amp-story-page"]>.block-editor-block-list__block-edit>.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{right:18px;top:11px}[data-type="amp/amp-story-page"]>.editor-block-list__block-edit>.editor-block-mover{display:none!important}.editor-block-list__layout div[data-type="amp/amp-story-page"]{padding:0;margin:60px 30px 0}@media (min-width:600px){div[data-type="amp/amp-story-page"] .editor-block-list__block{margin:0;padding:0}}#amp-story-editor .wp-block[data-type="amp/amp-story-page"]{background:#fff}#amp-story-editor .wp-block[data-type="amp/amp-story-page"],#amp-story-editor .wp-block[data-type="amp/amp-story-page"] .editor-inner-blocks .editor-block-list__layout:first-of-type{width:100%;max-width:328px;height:553px;position:relative}#amp-story-editor .wp-block[data-type="amp/amp-story-page"] .editor-block-list__layout>.block-list-appender{width:316px;margin:0 auto;display:none}.editor-block-list__layout .editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit,.editor-block-list__layout div[data-type="amp/amp-story-page"].editor-block-list__block .editor-block-list__block-edit{margin:0}.editor-block-list__layout div[data-type="amp/amp-story-page"]{flex:0 0 auto;position:relative;transition:border .3s linear}.editor-block-list__layout div[data-type="amp/amp-story-page"]+div[data-type="amp/amp-story-page"]{margin-right:20px}.editor-block-list__layout [data-type="amp/amp-story-page"].amp-page-inactive{opacity:.5}.editor-block-list__layout [data-type="amp/amp-story-page"].amp-page-inactive>div{pointer-events:none}.editor-block-list__layout div[data-type="amp/amp-story-page"] .amp-story-page-number{position:absolute;top:-3em;text-transform:uppercase;font-weight:500;font-size:12px;color:#666;letter-spacing:1px}.editor-block-list__layout div[data-type="amp/amp-story-page"] .amp-story-page-number+div .editor-inner-blocks.block-editor-inner-blocks{height:553px}.editor-styles-wrapper [data-block]{margin-top:0;margin-bottom:0}.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-dragging,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-focused,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-rotating,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-selected,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-typing{z-index:100}.block-editor-block-list__layout .block-editor-block-list__block.amp-page-inactive>.block-editor-block-list__block-edit:before{box-shadow:none;border:1px solid #e3e5e7}.block-editor-block-list__layout .block-editor-block-list__block.amp-page-active>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .block-editor-block-list__block.is-selected>.block-editor-block-list__block-edit:before{box-shadow:none;border:1px solid rgba(66,88,99,.4)}div[data-type="amp/amp-story-page"] .editor-inner-blocks .editor-block-list__layout:first-of-type .wp-block{position:absolute;z-index:10}.editor-block-list__block .editor-block-list__layout{margin:0}.editor-block-list__layout div[data-type="amp/amp-story-page"][data-amp-selected=parent] .editor-block-drop-zone{height:583px;--dropzone-padding:400px;--page-width:328px;width:calc(var(--dropzone-padding) + var(--page-width));margin:0;right:calc(var(--dropzone-padding)/-2);top:-50px;border:none;background:transparent}.editor-block-list__layout div[data-type="amp/amp-story-page"][data-amp-selected=parent]>.editor-block-drop-zone .components-drop-zone__content{display:none}div[data-type="amp/amp-story-page"] .wp-block-image{margin-top:0}.edit-post-layout[data-block-name="core/embed"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2),.edit-post-layout[data-block-name="core/image"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2),.edit-post-layout[data-block-name="core/pullquote"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2),.edit-post-layout[data-block-name="core/video"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2){display:none}.amp-page-inactive[data-type="amp/amp-story-page"] .block-list-appender{display:none}.block-editor-block-list__block-edit .components-draggable__clone{position:absolute}.wp-block[data-type="core/pullquote"][data-align=full],.wp-block[data-type="core/pullquote"][data-align=wide]{width:100%;max-width:100%}.block-editor-inner-blocks .wp-block[data-type="core/pullquote"] .block-editor-block-list__block-edit{display:block}#amp-story-editor .block-editor-block-list__layout .block-editor-block-list__block[data-align=full]{margin:0}.editor-amp-story-page-video-wrap{position:absolute;overflow:hidden;width:100%;height:100%}.editor-amp-story-page-background.editor-post-featured-image__preview img,.editor-amp-story-page-video{-o-object-fit:cover;object-fit:cover}.editor-amp-story-page-video{position:absolute;top:0;right:0;left:0;bottom:0;min-width:100%;min-height:100%}.editor-amp-story-page-background{display:block}.editor-amp-story-page-background~.components-button{margin-top:1em;margin-left:8px}#editor-amp-story-page-poster__help{margin-top:0}.editor-block-list__layout [data-type="amp/amp-story-page"] .block-editor-block-list__block .block-editor-warning{transform:none}.editor-block-list__layout [data-type="amp/amp-story-page"] .block-editor-block-list__block.is-selected .block-editor-warning{border:none}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author{margin:0;padding:7px!important;height:100%}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author.is-amp-fit-text{line-height:1.15;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author:not(.is-amp-fit-text){display:block;font-size:16px}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.wp-block[data-type="amp/amp-story-post-author"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-post-author"] .block-mover,.wp-block[data-type="amp/amp-story-post-author"] .block-mover div{height:100%}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date{margin:0;padding:7px!important;height:100%}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date.is-amp-fit-text{line-height:1.15;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date:not(.is-amp-fit-text){display:block;font-size:16px}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.wp-block[data-type="amp/amp-story-post-date"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-post-date"] .block-mover,.wp-block[data-type="amp/amp-story-post-date"] .block-mover div{height:100%}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title{margin:0;padding:7px!important;height:100%}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title.is-amp-fit-text{line-height:1.15;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;font-weight:700}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title:not(.is-amp-fit-text){display:block;font-size:16px}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.wp-block[data-type="amp/amp-story-post-title"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-post-title"] .block-mover,.wp-block[data-type="amp/amp-story-post-title"] .block-mover div{height:100%}.wp-block[data-type="amp/amp-story-text"] p{margin:0}.wp-block-amp-story-text .block-editor-rich-text__editable{padding:7px!important;width:100%}.wp-block[data-type="amp/amp-story-text"] .amp-story-resize-container .components-resizable-box__handle-right{left:-10px}.wp-block[data-type="amp/amp-story-text"] .amp-story-resize-container .components-resizable-box__handle-right:before{margin:0}.wp-block[data-type="amp/amp-story-text"] .amp-story-resize-container .components-resizable-box__handle-bottom{bottom:-8px;width:50px;right:calc(50% - 25px)}.amp-story-text__resize-container .components-resizable-box__handle-bottom:before{margin:0 auto}.editor-styles-wrapper #amp-story-editor .wp-block .wp-block[data-type="amp/amp-story-text"]{width:auto}.wp-block.is-typing[data-type="amp/amp-story-text"] .components-resizable-box__handle,.wp-block[data-type="amp/amp-story-text"] .components-resizable-box__handle{display:block;opacity:0;transition:opacity .3s}.wp-block[data-type="amp/amp-story-text"] .components-resizable-box__handle:hover,.wp-block[data-type="amp/amp-story-text"]:hover .components-resizable-box__handle{opacity:1}.wp-block[data-type="amp/amp-story-text"] .block-editor-rich-text__editable,div[data-type="amp/amp-story-page"] .block-editor-inner-blocks .block-editor-block-list__block-edit{display:inline-block}.with-line-height .wp-block-amp-story-text{position:relative}.wp-block[data-type="amp/amp-story-text"] .wp-block-amp-story-text .is-amp-fit-text{display:inline-block;vertical-align:middle;line-height:1.15}.wp-block[data-type="amp/amp-story-text"] .wp-block-amp-story-text .is-amp-fit-text.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.editor-block-list__layout .wp-block[data-type="amp/amp-story-text"] .editor-block-list__block-edit:before{position:absolute;top:2px;right:2px;left:2px;bottom:2px}.wp-block[data-type="amp/amp-story-text"] div[draggable=true]{border:5px solid transparent}.wp-block[data-type="amp/amp-story-text"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-text"] .block-mover,.wp-block[data-type="amp/amp-story-text"] .block-mover div{height:100%}
 
assets/css/amp-stories-editor-compiled-rtl.css CHANGED
@@ -1 +1 @@
1
- #amp-story-block-navigation{display:none;position:absolute;right:45px;top:75px;width:300px;min-width:115px;z-index:80;list-style-type:none;padding:0;margin:0}@media (max-width:1200px){.is-sidebar-opened #amp-story-block-navigation{right:0}}@media (min-width:1001px) and (max-width:1100px){.is-sidebar-opened .editor-block-list__layout{margin-left:-100px}}@media (min-width:961px){#amp-story-block-navigation{display:block}}@media (min-width:961px) and (max-width:1000px){.is-sidebar-opened #amp-story-block-navigation{display:none}}#amp-story-block-navigation .editor-inserter{position:absolute;bottom:100%;right:0;width:100%}#amp-story-block-navigation .components-popover:not(.is-mobile).is-center .components-popover__content{transform:translateX(13%)}.post-type-amp_story.folded #amp-story-block-navigation .components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content{margin-right:-50px}#amp-story-block-navigation .block-editor-block-navigation__list{list-style-type:none;margin-bottom:15px}#amp-story-block-navigation .editor-block-navigation__list__static{margin:0;padding:0}#amp-story-block-navigation .components-icon-button .dashicon{margin-left:5px}#amp-story-block-navigation .block-editor-block-navigation__label{margin:0 0 1em;text-transform:uppercase;font-weight:500;font-size:12px;color:#666;letter-spacing:1px}.post-type-amp_story:not(.folded) .edit-post-layout #amp-story-block-navigation{max-width:calc((100vw - 614px)/2 - 45px)}.post-type-amp_story.folded .edit-post-layout #amp-story-block-navigation{max-width:calc((100vw - 490px)/2 - 45px)}.post-type-amp_story .edit-post-layout.is-sidebar-opened #amp-story-block-navigation{max-width:calc((100vw - 894px)/2 - 45px)}.post-type-amp_story.folded #amp-story-block-navigation{max-width:calc(100vw - 370px)}.post-type-amp_story.folded .edit-post-layout.is-sidebar-opened #amp-story-block-navigation{max-width:calc((100vw - 770px)/2 - 45px)}@media (max-width:960px){.block-editor-block-list__block-edit>div>.editor-selectors{display:none}}.edit-post-header-toolbar .components-icon-button.block-editor-block-navigation{display:none}@media (min-width:961px){.edit-post-header-toolbar #amp-story-shortcuts{display:flex}.edit-post-visual-editor .editor-post-title__block{margin-right:0;margin-left:0}.block-editor-block-navigation__container{background:#fff;border:1px solid #eee;padding:1em}.block-editor-block-navigation__container .component-editor__selector button{background:no-repeat 100% 0;padding-right:37px;height:40px;margin:1px 4px 1px 0}.block-editor-block-navigation__container .component-editor__selector .components-button:focus{box-shadow:none}.components-range-control__number{width:60px}}.block-editor-block-navigation__list .block-editor-block-navigation__item{position:relative}.block-editor-block-navigation__list .block-editor-block-navigation__item-is-dragging{cursor:grab}.block-editor-block-navigation__list .block-editor-block-navigation__item .components-drop-zone{border:none;border-radius:0}.block-editor-block-navigation__list .block-editor-block-navigation__item .components-drop-zone.is-dragging-over-element .components-drop-zone__content{display:none}.block-editor-block-navigation__list li .block-editor-block-navigation__item .components-drop-zone{background:none}.block-editor-block-navigation__list li .block-navigation__placeholder{transition:height .3s ease;height:0}.block-editor-block-navigation__list li .block-editor-block-navigation__item .components-drop-zone.is-close-to-top+.block-navigation__placeholder{visibility:hidden;height:36px}.block-editor-block-navigation__list li:last-child .components-drop-zone:not(.is-close-to-top){height:72px}.block-editor-block-navigation__item-is-dragging>.editor-block-navigation__item-button{display:none}#amp-story-editor-carousel{display:none}@media (min-width:961px){#amp-story-editor-carousel{display:block}}#amp-story-editor{position:relative;overflow:hidden}#amp-story-editor>.editor-block-list__layout{padding-right:0;padding-left:0;display:flex;align-items:center;transform:none;transition:transform .3s ease-in-out}#amp-story-editor>.editor-block-list__layout .block-list-appender{display:none}.amp-story-editor-carousel-navigation{display:flex;justify-content:space-between;margin-top:5em}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list{flex:1;display:flex;margin:0;padding:0;list-style-type:none;justify-content:center;max-width:30%}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list .amp-story-editor-carousel-item{flex:1;height:.5em;max-width:5em}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list .amp-story-editor-carousel-item+.amp-story-editor-carousel-item{margin-right:20px}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list button{background:#eff0f1;width:100%;height:100%;display:block}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list button:focus,.editor-styles-wrapper ul.amp-story-editor-carousel-item-list button:hover{background:#e0e0e0}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list .amp-story-editor-carousel-item--active button{background:#666}.amp-story-reorderer{margin-top:100px;display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,169px);grid-gap:0;justify-content:space-between}.amp-story-reorderer .amp-story-reorderer-item{margin:0 auto 10px;width:100%;position:relative}.amp-story-reorderer .amp-story-reorderer-item .amp-story-reorderer-item-page{max-width:165px;height:270px}.amp-story-reorderer .block-editor-block-preview .block-editor-block-preview__content .components-disabled{transform:none;text-align:right;text-align:initial}.amp-story-reorderer .block-editor-block-list__layout .block-editor-block-list__block{padding:0}.amp-story-reorderer .editor-block-list__layout.block-editor-block-list__layout,.amp-story-reorderer .editor-inner-blocks.block-editor-inner-blocks{height:100%;padding:0}.amp-story-reorderer .components-disabled,.amp-story-reorderer .components-disabled div:first-of-type{padding:0;width:100%;height:100%}.amp-story-reorderer .amp-story-reorderer-item .amp-story-reorderer-item-page .wp-block{--preview-scale:0.47;--preview-translateX:-40%;--preview-translateY:-70%;position:absolute;transform:scale(var(--preview-scale)) translateX(var(--preview-translateX)) translateY(var(--preview-translateY))}.amp-story-reorderer .block-editor-block-list__layout>.block-editor-block-list__block>.block-editor-block-list__block-edit{margin-top:0;margin-bottom:0}@media (min-width:600px){.amp-story-reorderer .block-editor-block-list__block-edit{margin-right:-50px;margin-left:-50px}}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone{border:none;border-radius:0;background:transparent}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-active{opacity:0;visibility:hidden}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-over-element,.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-page{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-page{background:#eff0f1;border:none!important;margin:0 10px}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-over-element.is-close-to-right{border-left:3px solid #0071a1}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-over-element.is-close-to-left{border-right:3px solid #0071a1}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone__content,.amp-story-reorderer .amp-story-reorderer-item .is-dragging-over-element .components-drop-zone__content{display:none}.amp-story-reorderer .amp-story-page-preview{border:5px solid #eff0f1;border-radius:5px;background:#fff;width:100%;height:100%;cursor:grab;overflow:hidden}#amp-story-editor .amp-story-reorderer .components-draggable__clone{position:fixed}.amp-story-reorderer .amp-story-page-preview .editor-styles-wrapper{margin:0;height:260px}.amp-story-reorderer .amp-story-page-preview .editor-block-list__layout{padding:0}.amp-story-reorderer .amp-story-page-preview .block-list-appender{display:none}#amp-story-shortcuts{display:inline-flex}#amp-story-controls{text-align:left;padding-left:20px}.amp-story-controls-reorder{box-sizing:border-box;height:49px;width:49px;border:1px solid #aaaeb3;border-radius:50%}#amp-story-controls .amp-story-controls-reorder{display:inline-block;line-height:1}.amp-story-controls-reorder-cancel{padding-top:5px;padding-bottom:5px;margin-left:20px;display:inline-flex}.amp-story-controls-reorder-save{float:left}.amp-story-order-controls .amp-story-controls-description{display:none}.amp-story-order-controls-wrap{display:flex;align-items:center;justify-content:space-between}.amp-story-order-controls-wrap .components-icon-button{display:block;-ms-grid-row-align:start;align-self:start;text-align:center;color:inherit}.amp-story-order-controls-wrap .components-icon-button svg{display:block;margin:0 auto}.wp-block [draggable=true]{-webkit-user-select:auto}.wp-block [draggable=true]:hover{cursor:grab}.wp-block[data-type="amp/amp-story-text"] .editor-rich-text__editable:hover,.wp-block[data-type="core/quote"] .editor-rich-text__editable:hover{cursor:default}#amp-story-controls .editor-inserter__amp-inserter{height:48px;width:48px;background-color:#0085ba;border-radius:50%;margin-left:10px}body.admin-color-sunrise #amp-story-controls .editor-inserter__amp-inserter{background-color:#d1864a}body.admin-color-ocean #amp-story-controls .editor-inserter__amp-inserter{background-color:#a3b9a2}body.admin-color-midnight #amp-story-controls .editor-inserter__amp-inserter{background-color:#e14d43}body.admin-color-ectoplasm #amp-story-controls .editor-inserter__amp-inserter{background-color:#a7b656}body.admin-color-coffee #amp-story-controls .editor-inserter__amp-inserter{background-color:#c2a68c}body.admin-color-blue #amp-story-controls .editor-inserter__amp-inserter{background-color:#82b4cb}body.admin-color-light #amp-story-controls .editor-inserter__amp-inserter{background-color:#0085ba}#amp-story-controls .editor-inserter__amp-inserter svg{margin:0 auto}.amp-stories__template-inserter__popover.components-popover .components-popover__content:not(.is-mobile){width:406px;height:400px;padding:2px;transform:translateX(90%)}.amp-stories__template-inserter__popover:before{border:8px solid #e2e4e7}.amp-stories__template-inserter__popover:after{border:8px solid #fff}.amp-stories__template-inserter__popover:after,.amp-stories__template-inserter__popover:before{border-bottom-style:solid;border-right-color:transparent;border-left-color:transparent;border-top:none;margin-right:-15px}.amp-stories__editor-inserter__results .components-spinner{margin-right:calc(50% - 9px);margin-left:calc(50% - 9px);margin-top:128px}.amp-stories__template-inserter__popover.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:before{border-bottom:8px solid #e2e4e7}.amp-stories__template-inserter__popover.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:after{border-bottom:8px solid #fff}@media (min-width:782px){.amp-stories__template-inserter__popover.block-editor-inserter__popover:not(.is-mobile)>.components-popover__content{overflow-y:scroll}}@media (min-width:600px){.amp-stories__template-inserter__popover .block-editor-block-list__block .block-editor-block-list__block-edit{margin:0}}.edit-post-layout:not(.is-sidebar-opened) .amp-stories__template-inserter__popover.components-popover .components-popover__content:not(.is-mobile){right:auto;transform:none}.amp-stories__template-inserter__popover.block-editor-inserter__popover .block-editor-block-types-list{margin:0;padding:5px}.amp-stories__template-inserter__popover.components-popover.is-top .components-popover__content{bottom:auto}.amp-stories__template-inserter__popover.components-popover:not(.is-without-arrow):not(.is-mobile).is-top{margin-top:55px}.amp-stories__editor-inserter__results li{display:block;list-style-type:none;width:160px;height:268px;float:right;margin:15px}.amp-stories__editor-inserter__results li amp-story-grid-layer,.amp-stories__editor-inserter__results li amp-story-page{display:block;width:100%;height:100%}.amp-stories__editor-inserter__results .block-editor-block-preview{width:160px;height:268px;margin:10px;padding:0;overflow:hidden}.amo-stories__editor-inserter__results .components-placeholder,.amp-stories__editor-inserter__results .block-editor-block-preview .block-editor-block-preview__content{position:static;padding:0;width:100%;height:100%}.amp-stories__editor-inserter__results .block-editor-block-preview__content .reusable-block-indicator,.amp-stories__editor-inserter__results .block-editor-block-preview__content .rotatable-box-wrap{display:none}.amp-stories__blank-page-inserter{height:100%;width:100%}.amp-stories__blank-page-inserter svg{margin:0 auto}.amp-stories__blank-page-inserter span{display:none}.amp-stories__editor-inserter__results .block-editor-block-preview{pointer-events:auto}.amo-stories__editor-inserter__results .editor-block-list__insertion-point,.amp-stories__editor-inserter__results .block-list-appender{display:none}.amp-stories__editor-inserter__results .block-editor-block-preview .block-editor-block-preview__content .components-disabled{transform:none;text-align:right;text-align:initial}.amp-stories__editor-inserter__results .components-disabled,.amp-stories__editor-inserter__results .components-disabled .editor-inner-blocks,.amp-stories__editor-inserter__results .components-disabled div:first-of-type{padding:0;height:268px}.amp-stories__editor-inserter__results .block-editor-block-preview .block-editor-block-preview__content>div{transform:none}.amp-stories__editor-inserter__results .components-resizable-box__container.amp-story-resize-container .amp-story-resize-container{max-width:none}.amp-stories__editor-inserter__results .block-editor-block-preview .wp-block[data-type="core/image"]{width:180%}.amp-stories__editor-inserter__results .block-editor-block-preview .wp-block{--preview-scale:0.48;--preview-translateX:-55%;--preview-translateY:-40%;height:auto!important;position:absolute;transform:scale(.48) translateX(55%) translateY(-40%)}.amp-stories__editor-inserter__results .components-disabled .wp-block div{height:auto!important}@media (min-width:600px){.amp-stories__editor-inserter__results .block-editor-block-list__layout .block-editor-block-list__block{padding:0}}.amp-stories__editor-inserter__results .block-editor-block-types-list{padding:10px}.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-mover{display:none!important}.components-draggable__clone .block-editor-block-list__block .rotatable-box-wrap{display:none;opacity:0}.editor-inner-blocks .block-editor-block-list__block.is-rotating .block-editor-block-contextual-toolbar,.editor-inner-blocks .block-editor-block-list__block.is-rotating .block-editor-block-list__breadcrumb,.editor-inner-blocks .block-editor-block-list__block.is-rotating .block-editor-block-list__insertion-point{display:none!important}.block-editor-block-list__block .rotatable-box-wrap{position:absolute;left:-14px;bottom:-25px;right:calc(50% - 15px);width:30px;height:25px}.block-editor-block-list__block .rotatable-box-wrap:before{display:block;content:"";cursor:inherit;border-right:1px solid rgba(66,88,99,.4);height:24px;width:0;margin:3px auto 0}.block-editor-block-list__block .rotatable-box-wrap .rotatable-box-wrap__handle{display:block;opacity:1;transition:opacity .3s;position:absolute;bottom:-20px;right:calc(50% - 25px);width:50px;height:24px;padding:4px;cursor:move;background:transparent;border:none}.rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#0085ba;border:2px solid #fff;border-radius:50%;content:"";cursor:inherit;display:block;height:15px;width:15px;margin:0 auto}body.admin-color-sunrise .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#d1864a}body.admin-color-ocean .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#a3b9a2}body.admin-color-midnight .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#e14d43}body.admin-color-ectoplasm .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#a7b656}body.admin-color-coffee .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#c2a68c}body.admin-color-blue .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#82b4cb}body.admin-color-light .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#0085ba}.block-editor-inner-blocks .wp-block.is-typing .rotatable-box-wrap,.block-editor-inner-blocks .wp-block .rotatable-box-wrap{display:block;opacity:0;transition:opacity .3s}.block-editor-inner-blocks .wp-block .amp-story-resize-container.is-resizing .rotatable-box-wrap,.block-editor-inner-blocks .wp-block.is-typing .rotatable-box-wrap{opacity:0}.block-editor-inner-blocks .wp-block.is-rotating .rotatable-box-wrap,.block-editor-inner-blocks .wp-block.is-selected .rotatable-box-wrap,.block-editor-inner-blocks .wp-block:hover .rotatable-box-wrap{opacity:1}.components-preview-picker__buttons{display:flex;justify-content:space-between;align-items:center}.components-preview-picker__dropdown-content .components-button{display:block;position:relative;padding:10px 40px 10px 20px;width:100%;text-align:right}.components-preview-picker__dropdown-content .components-button:hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-preview-picker__dropdown-content .components-button:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-preview-picker__dropdown-content .components-button .dashicon{position:absolute;top:calc(50% - 10px);right:10px}.components-preview-picker__dropdown-content .components-button .editor-block-icon{position:absolute;top:calc(50% - 10px);left:10px}.components-preview-picker__buttons .components-preview-picker__selector{background:none;position:relative;width:200px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-preview-picker__buttons .components-preview-picker__selector:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-preview-picker__buttons .components-preview-picker__selector:after{content:"";pointer-events:none;display:block;width:0;height:0;border-right:3px solid transparent;border-left:3px solid transparent;border-top:5px solid;margin-right:4px;margin-left:2px;left:8px;top:12px;position:absolute}.amp__block-editor-inserter__menu.block-editor-inserter__menu{flex-direction:column}.amp-story-resize-container .components-resizable-box__handle{display:block;opacity:0;transition:opacity .3s}.block-editor-inner-blocks .wp-block.is-typing .amp-story-resize-container .components-resizable-box__handle{opacity:0}.block-editor-inner-blocks .wp-block .amp-story-resize-container.is-resizing .components-resizable-box__handle,.block-editor-inner-blocks .wp-block.is-selected .amp-story-resize-container .components-resizable-box__handle,.block-editor-inner-blocks .wp-block:hover .amp-story-resize-container .components-resizable-box__handle{opacity:1}.amp-story-resize-container .components-resizable-box__handle-top{top:-14px!important}.amp-story-resize-container .components-resizable-box__handle-right{left:-14px!important}.amp-story-resize-container .components-resizable-box__handle-bottom{bottom:-14px!important}.amp-story-resize-container .components-resizable-box__handle-left{right:-14px!important}.amp-story-editor__rotate-container .components-resizable-box__handle{display:none!important}.amp-story-resize-container .amp-story-editor__rotate-container{height:100%}.wp-block-image .components-resizable-box__container img{height:100%;-o-object-fit:cover;object-fit:cover;-webkit-user-drag:none}.block-editor-block-list__block[data-type="core/image"] img{-webkit-user-drag:none}.editor-block-list__layout div[data-type="amp/amp-story-cta"]{top:80%;right:0;width:100%;height:20%}.block-editor-block-list__layout div[data-type="amp/amp-story-cta"]:not(#id){margin-top:0}.editor-block-list__layout div[data-type="amp/amp-story-cta"] img{max-height:86px}.amp-block-story-cta__link img{-o-object-fit:contain;object-fit:contain}.amp-block-story-cta__link .amp-text-placeholder{opacity:.62}div[data-type="amp/amp-story-cta"] .amp-overlay{height:100%;width:100%;z-index:1000;position:absolute;top:0;right:0;left:0;bottom:0}.editor-block-list__layout div[data-type="amp/amp-story-cta"] .editor-block-mover{display:none}.block-editor-block-list__block[data-type="amp/amp-story-cta"] .block-editor-block-list__block-edit{--cta-margin:3px;height:calc(100% + var(--cta-margin)*2);width:100%;bottom:var(--cta-margin)}.block-editor-block-list__layout .block-editor-block-list__block[data-type="amp/amp-story-cta"] .block-editor-block-list__block-edit:before{top:0;right:0;bottom:0;left:0}.block-editor-block-list__block[data-type="amp/amp-story-cta"] .block-editor-block-contextual-toolbar{margin-right:-1px;margin-left:0}.amp-story-cta-button{position:absolute}.wp-block-amp-amp-story-cta{display:inline-block;padding:5px;margin-bottom:0;position:relative}.wp-block-amp-amp-story-cta [contenteditable]{cursor:text}.wp-block-amp-amp-story-cta .block-editor-rich-text__editable[data-is-placeholder-visible=true]+.block-editor-rich-text__editable{opacity:.8}.block-editor-block-preview__content .wp-block-amp-amp-story-cta{max-width:100%}.wp-block-amp-amp-story-cta .block-editor-rich-text__editable code{background:inherit;color:inherit}.wp-block-amp-amp-story-cta .block-editor-rich-text__editable[data-is-placeholder-visible=true]{height:auto}.wp-block-amp-amp-story-cta .amp-block-story-cta__link{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.amp-block-story-cta__link{border:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:18px;margin:0;padding:7px 19px 0;text-align:center;text-decoration:none;white-space:normal;word-wrap:break-word}.amp-block-story-cta__inline-link{background:#fff;display:flex;flex-wrap:wrap;align-items:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:374px;position:absolute;z-index:10;margin-top:-.5em}.is-dragging-components-draggable .amp-block-story-cta__inline-link{display:none}.amp-block-story-cta__inline-link .block-editor-url-input{width:auto}.amp-block-story-cta__inline-link .block-editor-url-input__suggestions{width:302px;z-index:10}.amp-block-story-cta__inline-link>.dashicon{width:36px}.amp-block-story-cta__inline-link .dashicon{color:#8f98a1}.amp-block-story-cta__inline-link .block-editor-url-input input[type=text]:-ms-input-placeholder{color:#8f98a1}.amp-block-story-cta__inline-link .block-editor-url-input input[type=text]::-ms-input-placeholder{color:#8f98a1}.amp-block-story-cta__inline-link .block-editor-url-input input[type=text]::placeholder{color:#8f98a1}.block-editor-block-list__layout .block-editor-block-list__block[data-type="amp/amp-story-page"]>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb{display:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit:before{right:-3px;top:-3px;left:-3px;bottom:-3px}.block-editor-block-list__layout .block-editor-block-list__block[data-type="amp/amp-story-page"]>.block-editor-block-list__block-edit>.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{right:18px;top:11px}[data-type="amp/amp-story-page"]>.editor-block-list__block-edit>.editor-block-mover{display:none!important}.editor-block-list__layout div[data-type="amp/amp-story-page"]{padding:0;margin:60px 30px 0}@media (min-width:600px){div[data-type="amp/amp-story-page"] .editor-block-list__block{margin:0;padding:0}}#amp-story-editor .wp-block[data-type="amp/amp-story-page"]{background:#fff}#amp-story-editor .wp-block[data-type="amp/amp-story-page"],#amp-story-editor .wp-block[data-type="amp/amp-story-page"] .editor-inner-blocks .editor-block-list__layout:first-of-type{width:100%;max-width:328px;height:553px;position:relative}#amp-story-editor .wp-block[data-type="amp/amp-story-page"] .editor-block-list__layout>.block-list-appender{width:316px;margin:0 auto;display:none}.editor-block-list__layout .editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit,.editor-block-list__layout div[data-type="amp/amp-story-page"].editor-block-list__block .editor-block-list__block-edit{margin:0}.editor-block-list__layout div[data-type="amp/amp-story-page"]{flex:0 0 auto;position:relative;transition:border .3s linear}.editor-block-list__layout div[data-type="amp/amp-story-page"]+div[data-type="amp/amp-story-page"]{margin-right:20px}.editor-block-list__layout [data-type="amp/amp-story-page"].amp-page-inactive{opacity:.5}.editor-block-list__layout [data-type="amp/amp-story-page"].amp-page-inactive>div{pointer-events:none}.editor-block-list__layout div[data-type="amp/amp-story-page"] .amp-story-page-number{position:absolute;top:-3em;text-transform:uppercase;font-weight:500;font-size:12px;color:#666;letter-spacing:1px}.editor-block-list__layout div[data-type="amp/amp-story-page"] .amp-story-page-number+div .editor-inner-blocks.block-editor-inner-blocks{height:553px}.editor-styles-wrapper [data-block]{margin-top:0;margin-bottom:0}.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-dragging,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-focused,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-rotating,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-selected,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-typing{z-index:100}.block-editor-block-list__block.amp-page-inactive>.block-editor-block-list__block-edit:before{box-shadow:none;border:1px solid #e3e5e7}.block-editor-block-list__block.amp-page-active.has-child-selected>.block-editor-block-list__block-edit:before,.block-editor-block-list__block.amp-page-active.is-selected>.block-editor-block-list__block-edit:before,.block-editor-block-list__block.amp-page-active>.block-editor-block-list__block-edit:before,.block-editor-inner-blocks .wp-block.is-rotating .block-editor-block-list__block-edit:before,.block-editor-inner-blocks .wp-block.is-selected .block-editor-block-list__block-edit:before,.block-editor-inner-blocks .wp-block:hover .block-editor-block-list__block-edit:before{box-shadow:none;border:1px solid rgba(66,88,99,.4)}div[data-type="amp/amp-story-page"] .editor-inner-blocks .editor-block-list__layout:first-of-type .wp-block{position:absolute;z-index:10}.editor-block-list__block .editor-block-list__layout{margin:0}.editor-block-list__layout div[data-type="amp/amp-story-page"][data-amp-selected=parent] .editor-block-drop-zone{height:603px;--dropzone-padding:400px;--page-width:328px;width:calc(var(--dropzone-padding) + var(--page-width));margin:0;right:calc(var(--dropzone-padding)/-2);top:-50px;border:none;background:transparent}.editor-block-list__layout div[data-type="amp/amp-story-page"][data-amp-selected=parent]>.editor-block-drop-zone .components-drop-zone__content{display:none}div[data-type="amp/amp-story-page"] .wp-block-image{margin-top:0}.edit-post-layout[data-block-name="core/embed"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2),.edit-post-layout[data-block-name="core/image"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2),.edit-post-layout[data-block-name="core/pullquote"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2),.edit-post-layout[data-block-name="core/video"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2){display:none}.amp-page-inactive[data-type="amp/amp-story-page"] .block-list-appender{display:none}.block-editor-block-list__block-edit .components-draggable__clone{position:absolute}.wp-block[data-type="core/pullquote"][data-align=full],.wp-block[data-type="core/pullquote"][data-align=wide]{width:100%;max-width:100%}.block-editor-inner-blocks .wp-block[data-type="core/pullquote"] .block-editor-block-list__block-edit{display:block}#amp-story-editor .block-editor-block-list__layout .block-editor-block-list__block[data-align=full]{margin:0}.editor-amp-story-page-video-wrap{position:absolute;overflow:hidden;width:100%;height:100%}.editor-amp-story-page-background.editor-post-featured-image__preview img,.editor-amp-story-page-video{-o-object-fit:cover;object-fit:cover}.editor-amp-story-page-video{position:absolute;top:0;right:0;left:0;bottom:0;min-width:100%;min-height:100%}.editor-amp-story-page-background{display:block}.editor-amp-story-page-background~.components-button{margin-top:1em;margin-left:8px}#editor-amp-story-page-poster__help{margin-top:0}.editor-block-list__layout [data-type="amp/amp-story-page"] .block-editor-block-list__block .block-editor-warning{transform:none}.editor-block-list__layout [data-type="amp/amp-story-page"] .block-editor-block-list__block.is-selected .block-editor-warning{border:none}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author{margin:0;padding:7px!important;height:100%}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author.is-amp-fit-text{line-height:1.15;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author:not(.is-amp-fit-text){display:block;font-size:16px}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.wp-block[data-type="amp/amp-story-post-author"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-post-author"] .block-mover,.wp-block[data-type="amp/amp-story-post-author"] .block-mover div{height:100%}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date{margin:0;padding:7px!important;height:100%}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date.is-amp-fit-text{line-height:1.15;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date:not(.is-amp-fit-text){display:block;font-size:16px}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.wp-block[data-type="amp/amp-story-post-date"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-post-date"] .block-mover,.wp-block[data-type="amp/amp-story-post-date"] .block-mover div{height:100%}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title{margin:0;padding:7px!important;height:100%}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title.is-amp-fit-text{line-height:1.15;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;font-weight:700}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title:not(.is-amp-fit-text){display:block;font-size:16px}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.wp-block[data-type="amp/amp-story-post-title"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-post-title"] .block-mover,.wp-block[data-type="amp/amp-story-post-title"] .block-mover div{height:100%}.wp-block[data-type="amp/amp-story-text"] p{margin:0}.wp-block-amp-story-text .block-editor-rich-text__editable{padding:7px!important;width:100%}.is-not-editing .wp-block-amp-amp-story-text.block-editor-rich-text__editable.editor-rich-text__editable{cursor:grab}.wp-block-amp-story-text-wrapper.is-empty-draggable-text,.wp-block-amp-story-text-wrapper:not(.with-line-height){height:100%}.wp-block-amp-story-text-wrapper .amp-overlay{height:100%;width:100%;z-index:1000;position:absolute;top:0;right:0;left:0;bottom:0}.wp-block-amp-story-text-wrapper.is-empty-draggable-text .amp-text-placeholder{opacity:.62}.editor-styles-wrapper #amp-story-editor .wp-block .wp-block[data-type="amp/amp-story-text"]{width:auto}.wp-block[data-type="amp/amp-story-text"] .block-editor-rich-text__editable,div[data-type="amp/amp-story-page"] .block-editor-inner-blocks .block-editor-block-list__block-edit{display:inline-block}.with-line-height .wp-block-amp-story-text{position:relative}.wp-block[data-type="amp/amp-story-text"] .wp-block-amp-story-text .is-amp-fit-text{display:inline-block;vertical-align:middle;line-height:1.15}.wp-block[data-type="amp/amp-story-text"] .wp-block-amp-story-text .is-amp-fit-text.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.editor-block-list__layout .wp-block[data-type="amp/amp-story-text"] .editor-block-list__block-edit:before{position:absolute}.wp-block[data-type="amp/amp-story-text"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-text"] .block-mover,.wp-block[data-type="amp/amp-story-text"] .block-mover div{height:100%}.components-background-color-popover-content{padding:16px}.components-background-color-indicator{position:absolute;background:transparent;height:3px;width:20px;bottom:6px;right:auto;left:auto;margin-right:-1px}.components-background-color-indicator:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.components-text-color-popover-content{padding:16px}.components-text-color-indicator{position:absolute;background:transparent;height:3px;width:20px;bottom:6px;right:auto;left:auto;margin-right:1px}.components-text-color-indicator:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}
1
+ :root{--preview-scale:1;--preview-translateX:0%;--preview-translateY:0%}.edit-post-visual-editor{padding-right:50px;padding-left:50px}.block-editor-block-preview .block-editor-block-preview__content>div,.editor-styles-wrapper #amp-story-editor,.editor-styles-wrapper .wp-block:not([data-font-family]){font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}@media screen and (min-width:1280px){#amp-story-editor{min-width:820px}}#amp-story-editor .components-placeholder{background:#f3f3f3}#amp-story-editor .block-editor-block-list__block .block-editor-block-list__empty-block-inserter,#amp-story-editor .block-editor-block-list__block>.block-editor-block-list__insertion-point,#amp-story-editor .block-editor-block-list__layout .block-editor-default-block-appender{display:none!important}.editor-styles-wrapper #amp-story-editor [data-block]{margin-top:0;margin-bottom:0}.wp-block-quote__citation{font-size:16px;margin-top:24px;display:block}.editor-styles-wrapper .wp-block-quote p{line-height:34px;font-weight:700;font-size:30px;font-family:Source Sans Pro,sans-serif}.wp-block-quote,.wp-block-quote[style*="text-align: right"]{border:none;padding-top:100px}.block-editor-block-list__layout .block-editor-block-list__block [data-type="core/quote"] .block-editor-block-list__block-edit:before{left:-5px;right:-5px;top:-5px;bottom:-5px}:not(.amp-story-page-preview) :not(.amp-stories__editor-inserter__results) .components-disabled .wp-block-quote.is-style-white{background-color:#313131}.amp-stories__editor-inserter__menu .amp-stories__editor-inserter__results .components-disabled .wp-block-quote.is-style-white,.amp-story-reorderer-item .amp-story-page-preview .components-disabled .wp-block-quote.is-style-white{background-color:transparent;background-color:initial}.wp-block .components-resizable-box__container+.__resizable_base__{right:0!important}.wp-block[data-type="core/list"] .amp-story-editor__rotate-container,.wp-block[data-type="core/list"] .block-mover,.wp-block[data-type="core/list"] .block-mover div{height:100%}.wp-block[data-type="core/code"] .amp-story-editor__rotate-container,.wp-block[data-type="core/code"] .block-mover,.wp-block[data-type="core/code"] .block-mover div{height:100%}.wp-block[data-type="core/video"] .block-mover,.wp-block[data-type="core/video"] .block-mover div{height:100%}.wp-block[data-type="core/video"] .block-mover .editor-rich-text.block-editor-rich-text,.wp-block[data-type="core/video"] .block-mover .editor-rich-text.block-editor-rich-text div{height:auto}.wp-block[data-type="core/video"] .wp-block-video{margin:0}.wp-block-code textarea{white-space:nowrap}.wp-block[data-type="core/preformatted"] div[draggable=true],.wp-block[data-type="core/verse"] div[draggable=true]{border:5px solid transparent}.wp-block-preformatted .block-editor-rich-text__editable,.wp-block-verse .block-editor-rich-text__editable{white-space:nowrap!important;padding:5px}.wp-block-pullquote,.wp-block[data-type="core/pullquote"] .block-mover,.wp-block[data-type="core/pullquote"] .block-mover div{height:100%}.wp-block-table,.wp-block[data-type="core/table"] .block-mover,.wp-block[data-type="core/table"] .block-mover div{height:100%}.wp-block[data-type="core/table"] .block-mover .components-placeholder,.wp-block[data-type="core/table"] .block-mover .components-placeholder div{height:auto}.block-library-list ul li,.wp-block-preformatted pre,.wp-block-verse pre{cursor:auto}.block-library-list{padding:5px}.block-library-list ul,.wp-block-preformatted pre,.wp-block-verse pre{margin:0}.edit-post-more-menu__content .components-menu-group:first-of-type .components-button:first-of-type{display:none}.edit-post-more-menu__content .components-menu-group:nth-last-of-type(2) div[role=group]>.components-button:first-child{display:none}.editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit>:not(.editor-warning){pointer-events:all}.editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit>div>div:not(.editor-warning){pointer-events:none}div[data-amp-caption=noCaption] .wp-block-video figcaption,div[data-amp-caption=noCaption] figure.wp-block-image figcaption{display:none}.wp-block .is-amp-fit-text{word-wrap:normal}.wp-block-video,.wp-block-video .components-disabled{height:100%}.wp-block-video .components-disabled{overflow:hidden}.wp-block-video video{height:100%;width:100%}.media-frame.has-two-notices .media-frame-content{bottom:120px}.components-panel__body .components-notice{margin-right:0;margin-left:0}.video-block__poster-image.editor-post-featured-image__preview img{-o-object-fit:cover;object-fit:cover}@keyframes story-animation-pulse{0%{transform:scale(1)}25%{transform:scale(.95)}75%{transform:scale(1.05)}to{transform:scale(1)}}.story-animation-pulse{--animation-duration:400ms;--animation-delay:0ms;animation-name:story-animation-pulse;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(.4,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-pulse{transform:scale(1)}@keyframes story-animation-fly-in-left{0%{transform:translate(var(--animation-offset-x))}to{transform:translate(0)}}.story-animation-fly-in-left{--animation-duration:400ms;--animation-delay:0ms;--animation-offset-x:0;animation-name:story-animation-fly-in-left;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-fly-in-left{transform:translate(var(--animation-offset-x))}@keyframes story-animation-fly-in-right{0%{transform:translate(var(--animation-offset-x))}to{transform:translate(0)}}.story-animation-fly-in-right{--animation-duration:400ms;--animation-delay:0ms;--animation-offset-x:0;animation-name:story-animation-fly-in-right;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-fly-in-right{transform:translate(var(--animation-offset-x))}@keyframes story-animation-fly-in-top{0%{transform:translateY(var(--animation-offset-y))}to{transform:translate(0)}}.story-animation-fly-in-top{--animation-duration:400ms;--animation-delay:0ms;--animation-offset-y:0;animation-name:story-animation-fly-in-top;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-fly-in-top{transform:translateY(var(--animation-offset-y))}@keyframes story-animation-fly-in-bottom{0%{transform:translateY(var(--animation-offset-y))}to{transform:translate(0)}}.story-animation-fly-in-bottom{--animation-duration:400ms;--animation-delay:0ms;--animation-offset-y:0;animation-name:story-animation-fly-in-bottom;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-fly-in-bottom{transform:translateY(var(--animation-offset-y))}@keyframes story-animation-rotate-in-left{0%{transform:translate(var(--animation-offset-x)) rotate(1turn)}to{transform:translate(0)}}.story-animation-rotate-in-left{--animation-duration:600ms;--animation-delay:0ms;--animation-offset-x:0;animation-name:story-animation-rotate-in-left;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-rotate-in-left{transform:translate(var(--animation-offset-x)) rotate(1turn)}@keyframes story-animation-rotate-in-right{0%{transform:translate(var(--animation-offset-x)) rotate(1turn)}to{transform:translate(0)}}.story-animation-rotate-in-right{--animation-duration:600ms;--animation-delay:0ms;--animation-offset-x:0;animation-name:story-animation-rotate-in-right;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-rotate-in-right{transform:translate(var(--animation-offset-x)) rotate(1turn)}@keyframes story-animation-fade-in{0%{opacity:0}to{opacity:1}}.story-animation-fade-in{--animation-duration:400ms;--animation-delay:0ms;animation-name:story-animation-fade-in;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-fade-in{opacity:0}@keyframes story-animation-drop{0%{transform:translateY(calc(-1*var(--animation-offset-y)));animation-timing-function:cubic-bezier(.75,.05,.86,.08)}30%{transform:translateY(0);animation-timing-function:cubic-bezier(.22,.61,.35,1)}52%{transform:translateY(calc(-0.6*var(--animation-offset-y)));animation-timing-function:cubic-bezier(.75,.05,.86,.08)}74%{transform:translateY(0);animation-timing-function:cubic-bezier(.22,.61,.35,1)}83%{transform:translateY(calc(-0.3*var(--animation-offset-y)));animation-timing-function:cubic-bezier(.75,.05,.86,.08)}to{transform:translateY(0);animation-timing-function:cubic-bezier(.22,.61,.35,1)}}.story-animation-drop{--animation-duration:1600ms;--animation-delay:0ms;--animation-offset-y:0;animation-name:story-animation-drop;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-drop{transform:translateY(calc(-1*var(--animation-offset-y)))}@keyframes story-animation-twirl-in{0%{transform:rotate(540deg) scale(.1);opacity:0}to{transform:none;opacity:1}}.story-animation-twirl-in{--animation-duration:1000ms;--animation-delay:0ms;animation-name:story-animation-twirl-in;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(.2,.75,.4,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-twirl-in{transform:rotate(540deg) scale(.1);opacity:0}@keyframes story-animation-whoosh-in-left{0%{opacity:0;transform:translate(var(--animation-offset-x)) scale(.15)}to{opacity:1;transform:translate(0) scale(1)}}.story-animation-whoosh-in-left{--animation-duration:400ms;--animation-delay:0ms;animation-name:story-animation-whoosh-in-left;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-whoosh-in-left{transform:translate(var(--animation-offset-x)) scale(.15);opacity:0}@keyframes story-animation-whoosh-in-right{0%{opacity:0;transform:translate(var(--animation-offset-x)) scale(.15)}to{opacity:1;transform:translate(0) scale(1)}}.story-animation-whoosh-in-right{--animation-duration:400ms;--animation-delay:0ms;animation-name:story-animation-whoosh-in-right;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-whoosh-in-right{transform:translate(var(--animation-offset-x)) scale(.15);opacity:0}@keyframes story-animation-pan-left{0%{transform:translate(var(--animation-offset-x),var(--animation-offset-y)) scale(var(--animation-scale-start));transform-origin:right top}to{transform:translateY(var(--animation-offset-y)) scale(var(--animation-scale-end));transform-origin:right top}}.story-animation-pan-left{--animation-duration:1000ms;--animation-delay:0ms;--animation-scale-start:1;--animation-scale-end:1;--animation-offset-x:0;--animation-offset-y:0;animation-name:story-animation-pan-left;animation-duration:var(--animation-duration);animation-timing-function:linear;animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-pan-left{transform:translate(var(--animation-offset-x),var(--animation-offset-y)) scale(var(--animation-scale-start));transform-origin:right top}@keyframes story-animation-pan-right{0%{transform:translateY(var(--animation-offset-y)) scale(var(--animation-scale-start));transform-origin:right top}to{transform:translate(var(--animation-offset-x),var(--animation-offset-y)) scale(var(--animation-scale-end));transform-origin:right top}}.story-animation-pan-right{--animation-duration:1000ms;--animation-delay:0ms;--animation-scale-start:1.25;--animation-scale-end:1.25;--animation-offset-x:0;--animation-offset-y:0;animation-name:story-animation-pan-right;animation-duration:var(--animation-duration);animation-timing-function:linear;animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-pan-right{transform:translateY(var(--animation-offset-y)) scale(var(--animation-scale-start));transform-origin:right top}@keyframes story-animation-pan-down{0%{transform:translate(var(--animation-offset-x)) scale(var(--animation-scale-start));transform-origin:right top}to{transform:translate(var(--animation-offset-x),var(--animation-offset-y)) scale(var(--animation-scale-end));transform-origin:right top}}.story-animation-pan-down{--animation-duration:1000ms;--animation-delay:0ms;--animation-scale-start:1.25;--animation-scale-end:1.25;--animation-offset-x:0;--animation-offset-y:0;animation-name:story-animation-pan-down;animation-duration:var(--animation-duration);animation-timing-function:linear;animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-pan-down{transform:translate(var(--animation-offset-x)) scale(var(--animation-scale-start));transform-origin:right top}@keyframes story-animation-pan-up{0%{transform:translate(var(--animation-offset-x),var(--animation-offset-y)) scale(var(--animation-scale-start));transform-origin:right top}to{transform:translate(var(--animation-offset-x)) scale(var(--animation-scale-end));transform-origin:right top}}.story-animation-pan-up{--animation-duration:1000ms;--animation-delay:0ms;--animation-scale-start:1.25;--animation-scale-end:1.25;--animation-offset-x:0;--animation-offset-y:0;animation-name:story-animation-pan-up;animation-duration:var(--animation-duration);animation-timing-function:linear;animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-pan-up{transform:translate(var(--animation-offset-x),var(--animation-offset-y)) scale(var(--animation-scale-start));transform-origin:right top}@keyframes story-animation-zoom-in{0%{transform:scale(var(--animation-scale-start))}to{transform:scale(var(--animation-scale-end))}}.story-animation-zoom-in{--animation-duration:1000ms;--animation-delay:0ms;--animation-scale-start:1;--animation-scale-end:3;animation-name:story-animation-zoom-in;animation-duration:var(--animation-duration);animation-timing-function:linear;animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-zoom-in{transform:scale(var(--animation-scale-start))}@keyframes story-animation-zoom-out{0%{transform:scale(var(--animation-scale-start))}to{transform:scale(var(--animation-scale-end))}}.story-animation-zoom-out{--animation-duration:1000ms;--animation-delay:0ms;--animation-scale-start:3;--animation-scale-end:1;animation-name:story-animation-zoom-out;animation-duration:var(--animation-duration);animation-timing-function:linear;animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-zoom-out{transform:scale(var(--animation-scale-start))}#amp-story-block-navigation{display:none;position:absolute;right:45px;top:75px;width:300px;min-width:115px;z-index:80;list-style-type:none;padding:0;margin:0}@media (max-width:1200px){.is-sidebar-opened #amp-story-block-navigation{right:0}}@media (min-width:1001px) and (max-width:1100px){.is-sidebar-opened .editor-block-list__layout{margin-left:-100px}}@media (min-width:961px){#amp-story-block-navigation{display:block}}@media (min-width:961px) and (max-width:1000px){.is-sidebar-opened #amp-story-block-navigation{display:none}}#amp-story-block-navigation .editor-inserter{position:absolute;bottom:100%;right:0;width:100%}#amp-story-block-navigation .components-popover:not(.is-mobile).is-center .components-popover__content{transform:translateX(13%)}.post-type-amp_story.folded #amp-story-block-navigation .components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content{margin-right:-50px}#amp-story-block-navigation .block-editor-block-navigation__list{list-style-type:none;margin-bottom:15px}#amp-story-block-navigation .editor-block-navigation__list__static{margin:0;padding:0}#amp-story-block-navigation .components-icon-button .dashicon{margin-left:5px}#amp-story-block-navigation .block-editor-block-navigation__label{margin:0 0 1em;text-transform:uppercase;font-weight:500;font-size:12px;color:#666;letter-spacing:1px}:root{--block-settings-sidebar-width:280px;--admin-menu-expanded-sidebar-width:160px;--admin-menu-collapsed-sidebar-width:36px;--amp-story-content-width:334px;--block-editor-horizontal-margin:50px;--scrollbar-width:20px;--block-navigation-right-margin:45px}.post-type-amp_story:not(.folded) .edit-post-layout #amp-story-block-navigation{max-width:calc((100vw - 614px)/2 - 45px);max-width:calc((100vw - var(--admin-menu-expanded-sidebar-width) - var(--amp-story-content-width) - var(--block-editor-horizontal-margin)*2 - var(--scrollbar-width))/2 - var(--block-navigation-right-margin))}.post-type-amp_story.folded .edit-post-layout #amp-story-block-navigation{max-width:calc((100vw - 490px)/2 - 45px);max-width:calc((100vw - var(--admin-menu-collapsed-sidebar-width) - var(--amp-story-content-width) - var(--block-editor-horizontal-margin)*2 - var(--scrollbar-width))/2 - var(--block-navigation-right-margin))}.post-type-amp_story .edit-post-layout.is-sidebar-opened #amp-story-block-navigation{max-width:calc((100vw - 894px)/2 - 45px);max-width:calc((100vw - var(--admin-menu-expanded-sidebar-width) - var(--block-settings-sidebar-width) - var(--amp-story-content-width) - var(--block-editor-horizontal-margin)*2 - var(--scrollbar-width))/2 - var(--block-navigation-right-margin))}.post-type-amp_story.folded #amp-story-block-navigation{max-width:calc(100vw - 370px);max-width:calc(100vw - var(--admin-menu-collapsed-sidebar-width) - var(--amp-story-content-width))}.post-type-amp_story.folded .edit-post-layout.is-sidebar-opened #amp-story-block-navigation{max-width:calc((100vw - 770px)/2 - 45px);max-width:calc((100vw - var(--admin-menu-collapsed-sidebar-width) - var(--block-settings-sidebar-width) - var(--amp-story-content-width) - var(--block-editor-horizontal-margin)*2 - var(--scrollbar-width))/2 - var(--block-navigation-right-margin))}@media (max-width:960px){.block-editor-block-list__block-edit>div>.editor-selectors{display:none}}.edit-post-header-toolbar .components-icon-button.block-editor-block-navigation{display:none}@media (min-width:961px){.edit-post-header-toolbar #amp-story-media-inserter,.edit-post-header-toolbar #amp-story-shortcuts{display:flex}.edit-post-visual-editor .editor-post-title__block{margin-right:0;margin-left:0}.block-editor-block-navigation__container{background:#fff;border:1px solid #eee;padding:1em}.block-editor-block-navigation__container .component-editor__selector button{background:no-repeat 100% 0;padding-right:37px;height:40px;margin:1px 4px 1px 0}.block-editor-block-navigation__container .component-editor__selector .components-button:focus{box-shadow:none}.components-range-control__number{width:60px}}.block-editor-block-navigation__list .block-editor-block-navigation__item{position:relative}.block-editor-block-navigation__list .block-editor-block-navigation__item-is-dragging{cursor:grab}.block-editor-block-navigation__list .block-editor-block-navigation__item .components-drop-zone{border:none;border-radius:0}.block-editor-block-navigation__list .block-editor-block-navigation__item .components-drop-zone.is-dragging-over-element .components-drop-zone__content{display:none}.block-editor-block-navigation__list li .block-editor-block-navigation__item .components-drop-zone{background:none}.block-editor-block-navigation__list li .block-navigation__placeholder{transition:height .3s ease;height:0}.block-editor-block-navigation__list li .block-editor-block-navigation__item .components-drop-zone.is-close-to-top+.block-navigation__placeholder{visibility:hidden;height:36px}.block-editor-block-navigation__list li:last-child .components-drop-zone:not(.is-close-to-top){height:72px}.block-editor-block-navigation__item-is-dragging>.editor-block-navigation__item-button{display:none}#amp-story-editor-carousel{display:none}@media (min-width:961px){#amp-story-editor-carousel{display:block}}#amp-story-editor{position:relative;overflow:hidden}#amp-story-editor>.editor-block-list__layout{padding-right:0;padding-left:0;display:flex;align-items:center;transform:none;transition:transform .3s ease-in-out}#amp-story-editor>.editor-block-list__layout .block-list-appender{display:none}.amp-story-editor-carousel-navigation{display:flex;justify-content:space-between;margin-top:5em}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list{flex:1;display:flex;margin:0;padding:0;list-style-type:none;justify-content:center;max-width:30%}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list .amp-story-editor-carousel-item{flex:1;height:.5em;max-width:5em}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list .amp-story-editor-carousel-item+.amp-story-editor-carousel-item{margin-right:20px}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list button{background:#eff0f1;width:100%;height:100%;display:block}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list button:focus,.editor-styles-wrapper ul.amp-story-editor-carousel-item-list button:hover{background:#e0e0e0}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list .amp-story-editor-carousel-item--active button{background:#666}.block-editor-block-list__block .block-editor-post-input,.block-editor-post-input{flex-grow:1;position:relative;padding:1px}.block-editor-post-input input[type=text]{font-size:13px;width:300px;padding:12px;border-color:#007cba;outline:2px solid transparent;border-radius:0;margin-right:0;margin-left:0}.block-editor-post-input label{font-size:14px}.block-editor-post-input__suggestions{display:inherit;max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}.block-editor-post-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;box-shadow:none}.block-editor-post-input__suggestion:hover{background:#e2e4e7}.block-editor-post-input__suggestion.is-selected,.block-editor-post-input__suggestion:focus{background:#e2e4e7;outline:none}.amp-story-reorderer{margin-top:100px;display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,169px);grid-gap:0;justify-content:space-between}.amp-story-reorderer .amp-story-reorderer-item{margin:0 auto 10px;width:100%;position:relative}.amp-story-reorderer .amp-story-reorderer-item .amp-story-reorderer-item-page{max-width:165px;height:270px}.amp-story-reorderer .block-editor-block-preview .block-editor-block-preview__content .components-disabled{transform:none;text-align:right;text-align:initial}.amp-story-reorderer .block-editor-block-list__layout .block-editor-block-list__block{padding:0}.amp-story-reorderer .editor-block-list__layout.block-editor-block-list__layout,.amp-story-reorderer .editor-inner-blocks.block-editor-inner-blocks{height:100%;padding:0}.amp-story-reorderer .components-disabled,.amp-story-reorderer .components-disabled div:first-of-type{padding:0;width:100%;height:100%}.amp-story-reorderer .amp-story-reorderer-item .amp-story-reorderer-item-page .wp-block{--preview-scale:0.47;--preview-translateX:-40%;--preview-translateY:-70%;position:absolute;transform:scale(var(--preview-scale)) translateX(var(--preview-translateX)) translateY(var(--preview-translateY))}.amp-story-reorderer .block-editor-block-list__layout>.block-editor-block-list__block>.block-editor-block-list__block-edit{margin-top:0;margin-bottom:0}@media (min-width:600px){.amp-story-reorderer .block-editor-block-list__block-edit{margin-right:-50px;margin-left:-50px}}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone{border:none;border-radius:0;background:transparent}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-active{opacity:0;visibility:hidden}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-over-element,.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-page{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-page{background:#eff0f1;border:none!important;margin:0 10px}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-over-element.is-close-to-right{border-left:3px solid #0071a1}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-over-element.is-close-to-left{border-right:3px solid #0071a1}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone__content,.amp-story-reorderer .amp-story-reorderer-item .is-dragging-over-element .components-drop-zone__content{display:none}.amp-story-reorderer .amp-story-page-preview{border:5px solid #eff0f1;border-radius:5px;background:#fff;width:100%;height:100%;cursor:grab;overflow:hidden}#amp-story-editor .amp-story-reorderer .components-draggable__clone{position:fixed}.amp-story-reorderer .amp-story-page-preview .editor-styles-wrapper{margin:0;height:260px}.amp-story-reorderer .amp-story-page-preview .editor-block-list__layout{padding:0}.amp-story-reorderer .amp-story-page-preview .block-list-appender{display:none}#amp-story-media-inserter,#amp-story-shortcuts{display:inline-flex}#amp-story-controls{text-align:left;padding-left:20px}.amp-story-controls-reorder{box-sizing:border-box;height:49px;width:49px;border:1px solid #aaaeb3;border-radius:50%}#amp-story-controls .amp-story-controls-reorder{display:inline-block;line-height:1}.amp-story-controls-reorder-cancel{padding-top:5px;padding-bottom:5px;margin-left:20px;display:inline-flex}.amp-story-controls-reorder-save{float:left}.amp-story-order-controls .amp-story-controls-description{display:none}.amp-story-order-controls-wrap{display:flex;align-items:center;justify-content:space-between}.amp-story-order-controls-wrap .components-icon-button{display:block;-ms-grid-row-align:start;align-self:start;text-align:center;color:inherit}.amp-story-order-controls-wrap .components-icon-button svg{display:block;margin:0 auto}.wp-block [draggable=true]{-webkit-user-select:auto}.wp-block [draggable=true]:hover{cursor:grab}.wp-block[data-type="amp/amp-story-text"] .editor-rich-text__editable:hover,.wp-block[data-type="core/quote"] .editor-rich-text__editable:hover{cursor:default}#amp-story-controls .editor-inserter__amp-inserter{height:48px;width:48px;background-color:#0085ba;border-radius:50%;margin-left:10px}body.admin-color-sunrise #amp-story-controls .editor-inserter__amp-inserter{background-color:#d1864a}body.admin-color-ocean #amp-story-controls .editor-inserter__amp-inserter{background-color:#a3b9a2}body.admin-color-midnight #amp-story-controls .editor-inserter__amp-inserter{background-color:#e14d43}body.admin-color-ectoplasm #amp-story-controls .editor-inserter__amp-inserter{background-color:#a7b656}body.admin-color-coffee #amp-story-controls .editor-inserter__amp-inserter{background-color:#c2a68c}body.admin-color-blue #amp-story-controls .editor-inserter__amp-inserter{background-color:#82b4cb}body.admin-color-light #amp-story-controls .editor-inserter__amp-inserter{background-color:#0085ba}#amp-story-controls .editor-inserter__amp-inserter svg{margin:0 auto}.autocomplete__wrapper{position:relative}.autocomplete__hint,.autocomplete__input{-webkit-appearance:none;border:2px solid;border-radius:0;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;margin-bottom:0;width:100%}.autocomplete__input{background-color:transparent;position:relative}.autocomplete__hint{color:#bfc1c3;position:absolute}.autocomplete__input--default{padding:4px}.autocomplete__input--focused{outline-offset:0;outline:3px solid #ffbf47}.autocomplete__input--show-all-values{padding:4px 4px 4px 34px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;left:8px;width:24px;height:24px;top:10px}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#34384b;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{box-shadow:0 2px 6px rgba(0,0,0,.256863);right:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-right-width:0;border-bottom:1px solid #bfc1c3;border-left-width:0;border-top-width:1px;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#005ea5;border-color:#005ea5;color:#fff;outline:none}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:16px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:4px}@media (min-width:641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:19px;line-height:1.31579}}.autocomplete__wrapper .autocomplete__menu{border-color:#007cba;width:101%;border-bottom-right-radius:4px!important;border-bottom-left-radius:4px!important;margin-top:-3px;padding-top:3px;max-height:200px}.autocomplete__icon{position:absolute;top:2px;left:0;padding:4px;box-shadow:none!important;border:0}.autocomplete__option{border-bottom:0;padding:6px 8px;font-size:13px}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#0071a1;border-color:#0071a1}.autocomplete__wrapper .autocomplete__input.autocomplete__input--focused{color:#191e23;border-color:#007cba;box-shadow:0 0 0 1px #007cba;outline:2px solid transparent}.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-mover{display:none!important}.components-draggable__clone .block-editor-block-list__block .rotatable-box-wrap{display:none;opacity:0}.editor-inner-blocks .block-editor-block-list__block.is-rotating .block-editor-block-contextual-toolbar,.editor-inner-blocks .block-editor-block-list__block.is-rotating .block-editor-block-list__breadcrumb,.editor-inner-blocks .block-editor-block-list__block.is-rotating .block-editor-block-list__insertion-point{display:none!important}.block-editor-block-list__block .rotatable-box-wrap{position:absolute;left:-14px;bottom:-44px;right:calc(50% - 15px);width:30px;height:44px;z-index:1}.block-editor-block-list__block .rotatable-box-wrap:before{display:block;content:"";cursor:inherit;border-right:1px solid rgba(66,88,99,.4);height:24px;width:0;margin:3px auto 0;position:relative;left:-1px}.block-editor-block-list__block .rotatable-box-wrap .rotatable-box-wrap__handle{display:block;opacity:1;transition:opacity .3s;position:absolute;bottom:0;right:calc(50% - 24px);width:50px;height:24px;padding:4px;cursor:move;background:transparent;border:none}.rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#0085ba;border:2px solid #fff;border-radius:50%;content:"";cursor:inherit;display:block;height:15px;width:15px;margin:0 auto}body.admin-color-sunrise .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#d1864a}body.admin-color-ocean .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#a3b9a2}body.admin-color-midnight .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#e14d43}body.admin-color-ectoplasm .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#a7b656}body.admin-color-coffee .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#c2a68c}body.admin-color-blue .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#82b4cb}body.admin-color-light .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#0085ba}.block-editor-inner-blocks .wp-block.is-typing .rotatable-box-wrap,.block-editor-inner-blocks .wp-block .rotatable-box-wrap{display:block;opacity:0;transition:opacity .3s}.block-editor-inner-blocks .wp-block .amp-story-resize-container.is-resizing .rotatable-box-wrap,.block-editor-inner-blocks .wp-block.is-typing .rotatable-box-wrap{opacity:0}.block-editor-inner-blocks .wp-block.is-rotating .rotatable-box-wrap,.block-editor-inner-blocks .wp-block.is-selected .rotatable-box-wrap,.block-editor-inner-blocks .wp-block:hover .rotatable-box-wrap{opacity:1}#amp-story-right-click-menu{position:absolute}#amp-story-right-click-menu .amp-story-right-click-menu__popover{position:absolute;top:0!important;right:0!important}.amp-story-right-click-menu__popover.is-top.is-from-bottom .components-popover__content{margin-bottom:-8px}.amp-right-click-menu__container{position:absolute}.components-preview-picker__buttons{display:flex;justify-content:space-between;align-items:center}.components-preview-picker__dropdown-content .components-button{display:block;position:relative;padding:10px 40px 10px 20px;width:100%;text-align:right}.components-preview-picker__dropdown-content .components-button:hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-preview-picker__dropdown-content .components-button:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-preview-picker__dropdown-content .components-button .dashicon{position:absolute;top:calc(50% - 10px);right:10px}.components-preview-picker__dropdown-content .components-button .editor-block-icon{position:absolute;top:calc(50% - 10px);left:10px}.components-preview-picker__buttons .components-preview-picker__selector{background:none;position:relative;width:200px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-preview-picker__buttons .components-preview-picker__selector:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-preview-picker__buttons .components-preview-picker__selector:after{content:"";pointer-events:none;display:block;width:0;height:0;border-right:3px solid transparent;border-left:3px solid transparent;border-top:5px solid;margin-right:4px;margin-left:2px;left:8px;top:12px;position:absolute}.amp__block-editor-inserter__menu.block-editor-inserter__menu{flex-direction:column}.amp-story-resize-container .components-resizable-box__handle{display:block;opacity:0;transition:opacity .3s}.block-editor-inner-blocks .wp-block.is-typing .amp-story-resize-container .components-resizable-box__handle{opacity:0}.block-editor-inner-blocks .wp-block .amp-story-resize-container.is-resizing .components-resizable-box__handle,.block-editor-inner-blocks .wp-block.is-selected .amp-story-resize-container .components-resizable-box__handle,.block-editor-inner-blocks .wp-block:hover .amp-story-resize-container .components-resizable-box__handle{opacity:1}.amp-story-resize-container .components-resizable-box__handle-top{top:-14px!important}.amp-story-resize-container .components-resizable-box__handle-right{left:-14px!important}.amp-story-resize-container .components-resizable-box__handle-bottom{bottom:-14px!important}.amp-story-resize-container .components-resizable-box__handle-left{right:-14px!important}.amp-story-editor__rotate-container .components-resizable-box__handle{display:none!important}.amp-story-resize-container .amp-story-editor__rotate-container{height:100%}.wp-block-image .components-resizable-box__container img{height:100%;-o-object-fit:cover;object-fit:cover;-webkit-user-drag:none}.block-editor-block-list__block[data-type="core/image"] img{-webkit-user-drag:none}.editor-block-list__layout div[data-type="amp/amp-story-cta"]{top:80%;right:0;width:100%;height:20%}.block-editor-block-list__layout div[data-type="amp/amp-story-cta"]:not(#id){margin-top:0}.editor-block-list__layout div[data-type="amp/amp-story-cta"] img{max-height:86px}.amp-block-story-cta__link img{-o-object-fit:contain;object-fit:contain}.amp-block-story-cta__link .amp-text-placeholder{opacity:.62}div[data-type="amp/amp-story-cta"] .amp-overlay{height:100%;width:100%;z-index:1000;position:absolute;top:0;right:0;left:0;bottom:0}.editor-block-list__layout div[data-type="amp/amp-story-cta"] .editor-block-mover{display:none}.block-editor-block-list__block[data-type="amp/amp-story-cta"] .block-editor-block-list__block-edit{--cta-margin:3px;height:calc(100% + var(--cta-margin)*2);width:100%;bottom:var(--cta-margin)}.block-editor-block-list__layout .block-editor-block-list__block[data-type="amp/amp-story-cta"] .block-editor-block-list__block-edit:before{top:0;right:0;bottom:0;left:0}.block-editor-block-list__block[data-type="amp/amp-story-cta"] .block-editor-block-contextual-toolbar{margin-right:-1px;margin-left:0}.amp-story-cta-button{position:absolute}.wp-block-amp-amp-story-cta{display:inline-block;padding:5px;margin-bottom:0;position:relative}.wp-block-amp-amp-story-cta [contenteditable]{cursor:text}.wp-block-amp-amp-story-cta .block-editor-rich-text__editable[data-is-placeholder-visible=true]+.block-editor-rich-text__editable{opacity:.8}.block-editor-block-preview__content .wp-block-amp-amp-story-cta{max-width:100%}.wp-block-amp-amp-story-cta .block-editor-rich-text__editable code{background:inherit;color:inherit}.wp-block-amp-amp-story-cta .block-editor-rich-text__editable[data-is-placeholder-visible=true]{height:auto}.wp-block-amp-amp-story-cta .amp-block-story-cta__link{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.amp-block-story-cta__link{border:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:18px;margin:0;padding:7px 19px 0;text-align:center;text-decoration:none;white-space:normal;word-wrap:break-word}.amp-block-story-cta__inline-link{background:#fff;display:flex;flex-wrap:wrap;align-items:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:374px;position:absolute;z-index:10;margin-top:-.5em}.is-dragging-components-draggable .amp-block-story-cta__inline-link{display:none}.amp-block-story-cta__inline-link .block-editor-url-input{width:auto}.amp-block-story-cta__inline-link .block-editor-url-input__suggestions{width:302px;z-index:10}.amp-block-story-cta__inline-link>.dashicon{width:36px}.amp-block-story-cta__inline-link .dashicon{color:#8f98a1}.amp-block-story-cta__inline-link .block-editor-url-input input[type=text]:-ms-input-placeholder{color:#8f98a1}.amp-block-story-cta__inline-link .block-editor-url-input input[type=text]::-ms-input-placeholder{color:#8f98a1}.amp-block-story-cta__inline-link .block-editor-url-input input[type=text]::placeholder{color:#8f98a1}.amp-page-child-block[data-type="amp/amp-story-page-attachment"]{top:85%;right:0;width:100%;height:15%}.amp-page-child-block[data-type="amp/amp-story-page-attachment"]>[data-type="amp/amp-story-page-attachment"]{height:100%}div[data-type="amp/amp-story-page-attachment"] .components-notice.is-warning{position:absolute}div[data-type="amp/amp-story-page-attachment"] .attachment-wrapper,div[data-type="amp/amp-story-page-attachment"] .editor-block-list__block-edit.block-editor-block-list__block-edit{width:100%;height:100%}div[data-type="amp/amp-story-page-attachment"] .attachment-wrapper{overflow:hidden}@keyframes slide-up{0%{opacity:0;transform:translateY(85%)}to{opacity:1;transform:translateY(0)}}.attachment-wrapper{animation:slide-up .5s ease;-moz-animation:slide-up .5s;-webkit-animation:slide-up .5s;-o-animation:slide-up .5s}.amp-page-attachment-content{background:#fff;overflow-y:auto;height:100%;padding:10px}.attachment-header{display:flex;position:relative;height:40px!important;background:#fff;border-radius:8px 8px 0 0;box-shadow:0 1px 2px 1px rgba(0,0,0,.12);z-index:1}.amp-story-page-attachment-title{font-family:Roboto,sans-serif;width:calc(100% - 80px);padding-left:40px;color:rgba(0,0,0,.87);font-size:16px;line-height:40px;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.amp-story-page-attachment-close-button{display:block;margin:8px;height:24px;width:24px;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 36 36' fill='rgba(0, 0, 0, 0.54)'%3E%3Cpath d='M28.5 9.62L26.38 7.5 18 15.88 9.62 7.5 7.5 9.62 15.88 18 7.5 26.38l2.12 2.12L18 20.12l8.38 8.38 2.12-2.12L20.12 18z'/%3E%3Cpath d='M0 0h36v36H0z' fill='none'/%3E%3C/svg%3E");color:rgba(0,0,0,.87);cursor:pointer}div[data-type="amp/amp-story-page-attachment"] .open-attachment-wrapper .amp-story-page-attachment__text{width:auto!important;padding:0 32px;margin:12px 0 20px;height:16px!important;max-width:calc(100% - 64px);color:#fff;font-family:Roboto,sans-serif;font-size:16px;font-weight:700;letter-spacing:.3px;line-height:16px;overflow:hidden;text-overflow:ellipsis;text-shadow:0 0 6px rgba(0,0,0,.36);white-space:nowrap}div[data-type="amp/amp-story-page-attachment"] .attachment-container{position:relative;height:553px;overflow:hidden;transform:translateY(-85%)}.attachment-container .components-spinner{margin-left:calc(50% - 9px);margin-right:calc(50% - 9px)}.attachment-container .failed-message{font-size:14px}.amp-story-page-open-attachment-icon{position:relative;display:block;height:32px;width:32px;cursor:pointer;background:#fff;border-radius:50%}.amp-story-page-open-attachment-bar{position:absolute;display:block;height:3px;width:12px;border-radius:3px;top:14px;background:#000}.amp-story-page-open-attachment-bar-left{right:6px;transform:rotate(40deg)}.amp-story-page-open-attachment-bar-right{left:6px;transform:rotate(-40deg)}.open-attachment-wrapper{display:flex;align-items:center;justify-content:center;flex-direction:column;position:absolute;bottom:0;right:0;width:100%;background:linear-gradient(0,rgba(0,0,0,.15),transparent);z-index:3}.remove-attachment-post{position:absolute;left:10px;top:10px}.amp-page-attachment-content .wp-block-columns{display:flex;margin-bottom:28px;flex-wrap:wrap}@media (min-width:782px){.amp-page-attachment-content .wp-block-columns{flex-wrap:nowrap}}.amp-page-attachment-content .wp-block-column{margin-bottom:1em;flex-grow:1;min-width:0;word-break:break-word;word-wrap:break-word}@media (max-width:599px){.amp-page-attachment-content .wp-block-column{flex-basis:100%!important}}.amp-page-attachment-content .wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.amp-page-attachment-content .wp-block-columns.are-vertically-aligned-center{align-items:center}.amp-page-attachment-content .wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}.amp-page-attachment-content .wp-block-column.is-vertically-aligned-top{align-self:flex-start}.amp-page-attachment-content .wp-block-column.is-vertically-aligned-center{-ms-grid-row-align:center;align-self:center}.amp-page-attachment-content .wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.block-editor-block-list__layout .block-editor-block-list__block[data-type="amp/amp-story-page"]>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb{display:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit:before{right:-3px;top:-3px;left:-3px;bottom:-3px}.block-editor-block-list__layout .block-editor-block-list__block[data-type="amp/amp-story-page"]>.block-editor-block-list__block-edit>.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{right:18px;top:11px}[data-type="amp/amp-story-page"]>.editor-block-list__block-edit>.editor-block-mover{display:none!important}.editor-block-list__layout div[data-type="amp/amp-story-page"]{padding:0;margin:60px 30px 0}@media (min-width:600px){div[data-type="amp/amp-story-page"] .editor-block-list__block{margin:0;padding:0}}#amp-story-editor .wp-block[data-type="amp/amp-story-page"]{background:#fff}#amp-story-editor .wp-block[data-type="amp/amp-story-page"],#amp-story-editor .wp-block[data-type="amp/amp-story-page"] .editor-inner-blocks .editor-block-list__layout:first-of-type{width:100%;max-width:328px;height:553px;position:relative}#amp-story-editor .wp-block[data-type="amp/amp-story-page"] .editor-block-list__layout>.block-list-appender{width:316px;margin:0 auto;display:none}.editor-block-list__layout .editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit,.editor-block-list__layout div[data-type="amp/amp-story-page"].editor-block-list__block .editor-block-list__block-edit{margin:0}.editor-block-list__layout div[data-type="amp/amp-story-page"]{flex:0 0 auto;position:relative;transition:border .3s linear}.editor-block-list__layout div[data-type="amp/amp-story-page"]+div[data-type="amp/amp-story-page"]{margin-right:20px}.editor-block-list__layout [data-type="amp/amp-story-page"].amp-page-inactive{opacity:.5}.editor-block-list__layout [data-type="amp/amp-story-page"].amp-page-inactive>div{pointer-events:none}.editor-block-list__layout div[data-type="amp/amp-story-page"] .amp-story-page-number{position:absolute;top:-3em;text-transform:uppercase;font-weight:500;font-size:12px;color:#666;letter-spacing:1px}.editor-block-list__layout div[data-type="amp/amp-story-page"] .amp-story-page-number+div .editor-inner-blocks.block-editor-inner-blocks{height:553px}.editor-styles-wrapper [data-block]{margin-top:0;margin-bottom:0}.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-dragging,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-focused,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-rotating,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-selected,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-typing{z-index:100}.block-editor-block-list__block.amp-page-inactive>.block-editor-block-list__block-edit:before{box-shadow:none;border:1px solid #e3e5e7}.block-editor-block-list__block.amp-page-active.has-child-selected>.block-editor-block-list__block-edit:before,.block-editor-block-list__block.amp-page-active.is-selected>.block-editor-block-list__block-edit:before,.block-editor-block-list__block.amp-page-active>.block-editor-block-list__block-edit:before,.block-editor-inner-blocks .wp-block.is-rotating .block-editor-block-list__block-edit:before,.block-editor-inner-blocks .wp-block.is-selected .block-editor-block-list__block-edit:before,.block-editor-inner-blocks .wp-block:hover .block-editor-block-list__block-edit:before{box-shadow:none;border:1px solid rgba(66,88,99,.4)}.block-editor-block-list__block.amp-page-is-animating .block-editor-inner-blocks{overflow:hidden}.block-editor-block-list__block.amp-page-is-animating .block-editor-inner-blocks .amp-story-resize-container .components-resizable-box__handle,.block-editor-block-list__block.amp-page-is-animating .block-editor-inner-blocks .block-editor-block-list__block-edit:before,.block-editor-block-list__block.amp-page-is-animating .block-editor-inner-blocks .rotatable-box-wrap{content:none;visibility:hidden;display:none;opacity:0}div[data-type="amp/amp-story-page"] .editor-inner-blocks .amp-page-child-block{z-index:10}div[data-type="amp/amp-story-page"] .editor-inner-blocks .amp-page-child-block:not([data-type="amp/amp-story-cta"]){position:absolute}div[data-type="amp/amp-story-page"] .editor-inner-blocks .amp-page-child-block[data-type="amp/amp-story-cta"]{height:100%}.editor-block-list__block .editor-block-list__layout{margin:0}.editor-block-list__layout div[data-type="amp/amp-story-page"][data-amp-selected=parent] .editor-block-drop-zone{height:603px;--dropzone-padding:400px;--page-width:328px;width:calc(var(--dropzone-padding) + var(--page-width));margin:0;right:calc(var(--dropzone-padding)/-2);top:-50px;border:none;background:transparent}.editor-block-list__layout div[data-type="amp/amp-story-page"][data-amp-selected=parent]>.editor-block-drop-zone .components-drop-zone__content{display:none}div[data-type="amp/amp-story-page"] .wp-block-image{margin-top:0}.edit-post-layout[data-block-name="core/embed"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2),.edit-post-layout[data-block-name="core/image"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2),.edit-post-layout[data-block-name="core/pullquote"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2),.edit-post-layout[data-block-name="core/video"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2){display:none}.amp-page-inactive[data-type="amp/amp-story-page"] .block-list-appender{display:none}.block-editor-block-list__block-edit .components-draggable__clone{position:absolute}.wp-block[data-type="core/pullquote"][data-align=full],.wp-block[data-type="core/pullquote"][data-align=wide]{width:100%;max-width:100%}.block-editor-inner-blocks .wp-block[data-type="core/pullquote"] .block-editor-block-list__block-edit{display:block}#amp-story-editor .block-editor-block-list__layout .block-editor-block-list__block[data-align=full]{margin:0}.editor-amp-story-page-video-wrap{position:absolute;overflow:hidden;width:100%;height:100%}.editor-amp-story-page-background.editor-post-featured-image__preview img,.editor-amp-story-page-video{-o-object-fit:cover;object-fit:cover}.editor-amp-story-page-video{position:absolute;top:0;right:0;left:0;bottom:0;min-width:100%;min-height:100%}.editor-amp-story-page-background{display:block}.editor-amp-story-page-background~.components-button{margin-top:1em;margin-left:8px}#editor-amp-story-page-poster__help{margin-top:0}.edit-post-settings-sidebar__panel-block .components-focal-point-picker_position-display-container>.components-base-control{margin-bottom:0}.editor-block-list__layout [data-type="amp/amp-story-page"] .block-editor-block-list__block .block-editor-warning{transform:none}.editor-block-list__layout [data-type="amp/amp-story-page"] .block-editor-block-list__block.is-selected .block-editor-warning{border:none}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author{margin:0;padding:7px!important;height:100%}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author.is-amp-fit-text{line-height:1.15;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author:not(.is-amp-fit-text){display:block;font-size:16px}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.wp-block[data-type="amp/amp-story-post-author"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-post-author"] .block-mover,.wp-block[data-type="amp/amp-story-post-author"] .block-mover div{height:100%}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date{margin:0;padding:7px!important;height:100%}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date.is-amp-fit-text{line-height:1.15;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date:not(.is-amp-fit-text){display:block;font-size:16px}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.wp-block[data-type="amp/amp-story-post-date"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-post-date"] .block-mover,.wp-block[data-type="amp/amp-story-post-date"] .block-mover div{height:100%}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title{margin:0;padding:7px!important;height:100%}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title.is-amp-fit-text{line-height:1.15;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;font-weight:700}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title:not(.is-amp-fit-text){display:block;font-size:16px}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.wp-block[data-type="amp/amp-story-post-title"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-post-title"] .block-mover,.wp-block[data-type="amp/amp-story-post-title"] .block-mover div{height:100%}.wp-block[data-type="amp/amp-story-text"] p{margin:0}.wp-block-amp-story-text .block-editor-rich-text__editable{padding:7px!important;width:100%}.is-not-editing .wp-block-amp-amp-story-text.block-editor-rich-text__editable.editor-rich-text__editable{cursor:grab}.wp-block-amp-story-text-wrapper.is-empty-draggable-text,.wp-block-amp-story-text-wrapper:not(.with-line-height),.wp-block-amp-story-text-wrapper:not(.with-line-height) div{height:100%}.wp-block-amp-story-text-wrapper .amp-overlay{height:100%;width:100%;z-index:1000;position:absolute;top:0;right:0;left:0;bottom:0}.wp-block-amp-story-text-wrapper.is-empty-draggable-text .amp-text-placeholder{opacity:.62}.editor-styles-wrapper #amp-story-editor .wp-block .wp-block[data-type="amp/amp-story-text"]{width:auto}.wp-block[data-type="amp/amp-story-text"] .block-editor-rich-text__editable,div[data-type="amp/amp-story-page"] .block-editor-inner-blocks .block-editor-block-list__block-edit{display:inline-block}.with-line-height .wp-block-amp-story-text{position:relative}.wp-block[data-type="amp/amp-story-text"] .wp-block-amp-story-text .is-amp-fit-text{display:inline-block;vertical-align:middle;line-height:1.15}.wp-block[data-type="amp/amp-story-text"] .wp-block-amp-story-text .is-amp-fit-text.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.editor-block-list__layout .wp-block[data-type="amp/amp-story-text"] .editor-block-list__block-edit:before{position:absolute}.wp-block[data-type="amp/amp-story-text"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-text"] .block-mover{height:100%}.components-background-color-popover-content{padding:16px}.components-background-color-indicator{position:absolute;background:transparent;height:3px;width:20px;bottom:6px;right:auto;left:auto;margin-right:-1px}.components-background-color-indicator:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.components-text-color-popover-content{padding:16px}.components-text-color-indicator{position:absolute;background:transparent;height:3px;width:20px;bottom:6px;right:auto;left:auto;margin-right:1px}.components-text-color-indicator:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}
assets/css/amp-stories-editor-compiled.css CHANGED
@@ -1 +1 @@
1
- #amp-story-block-navigation{display:none;position:absolute;left:45px;top:75px;width:300px;min-width:115px;z-index:80;list-style-type:none;padding:0;margin:0}@media (max-width:1200px){.is-sidebar-opened #amp-story-block-navigation{left:0}}@media (min-width:1001px) and (max-width:1100px){.is-sidebar-opened .editor-block-list__layout{margin-right:-100px}}@media (min-width:961px){#amp-story-block-navigation{display:block}}@media (min-width:961px) and (max-width:1000px){.is-sidebar-opened #amp-story-block-navigation{display:none}}#amp-story-block-navigation .editor-inserter{position:absolute;bottom:100%;left:0;width:100%}#amp-story-block-navigation .components-popover:not(.is-mobile).is-center .components-popover__content{transform:translateX(-13%)}.post-type-amp_story.folded #amp-story-block-navigation .components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content{margin-left:-50px}#amp-story-block-navigation .block-editor-block-navigation__list{list-style-type:none;margin-bottom:15px}#amp-story-block-navigation .editor-block-navigation__list__static{margin:0;padding:0}#amp-story-block-navigation .components-icon-button .dashicon{margin-right:5px}#amp-story-block-navigation .block-editor-block-navigation__label{margin:0 0 1em;text-transform:uppercase;font-weight:500;font-size:12px;color:#666;letter-spacing:1px}.post-type-amp_story:not(.folded) .edit-post-layout #amp-story-block-navigation{max-width:calc((100vw - 614px)/2 - 45px)}.post-type-amp_story.folded .edit-post-layout #amp-story-block-navigation{max-width:calc((100vw - 490px)/2 - 45px)}.post-type-amp_story .edit-post-layout.is-sidebar-opened #amp-story-block-navigation{max-width:calc((100vw - 894px)/2 - 45px)}.post-type-amp_story.folded #amp-story-block-navigation{max-width:calc(100vw - 370px)}.post-type-amp_story.folded .edit-post-layout.is-sidebar-opened #amp-story-block-navigation{max-width:calc((100vw - 770px)/2 - 45px)}@media (max-width:960px){.block-editor-block-list__block-edit>div>.editor-selectors{display:none}}.edit-post-header-toolbar .components-icon-button.block-editor-block-navigation{display:none}@media (min-width:961px){.edit-post-header-toolbar #amp-story-shortcuts{display:flex}.edit-post-visual-editor .editor-post-title__block{margin-left:0;margin-right:0}.block-editor-block-navigation__container{background:#fff;border:1px solid #eee;padding:1em}.block-editor-block-navigation__container .component-editor__selector button{background:no-repeat 0 0;padding-left:37px;height:40px;margin:1px 0 1px 4px}.block-editor-block-navigation__container .component-editor__selector .components-button:focus{box-shadow:none}.components-range-control__number{width:60px}}.block-editor-block-navigation__list .block-editor-block-navigation__item{position:relative}.block-editor-block-navigation__list .block-editor-block-navigation__item-is-dragging{cursor:grab}.block-editor-block-navigation__list .block-editor-block-navigation__item .components-drop-zone{border:none;border-radius:0}.block-editor-block-navigation__list .block-editor-block-navigation__item .components-drop-zone.is-dragging-over-element .components-drop-zone__content{display:none}.block-editor-block-navigation__list li .block-editor-block-navigation__item .components-drop-zone{background:none}.block-editor-block-navigation__list li .block-navigation__placeholder{transition:height .3s ease;height:0}.block-editor-block-navigation__list li .block-editor-block-navigation__item .components-drop-zone.is-close-to-top+.block-navigation__placeholder{visibility:hidden;height:36px}.block-editor-block-navigation__list li:last-child .components-drop-zone:not(.is-close-to-top){height:72px}.block-editor-block-navigation__item-is-dragging>.editor-block-navigation__item-button{display:none}#amp-story-editor-carousel{display:none}@media (min-width:961px){#amp-story-editor-carousel{display:block}}#amp-story-editor{position:relative;overflow:hidden}#amp-story-editor>.editor-block-list__layout{padding-left:0;padding-right:0;display:flex;align-items:center;transform:none;transition:transform .3s ease-in-out}#amp-story-editor>.editor-block-list__layout .block-list-appender{display:none}.amp-story-editor-carousel-navigation{display:flex;justify-content:space-between;margin-top:5em}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list{flex:1;display:flex;margin:0;padding:0;list-style-type:none;justify-content:center;max-width:30%}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list .amp-story-editor-carousel-item{flex:1;height:.5em;max-width:5em}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list .amp-story-editor-carousel-item+.amp-story-editor-carousel-item{margin-left:20px}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list button{background:#eff0f1;width:100%;height:100%;display:block}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list button:focus,.editor-styles-wrapper ul.amp-story-editor-carousel-item-list button:hover{background:#e0e0e0}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list .amp-story-editor-carousel-item--active button{background:#666}.amp-story-reorderer{margin-top:100px;display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,169px);grid-gap:0;justify-content:space-between}.amp-story-reorderer .amp-story-reorderer-item{margin:0 auto 10px;width:100%;position:relative}.amp-story-reorderer .amp-story-reorderer-item .amp-story-reorderer-item-page{max-width:165px;height:270px}.amp-story-reorderer .block-editor-block-preview .block-editor-block-preview__content .components-disabled{transform:none;text-align:left;text-align:initial}.amp-story-reorderer .block-editor-block-list__layout .block-editor-block-list__block{padding:0}.amp-story-reorderer .editor-block-list__layout.block-editor-block-list__layout,.amp-story-reorderer .editor-inner-blocks.block-editor-inner-blocks{height:100%;padding:0}.amp-story-reorderer .components-disabled,.amp-story-reorderer .components-disabled div:first-of-type{padding:0;width:100%;height:100%}.amp-story-reorderer .amp-story-reorderer-item .amp-story-reorderer-item-page .wp-block{--preview-scale:0.47;--preview-translateX:-40%;--preview-translateY:-70%;position:absolute;transform:scale(var(--preview-scale)) translateX(var(--preview-translateX)) translateY(var(--preview-translateY))}.amp-story-reorderer .block-editor-block-list__layout>.block-editor-block-list__block>.block-editor-block-list__block-edit{margin-top:0;margin-bottom:0}@media (min-width:600px){.amp-story-reorderer .block-editor-block-list__block-edit{margin-left:-50px;margin-right:-50px}}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone{border:none;border-radius:0;background:transparent}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-active{opacity:0;visibility:hidden}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-over-element,.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-page{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-page{background:#eff0f1;border:none!important;margin:0 10px}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-over-element.is-close-to-right{border-right:3px solid #0071a1}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-over-element.is-close-to-left{border-left:3px solid #0071a1}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone__content,.amp-story-reorderer .amp-story-reorderer-item .is-dragging-over-element .components-drop-zone__content{display:none}.amp-story-reorderer .amp-story-page-preview{border:5px solid #eff0f1;border-radius:5px;background:#fff;width:100%;height:100%;cursor:grab;overflow:hidden}#amp-story-editor .amp-story-reorderer .components-draggable__clone{position:fixed}.amp-story-reorderer .amp-story-page-preview .editor-styles-wrapper{margin:0;height:260px}.amp-story-reorderer .amp-story-page-preview .editor-block-list__layout{padding:0}.amp-story-reorderer .amp-story-page-preview .block-list-appender{display:none}#amp-story-shortcuts{display:inline-flex}#amp-story-controls{text-align:right;padding-right:20px}.amp-story-controls-reorder{box-sizing:border-box;height:49px;width:49px;border:1px solid #aaaeb3;border-radius:50%}#amp-story-controls .amp-story-controls-reorder{display:inline-block;line-height:1}.amp-story-controls-reorder-cancel{padding-top:5px;padding-bottom:5px;margin-right:20px;display:inline-flex}.amp-story-controls-reorder-save{float:right}.amp-story-order-controls .amp-story-controls-description{display:none}.amp-story-order-controls-wrap{display:flex;align-items:center;justify-content:space-between}.amp-story-order-controls-wrap .components-icon-button{display:block;-ms-grid-row-align:start;align-self:start;text-align:center;color:inherit}.amp-story-order-controls-wrap .components-icon-button svg{display:block;margin:0 auto}.wp-block [draggable=true]{-webkit-user-select:auto}.wp-block [draggable=true]:hover{cursor:grab}.wp-block[data-type="amp/amp-story-text"] .editor-rich-text__editable:hover,.wp-block[data-type="core/quote"] .editor-rich-text__editable:hover{cursor:default}#amp-story-controls .editor-inserter__amp-inserter{height:48px;width:48px;background-color:#0085ba;border-radius:50%;margin-right:10px}body.admin-color-sunrise #amp-story-controls .editor-inserter__amp-inserter{background-color:#d1864a}body.admin-color-ocean #amp-story-controls .editor-inserter__amp-inserter{background-color:#a3b9a2}body.admin-color-midnight #amp-story-controls .editor-inserter__amp-inserter{background-color:#e14d43}body.admin-color-ectoplasm #amp-story-controls .editor-inserter__amp-inserter{background-color:#a7b656}body.admin-color-coffee #amp-story-controls .editor-inserter__amp-inserter{background-color:#c2a68c}body.admin-color-blue #amp-story-controls .editor-inserter__amp-inserter{background-color:#82b4cb}body.admin-color-light #amp-story-controls .editor-inserter__amp-inserter{background-color:#0085ba}#amp-story-controls .editor-inserter__amp-inserter svg{margin:0 auto}.amp-stories__template-inserter__popover.components-popover .components-popover__content:not(.is-mobile){width:406px;height:400px;padding:2px;transform:translateX(-90%)}.amp-stories__template-inserter__popover:before{border:8px solid #e2e4e7}.amp-stories__template-inserter__popover:after{border:8px solid #fff}.amp-stories__template-inserter__popover:after,.amp-stories__template-inserter__popover:before{border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;border-top:none;margin-left:-15px}.amp-stories__editor-inserter__results .components-spinner{margin-left:calc(50% - 9px);margin-right:calc(50% - 9px);margin-top:128px}.amp-stories__template-inserter__popover.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:before{border-bottom:8px solid #e2e4e7}.amp-stories__template-inserter__popover.components-popover:not(.is-without-arrow):not(.is-mobile).is-top:after{border-bottom:8px solid #fff}@media (min-width:782px){.amp-stories__template-inserter__popover.block-editor-inserter__popover:not(.is-mobile)>.components-popover__content{overflow-y:scroll}}@media (min-width:600px){.amp-stories__template-inserter__popover .block-editor-block-list__block .block-editor-block-list__block-edit{margin:0}}.edit-post-layout:not(.is-sidebar-opened) .amp-stories__template-inserter__popover.components-popover .components-popover__content:not(.is-mobile){left:auto;transform:none}.amp-stories__template-inserter__popover.block-editor-inserter__popover .block-editor-block-types-list{margin:0;padding:5px}.amp-stories__template-inserter__popover.components-popover.is-top .components-popover__content{bottom:auto}.amp-stories__template-inserter__popover.components-popover:not(.is-without-arrow):not(.is-mobile).is-top{margin-top:55px}.amp-stories__editor-inserter__results li{display:block;list-style-type:none;width:160px;height:268px;float:left;margin:15px}.amp-stories__editor-inserter__results li amp-story-grid-layer,.amp-stories__editor-inserter__results li amp-story-page{display:block;width:100%;height:100%}.amp-stories__editor-inserter__results .block-editor-block-preview{width:160px;height:268px;margin:10px;padding:0;overflow:hidden}.amo-stories__editor-inserter__results .components-placeholder,.amp-stories__editor-inserter__results .block-editor-block-preview .block-editor-block-preview__content{position:static;padding:0;width:100%;height:100%}.amp-stories__editor-inserter__results .block-editor-block-preview__content .reusable-block-indicator,.amp-stories__editor-inserter__results .block-editor-block-preview__content .rotatable-box-wrap{display:none}.amp-stories__blank-page-inserter{height:100%;width:100%}.amp-stories__blank-page-inserter svg{margin:0 auto}.amp-stories__blank-page-inserter span{display:none}.amp-stories__editor-inserter__results .block-editor-block-preview{pointer-events:auto}.amo-stories__editor-inserter__results .editor-block-list__insertion-point,.amp-stories__editor-inserter__results .block-list-appender{display:none}.amp-stories__editor-inserter__results .block-editor-block-preview .block-editor-block-preview__content .components-disabled{transform:none;text-align:left;text-align:initial}.amp-stories__editor-inserter__results .components-disabled,.amp-stories__editor-inserter__results .components-disabled .editor-inner-blocks,.amp-stories__editor-inserter__results .components-disabled div:first-of-type{padding:0;height:268px}.amp-stories__editor-inserter__results .block-editor-block-preview .block-editor-block-preview__content>div{transform:none}.amp-stories__editor-inserter__results .components-resizable-box__container.amp-story-resize-container .amp-story-resize-container{max-width:none}.amp-stories__editor-inserter__results .block-editor-block-preview .wp-block[data-type="core/image"]{width:180%}.amp-stories__editor-inserter__results .block-editor-block-preview .wp-block{--preview-scale:0.48;--preview-translateX:-55%;--preview-translateY:-40%;height:auto!important;position:absolute;transform:scale(.48) translateX(-55%) translateY(-40%)}.amp-stories__editor-inserter__results .components-disabled .wp-block div{height:auto!important}@media (min-width:600px){.amp-stories__editor-inserter__results .block-editor-block-list__layout .block-editor-block-list__block{padding:0}}.amp-stories__editor-inserter__results .block-editor-block-types-list{padding:10px}.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-mover{display:none!important}.components-draggable__clone .block-editor-block-list__block .rotatable-box-wrap{display:none;opacity:0}.editor-inner-blocks .block-editor-block-list__block.is-rotating .block-editor-block-contextual-toolbar,.editor-inner-blocks .block-editor-block-list__block.is-rotating .block-editor-block-list__breadcrumb,.editor-inner-blocks .block-editor-block-list__block.is-rotating .block-editor-block-list__insertion-point{display:none!important}.block-editor-block-list__block .rotatable-box-wrap{position:absolute;right:-14px;bottom:-25px;left:calc(50% - 15px);width:30px;height:25px}.block-editor-block-list__block .rotatable-box-wrap:before{display:block;content:"";cursor:inherit;border-left:1px solid rgba(66,88,99,.4);height:24px;width:0;margin:3px auto 0}.block-editor-block-list__block .rotatable-box-wrap .rotatable-box-wrap__handle{display:block;opacity:1;transition:opacity .3s;position:absolute;bottom:-20px;left:calc(50% - 25px);width:50px;height:24px;padding:4px;cursor:move;background:transparent;border:none}.rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#0085ba;border:2px solid #fff;border-radius:50%;content:"";cursor:inherit;display:block;height:15px;width:15px;margin:0 auto}body.admin-color-sunrise .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#d1864a}body.admin-color-ocean .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#a3b9a2}body.admin-color-midnight .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#e14d43}body.admin-color-ectoplasm .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#a7b656}body.admin-color-coffee .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#c2a68c}body.admin-color-blue .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#82b4cb}body.admin-color-light .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#0085ba}.block-editor-inner-blocks .wp-block.is-typing .rotatable-box-wrap,.block-editor-inner-blocks .wp-block .rotatable-box-wrap{display:block;opacity:0;transition:opacity .3s}.block-editor-inner-blocks .wp-block .amp-story-resize-container.is-resizing .rotatable-box-wrap,.block-editor-inner-blocks .wp-block.is-typing .rotatable-box-wrap{opacity:0}.block-editor-inner-blocks .wp-block.is-rotating .rotatable-box-wrap,.block-editor-inner-blocks .wp-block.is-selected .rotatable-box-wrap,.block-editor-inner-blocks .wp-block:hover .rotatable-box-wrap{opacity:1}.components-preview-picker__buttons{display:flex;justify-content:space-between;align-items:center}.components-preview-picker__dropdown-content .components-button{display:block;position:relative;padding:10px 20px 10px 40px;width:100%;text-align:left}.components-preview-picker__dropdown-content .components-button:hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-preview-picker__dropdown-content .components-button:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-preview-picker__dropdown-content .components-button .dashicon{position:absolute;top:calc(50% - 10px);left:10px}.components-preview-picker__dropdown-content .components-button .editor-block-icon{position:absolute;top:calc(50% - 10px);right:10px}.components-preview-picker__buttons .components-preview-picker__selector{background:none;position:relative;width:200px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-preview-picker__buttons .components-preview-picker__selector:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-preview-picker__buttons .components-preview-picker__selector:after{content:"";pointer-events:none;display:block;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid;margin-left:4px;margin-right:2px;right:8px;top:12px;position:absolute}.amp__block-editor-inserter__menu.block-editor-inserter__menu{flex-direction:column}.amp-story-resize-container .components-resizable-box__handle{display:block;opacity:0;transition:opacity .3s}.block-editor-inner-blocks .wp-block.is-typing .amp-story-resize-container .components-resizable-box__handle{opacity:0}.block-editor-inner-blocks .wp-block .amp-story-resize-container.is-resizing .components-resizable-box__handle,.block-editor-inner-blocks .wp-block.is-selected .amp-story-resize-container .components-resizable-box__handle,.block-editor-inner-blocks .wp-block:hover .amp-story-resize-container .components-resizable-box__handle{opacity:1}.amp-story-resize-container .components-resizable-box__handle-top{top:-14px!important}.amp-story-resize-container .components-resizable-box__handle-right{right:-14px!important}.amp-story-resize-container .components-resizable-box__handle-bottom{bottom:-14px!important}.amp-story-resize-container .components-resizable-box__handle-left{left:-14px!important}.amp-story-editor__rotate-container .components-resizable-box__handle{display:none!important}.amp-story-resize-container .amp-story-editor__rotate-container{height:100%}.wp-block-image .components-resizable-box__container img{height:100%;-o-object-fit:cover;object-fit:cover;-webkit-user-drag:none}.block-editor-block-list__block[data-type="core/image"] img{-webkit-user-drag:none}.editor-block-list__layout div[data-type="amp/amp-story-cta"]{top:80%;left:0;width:100%;height:20%}.block-editor-block-list__layout div[data-type="amp/amp-story-cta"]:not(#id){margin-top:0}.editor-block-list__layout div[data-type="amp/amp-story-cta"] img{max-height:86px}.amp-block-story-cta__link img{-o-object-fit:contain;object-fit:contain}.amp-block-story-cta__link .amp-text-placeholder{opacity:.62}div[data-type="amp/amp-story-cta"] .amp-overlay{height:100%;width:100%;z-index:1000;position:absolute;top:0;left:0;right:0;bottom:0}.editor-block-list__layout div[data-type="amp/amp-story-cta"] .editor-block-mover{display:none}.block-editor-block-list__block[data-type="amp/amp-story-cta"] .block-editor-block-list__block-edit{--cta-margin:3px;height:calc(100% + var(--cta-margin)*2);width:100%;bottom:var(--cta-margin)}.block-editor-block-list__layout .block-editor-block-list__block[data-type="amp/amp-story-cta"] .block-editor-block-list__block-edit:before{top:0;left:0;bottom:0;right:0}.block-editor-block-list__block[data-type="amp/amp-story-cta"] .block-editor-block-contextual-toolbar{margin-left:-1px;margin-right:0}.amp-story-cta-button{position:absolute}.wp-block-amp-amp-story-cta{display:inline-block;padding:5px;margin-bottom:0;position:relative}.wp-block-amp-amp-story-cta [contenteditable]{cursor:text}.wp-block-amp-amp-story-cta .block-editor-rich-text__editable[data-is-placeholder-visible=true]+.block-editor-rich-text__editable{opacity:.8}.block-editor-block-preview__content .wp-block-amp-amp-story-cta{max-width:100%}.wp-block-amp-amp-story-cta .block-editor-rich-text__editable code{background:inherit;color:inherit}.wp-block-amp-amp-story-cta .block-editor-rich-text__editable[data-is-placeholder-visible=true]{height:auto}.wp-block-amp-amp-story-cta .amp-block-story-cta__link{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.amp-block-story-cta__link{border:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:18px;margin:0;padding:7px 19px 0;text-align:center;text-decoration:none;white-space:normal;word-wrap:break-word}.amp-block-story-cta__inline-link{background:#fff;display:flex;flex-wrap:wrap;align-items:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:374px;position:absolute;z-index:10;margin-top:-.5em}.is-dragging-components-draggable .amp-block-story-cta__inline-link{display:none}.amp-block-story-cta__inline-link .block-editor-url-input{width:auto}.amp-block-story-cta__inline-link .block-editor-url-input__suggestions{width:302px;z-index:10}.amp-block-story-cta__inline-link>.dashicon{width:36px}.amp-block-story-cta__inline-link .dashicon{color:#8f98a1}.amp-block-story-cta__inline-link .block-editor-url-input input[type=text]:-ms-input-placeholder{color:#8f98a1}.amp-block-story-cta__inline-link .block-editor-url-input input[type=text]::-ms-input-placeholder{color:#8f98a1}.amp-block-story-cta__inline-link .block-editor-url-input input[type=text]::placeholder{color:#8f98a1}.block-editor-block-list__layout .block-editor-block-list__block[data-type="amp/amp-story-page"]>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb{display:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit:before{left:-3px;top:-3px;right:-3px;bottom:-3px}.block-editor-block-list__layout .block-editor-block-list__block[data-type="amp/amp-story-page"]>.block-editor-block-list__block-edit>.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{left:18px;top:11px}[data-type="amp/amp-story-page"]>.editor-block-list__block-edit>.editor-block-mover{display:none!important}.editor-block-list__layout div[data-type="amp/amp-story-page"]{padding:0;margin:60px 30px 0}@media (min-width:600px){div[data-type="amp/amp-story-page"] .editor-block-list__block{margin:0;padding:0}}#amp-story-editor .wp-block[data-type="amp/amp-story-page"]{background:#fff}#amp-story-editor .wp-block[data-type="amp/amp-story-page"],#amp-story-editor .wp-block[data-type="amp/amp-story-page"] .editor-inner-blocks .editor-block-list__layout:first-of-type{width:100%;max-width:328px;height:553px;position:relative}#amp-story-editor .wp-block[data-type="amp/amp-story-page"] .editor-block-list__layout>.block-list-appender{width:316px;margin:0 auto;display:none}.editor-block-list__layout .editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit,.editor-block-list__layout div[data-type="amp/amp-story-page"].editor-block-list__block .editor-block-list__block-edit{margin:0}.editor-block-list__layout div[data-type="amp/amp-story-page"]{flex:0 0 auto;position:relative;transition:border .3s linear}.editor-block-list__layout div[data-type="amp/amp-story-page"]+div[data-type="amp/amp-story-page"]{margin-left:20px}.editor-block-list__layout [data-type="amp/amp-story-page"].amp-page-inactive{opacity:.5}.editor-block-list__layout [data-type="amp/amp-story-page"].amp-page-inactive>div{pointer-events:none}.editor-block-list__layout div[data-type="amp/amp-story-page"] .amp-story-page-number{position:absolute;top:-3em;text-transform:uppercase;font-weight:500;font-size:12px;color:#666;letter-spacing:1px}.editor-block-list__layout div[data-type="amp/amp-story-page"] .amp-story-page-number+div .editor-inner-blocks.block-editor-inner-blocks{height:553px}.editor-styles-wrapper [data-block]{margin-top:0;margin-bottom:0}.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-dragging,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-focused,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-rotating,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-selected,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-typing{z-index:100}.block-editor-block-list__block.amp-page-inactive>.block-editor-block-list__block-edit:before{box-shadow:none;border:1px solid #e3e5e7}.block-editor-block-list__block.amp-page-active.has-child-selected>.block-editor-block-list__block-edit:before,.block-editor-block-list__block.amp-page-active.is-selected>.block-editor-block-list__block-edit:before,.block-editor-block-list__block.amp-page-active>.block-editor-block-list__block-edit:before,.block-editor-inner-blocks .wp-block.is-rotating .block-editor-block-list__block-edit:before,.block-editor-inner-blocks .wp-block.is-selected .block-editor-block-list__block-edit:before,.block-editor-inner-blocks .wp-block:hover .block-editor-block-list__block-edit:before{box-shadow:none;border:1px solid rgba(66,88,99,.4)}div[data-type="amp/amp-story-page"] .editor-inner-blocks .editor-block-list__layout:first-of-type .wp-block{position:absolute;z-index:10}.editor-block-list__block .editor-block-list__layout{margin:0}.editor-block-list__layout div[data-type="amp/amp-story-page"][data-amp-selected=parent] .editor-block-drop-zone{height:603px;--dropzone-padding:400px;--page-width:328px;width:calc(var(--dropzone-padding) + var(--page-width));margin:0;left:calc(var(--dropzone-padding)/-2);top:-50px;border:none;background:transparent}.editor-block-list__layout div[data-type="amp/amp-story-page"][data-amp-selected=parent]>.editor-block-drop-zone .components-drop-zone__content{display:none}div[data-type="amp/amp-story-page"] .wp-block-image{margin-top:0}.edit-post-layout[data-block-name="core/embed"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2),.edit-post-layout[data-block-name="core/image"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2),.edit-post-layout[data-block-name="core/pullquote"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2),.edit-post-layout[data-block-name="core/video"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2){display:none}.amp-page-inactive[data-type="amp/amp-story-page"] .block-list-appender{display:none}.block-editor-block-list__block-edit .components-draggable__clone{position:absolute}.wp-block[data-type="core/pullquote"][data-align=full],.wp-block[data-type="core/pullquote"][data-align=wide]{width:100%;max-width:100%}.block-editor-inner-blocks .wp-block[data-type="core/pullquote"] .block-editor-block-list__block-edit{display:block}#amp-story-editor .block-editor-block-list__layout .block-editor-block-list__block[data-align=full]{margin:0}.editor-amp-story-page-video-wrap{position:absolute;overflow:hidden;width:100%;height:100%}.editor-amp-story-page-background.editor-post-featured-image__preview img,.editor-amp-story-page-video{-o-object-fit:cover;object-fit:cover}.editor-amp-story-page-video{position:absolute;top:0;left:0;right:0;bottom:0;min-width:100%;min-height:100%}.editor-amp-story-page-background{display:block}.editor-amp-story-page-background~.components-button{margin-top:1em;margin-right:8px}#editor-amp-story-page-poster__help{margin-top:0}.editor-block-list__layout [data-type="amp/amp-story-page"] .block-editor-block-list__block .block-editor-warning{transform:none}.editor-block-list__layout [data-type="amp/amp-story-page"] .block-editor-block-list__block.is-selected .block-editor-warning{border:none}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author{margin:0;padding:7px!important;height:100%}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author.is-amp-fit-text{line-height:1.15;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author:not(.is-amp-fit-text){display:block;font-size:16px}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.wp-block[data-type="amp/amp-story-post-author"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-post-author"] .block-mover,.wp-block[data-type="amp/amp-story-post-author"] .block-mover div{height:100%}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date{margin:0;padding:7px!important;height:100%}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date.is-amp-fit-text{line-height:1.15;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date:not(.is-amp-fit-text){display:block;font-size:16px}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.wp-block[data-type="amp/amp-story-post-date"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-post-date"] .block-mover,.wp-block[data-type="amp/amp-story-post-date"] .block-mover div{height:100%}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title{margin:0;padding:7px!important;height:100%}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title.is-amp-fit-text{line-height:1.15;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;font-weight:700}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title:not(.is-amp-fit-text){display:block;font-size:16px}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.wp-block[data-type="amp/amp-story-post-title"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-post-title"] .block-mover,.wp-block[data-type="amp/amp-story-post-title"] .block-mover div{height:100%}.wp-block[data-type="amp/amp-story-text"] p{margin:0}.wp-block-amp-story-text .block-editor-rich-text__editable{padding:7px!important;width:100%}.is-not-editing .wp-block-amp-amp-story-text.block-editor-rich-text__editable.editor-rich-text__editable{cursor:grab}.wp-block-amp-story-text-wrapper.is-empty-draggable-text,.wp-block-amp-story-text-wrapper:not(.with-line-height){height:100%}.wp-block-amp-story-text-wrapper .amp-overlay{height:100%;width:100%;z-index:1000;position:absolute;top:0;left:0;right:0;bottom:0}.wp-block-amp-story-text-wrapper.is-empty-draggable-text .amp-text-placeholder{opacity:.62}.editor-styles-wrapper #amp-story-editor .wp-block .wp-block[data-type="amp/amp-story-text"]{width:auto}.wp-block[data-type="amp/amp-story-text"] .block-editor-rich-text__editable,div[data-type="amp/amp-story-page"] .block-editor-inner-blocks .block-editor-block-list__block-edit{display:inline-block}.with-line-height .wp-block-amp-story-text{position:relative}.wp-block[data-type="amp/amp-story-text"] .wp-block-amp-story-text .is-amp-fit-text{display:inline-block;vertical-align:middle;line-height:1.15}.wp-block[data-type="amp/amp-story-text"] .wp-block-amp-story-text .is-amp-fit-text.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.editor-block-list__layout .wp-block[data-type="amp/amp-story-text"] .editor-block-list__block-edit:before{position:absolute}.wp-block[data-type="amp/amp-story-text"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-text"] .block-mover,.wp-block[data-type="amp/amp-story-text"] .block-mover div{height:100%}.components-background-color-popover-content{padding:16px}.components-background-color-indicator{position:absolute;background:transparent;height:3px;width:20px;bottom:6px;left:auto;right:auto;margin-left:-1px}.components-background-color-indicator:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0}.components-text-color-popover-content{padding:16px}.components-text-color-indicator{position:absolute;background:transparent;height:3px;width:20px;bottom:6px;left:auto;right:auto;margin-left:1px}.components-text-color-indicator:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0}
1
+ :root{--preview-scale:1;--preview-translateX:0%;--preview-translateY:0%}.edit-post-visual-editor{padding-left:50px;padding-right:50px}.block-editor-block-preview .block-editor-block-preview__content>div,.editor-styles-wrapper #amp-story-editor,.editor-styles-wrapper .wp-block:not([data-font-family]){font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}@media screen and (min-width:1280px){#amp-story-editor{min-width:820px}}#amp-story-editor .components-placeholder{background:#f3f3f3}#amp-story-editor .block-editor-block-list__block .block-editor-block-list__empty-block-inserter,#amp-story-editor .block-editor-block-list__block>.block-editor-block-list__insertion-point,#amp-story-editor .block-editor-block-list__layout .block-editor-default-block-appender{display:none!important}.editor-styles-wrapper #amp-story-editor [data-block]{margin-top:0;margin-bottom:0}.wp-block-quote__citation{font-size:16px;margin-top:24px;display:block}.editor-styles-wrapper .wp-block-quote p{line-height:34px;font-weight:700;font-size:30px;font-family:Source Sans Pro,sans-serif}.wp-block-quote,.wp-block-quote[style*="text-align: right"]{border:none;padding-top:100px}.block-editor-block-list__layout .block-editor-block-list__block [data-type="core/quote"] .block-editor-block-list__block-edit:before{right:-5px;left:-5px;top:-5px;bottom:-5px}:not(.amp-story-page-preview) :not(.amp-stories__editor-inserter__results) .components-disabled .wp-block-quote.is-style-white{background-color:#313131}.amp-stories__editor-inserter__menu .amp-stories__editor-inserter__results .components-disabled .wp-block-quote.is-style-white,.amp-story-reorderer-item .amp-story-page-preview .components-disabled .wp-block-quote.is-style-white{background-color:transparent;background-color:initial}.wp-block .components-resizable-box__container+.__resizable_base__{left:0!important}.wp-block[data-type="core/list"] .amp-story-editor__rotate-container,.wp-block[data-type="core/list"] .block-mover,.wp-block[data-type="core/list"] .block-mover div{height:100%}.wp-block[data-type="core/code"] .amp-story-editor__rotate-container,.wp-block[data-type="core/code"] .block-mover,.wp-block[data-type="core/code"] .block-mover div{height:100%}.wp-block[data-type="core/video"] .block-mover,.wp-block[data-type="core/video"] .block-mover div{height:100%}.wp-block[data-type="core/video"] .block-mover .editor-rich-text.block-editor-rich-text,.wp-block[data-type="core/video"] .block-mover .editor-rich-text.block-editor-rich-text div{height:auto}.wp-block[data-type="core/video"] .wp-block-video{margin:0}.wp-block-code textarea{white-space:nowrap}.wp-block[data-type="core/preformatted"] div[draggable=true],.wp-block[data-type="core/verse"] div[draggable=true]{border:5px solid transparent}.wp-block-preformatted .block-editor-rich-text__editable,.wp-block-verse .block-editor-rich-text__editable{white-space:nowrap!important;padding:5px}.wp-block-pullquote,.wp-block[data-type="core/pullquote"] .block-mover,.wp-block[data-type="core/pullquote"] .block-mover div{height:100%}.wp-block-table,.wp-block[data-type="core/table"] .block-mover,.wp-block[data-type="core/table"] .block-mover div{height:100%}.wp-block[data-type="core/table"] .block-mover .components-placeholder,.wp-block[data-type="core/table"] .block-mover .components-placeholder div{height:auto}.block-library-list ul li,.wp-block-preformatted pre,.wp-block-verse pre{cursor:auto}.block-library-list{padding:5px}.block-library-list ul,.wp-block-preformatted pre,.wp-block-verse pre{margin:0}.edit-post-more-menu__content .components-menu-group:first-of-type .components-button:first-of-type{display:none}.edit-post-more-menu__content .components-menu-group:nth-last-of-type(2) div[role=group]>.components-button:first-child{display:none}.editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit>:not(.editor-warning){pointer-events:all}.editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit>div>div:not(.editor-warning){pointer-events:none}div[data-amp-caption=noCaption] .wp-block-video figcaption,div[data-amp-caption=noCaption] figure.wp-block-image figcaption{display:none}.wp-block .is-amp-fit-text{word-wrap:normal}.wp-block-video,.wp-block-video .components-disabled{height:100%}.wp-block-video .components-disabled{overflow:hidden}.wp-block-video video{height:100%;width:100%}.media-frame.has-two-notices .media-frame-content{bottom:120px}.components-panel__body .components-notice{margin-left:0;margin-right:0}.video-block__poster-image.editor-post-featured-image__preview img{-o-object-fit:cover;object-fit:cover}@keyframes story-animation-pulse{0%{transform:scale(1)}25%{transform:scale(.95)}75%{transform:scale(1.05)}to{transform:scale(1)}}.story-animation-pulse{--animation-duration:400ms;--animation-delay:0ms;animation-name:story-animation-pulse;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(.4,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-pulse{transform:scale(1)}@keyframes story-animation-fly-in-left{0%{transform:translate(var(--animation-offset-x))}to{transform:translate(0)}}.story-animation-fly-in-left{--animation-duration:400ms;--animation-delay:0ms;--animation-offset-x:0;animation-name:story-animation-fly-in-left;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-fly-in-left{transform:translate(var(--animation-offset-x))}@keyframes story-animation-fly-in-right{0%{transform:translate(var(--animation-offset-x))}to{transform:translate(0)}}.story-animation-fly-in-right{--animation-duration:400ms;--animation-delay:0ms;--animation-offset-x:0;animation-name:story-animation-fly-in-right;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-fly-in-right{transform:translate(var(--animation-offset-x))}@keyframes story-animation-fly-in-top{0%{transform:translateY(var(--animation-offset-y))}to{transform:translate(0)}}.story-animation-fly-in-top{--animation-duration:400ms;--animation-delay:0ms;--animation-offset-y:0;animation-name:story-animation-fly-in-top;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-fly-in-top{transform:translateY(var(--animation-offset-y))}@keyframes story-animation-fly-in-bottom{0%{transform:translateY(var(--animation-offset-y))}to{transform:translate(0)}}.story-animation-fly-in-bottom{--animation-duration:400ms;--animation-delay:0ms;--animation-offset-y:0;animation-name:story-animation-fly-in-bottom;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-fly-in-bottom{transform:translateY(var(--animation-offset-y))}@keyframes story-animation-rotate-in-left{0%{transform:translate(var(--animation-offset-x)) rotate(-1turn)}to{transform:translate(0)}}.story-animation-rotate-in-left{--animation-duration:600ms;--animation-delay:0ms;--animation-offset-x:0;animation-name:story-animation-rotate-in-left;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-rotate-in-left{transform:translate(var(--animation-offset-x)) rotate(-1turn)}@keyframes story-animation-rotate-in-right{0%{transform:translate(var(--animation-offset-x)) rotate(-1turn)}to{transform:translate(0)}}.story-animation-rotate-in-right{--animation-duration:600ms;--animation-delay:0ms;--animation-offset-x:0;animation-name:story-animation-rotate-in-right;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-rotate-in-right{transform:translate(var(--animation-offset-x)) rotate(-1turn)}@keyframes story-animation-fade-in{0%{opacity:0}to{opacity:1}}.story-animation-fade-in{--animation-duration:400ms;--animation-delay:0ms;animation-name:story-animation-fade-in;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-fade-in{opacity:0}@keyframes story-animation-drop{0%{transform:translateY(calc(-1*var(--animation-offset-y)));animation-timing-function:cubic-bezier(.75,.05,.86,.08)}30%{transform:translateY(0);animation-timing-function:cubic-bezier(.22,.61,.35,1)}52%{transform:translateY(calc(-0.6*var(--animation-offset-y)));animation-timing-function:cubic-bezier(.75,.05,.86,.08)}74%{transform:translateY(0);animation-timing-function:cubic-bezier(.22,.61,.35,1)}83%{transform:translateY(calc(-0.3*var(--animation-offset-y)));animation-timing-function:cubic-bezier(.75,.05,.86,.08)}to{transform:translateY(0);animation-timing-function:cubic-bezier(.22,.61,.35,1)}}.story-animation-drop{--animation-duration:1600ms;--animation-delay:0ms;--animation-offset-y:0;animation-name:story-animation-drop;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-drop{transform:translateY(calc(-1*var(--animation-offset-y)))}@keyframes story-animation-twirl-in{0%{transform:rotate(-540deg) scale(.1);opacity:0}to{transform:none;opacity:1}}.story-animation-twirl-in{--animation-duration:1000ms;--animation-delay:0ms;animation-name:story-animation-twirl-in;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(.2,.75,.4,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-twirl-in{transform:rotate(-540deg) scale(.1);opacity:0}@keyframes story-animation-whoosh-in-left{0%{opacity:0;transform:translate(var(--animation-offset-x)) scale(.15)}to{opacity:1;transform:translate(0) scale(1)}}.story-animation-whoosh-in-left{--animation-duration:400ms;--animation-delay:0ms;animation-name:story-animation-whoosh-in-left;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-whoosh-in-left{transform:translate(var(--animation-offset-x)) scale(.15);opacity:0}@keyframes story-animation-whoosh-in-right{0%{opacity:0;transform:translate(var(--animation-offset-x)) scale(.15)}to{opacity:1;transform:translate(0) scale(1)}}.story-animation-whoosh-in-right{--animation-duration:400ms;--animation-delay:0ms;animation-name:story-animation-whoosh-in-right;animation-duration:var(--animation-duration);animation-timing-function:cubic-bezier(0,0,.2,1);animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-whoosh-in-right{transform:translate(var(--animation-offset-x)) scale(.15);opacity:0}@keyframes story-animation-pan-left{0%{transform:translate(var(--animation-offset-x),var(--animation-offset-y)) scale(var(--animation-scale-start));transform-origin:left top}to{transform:translateY(var(--animation-offset-y)) scale(var(--animation-scale-end));transform-origin:left top}}.story-animation-pan-left{--animation-duration:1000ms;--animation-delay:0ms;--animation-scale-start:1;--animation-scale-end:1;--animation-offset-x:0;--animation-offset-y:0;animation-name:story-animation-pan-left;animation-duration:var(--animation-duration);animation-timing-function:linear;animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-pan-left{transform:translate(var(--animation-offset-x),var(--animation-offset-y)) scale(var(--animation-scale-start));transform-origin:left top}@keyframes story-animation-pan-right{0%{transform:translateY(var(--animation-offset-y)) scale(var(--animation-scale-start));transform-origin:left top}to{transform:translate(var(--animation-offset-x),var(--animation-offset-y)) scale(var(--animation-scale-end));transform-origin:left top}}.story-animation-pan-right{--animation-duration:1000ms;--animation-delay:0ms;--animation-scale-start:1.25;--animation-scale-end:1.25;--animation-offset-x:0;--animation-offset-y:0;animation-name:story-animation-pan-right;animation-duration:var(--animation-duration);animation-timing-function:linear;animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-pan-right{transform:translateY(var(--animation-offset-y)) scale(var(--animation-scale-start));transform-origin:left top}@keyframes story-animation-pan-down{0%{transform:translate(var(--animation-offset-x)) scale(var(--animation-scale-start));transform-origin:left top}to{transform:translate(var(--animation-offset-x),var(--animation-offset-y)) scale(var(--animation-scale-end));transform-origin:left top}}.story-animation-pan-down{--animation-duration:1000ms;--animation-delay:0ms;--animation-scale-start:1.25;--animation-scale-end:1.25;--animation-offset-x:0;--animation-offset-y:0;animation-name:story-animation-pan-down;animation-duration:var(--animation-duration);animation-timing-function:linear;animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-pan-down{transform:translate(var(--animation-offset-x)) scale(var(--animation-scale-start));transform-origin:left top}@keyframes story-animation-pan-up{0%{transform:translate(var(--animation-offset-x),var(--animation-offset-y)) scale(var(--animation-scale-start));transform-origin:left top}to{transform:translate(var(--animation-offset-x)) scale(var(--animation-scale-end));transform-origin:left top}}.story-animation-pan-up{--animation-duration:1000ms;--animation-delay:0ms;--animation-scale-start:1.25;--animation-scale-end:1.25;--animation-offset-x:0;--animation-offset-y:0;animation-name:story-animation-pan-up;animation-duration:var(--animation-duration);animation-timing-function:linear;animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-pan-up{transform:translate(var(--animation-offset-x),var(--animation-offset-y)) scale(var(--animation-scale-start));transform-origin:left top}@keyframes story-animation-zoom-in{0%{transform:scale(var(--animation-scale-start))}to{transform:scale(var(--animation-scale-end))}}.story-animation-zoom-in{--animation-duration:1000ms;--animation-delay:0ms;--animation-scale-start:1;--animation-scale-end:3;animation-name:story-animation-zoom-in;animation-duration:var(--animation-duration);animation-timing-function:linear;animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-zoom-in{transform:scale(var(--animation-scale-start))}@keyframes story-animation-zoom-out{0%{transform:scale(var(--animation-scale-start))}to{transform:scale(var(--animation-scale-end))}}.story-animation-zoom-out{--animation-duration:1000ms;--animation-delay:0ms;--animation-scale-start:3;--animation-scale-end:1;animation-name:story-animation-zoom-out;animation-duration:var(--animation-duration);animation-timing-function:linear;animation-delay:var(--animation-delay);animation-fill-mode:both}.story-animation-init-zoom-out{transform:scale(var(--animation-scale-start))}#amp-story-block-navigation{display:none;position:absolute;left:45px;top:75px;width:300px;min-width:115px;z-index:80;list-style-type:none;padding:0;margin:0}@media (max-width:1200px){.is-sidebar-opened #amp-story-block-navigation{left:0}}@media (min-width:1001px) and (max-width:1100px){.is-sidebar-opened .editor-block-list__layout{margin-right:-100px}}@media (min-width:961px){#amp-story-block-navigation{display:block}}@media (min-width:961px) and (max-width:1000px){.is-sidebar-opened #amp-story-block-navigation{display:none}}#amp-story-block-navigation .editor-inserter{position:absolute;bottom:100%;left:0;width:100%}#amp-story-block-navigation .components-popover:not(.is-mobile).is-center .components-popover__content{transform:translateX(-13%)}.post-type-amp_story.folded #amp-story-block-navigation .components-popover:not(.is-mobile):not(.is-middle).is-right .components-popover__content{margin-left:-50px}#amp-story-block-navigation .block-editor-block-navigation__list{list-style-type:none;margin-bottom:15px}#amp-story-block-navigation .editor-block-navigation__list__static{margin:0;padding:0}#amp-story-block-navigation .components-icon-button .dashicon{margin-right:5px}#amp-story-block-navigation .block-editor-block-navigation__label{margin:0 0 1em;text-transform:uppercase;font-weight:500;font-size:12px;color:#666;letter-spacing:1px}:root{--block-settings-sidebar-width:280px;--admin-menu-expanded-sidebar-width:160px;--admin-menu-collapsed-sidebar-width:36px;--amp-story-content-width:334px;--block-editor-horizontal-margin:50px;--scrollbar-width:20px;--block-navigation-right-margin:45px}.post-type-amp_story:not(.folded) .edit-post-layout #amp-story-block-navigation{max-width:calc((100vw - 614px)/2 - 45px);max-width:calc((100vw - var(--admin-menu-expanded-sidebar-width) - var(--amp-story-content-width) - var(--block-editor-horizontal-margin)*2 - var(--scrollbar-width))/2 - var(--block-navigation-right-margin))}.post-type-amp_story.folded .edit-post-layout #amp-story-block-navigation{max-width:calc((100vw - 490px)/2 - 45px);max-width:calc((100vw - var(--admin-menu-collapsed-sidebar-width) - var(--amp-story-content-width) - var(--block-editor-horizontal-margin)*2 - var(--scrollbar-width))/2 - var(--block-navigation-right-margin))}.post-type-amp_story .edit-post-layout.is-sidebar-opened #amp-story-block-navigation{max-width:calc((100vw - 894px)/2 - 45px);max-width:calc((100vw - var(--admin-menu-expanded-sidebar-width) - var(--block-settings-sidebar-width) - var(--amp-story-content-width) - var(--block-editor-horizontal-margin)*2 - var(--scrollbar-width))/2 - var(--block-navigation-right-margin))}.post-type-amp_story.folded #amp-story-block-navigation{max-width:calc(100vw - 370px);max-width:calc(100vw - var(--admin-menu-collapsed-sidebar-width) - var(--amp-story-content-width))}.post-type-amp_story.folded .edit-post-layout.is-sidebar-opened #amp-story-block-navigation{max-width:calc((100vw - 770px)/2 - 45px);max-width:calc((100vw - var(--admin-menu-collapsed-sidebar-width) - var(--block-settings-sidebar-width) - var(--amp-story-content-width) - var(--block-editor-horizontal-margin)*2 - var(--scrollbar-width))/2 - var(--block-navigation-right-margin))}@media (max-width:960px){.block-editor-block-list__block-edit>div>.editor-selectors{display:none}}.edit-post-header-toolbar .components-icon-button.block-editor-block-navigation{display:none}@media (min-width:961px){.edit-post-header-toolbar #amp-story-media-inserter,.edit-post-header-toolbar #amp-story-shortcuts{display:flex}.edit-post-visual-editor .editor-post-title__block{margin-left:0;margin-right:0}.block-editor-block-navigation__container{background:#fff;border:1px solid #eee;padding:1em}.block-editor-block-navigation__container .component-editor__selector button{background:no-repeat 0 0;padding-left:37px;height:40px;margin:1px 0 1px 4px}.block-editor-block-navigation__container .component-editor__selector .components-button:focus{box-shadow:none}.components-range-control__number{width:60px}}.block-editor-block-navigation__list .block-editor-block-navigation__item{position:relative}.block-editor-block-navigation__list .block-editor-block-navigation__item-is-dragging{cursor:grab}.block-editor-block-navigation__list .block-editor-block-navigation__item .components-drop-zone{border:none;border-radius:0}.block-editor-block-navigation__list .block-editor-block-navigation__item .components-drop-zone.is-dragging-over-element .components-drop-zone__content{display:none}.block-editor-block-navigation__list li .block-editor-block-navigation__item .components-drop-zone{background:none}.block-editor-block-navigation__list li .block-navigation__placeholder{transition:height .3s ease;height:0}.block-editor-block-navigation__list li .block-editor-block-navigation__item .components-drop-zone.is-close-to-top+.block-navigation__placeholder{visibility:hidden;height:36px}.block-editor-block-navigation__list li:last-child .components-drop-zone:not(.is-close-to-top){height:72px}.block-editor-block-navigation__item-is-dragging>.editor-block-navigation__item-button{display:none}#amp-story-editor-carousel{display:none}@media (min-width:961px){#amp-story-editor-carousel{display:block}}#amp-story-editor{position:relative;overflow:hidden}#amp-story-editor>.editor-block-list__layout{padding-left:0;padding-right:0;display:flex;align-items:center;transform:none;transition:transform .3s ease-in-out}#amp-story-editor>.editor-block-list__layout .block-list-appender{display:none}.amp-story-editor-carousel-navigation{display:flex;justify-content:space-between;margin-top:5em}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list{flex:1;display:flex;margin:0;padding:0;list-style-type:none;justify-content:center;max-width:30%}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list .amp-story-editor-carousel-item{flex:1;height:.5em;max-width:5em}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list .amp-story-editor-carousel-item+.amp-story-editor-carousel-item{margin-left:20px}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list button{background:#eff0f1;width:100%;height:100%;display:block}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list button:focus,.editor-styles-wrapper ul.amp-story-editor-carousel-item-list button:hover{background:#e0e0e0}.editor-styles-wrapper ul.amp-story-editor-carousel-item-list .amp-story-editor-carousel-item--active button{background:#666}.block-editor-block-list__block .block-editor-post-input,.block-editor-post-input{flex-grow:1;position:relative;padding:1px}.block-editor-post-input input[type=text]{font-size:13px;width:300px;padding:12px;border-color:#007cba;outline:2px solid transparent;border-radius:0;margin-left:0;margin-right:0}.block-editor-post-input label{font-size:14px}.block-editor-post-input__suggestions{display:inherit;max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}.block-editor-post-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:left;box-shadow:none}.block-editor-post-input__suggestion:hover{background:#e2e4e7}.block-editor-post-input__suggestion.is-selected,.block-editor-post-input__suggestion:focus{background:#e2e4e7;outline:none}.amp-story-reorderer{margin-top:100px;display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,169px);grid-gap:0;justify-content:space-between}.amp-story-reorderer .amp-story-reorderer-item{margin:0 auto 10px;width:100%;position:relative}.amp-story-reorderer .amp-story-reorderer-item .amp-story-reorderer-item-page{max-width:165px;height:270px}.amp-story-reorderer .block-editor-block-preview .block-editor-block-preview__content .components-disabled{transform:none;text-align:left;text-align:initial}.amp-story-reorderer .block-editor-block-list__layout .block-editor-block-list__block{padding:0}.amp-story-reorderer .editor-block-list__layout.block-editor-block-list__layout,.amp-story-reorderer .editor-inner-blocks.block-editor-inner-blocks{height:100%;padding:0}.amp-story-reorderer .components-disabled,.amp-story-reorderer .components-disabled div:first-of-type{padding:0;width:100%;height:100%}.amp-story-reorderer .amp-story-reorderer-item .amp-story-reorderer-item-page .wp-block{--preview-scale:0.47;--preview-translateX:-40%;--preview-translateY:-70%;position:absolute;transform:scale(var(--preview-scale)) translateX(var(--preview-translateX)) translateY(var(--preview-translateY))}.amp-story-reorderer .block-editor-block-list__layout>.block-editor-block-list__block>.block-editor-block-list__block-edit{margin-top:0;margin-bottom:0}@media (min-width:600px){.amp-story-reorderer .block-editor-block-list__block-edit{margin-left:-50px;margin-right:-50px}}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone{border:none;border-radius:0;background:transparent}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-active{opacity:0;visibility:hidden}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-over-element,.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-page{opacity:1;visibility:visible;transition:opacity .3s,background-color .3s}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-page{background:#eff0f1;border:none!important;margin:0 10px}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-over-element.is-close-to-right{border-right:3px solid #0071a1}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone.is-dragging-over-element.is-close-to-left{border-left:3px solid #0071a1}.amp-story-reorderer .amp-story-reorderer-item .components-drop-zone__content,.amp-story-reorderer .amp-story-reorderer-item .is-dragging-over-element .components-drop-zone__content{display:none}.amp-story-reorderer .amp-story-page-preview{border:5px solid #eff0f1;border-radius:5px;background:#fff;width:100%;height:100%;cursor:grab;overflow:hidden}#amp-story-editor .amp-story-reorderer .components-draggable__clone{position:fixed}.amp-story-reorderer .amp-story-page-preview .editor-styles-wrapper{margin:0;height:260px}.amp-story-reorderer .amp-story-page-preview .editor-block-list__layout{padding:0}.amp-story-reorderer .amp-story-page-preview .block-list-appender{display:none}#amp-story-media-inserter,#amp-story-shortcuts{display:inline-flex}#amp-story-controls{text-align:right;padding-right:20px}.amp-story-controls-reorder{box-sizing:border-box;height:49px;width:49px;border:1px solid #aaaeb3;border-radius:50%}#amp-story-controls .amp-story-controls-reorder{display:inline-block;line-height:1}.amp-story-controls-reorder-cancel{padding-top:5px;padding-bottom:5px;margin-right:20px;display:inline-flex}.amp-story-controls-reorder-save{float:right}.amp-story-order-controls .amp-story-controls-description{display:none}.amp-story-order-controls-wrap{display:flex;align-items:center;justify-content:space-between}.amp-story-order-controls-wrap .components-icon-button{display:block;-ms-grid-row-align:start;align-self:start;text-align:center;color:inherit}.amp-story-order-controls-wrap .components-icon-button svg{display:block;margin:0 auto}.wp-block [draggable=true]{-webkit-user-select:auto}.wp-block [draggable=true]:hover{cursor:grab}.wp-block[data-type="amp/amp-story-text"] .editor-rich-text__editable:hover,.wp-block[data-type="core/quote"] .editor-rich-text__editable:hover{cursor:default}#amp-story-controls .editor-inserter__amp-inserter{height:48px;width:48px;background-color:#0085ba;border-radius:50%;margin-right:10px}body.admin-color-sunrise #amp-story-controls .editor-inserter__amp-inserter{background-color:#d1864a}body.admin-color-ocean #amp-story-controls .editor-inserter__amp-inserter{background-color:#a3b9a2}body.admin-color-midnight #amp-story-controls .editor-inserter__amp-inserter{background-color:#e14d43}body.admin-color-ectoplasm #amp-story-controls .editor-inserter__amp-inserter{background-color:#a7b656}body.admin-color-coffee #amp-story-controls .editor-inserter__amp-inserter{background-color:#c2a68c}body.admin-color-blue #amp-story-controls .editor-inserter__amp-inserter{background-color:#82b4cb}body.admin-color-light #amp-story-controls .editor-inserter__amp-inserter{background-color:#0085ba}#amp-story-controls .editor-inserter__amp-inserter svg{margin:0 auto}.autocomplete__wrapper{position:relative}.autocomplete__hint,.autocomplete__input{-webkit-appearance:none;border:2px solid;border-radius:0;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;margin-bottom:0;width:100%}.autocomplete__input{background-color:transparent;position:relative}.autocomplete__hint{color:#bfc1c3;position:absolute}.autocomplete__input--default{padding:4px}.autocomplete__input--focused{outline-offset:0;outline:3px solid #ffbf47}.autocomplete__input--show-all-values{padding:4px 34px 4px 4px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#34384b;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{box-shadow:0 2px 6px rgba(0,0,0,.256863);left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-left-width:0;border-bottom:1px solid #bfc1c3;border-right-width:0;border-top-width:1px;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#005ea5;border-color:#005ea5;color:#fff;outline:none}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:16px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:4px}@media (min-width:641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:19px;line-height:1.31579}}.autocomplete__wrapper .autocomplete__menu{border-color:#007cba;width:101%;border-bottom-left-radius:4px!important;border-bottom-right-radius:4px!important;margin-top:-3px;padding-top:3px;max-height:200px}.autocomplete__icon{position:absolute;top:2px;right:0;padding:4px;box-shadow:none!important;border:0}.autocomplete__option{border-bottom:0;padding:6px 8px;font-size:13px}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#0071a1;border-color:#0071a1}.autocomplete__wrapper .autocomplete__input.autocomplete__input--focused{color:#191e23;border-color:#007cba;box-shadow:0 0 0 1px #007cba;outline:2px solid transparent}.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-mover{display:none!important}.components-draggable__clone .block-editor-block-list__block .rotatable-box-wrap{display:none;opacity:0}.editor-inner-blocks .block-editor-block-list__block.is-rotating .block-editor-block-contextual-toolbar,.editor-inner-blocks .block-editor-block-list__block.is-rotating .block-editor-block-list__breadcrumb,.editor-inner-blocks .block-editor-block-list__block.is-rotating .block-editor-block-list__insertion-point{display:none!important}.block-editor-block-list__block .rotatable-box-wrap{position:absolute;right:-14px;bottom:-44px;left:calc(50% - 15px);width:30px;height:44px;z-index:1}.block-editor-block-list__block .rotatable-box-wrap:before{display:block;content:"";cursor:inherit;border-left:1px solid rgba(66,88,99,.4);height:24px;width:0;margin:3px auto 0;position:relative;right:-1px}.block-editor-block-list__block .rotatable-box-wrap .rotatable-box-wrap__handle{display:block;opacity:1;transition:opacity .3s;position:absolute;bottom:0;left:calc(50% - 24px);width:50px;height:24px;padding:4px;cursor:move;background:transparent;border:none}.rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#0085ba;border:2px solid #fff;border-radius:50%;content:"";cursor:inherit;display:block;height:15px;width:15px;margin:0 auto}body.admin-color-sunrise .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#d1864a}body.admin-color-ocean .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#a3b9a2}body.admin-color-midnight .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#e14d43}body.admin-color-ectoplasm .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#a7b656}body.admin-color-coffee .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#c2a68c}body.admin-color-blue .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#82b4cb}body.admin-color-light .rotatable-box-wrap .rotatable-box-wrap__handle:before{background:#0085ba}.block-editor-inner-blocks .wp-block.is-typing .rotatable-box-wrap,.block-editor-inner-blocks .wp-block .rotatable-box-wrap{display:block;opacity:0;transition:opacity .3s}.block-editor-inner-blocks .wp-block .amp-story-resize-container.is-resizing .rotatable-box-wrap,.block-editor-inner-blocks .wp-block.is-typing .rotatable-box-wrap{opacity:0}.block-editor-inner-blocks .wp-block.is-rotating .rotatable-box-wrap,.block-editor-inner-blocks .wp-block.is-selected .rotatable-box-wrap,.block-editor-inner-blocks .wp-block:hover .rotatable-box-wrap{opacity:1}#amp-story-right-click-menu{position:absolute}#amp-story-right-click-menu .amp-story-right-click-menu__popover{position:absolute;top:0!important;left:0!important}.amp-story-right-click-menu__popover.is-top.is-from-bottom .components-popover__content{margin-bottom:-8px}.amp-right-click-menu__container{position:absolute}.components-preview-picker__buttons{display:flex;justify-content:space-between;align-items:center}.components-preview-picker__dropdown-content .components-button{display:block;position:relative;padding:10px 20px 10px 40px;width:100%;text-align:left}.components-preview-picker__dropdown-content .components-button:hover{color:#191e23;border:none;box-shadow:none;background:#f3f4f5}.components-preview-picker__dropdown-content .components-button:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.components-preview-picker__dropdown-content .components-button .dashicon{position:absolute;top:calc(50% - 10px);left:10px}.components-preview-picker__dropdown-content .components-button .editor-block-icon{position:absolute;top:calc(50% - 10px);right:10px}.components-preview-picker__buttons .components-preview-picker__selector{background:none;position:relative;width:200px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:4px;border:1px solid #8d96a0}.components-preview-picker__buttons .components-preview-picker__selector:focus{color:#191e23;border-color:#00a0d2;box-shadow:0 0 0 1px #00a0d2;outline:2px solid transparent;outline-offset:-2px}.components-preview-picker__buttons .components-preview-picker__selector:after{content:"";pointer-events:none;display:block;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:5px solid;margin-left:4px;margin-right:2px;right:8px;top:12px;position:absolute}.amp__block-editor-inserter__menu.block-editor-inserter__menu{flex-direction:column}.amp-story-resize-container .components-resizable-box__handle{display:block;opacity:0;transition:opacity .3s}.block-editor-inner-blocks .wp-block.is-typing .amp-story-resize-container .components-resizable-box__handle{opacity:0}.block-editor-inner-blocks .wp-block .amp-story-resize-container.is-resizing .components-resizable-box__handle,.block-editor-inner-blocks .wp-block.is-selected .amp-story-resize-container .components-resizable-box__handle,.block-editor-inner-blocks .wp-block:hover .amp-story-resize-container .components-resizable-box__handle{opacity:1}.amp-story-resize-container .components-resizable-box__handle-top{top:-14px!important}.amp-story-resize-container .components-resizable-box__handle-right{right:-14px!important}.amp-story-resize-container .components-resizable-box__handle-bottom{bottom:-14px!important}.amp-story-resize-container .components-resizable-box__handle-left{left:-14px!important}.amp-story-editor__rotate-container .components-resizable-box__handle{display:none!important}.amp-story-resize-container .amp-story-editor__rotate-container{height:100%}.wp-block-image .components-resizable-box__container img{height:100%;-o-object-fit:cover;object-fit:cover;-webkit-user-drag:none}.block-editor-block-list__block[data-type="core/image"] img{-webkit-user-drag:none}.editor-block-list__layout div[data-type="amp/amp-story-cta"]{top:80%;left:0;width:100%;height:20%}.block-editor-block-list__layout div[data-type="amp/amp-story-cta"]:not(#id){margin-top:0}.editor-block-list__layout div[data-type="amp/amp-story-cta"] img{max-height:86px}.amp-block-story-cta__link img{-o-object-fit:contain;object-fit:contain}.amp-block-story-cta__link .amp-text-placeholder{opacity:.62}div[data-type="amp/amp-story-cta"] .amp-overlay{height:100%;width:100%;z-index:1000;position:absolute;top:0;left:0;right:0;bottom:0}.editor-block-list__layout div[data-type="amp/amp-story-cta"] .editor-block-mover{display:none}.block-editor-block-list__block[data-type="amp/amp-story-cta"] .block-editor-block-list__block-edit{--cta-margin:3px;height:calc(100% + var(--cta-margin)*2);width:100%;bottom:var(--cta-margin)}.block-editor-block-list__layout .block-editor-block-list__block[data-type="amp/amp-story-cta"] .block-editor-block-list__block-edit:before{top:0;left:0;bottom:0;right:0}.block-editor-block-list__block[data-type="amp/amp-story-cta"] .block-editor-block-contextual-toolbar{margin-left:-1px;margin-right:0}.amp-story-cta-button{position:absolute}.wp-block-amp-amp-story-cta{display:inline-block;padding:5px;margin-bottom:0;position:relative}.wp-block-amp-amp-story-cta [contenteditable]{cursor:text}.wp-block-amp-amp-story-cta .block-editor-rich-text__editable[data-is-placeholder-visible=true]+.block-editor-rich-text__editable{opacity:.8}.block-editor-block-preview__content .wp-block-amp-amp-story-cta{max-width:100%}.wp-block-amp-amp-story-cta .block-editor-rich-text__editable code{background:inherit;color:inherit}.wp-block-amp-amp-story-cta .block-editor-rich-text__editable[data-is-placeholder-visible=true]{height:auto}.wp-block-amp-amp-story-cta .amp-block-story-cta__link{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.amp-block-story-cta__link{border:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:18px;margin:0;padding:7px 19px 0;text-align:center;text-decoration:none;white-space:normal;word-wrap:break-word}.amp-block-story-cta__inline-link{background:#fff;display:flex;flex-wrap:wrap;align-items:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:374px;position:absolute;z-index:10;margin-top:-.5em}.is-dragging-components-draggable .amp-block-story-cta__inline-link{display:none}.amp-block-story-cta__inline-link .block-editor-url-input{width:auto}.amp-block-story-cta__inline-link .block-editor-url-input__suggestions{width:302px;z-index:10}.amp-block-story-cta__inline-link>.dashicon{width:36px}.amp-block-story-cta__inline-link .dashicon{color:#8f98a1}.amp-block-story-cta__inline-link .block-editor-url-input input[type=text]:-ms-input-placeholder{color:#8f98a1}.amp-block-story-cta__inline-link .block-editor-url-input input[type=text]::-ms-input-placeholder{color:#8f98a1}.amp-block-story-cta__inline-link .block-editor-url-input input[type=text]::placeholder{color:#8f98a1}.amp-page-child-block[data-type="amp/amp-story-page-attachment"]{top:85%;left:0;width:100%;height:15%}.amp-page-child-block[data-type="amp/amp-story-page-attachment"]>[data-type="amp/amp-story-page-attachment"]{height:100%}div[data-type="amp/amp-story-page-attachment"] .components-notice.is-warning{position:absolute}div[data-type="amp/amp-story-page-attachment"] .attachment-wrapper,div[data-type="amp/amp-story-page-attachment"] .editor-block-list__block-edit.block-editor-block-list__block-edit{width:100%;height:100%}div[data-type="amp/amp-story-page-attachment"] .attachment-wrapper{overflow:hidden}@keyframes slide-up{0%{opacity:0;transform:translateY(85%)}to{opacity:1;transform:translateY(0)}}.attachment-wrapper{animation:slide-up .5s ease;-moz-animation:slide-up .5s;-webkit-animation:slide-up .5s;-o-animation:slide-up .5s}.amp-page-attachment-content{background:#fff;overflow-y:auto;height:100%;padding:10px}.attachment-header{display:flex;position:relative;height:40px!important;background:#fff;border-radius:8px 8px 0 0;box-shadow:0 1px 2px 1px rgba(0,0,0,.12);z-index:1}.amp-story-page-attachment-title{font-family:Roboto,sans-serif;width:calc(100% - 80px);padding-right:40px;color:rgba(0,0,0,.87);font-size:16px;line-height:40px;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.amp-story-page-attachment-close-button{display:block;margin:8px;height:24px;width:24px;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 36 36' fill='rgba(0, 0, 0, 0.54)'%3E%3Cpath d='M28.5 9.62L26.38 7.5 18 15.88 9.62 7.5 7.5 9.62 15.88 18 7.5 26.38l2.12 2.12L18 20.12l8.38 8.38 2.12-2.12L20.12 18z'/%3E%3Cpath d='M0 0h36v36H0z' fill='none'/%3E%3C/svg%3E");color:rgba(0,0,0,.87);cursor:pointer}div[data-type="amp/amp-story-page-attachment"] .open-attachment-wrapper .amp-story-page-attachment__text{width:auto!important;padding:0 32px;margin:12px 0 20px;height:16px!important;max-width:calc(100% - 64px);color:#fff;font-family:Roboto,sans-serif;font-size:16px;font-weight:700;letter-spacing:.3px;line-height:16px;overflow:hidden;text-overflow:ellipsis;text-shadow:0 0 6px rgba(0,0,0,.36);white-space:nowrap}div[data-type="amp/amp-story-page-attachment"] .attachment-container{position:relative;height:553px;overflow:hidden;transform:translateY(-85%)}.attachment-container .components-spinner{margin-right:calc(50% - 9px);margin-left:calc(50% - 9px)}.attachment-container .failed-message{font-size:14px}.amp-story-page-open-attachment-icon{position:relative;display:block;height:32px;width:32px;cursor:pointer;background:#fff;border-radius:50%}.amp-story-page-open-attachment-bar{position:absolute;display:block;height:3px;width:12px;border-radius:3px;top:14px;background:#000}.amp-story-page-open-attachment-bar-left{left:6px;transform:rotate(-40deg)}.amp-story-page-open-attachment-bar-right{right:6px;transform:rotate(40deg)}.open-attachment-wrapper{display:flex;align-items:center;justify-content:center;flex-direction:column;position:absolute;bottom:0;left:0;width:100%;background:linear-gradient(0,rgba(0,0,0,.15),transparent);z-index:3}.remove-attachment-post{position:absolute;right:10px;top:10px}.amp-page-attachment-content .wp-block-columns{display:flex;margin-bottom:28px;flex-wrap:wrap}@media (min-width:782px){.amp-page-attachment-content .wp-block-columns{flex-wrap:nowrap}}.amp-page-attachment-content .wp-block-column{margin-bottom:1em;flex-grow:1;min-width:0;word-break:break-word;word-wrap:break-word}@media (max-width:599px){.amp-page-attachment-content .wp-block-column{flex-basis:100%!important}}.amp-page-attachment-content .wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.amp-page-attachment-content .wp-block-columns.are-vertically-aligned-center{align-items:center}.amp-page-attachment-content .wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}.amp-page-attachment-content .wp-block-column.is-vertically-aligned-top{align-self:flex-start}.amp-page-attachment-content .wp-block-column.is-vertically-aligned-center{-ms-grid-row-align:center;align-self:center}.amp-page-attachment-content .wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.block-editor-block-list__layout .block-editor-block-list__block[data-type="amp/amp-story-page"]>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb{display:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit:before{left:-3px;top:-3px;right:-3px;bottom:-3px}.block-editor-block-list__layout .block-editor-block-list__block[data-type="amp/amp-story-page"]>.block-editor-block-list__block-edit>.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{left:18px;top:11px}[data-type="amp/amp-story-page"]>.editor-block-list__block-edit>.editor-block-mover{display:none!important}.editor-block-list__layout div[data-type="amp/amp-story-page"]{padding:0;margin:60px 30px 0}@media (min-width:600px){div[data-type="amp/amp-story-page"] .editor-block-list__block{margin:0;padding:0}}#amp-story-editor .wp-block[data-type="amp/amp-story-page"]{background:#fff}#amp-story-editor .wp-block[data-type="amp/amp-story-page"],#amp-story-editor .wp-block[data-type="amp/amp-story-page"] .editor-inner-blocks .editor-block-list__layout:first-of-type{width:100%;max-width:328px;height:553px;position:relative}#amp-story-editor .wp-block[data-type="amp/amp-story-page"] .editor-block-list__layout>.block-list-appender{width:316px;margin:0 auto;display:none}.editor-block-list__layout .editor-block-list__layout .editor-block-list__block .editor-block-list__block-edit,.editor-block-list__layout div[data-type="amp/amp-story-page"].editor-block-list__block .editor-block-list__block-edit{margin:0}.editor-block-list__layout div[data-type="amp/amp-story-page"]{flex:0 0 auto;position:relative;transition:border .3s linear}.editor-block-list__layout div[data-type="amp/amp-story-page"]+div[data-type="amp/amp-story-page"]{margin-left:20px}.editor-block-list__layout [data-type="amp/amp-story-page"].amp-page-inactive{opacity:.5}.editor-block-list__layout [data-type="amp/amp-story-page"].amp-page-inactive>div{pointer-events:none}.editor-block-list__layout div[data-type="amp/amp-story-page"] .amp-story-page-number{position:absolute;top:-3em;text-transform:uppercase;font-weight:500;font-size:12px;color:#666;letter-spacing:1px}.editor-block-list__layout div[data-type="amp/amp-story-page"] .amp-story-page-number+div .editor-inner-blocks.block-editor-inner-blocks{height:553px}.editor-styles-wrapper [data-block]{margin-top:0;margin-bottom:0}.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-dragging,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-focused,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-rotating,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-selected,.editor-styles-wrapper #amp-story-editor .wp-block .wp-block.is-typing{z-index:100}.block-editor-block-list__block.amp-page-inactive>.block-editor-block-list__block-edit:before{box-shadow:none;border:1px solid #e3e5e7}.block-editor-block-list__block.amp-page-active.has-child-selected>.block-editor-block-list__block-edit:before,.block-editor-block-list__block.amp-page-active.is-selected>.block-editor-block-list__block-edit:before,.block-editor-block-list__block.amp-page-active>.block-editor-block-list__block-edit:before,.block-editor-inner-blocks .wp-block.is-rotating .block-editor-block-list__block-edit:before,.block-editor-inner-blocks .wp-block.is-selected .block-editor-block-list__block-edit:before,.block-editor-inner-blocks .wp-block:hover .block-editor-block-list__block-edit:before{box-shadow:none;border:1px solid rgba(66,88,99,.4)}.block-editor-block-list__block.amp-page-is-animating .block-editor-inner-blocks{overflow:hidden}.block-editor-block-list__block.amp-page-is-animating .block-editor-inner-blocks .amp-story-resize-container .components-resizable-box__handle,.block-editor-block-list__block.amp-page-is-animating .block-editor-inner-blocks .block-editor-block-list__block-edit:before,.block-editor-block-list__block.amp-page-is-animating .block-editor-inner-blocks .rotatable-box-wrap{content:none;visibility:hidden;display:none;opacity:0}div[data-type="amp/amp-story-page"] .editor-inner-blocks .amp-page-child-block{z-index:10}div[data-type="amp/amp-story-page"] .editor-inner-blocks .amp-page-child-block:not([data-type="amp/amp-story-cta"]){position:absolute}div[data-type="amp/amp-story-page"] .editor-inner-blocks .amp-page-child-block[data-type="amp/amp-story-cta"]{height:100%}.editor-block-list__block .editor-block-list__layout{margin:0}.editor-block-list__layout div[data-type="amp/amp-story-page"][data-amp-selected=parent] .editor-block-drop-zone{height:603px;--dropzone-padding:400px;--page-width:328px;width:calc(var(--dropzone-padding) + var(--page-width));margin:0;left:calc(var(--dropzone-padding)/-2);top:-50px;border:none;background:transparent}.editor-block-list__layout div[data-type="amp/amp-story-page"][data-amp-selected=parent]>.editor-block-drop-zone .components-drop-zone__content{display:none}div[data-type="amp/amp-story-page"] .wp-block-image{margin-top:0}.edit-post-layout[data-block-name="core/embed"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2),.edit-post-layout[data-block-name="core/image"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2),.edit-post-layout[data-block-name="core/pullquote"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2),.edit-post-layout[data-block-name="core/video"] .edit-post-header-toolbar__block-toolbar .block-editor-block-toolbar>.components-toolbar:nth-child(2){display:none}.amp-page-inactive[data-type="amp/amp-story-page"] .block-list-appender{display:none}.block-editor-block-list__block-edit .components-draggable__clone{position:absolute}.wp-block[data-type="core/pullquote"][data-align=full],.wp-block[data-type="core/pullquote"][data-align=wide]{width:100%;max-width:100%}.block-editor-inner-blocks .wp-block[data-type="core/pullquote"] .block-editor-block-list__block-edit{display:block}#amp-story-editor .block-editor-block-list__layout .block-editor-block-list__block[data-align=full]{margin:0}.editor-amp-story-page-video-wrap{position:absolute;overflow:hidden;width:100%;height:100%}.editor-amp-story-page-background.editor-post-featured-image__preview img,.editor-amp-story-page-video{-o-object-fit:cover;object-fit:cover}.editor-amp-story-page-video{position:absolute;top:0;left:0;right:0;bottom:0;min-width:100%;min-height:100%}.editor-amp-story-page-background{display:block}.editor-amp-story-page-background~.components-button{margin-top:1em;margin-right:8px}#editor-amp-story-page-poster__help{margin-top:0}.edit-post-settings-sidebar__panel-block .components-focal-point-picker_position-display-container>.components-base-control{margin-bottom:0}.editor-block-list__layout [data-type="amp/amp-story-page"] .block-editor-block-list__block .block-editor-warning{transform:none}.editor-block-list__layout [data-type="amp/amp-story-page"] .block-editor-block-list__block.is-selected .block-editor-warning{border:none}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author{margin:0;padding:7px!important;height:100%}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author.is-amp-fit-text{line-height:1.15;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author:not(.is-amp-fit-text){display:block;font-size:16px}.wp-block[data-type="amp/amp-story-post-author"] .wp-block-amp-amp-story-post-author.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.wp-block[data-type="amp/amp-story-post-author"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-post-author"] .block-mover,.wp-block[data-type="amp/amp-story-post-author"] .block-mover div{height:100%}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date{margin:0;padding:7px!important;height:100%}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date.is-amp-fit-text{line-height:1.15;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date:not(.is-amp-fit-text){display:block;font-size:16px}.wp-block[data-type="amp/amp-story-post-date"] .wp-block-amp-amp-story-post-date.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.wp-block[data-type="amp/amp-story-post-date"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-post-date"] .block-mover,.wp-block[data-type="amp/amp-story-post-date"] .block-mover div{height:100%}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title{margin:0;padding:7px!important;height:100%}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title.is-amp-fit-text{line-height:1.15;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;font-weight:700}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title:not(.is-amp-fit-text){display:block;font-size:16px}.wp-block[data-type="amp/amp-story-post-title"] .wp-block-amp-amp-story-post-title.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.wp-block[data-type="amp/amp-story-post-title"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-post-title"] .block-mover,.wp-block[data-type="amp/amp-story-post-title"] .block-mover div{height:100%}.wp-block[data-type="amp/amp-story-text"] p{margin:0}.wp-block-amp-story-text .block-editor-rich-text__editable{padding:7px!important;width:100%}.is-not-editing .wp-block-amp-amp-story-text.block-editor-rich-text__editable.editor-rich-text__editable{cursor:grab}.wp-block-amp-story-text-wrapper.is-empty-draggable-text,.wp-block-amp-story-text-wrapper:not(.with-line-height),.wp-block-amp-story-text-wrapper:not(.with-line-height) div{height:100%}.wp-block-amp-story-text-wrapper .amp-overlay{height:100%;width:100%;z-index:1000;position:absolute;top:0;left:0;right:0;bottom:0}.wp-block-amp-story-text-wrapper.is-empty-draggable-text .amp-text-placeholder{opacity:.62}.editor-styles-wrapper #amp-story-editor .wp-block .wp-block[data-type="amp/amp-story-text"]{width:auto}.wp-block[data-type="amp/amp-story-text"] .block-editor-rich-text__editable,div[data-type="amp/amp-story-page"] .block-editor-inner-blocks .block-editor-block-list__block-edit{display:inline-block}.with-line-height .wp-block-amp-story-text{position:relative}.wp-block[data-type="amp/amp-story-text"] .wp-block-amp-story-text .is-amp-fit-text{display:inline-block;vertical-align:middle;line-height:1.15}.wp-block[data-type="amp/amp-story-text"] .wp-block-amp-story-text .is-amp-fit-text.is-measuring{height:auto!important;width:auto!important;position:absolute!important}.editor-block-list__layout .wp-block[data-type="amp/amp-story-text"] .editor-block-list__block-edit:before{position:absolute}.wp-block[data-type="amp/amp-story-text"] .amp-story-editor__rotate-container,.wp-block[data-type="amp/amp-story-text"] .block-mover{height:100%}.components-background-color-popover-content{padding:16px}.components-background-color-indicator{position:absolute;background:transparent;height:3px;width:20px;bottom:6px;left:auto;right:auto;margin-left:-1px}.components-background-color-indicator:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0}.components-text-color-popover-content{padding:16px}.components-text-color-indicator{position:absolute;background:transparent;height:3px;width:20px;bottom:6px;left:auto;right:auto;margin-left:1px}.components-text-color-indicator:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0}
assets/css/amp-stories-editor-rtl.css DELETED
@@ -1,244 +0,0 @@
1
- :root {
2
- --preview-scale: 1;
3
- --preview-translateX: 0%;
4
- --preview-translateY: 0%;
5
- }
6
-
7
- /*
8
- * 0. General editor layout styles.
9
- */
10
- .edit-post-visual-editor {
11
- padding-right: 50px;
12
- padding-left: 50px;
13
- }
14
-
15
- .editor-styles-wrapper .wp-block:not([data-font-family]),
16
- .editor-styles-wrapper #amp-story-editor,
17
- .block-editor-block-preview .block-editor-block-preview__content > div {
18
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
19
- }
20
-
21
- @media screen and (min-width: 1280px) {
22
-
23
- #amp-story-editor {
24
- min-width: 820px;
25
- }
26
- }
27
-
28
- /*
29
- * Remove alpha channel from placeholder background color
30
- *
31
- * Makes editing blocks easier when their on top of another block.
32
- */
33
- #amp-story-editor .components-placeholder {
34
- background: #f3f3f3;
35
- }
36
-
37
- /* Completely hide default appenders/inserters */
38
- #amp-story-editor .block-editor-block-list__block .block-editor-block-list__empty-block-inserter,
39
- #amp-story-editor .block-editor-block-list__layout .block-editor-default-block-appender,
40
- #amp-story-editor .block-editor-block-list__block > .block-editor-block-list__insertion-point {
41
- display: none !important;
42
- }
43
-
44
- /* Removes margin from block wrappers */
45
- .editor-styles-wrapper #amp-story-editor [data-block] {
46
- margin-top: 0;
47
- margin-bottom: 0;
48
- }
49
-
50
- /* Quote block adjustments */
51
- .wp-block-quote__citation {
52
- font-size: 16px;
53
- margin-top: 24px;
54
- display: block;
55
- }
56
-
57
- .editor-styles-wrapper .wp-block-quote p {
58
- line-height: 34px;
59
- font-weight: bold;
60
- font-size: 30px;
61
- font-family: "Source Sans Pro", sans-serif;
62
- }
63
-
64
- .wp-block-quote,
65
- .wp-block-quote[style*="text-align: right"] {
66
- border: none;
67
- padding-top: 100px;
68
- }
69
-
70
- .block-editor-block-list__layout .block-editor-block-list__block [data-type="core/quote"] .block-editor-block-list__block-edit::before {
71
- left: -5px;
72
- right: -5px;
73
- top: -5px;
74
- bottom: -5px;
75
- }
76
-
77
- :not(.amp-story-page-preview) :not(.amp-stories__editor-inserter__results) .components-disabled .wp-block-quote.is-style-white {
78
- background-color: #313131;
79
- }
80
-
81
- .amp-story-reorderer-item .amp-story-page-preview .components-disabled .wp-block-quote.is-style-white,
82
- .amp-stories__editor-inserter__menu .amp-stories__editor-inserter__results .components-disabled .wp-block-quote.is-style-white {
83
- background-color: initial;
84
- }
85
-
86
- /*
87
- * Fix issue where images wit large max-width/max-height visually break the editor.
88
- *
89
- * @see https://github.com/ampproject/amp-wp/pull/2119
90
- * @see https://github.com/WordPress/gutenberg/issues/7180
91
- */
92
-
93
- .wp-block .components-resizable-box__container + .__resizable_base__ { /* stylelint-disable-line selector-class-pattern */
94
- right: 0 !important;
95
- }
96
-
97
- .wp-block[data-type="core/list"] .amp-story-editor__rotate-container,
98
- .wp-block[data-type="core/list"] .block-mover,
99
- .wp-block[data-type="core/list"] .block-mover div {
100
- height: 100%;
101
- }
102
-
103
- .wp-block[data-type="core/code"] .amp-story-editor__rotate-container,
104
- .wp-block[data-type="core/code"] .block-mover,
105
- .wp-block[data-type="core/code"] .block-mover div {
106
- height: 100%;
107
- }
108
-
109
- .wp-block[data-type="core/video"] .block-mover,
110
- .wp-block[data-type="core/video"] .block-mover div {
111
- height: 100%;
112
- }
113
-
114
- .wp-block[data-type="core/video"] .block-mover .editor-rich-text.block-editor-rich-text,
115
- .wp-block[data-type="core/video"] .block-mover .editor-rich-text.block-editor-rich-text div {
116
- height: initial;
117
- }
118
-
119
- .wp-block[data-type="core/video"] .wp-block-video {
120
- margin: 0;
121
- }
122
-
123
- .wp-block-code textarea {
124
- white-space: nowrap;
125
- }
126
-
127
- .wp-block[data-type="core/preformatted"] div[draggable="true"],
128
- .wp-block[data-type="core/verse"] div[draggable="true"] {
129
- border: 5px solid transparent;
130
- }
131
-
132
- .wp-block-preformatted .block-editor-rich-text__editable,
133
- .wp-block-verse .block-editor-rich-text__editable {
134
- white-space: nowrap !important;
135
- padding: 5px;
136
- }
137
-
138
- .wp-block[data-type="core/pullquote"] .block-mover,
139
- .wp-block[data-type="core/pullquote"] .block-mover div,
140
- .wp-block-pullquote {
141
- height: 100%;
142
- }
143
-
144
- .wp-block[data-type="core/table"] .block-mover,
145
- .wp-block[data-type="core/table"] .block-mover div,
146
- .wp-block-table {
147
- height: 100%;
148
- }
149
-
150
- .wp-block[data-type="core/table"] .block-mover .components-placeholder,
151
- .wp-block[data-type="core/table"] .block-mover .components-placeholder div {
152
- height: initial;
153
- }
154
-
155
- .block-library-list ul li,
156
- .wp-block-verse pre,
157
- .wp-block-preformatted pre {
158
- cursor: initial;
159
- }
160
-
161
- .block-library-list {
162
- padding: 5px;
163
- }
164
-
165
- .block-library-list ul {
166
- margin: 0;
167
- }
168
-
169
- .wp-block-verse pre,
170
- .wp-block-preformatted pre {
171
- margin: 0;
172
- }
173
-
174
- /**
175
- * Hide option to toggle fixed toolbar.
176
- */
177
- .edit-post-more-menu__content .components-menu-group:first-of-type .components-button:first-of-type {
178
- display: none;
179
- }
180
-
181
- /**
182
- * Hide Block Manager option
183
- */
184
- .edit-post-more-menu__content .components-menu-group:nth-last-of-type(2) div[role="group"] > .components-button:first-child {
185
- display: none;
186
- }
187
-
188
- /*
189
- * 100. Shame
190
- */
191
-
192
- /*
193
- * 100.1 Gutenberg - Warning div not clickable
194
- * Fixes Gutenberg bug where an extra wrapping div is causing no pointer events on the notice layer.
195
- */
196
-
197
- .editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit > :not(.editor-warning) {
198
- pointer-events: all;
199
- }
200
-
201
- .editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit > div > div:not(.editor-warning) {
202
- pointer-events: none;
203
- }
204
-
205
- div[data-amp-caption="noCaption"] figure.wp-block-image figcaption,
206
- div[data-amp-caption="noCaption"] .wp-block-video figcaption {
207
- display: none;
208
- }
209
-
210
- .wp-block .is-amp-fit-text {
211
- overflow-wrap: normal;
212
- }
213
-
214
- .wp-block-video,
215
- .wp-block-video .components-disabled {
216
- height: 100%;
217
- }
218
-
219
- .wp-block-video .components-disabled {
220
- overflow: hidden;
221
- }
222
-
223
- .wp-block-video video {
224
- height: 100%;
225
- width: 100%;
226
- }
227
-
228
- /* If the Media Library has 2 notices, like for wrong video file type and size, prevent them from covering the media. */
229
- .media-frame.has-two-notices .media-frame-content {
230
- bottom: 120px;
231
- }
232
-
233
- /* More space for notices in the sidebar */
234
-
235
- .components-panel__body .components-notice {
236
- margin-right: 0;
237
- margin-left: 0;
238
- }
239
-
240
- /* Custom video block poster image */
241
-
242
- .video-block__poster-image.editor-post-featured-image__preview img {
243
- object-fit: cover;
244
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/amp-stories-editor.css DELETED
@@ -1,244 +0,0 @@
1
- :root {
2
- --preview-scale: 1;
3
- --preview-translateX: 0%;
4
- --preview-translateY: 0%;
5
- }
6
-
7
- /*
8
- * 0. General editor layout styles.
9
- */
10
- .edit-post-visual-editor {
11
- padding-left: 50px;
12
- padding-right: 50px;
13
- }
14
-
15
- .editor-styles-wrapper .wp-block:not([data-font-family]),
16
- .editor-styles-wrapper #amp-story-editor,
17
- .block-editor-block-preview .block-editor-block-preview__content > div {
18
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
19
- }
20
-
21
- @media screen and (min-width: 1280px) {
22
-
23
- #amp-story-editor {
24
- min-width: 820px;
25
- }
26
- }
27
-
28
- /*
29
- * Remove alpha channel from placeholder background color
30
- *
31
- * Makes editing blocks easier when their on top of another block.
32
- */
33
- #amp-story-editor .components-placeholder {
34
- background: #f3f3f3;
35
- }
36
-
37
- /* Completely hide default appenders/inserters */
38
- #amp-story-editor .block-editor-block-list__block .block-editor-block-list__empty-block-inserter,
39
- #amp-story-editor .block-editor-block-list__layout .block-editor-default-block-appender,
40
- #amp-story-editor .block-editor-block-list__block > .block-editor-block-list__insertion-point {
41
- display: none !important;
42
- }
43
-
44
- /* Removes margin from block wrappers */
45
- .editor-styles-wrapper #amp-story-editor [data-block] {
46
- margin-top: 0;
47
- margin-bottom: 0;
48
- }
49
-
50
- /* Quote block adjustments */
51
- .wp-block-quote__citation {
52
- font-size: 16px;
53
- margin-top: 24px;
54
- display: block;
55
- }
56
-
57
- .editor-styles-wrapper .wp-block-quote p {
58
- line-height: 34px;
59
- font-weight: bold;
60
- font-size: 30px;
61
- font-family: "Source Sans Pro", sans-serif;
62
- }
63
-
64
- .wp-block-quote,
65
- .wp-block-quote[style*="text-align: right"] {
66
- border: none;
67
- padding-top: 100px;
68
- }
69
-
70
- .block-editor-block-list__layout .block-editor-block-list__block [data-type="core/quote"] .block-editor-block-list__block-edit::before {
71
- right: -5px;
72
- left: -5px;
73
- top: -5px;
74
- bottom: -5px;
75
- }
76
-
77
- :not(.amp-story-page-preview) :not(.amp-stories__editor-inserter__results) .components-disabled .wp-block-quote.is-style-white {
78
- background-color: #313131;
79
- }
80
-
81
- .amp-story-reorderer-item .amp-story-page-preview .components-disabled .wp-block-quote.is-style-white,
82
- .amp-stories__editor-inserter__menu .amp-stories__editor-inserter__results .components-disabled .wp-block-quote.is-style-white {
83
- background-color: initial;
84
- }
85
-
86
- /*
87
- * Fix issue where images wit large max-width/max-height visually break the editor.
88
- *
89
- * @see https://github.com/ampproject/amp-wp/pull/2119
90
- * @see https://github.com/WordPress/gutenberg/issues/7180
91
- */
92
-
93
- .wp-block .components-resizable-box__container + .__resizable_base__ { /* stylelint-disable-line selector-class-pattern */
94
- left: 0 !important;
95
- }
96
-
97
- .wp-block[data-type="core/list"] .amp-story-editor__rotate-container,
98
- .wp-block[data-type="core/list"] .block-mover,
99
- .wp-block[data-type="core/list"] .block-mover div {
100
- height: 100%;
101
- }
102
-
103
- .wp-block[data-type="core/code"] .amp-story-editor__rotate-container,
104
- .wp-block[data-type="core/code"] .block-mover,
105
- .wp-block[data-type="core/code"] .block-mover div {
106
- height: 100%;
107
- }
108
-
109
- .wp-block[data-type="core/video"] .block-mover,
110
- .wp-block[data-type="core/video"] .block-mover div {
111
- height: 100%;
112
- }
113
-
114
- .wp-block[data-type="core/video"] .block-mover .editor-rich-text.block-editor-rich-text,
115
- .wp-block[data-type="core/video"] .block-mover .editor-rich-text.block-editor-rich-text div {
116
- height: initial;
117
- }
118
-
119
- .wp-block[data-type="core/video"] .wp-block-video {
120
- margin: 0;
121
- }
122
-
123
- .wp-block-code textarea {
124
- white-space: nowrap;
125
- }
126
-
127
- .wp-block[data-type="core/preformatted"] div[draggable="true"],
128
- .wp-block[data-type="core/verse"] div[draggable="true"] {
129
- border: 5px solid transparent;
130
- }
131
-
132
- .wp-block-preformatted .block-editor-rich-text__editable,
133
- .wp-block-verse .block-editor-rich-text__editable {
134
- white-space: nowrap !important;
135
- padding: 5px;
136
- }
137
-
138
- .wp-block[data-type="core/pullquote"] .block-mover,
139
- .wp-block[data-type="core/pullquote"] .block-mover div,
140
- .wp-block-pullquote {
141
- height: 100%;
142
- }
143
-
144
- .wp-block[data-type="core/table"] .block-mover,
145
- .wp-block[data-type="core/table"] .block-mover div,
146
- .wp-block-table {
147
- height: 100%;
148
- }
149
-
150
- .wp-block[data-type="core/table"] .block-mover .components-placeholder,
151
- .wp-block[data-type="core/table"] .block-mover .components-placeholder div {
152
- height: initial;
153
- }
154
-
155
- .block-library-list ul li,
156
- .wp-block-verse pre,
157
- .wp-block-preformatted pre {
158
- cursor: initial;
159
- }
160
-
161
- .block-library-list {
162
- padding: 5px;
163
- }
164
-
165
- .block-library-list ul {
166
- margin: 0;
167
- }
168
-
169
- .wp-block-verse pre,
170
- .wp-block-preformatted pre {
171
- margin: 0;
172
- }
173
-
174
- /**
175
- * Hide option to toggle fixed toolbar.
176
- */
177
- .edit-post-more-menu__content .components-menu-group:first-of-type .components-button:first-of-type {
178
- display: none;
179
- }
180
-
181
- /**
182
- * Hide Block Manager option
183
- */
184
- .edit-post-more-menu__content .components-menu-group:nth-last-of-type(2) div[role="group"] > .components-button:first-child {
185
- display: none;
186
- }
187
-
188
- /*
189
- * 100. Shame
190
- */
191
-
192
- /*
193
- * 100.1 Gutenberg - Warning div not clickable
194
- * Fixes Gutenberg bug where an extra wrapping div is causing no pointer events on the notice layer.
195
- */
196
-
197
- .editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit > :not(.editor-warning) {
198
- pointer-events: all;
199
- }
200
-
201
- .editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-block-list__block-edit > div > div:not(.editor-warning) {
202
- pointer-events: none;
203
- }
204
-
205
- div[data-amp-caption="noCaption"] figure.wp-block-image figcaption,
206
- div[data-amp-caption="noCaption"] .wp-block-video figcaption {
207
- display: none;
208
- }
209
-
210
- .wp-block .is-amp-fit-text {
211
- overflow-wrap: normal;
212
- }
213
-
214
- .wp-block-video,
215
- .wp-block-video .components-disabled {
216
- height: 100%;
217
- }
218
-
219
- .wp-block-video .components-disabled {
220
- overflow: hidden;
221
- }
222
-
223
- .wp-block-video video {
224
- height: 100%;
225
- width: 100%;
226
- }
227
-
228
- /* If the Media Library has 2 notices, like for wrong video file type and size, prevent them from covering the media. */
229
- .media-frame.has-two-notices .media-frame-content {
230
- bottom: 120px;
231
- }
232
-
233
- /* More space for notices in the sidebar */
234
-
235
- .components-panel__body .components-notice {
236
- margin-left: 0;
237
- margin-right: 0;
238
- }
239
-
240
- /* Custom video block poster image */
241
-
242
- .video-block__poster-image.editor-post-featured-image__preview img {
243
- object-fit: cover;
244
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/amp-stories-frontend-rtl.css CHANGED
@@ -139,3 +139,12 @@ amp-story-grid-layer .wp-block-quote {
139
  /* --story-page-vw is accessible in the FE, this equals 16px in the editor */
140
  font-size: calc(4.88 * var(--story-page-vw));
141
  }
 
 
 
 
 
 
 
 
 
139
  /* --story-page-vw is accessible in the FE, this equals 16px in the editor */
140
  font-size: calc(4.88 * var(--story-page-vw));
141
  }
142
+
143
+ amp-story-page-attachment .amp-page-attachment-content {
144
+ padding: 10px;
145
+ height: 100%;
146
+ }
147
+
148
+ amp-story-page-attachment .amp-page-attachment-content .wp-block-quote {
149
+ background: none;
150
+ }
assets/css/amp-stories-frontend.css CHANGED
@@ -139,3 +139,12 @@ amp-story-grid-layer .wp-block-quote {
139
  /* --story-page-vw is accessible in the FE, this equals 16px in the editor */
140
  font-size: calc(4.88 * var(--story-page-vw));
141
  }
 
 
 
 
 
 
 
 
 
139
  /* --story-page-vw is accessible in the FE, this equals 16px in the editor */
140
  font-size: calc(4.88 * var(--story-page-vw));
141
  }
142
+
143
+ amp-story-page-attachment .amp-page-attachment-content {
144
+ padding: 10px;
145
+ height: 100%;
146
+ }
147
+
148
+ amp-story-page-attachment .amp-page-attachment-content .wp-block-quote {
149
+ background: none;
150
+ }
assets/js/amp-block-editor.deps.json CHANGED
@@ -1 +1 @@
1
- ["lodash","moment","wp-block-editor","wp-blocks","wp-components","wp-compose","wp-data","wp-edit-post","wp-element","wp-hooks","wp-i18n","wp-plugins","wp-polyfill","wp-server-side-render"]
1
+ ["lodash","moment","react","wp-block-editor","wp-blocks","wp-components","wp-compose","wp-data","wp-edit-post","wp-element","wp-hooks","wp-i18n","wp-plugins","wp-polyfill","wp-server-side-render"]
assets/js/amp-block-editor.js CHANGED
@@ -1,15 +1,15 @@
1
- !function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=35)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t,a){e.exports=a(25)()},function(e,t,a){"use strict";a.d(t,"f",function(){return r}),a.d(t,"c",function(){return n}),a.d(t,"e",function(){return i}),a.d(t,"d",function(){return o}),a.d(t,"g",function(){return c}),a.d(t,"b",function(){return l}),a.d(t,"a",function(){return u});var r=6,n=72,i=1200,o=1e6,c=1,l="select-file-type-error",u="select-file-size-error"},function(e,t){!function(){e.exports=this.lodash}()},function(e,t,a){"use strict";var r=a(0),n=(a(5),a(2)),i=a(1),o=function(e){var t=e.name,a=e.url;return Object(r.createElement)(n.Placeholder,{label:t},Object(r.createElement)("p",{className:"components-placeholder__error"},a),Object(r.createElement)("p",{className:"components-placeholder__error"},Object(i.__)("Previews for this are unavailable in the editor, sorry!","amp")))},c=function(e){var t=e.attributes,a=e.setAttributes,o=e.ampLayoutOptions,c=t.ampLayout,l=t.height,u=t.width,s=!l&&("fixed"===c||"fixed-height"===c),d=!u&&"fixed"===c;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(n.SelectControl,{label:Object(i.__)("Layout","amp"),value:c,options:o,onChange:function(e){return a({ampLayout:e})}}),d&&Object(r.createElement)(n.Notice,{status:"error",isDismissible:!1},Object(i.sprintf)(
2
  /* translators: %s is the layout name */
3
  Object(i.__)("Width is required for %s layout","amp"),c)),Object(r.createElement)(n.TextControl,{type:"number",label:Object(i.__)("Width (px)","amp"),value:void 0!==u?u:"",onChange:function(e){return a({width:e})}}),s&&Object(r.createElement)(n.Notice,{status:"error",isDismissible:!1},Object(i.sprintf)(
4
  /* translators: %s is the layout name */
5
- Object(i.__)("Height is required for %s layout","amp"),c)),Object(r.createElement)(n.TextControl,{type:"number",label:Object(i.__)("Height (px)","amp"),value:l,onChange:function(e){return a({height:e})}}))};a.d(t,"b",function(){return o}),a.d(t,"a",function(){return c})},function(e,t,a){"use strict";a.d(t,"d",function(){return o}),a.d(t,"e",function(){return c}),a.d(t,"h",function(){return l}),a.d(t,"c",function(){return u}),a.d(t,"f",function(){return s}),a.d(t,"b",function(){return d}),a.d(t,"a",function(){return m}),a.d(t,"g",function(){return b});a(28),a(31),a(32);var r=a(7),n=a(1),i=(a(4),a(6)),o=function(){var e=i.e;return{width:e,height:e*(9/16)}},c=function(){var e=i.e;return{width:e,height:Math.floor(e*(16/9))}},l=function(e,t,a){if(!e)return a?[Object(n.__)("Selecting a featured image is required.","amp")]:[Object(n.__)("Selecting a featured image is recommended for an optimal user experience.","amp")];var r=[];if(["image/png","image/gif","image/jpeg"].includes(e.mime_type)||r.push(
6
  /* translators: 1: .jpg, 2: .png. 3: .gif */
7
  Object(n.sprintf)(Object(n.__)("The featured image must be in %1$s, %2$s, or %3$s format.","amp"),".jpg",".png",".gif")),!function(e,t){if(!e||!e.width||!e.height)return!1;var a=t.width,r=t.height;return e.width>=a&&e.height>=r}(e.media_details,t)){var i=t.width,o=t.height;r.push(
8
  /* translators: 1: minimum width, 2: minimum height. */
9
- Object(n.sprintf)(Object(n.__)("The featured image should have a size of at least %1$s by %2$s pixels.","amp"),Math.ceil(i),Math.ceil(o)))}return 0===r.length?null:r},u=function(e,t){return e&&t?e>t?"landscape":t>e?"portrait":"square":null},s=function(e){var t=Object(r.template)("<p>".concat(e,"</p>"),{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g});return function(e){return t(e)}},d=function(e,t){if(e){var a=Object(r.get)(this,["options","allowedTypes"],null),n=this.get("select");a&&e.get("type")&&!function(e,t){var a=e.get("type"),n=e.get("mime");return!(!Object(r.includes)(t,a)&&!Object(r.includes)(t,n)||"video"===a&&"video/mp4"!==n)}(e,a)?(this.secondary.set(i.b,new t({mimeType:e.get("mime")})),n&&n.model&&n.model.set("disabled",!0)):(this.secondary.unset(i.b),n&&n.model&&n.model.set("disabled",!1))}},m=function(e,t){e&&(("video"===Object(r.get)(e,["media_type"],null)||"video"===Object(r.get)(e,["attributes","type"],null))&&f(p(e))?this.secondary.set(i.a,new t({actualVideoMegabytesPerSecond:Math.round(p(e)/i.d),maxVideoMegabytesPerSecond:i.g})):this.secondary.unset(i.a))},b=function(){return Boolean(this.secondary.get(i.b))&&Boolean(this.secondary.get(i.a))},p=function(e){return Object(r.has)(e,["media_details","filesize"])&&Object(r.has)(e,["media_details","length"])?e.media_details.filesize/e.media_details.length:Object(r.has)(e,["attributes","filesizeInBytes"])&&Object(r.has)(e,["attributes","fileLength"])?e.attributes.filesizeInBytes/h(e.attributes.fileLength):null},f=function(e){return e>i.g*i.d},h=function(e){var t=e.split(":");return Object(r.reduce)(t,function(e,a,r){var n=isNaN(parseInt(a))?0:parseInt(a),i=t.length-1-r;return e+Math.pow(60,i)*n},0)}},function(e,t){function a(){return e.exports=a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},a.apply(this,arguments)}e.exports=a},function(e,t){e.exports=function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},function(e,t){!function(){e.exports=this.moment}()},function(e,t,a){"use strict";var r=a(11),n=a.n(r),i=a(0),o=(a(5),a(1)),c=a(2),l=a(4),u=a(3),s=["core/paragraph","core/heading","core/code","core/quote","core/subhead"],d=["core/image","core/video"],m=a(6);function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}a.d(t,"a",function(){return f}),a.d(t,"d",function(){return h}),a.d(t,"b",function(){return g}),a.d(t,"c",function(){return j}),a.d(t,"e",function(){return A});var p=[{value:"nodisplay",label:Object(o.__)("No Display","amp"),notAvailable:["core-embed/vimeo","core-embed/dailymotion","core-embed/hulu","core-embed/reddit","core-embed/soundcloud"]},{value:"fixed",label:Object(o.__)("Fixed","amp"),notAvailable:["core-embed/soundcloud"]},{value:"responsive",label:Object(o.__)("Responsive","amp"),notAvailable:["core-embed/soundcloud"]},{value:"fixed-height",label:Object(o.__)("Fixed Height","amp"),notAvailable:[]},{value:"fill",label:Object(o.__)("Fill","amp"),notAvailable:["core-embed/soundcloud"]},{value:"flex-item",label:Object(o.__)("Flex Item","amp"),notAvailable:["core-embed/soundcloud"]},{value:"intrinsic",label:Object(o.__)("Intrinsic","amp"),notAvailable:["core/video","core-embed/youtube","core-embed/facebook","core-embed/instagram","core-embed/vimeo","core-embed/dailymotion","core-embed/hulu","core-embed/reddit","core-embed/soundcloud"]}],f=function(e,t){return"core/shortcode"!==t&&"core/gallery"!==t||(e.attributes||(e.attributes={}),e.attributes.ampCarousel={type:"boolean"},e.attributes.ampLightbox={type:"boolean"}),"core/image"===t&&(e.attributes||(e.attributes={}),e.attributes.ampLightbox={type:"boolean"}),s.includes(t)&&(e.attributes||(e.attributes={}),e.attributes.ampFitText={default:!1},e.attributes.minFont={default:m.f,source:"attribute",selector:"amp-fit-text",attribute:"min-font-size"},e.attributes.maxFont={default:m.c,source:"attribute",selector:"amp-fit-text",attribute:"max-font-size"},e.attributes.height={default:"core/image"===t?200:10*Math.ceil(m.c/10),source:"attribute",selector:"amp-fit-text",attribute:"height"}),(0===t.indexOf("core-embed")||d.includes(t))&&(e.attributes||(e.attributes={}),e.attributes.ampLayout={type:"string"},e.attributes.ampNoLoading={type:"boolean"}),e},h=function(e,t,a){var r=a.text||"",n="",o={layout:"fixed-height"};if("core/shortcode"===t.name&&M(a)){if(a.ampLightbox||D(a.text||"")&&(r=k(a.text)),a.ampCarousel){if(F(r)&&(r=T(r)),!a.ampLightbox)return a.text!==r?Object(i.createElement)(i.RawHTML,null,r):e}else r=F(a.text||"")?a.text:a.text.replace("[gallery","[gallery amp-carousel=false");if(a.ampLightbox&&!D(r)&&(r=r.replace("[gallery","[gallery amp-lightbox=true")),a.text!==r)return Object(i.createElement)(i.RawHTML,null,r)}else if("core/paragraph"!==t.name||a.ampFitText){if(s.includes(t.name)&&a.ampFitText){if(a.minFont&&(o["min-font-size"]=a.minFont),a.maxFont&&(o["max-font-size"]=a.maxFont),a.height&&(o.height=a.height),"core/paragraph"===t.name){var c="<amp-fit-text";for(var l in o){if(o.hasOwnProperty(l))c+=" "+l+'="'+o[l]+'"'}return c+=">"+O(a.content)+"</amp-fit-text>",Object(i.cloneElement)(e,{key:"new",value:c})}return o.children=e,Object(i.createElement)("amp-fit-text",o)}}else if((n=O(a.content))!==a.content)return Object(i.cloneElement)(e,{key:"new",value:n});return e},O=function(e){var t=/<amp-fit-text\b[^>]*>(.*?)<\/amp-fit-text>/.exec(e),a=e;return t&&t[1]&&(a=t[1]),a},y=function(e){for(var t=[{value:"",label:Object(o.__)("Default","amp")}],a=0,r=p;a<r.length;a++){var n=r[a];!n.notAvailable.includes(e)&&t.push({value:n.value,label:n.label})}return t},g=function(e,t,a){var r={};return"core/shortcode"===t.name?e:"amp/"===t.name.substr(0,4)?e:(a.ampLayout&&(r["data-amp-layout"]=a.ampLayout),a.ampNoLoading&&(r["data-amp-noloading"]=a.ampNoLoading),a.ampLightbox&&(r["data-amp-lightbox"]=a.ampLightbox),a.ampCarousel&&(r["data-amp-carousel"]=a.ampCarousel),function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?b(a,!0).forEach(function(t){n()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):b(a).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({},r,{},e))},j=function(e){return function(t){var a,r=t.attributes,n=r.text,o=r.ampLayout,c=t.setAttributes,l=t.name;if("core/shortcode"===l){if(F(n||"")&&c({text:T(n)}),D(n||"")&&c({text:k(n)}),""===(a=P(t)))return Object(i.createElement)(e,t)}else"core/gallery"===l?a=I(t):"core/image"===l?a=C(t):d.includes(l)||0===l.indexOf("core-embed/")?a=_(t):s.includes(l)&&(a=E(t));return o&&"nodisplay"===o?[a]:Object(i.createElement)(i.Fragment,null,Object(i.createElement)(e,t),a)}},_=function(e){return e.isSelected?Object(i.createElement)(l.InspectorControls,null,Object(i.createElement)(c.PanelBody,{title:Object(o.__)("AMP Settings","amp")},Object(i.createElement)(v,e),Object(i.createElement)(x,e))):null},v=function(e){var t=e.name,a=e.attributes.ampLayout,r=e.setAttributes,n=Object(o.__)("AMP Layout","amp");return"core/image"===t&&(n=Object(o.__)("AMP Layout (modifies width/height)","amp")),Object(i.createElement)(c.SelectControl,{label:n,value:a,options:y(t),onChange:function(t){r({ampLayout:t}),"core/image"===e.name&&function(e,t){var a=e.attributes,r=e.setAttributes;switch(t){case"fixed-height":a.height||r({height:400}),a.ampLightbox&&r({ampLightbox:!1});break;case"fixed":a.height||r({height:400}),a.width||r({width:608})}}(e,t)}})},x=function(e){var t=e.attributes.ampNoLoading,a=e.setAttributes,r=Object(o.__)("AMP Noloading","amp");return Object(i.createElement)(c.ToggleControl,{label:r,checked:t,onChange:function(){return a({ampNoLoading:!t})}})},E=function(e){var t=e.isSelected,a=e.attributes,r=e.setAttributes,n=a.ampFitText,u=a.minFont,s=a.maxFont,d=a.height,b=[{name:"small",shortName:Object(o._x)("S","font size","amp"),size:14},{name:"regular",shortName:Object(o._x)("M","font size","amp"),size:16},{name:"large",shortName:Object(o._x)("L","font size","amp"),size:36},{name:"larger",shortName:Object(o._x)("XL","font size","amp"),size:48}];if(!t)return null;var p=Object(o.__)("Automatically fit text to container","amp");return n&&(s=parseInt(s),d=parseInt(d),u=parseInt(u)),Object(i.createElement)(l.InspectorControls,null,Object(i.createElement)(c.PanelBody,{title:Object(o.__)("AMP Settings","amp"),className:n?"is-amp-fit-text":""},Object(i.createElement)(c.ToggleControl,{label:p,checked:n,onChange:function(){return r({ampFitText:!n})}})),n&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.TextControl,{label:Object(o.__)("Height","amp"),value:d,min:1,onChange:function(e){r({height:e})}}),s>d&&Object(i.createElement)(c.Notice,{status:"error",isDismissible:!1},Object(o.__)("The height must be greater than the max font size.","amp")),Object(i.createElement)(c.PanelBody,{title:Object(o.__)("Minimum font size","amp")},Object(i.createElement)(c.FontSizePicker,{fallbackFontSize:14,value:u,fontSizes:b,onChange:function(e){e||(e=m.f),parseInt(e)<=s&&r({minFont:e})}})),u>s&&Object(i.createElement)(c.Notice,{status:"error",isDismissible:!1},Object(o.__)("The min font size must less than the max font size.","amp")),Object(i.createElement)(c.PanelBody,{title:Object(o.__)("Maximum font size","amp")},Object(i.createElement)(c.FontSizePicker,{fallbackFontSize:48,value:s,fontSizes:b,onChange:function(e){e||(e=m.c),r({maxFont:e,height:Math.max(e,d)})}}))))},P=function(e){var t=e.isSelected;if(!M(e.attributes)||!t)return null;var a=Object(u.select)("amp/block-editor").hasThemeSupport();return Object(i.createElement)(l.InspectorControls,null,Object(i.createElement)(c.PanelBody,{title:Object(o.__)("AMP Settings","amp")},a&&Object(i.createElement)(S,e),Object(i.createElement)(w,e)))},w=function(e){var t=e.attributes,a=t.ampLightbox,r=t.linkTo,n=t.ampLayout,l=e.setAttributes;return Object(i.createElement)(c.ToggleControl,{label:Object(o.__)("Add lightbox effect","amp"),checked:a,onChange:function(e){l({ampLightbox:!a}),e&&("fixed-height"===n&&l({ampLayout:"fixed"}),r&&"none"!==r&&l({linkTo:"none"}))}})},S=function(e){var t=e.attributes.ampCarousel,a=e.setAttributes;return Object(i.createElement)(c.ToggleControl,{label:Object(o.__)("Display as carousel","amp"),checked:t,onChange:function(){return a({ampCarousel:!t})}})},C=function(e){return e.isSelected?Object(i.createElement)(l.InspectorControls,null,Object(i.createElement)(c.PanelBody,{title:Object(o.__)("AMP Settings","amp")},Object(i.createElement)(v,e),Object(i.createElement)(x,e),Object(i.createElement)(w,e))):null},I=function(e){if(!e.isSelected)return null;var t=Object(u.select)("amp/block-editor").hasThemeSupport();return Object(i.createElement)(l.InspectorControls,null,Object(i.createElement)(c.PanelBody,{title:Object(o.__)("AMP Settings","amp")},t&&Object(i.createElement)(S,e),Object(i.createElement)(w,e)))},T=function(e){return e.replace(" amp-carousel=false","")},k=function(e){return e.replace(" amp-lightbox=true","")},F=function(e){return-1!==e.indexOf("amp-carousel=false")},D=function(e){return-1!==e.indexOf("amp-lightbox=true")},M=function(e){return e.text&&-1!==e.text.indexOf("gallery")},A=function(){var e=Object(u.select)("amp/block-editor"),t=e.getDefaultStatus,a=e.getPossibleStatuses,r=Object(u.select)("core/editor").getEditedPostAttribute;if("amp_story"===r("type"))return!0;var n=r("meta");return n&&n.amp_status&&a().includes(n.amp_status)?"enabled"===n.amp_status:"enabled"===t()}},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function a(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}},function(e,t,a){var r=a(39),n=a(21);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?n(e):t}},function(e,t){function a(t){return e.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(t)}e.exports=a},function(e,t,a){var r=a(40);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,a){"use strict";var r=a(0),n=(a(5),a(2)),i=a(24),o=a(3),c=a(1),l=a(9),u=Object(o.withSelect)(function(e){var t=e("core/editor").getCurrentPost(),a=e("core/editor").getEditedPostAttribute("featured_media"),r=t.featured_media||a;return{featuredMedia:r?e("core").getMedia(r):null}})(function(e){var t=e.featuredMedia,a=e.dimensions,o=e.required,u=Object(l.h)(t,a,o);return u?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.PluginPrePublishPanel,{title:Object(c.__)("Featured Image","amp"),initialOpen:"true"},Object(r.createElement)(n.Notice,{status:o?"warning":"notice",isDismissible:!1},u.map(function(e,t){return Object(r.createElement)("p",{key:"error-".concat(t)},e)})))):null}),s=a(15),d=Object(s.createHigherOrderComponent)(function(e){return function(t){var a=t.media,i=Object(l.h)(a,Object(l.d)(),!1);return i?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(n.Notice,{status:"notice",isDismissible:!1},i.map(function(e,t){return Object(r.createElement)("p",{key:"error-".concat(t)},e)})),Object(r.createElement)(e,t)):Object(r.createElement)(e,t)}},"withFeaturedImageNotice"),m=a(16),b=a.n(m),p=a(17),f=a.n(p),h=a(18),O=a.n(h),y=a(19),g=a.n(y),j=a(21),_=a.n(j),v=a(20),x=a.n(v),E=a(7),P=a(11),w=a.n(P);function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}var C,I=window.wp,T=I.media.View.extend({className:"notice notice-warning notice-alt inline",template:(C=Object(c.sprintf)(
10
  /* translators: 1: image width in pixels. 2: image height in pixels. 3: required minimum width in pixels. 4: required minimum height in pixels. */
11
- Object(c.__)("The selected image is too small (%1$s by %2$s pixels). It should have a size of at least %3$s by %4$s pixels.","amp"),"{{width}}","{{height}}","{{minWidth}}","{{minHeight}}"),Object(l.f)(C))}),k=I.media.View.extend({className:"notice notice-warning notice-alt inline",template:function(){var e=Object(c.sprintf)(
12
  /* translators: 1: the selected file type. */
13
- Object(c.__)("The selected file mime type, %1$s, is not allowed.","amp"),"{{mimeType}}");return Object(l.f)(e)}()}),F=I.media.View.extend({className:"notice notice-warning notice-alt inline",template:function(){var e=Object(c.sprintf)(
14
  /* translators: 1: the recommended max MB per second for videos. 2: the actual MB per second of the video. */
15
- Object(c.__)("A video size of less than %1$s MB per second is recommended. The selected video is %2$s MB per second.","amp"),"{{maxVideoMegabytesPerSecond}}","{{actualVideoMegabytesPerSecond}}");return Object(l.f)(e)}()}),D=I.media.view.Toolbar.Select.extend({refresh:function(){I.media.view.Toolbar.Select.prototype.refresh.call(this);var e=this.controller.state(),t=e.get("selection").models[0],a=e.collection.get("library").get("suggestedWidth"),r=e.collection.get("library").get("suggestedHeight");!t||"image"!==t.get("type")||!t.get("width")||t.get("width")>=a&&t.get("height")>=r?this.secondary.unset("select-error"):this.secondary.set("select-error",new T({minWidth:a,minHeight:r,width:t.get("width"),height:t.get("height")})),l.b.call(this,t,k)}}),M=(I.media.view.Toolbar.Select.extend({refresh:function(){I.media.view.Toolbar.Select.prototype.refresh.call(this);var e=this.controller.state().get("selection").models[0];l.b.call(this,e,k),l.a.call(this,e,F);var t=this.$el.parents(".media-frame");t&&t.toggleClass("has-two-notices",l.g.call(this))}}),function(e){return I.media.view.MediaFrame.Select.extend({createSelectToolbar:function(t,a){(a=a||this.options.button||{}).controller=this,a=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?S(a,!0).forEach(function(t){w()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):S(a).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({},a,{allowedTypes:Object(E.get)(this,["options","allowedTypes"],null)}),t.view=new e(a)}})}),A=(window.wp,window.wp),L=A.media.controller.Cropper.extend({doCrop:function(e){var t=e.get("cropDetails"),a=this.imgSelect.getOptions();return Math.abs(t.width-a.minWidth)<10&&(t.width=a.minWidth),Math.abs(t.height-a.minHeight)<10&&(t.height=a.minHeight),t.dst_width=t.width,t.dst_height=t.height,A.ajax.post("crop-image",{nonce:e.get("nonces").edit,id:e.get("id"),context:"featured-image",cropDetails:t})}}),B=window.wp,q=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.width,n=t.height,i=a.width,u=a.height;return function(e){function t(){var e,a;b()(this,t);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"editor-post-featured-image__media-modal"===(a=O()(this,(e=g()(t)).call.apply(e,[this].concat(n)))).props.modalClass&&(a.initFeaturedImage=a.initFeaturedImage.bind(_()(a)),a.initFeaturedImage()),a}return x()(t,e),f()(t,[{key:"initFeaturedImage",value:function(){var e=this,t=M(D);this.frame=new t({allowedTypes:this.props.allowedTypes,button:{text:Object(c.__)("Select","amp"),close:!1},states:[new B.media.controller.Library({title:Object(c.__)("Choose image","amp"),library:B.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:r,suggestedHeight:n}),new L({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),B.media.frame=this.frame,this.frame.on("select",this.onSelectImage,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this),this.frame.on("close",function(){e.initFeaturedImage()},this)}},{key:"calculateImageSelectOptions",value:function(e,t){var a=e.get("width"),o=e.get("height"),c=i&&a>=i&&o>=u&&Object(l.c)(a,o)===Object(l.c)(i,u),s=c?parseInt(i):parseInt(r),d=c?parseInt(u):parseInt(n),m=s/d,b=s,p=d;t.set("canSkipCrop",!0),a/o>m?s=(d=o)*m:d=(s=a)/m;var f=(a-s)/2,h=(o-d)/2;return{aspectRatio:s+":"+d,handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:a,imageHeight:o,minWidth:b>s?s:b,minHeight:p>d?d:p,x1:f,y1:h,x2:s+f,y2:d+h}}},{key:"onSelectImage",value:function(){var e=this.frame.state().get("selection").first().toJSON();r===e.width&&n===e.height||i&&i===e.width&&u===e.height?(this.setImageFromURL(e.url,e.id,e.width,e.height),this.frame.close()):this.frame.setState("cropper")}},{key:"doAllowCrop",value:function(e){return e.width&&e.height&&e.width>=r&&e.height>=n}},{key:"mustBeCropped",value:function(e,t,a,r){return!(e===a&&t===r||a<=e)}},{key:"onCropped",value:function(e){var t=e.url,a=e.id,r=e.width,n=e.height;this.setImageFromURL(t,a,r,n)}},{key:"onSkippedCrop",value:function(e){var t=e.get("url"),a=e.get("width"),r=e.get("height");this.setImageFromURL(t,e.id,a,r)}},{key:"setImageFromURL",value:function(e,t,a,r){var n={},i=this.props.onSelect;n.url=e,n.thumbnail_url=e,n.timestamp=Object(E.now)(),t&&(n.attachment_id=t),a&&(n.width=a),r&&(n.height=r),i(n),Object(o.dispatch)("core/editor").editPost({featured_media:t})}}]),t}(e)};a.d(t,"a",function(){return u}),a.d(t,"c",function(){return d}),a.d(t,"b",function(){return q})},function(e,t){e.exports=ampBlockEditor},function(e,t){!function(){e.exports=this.wp.editPost}()},function(e,t,a){"use strict";var r=a(26);function n(){}function i(){}i.resetWarningCache=n,e.exports=function(){function e(e,t,a,n,i,o){if(o!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:n};return a.PropTypes=a,a}},function(e,t,a){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,a){"use strict";var r={};a.r(r),a.d(r,"hasThemeSupport",function(){return c}),a.d(r,"isStandardMode",function(){return l}),a.d(r,"isWebsiteEnabled",function(){return u}),a.d(r,"isStoriesEnabled",function(){return s}),a.d(r,"getDefaultStatus",function(){return d}),a.d(r,"getPossibleStatuses",function(){return m});var n=a(11),i=a.n(n),o=a(3);function c(e){return Boolean(e.hasThemeSupport)}function l(e){return Boolean(e.isStandardMode)}function u(e){return Boolean(e.isWebsiteEnabled)}function s(e){return Boolean(e.isStoriesEnabled)}function d(e){return e.defaultStatus}function m(e){return e.possibleStatuses}function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}Object(o.registerStore)("amp/block-editor",{reducer:function(e){return e},selectors:r,initialState:function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?b(a,!0).forEach(function(t){i()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):b(a).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({},window.ampBlockEditor)})},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){function a(e,t,a,r,n,i,o){try{var c=e[i](o),l=c.value}catch(e){return void a(e)}c.done?t(l):Promise.resolve(l).then(r,n)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function c(e){a(o,n,i,c,l,"next",e)}function l(e){a(o,n,i,c,l,"throw",e)}c(void 0)})}}},function(e,t,a){var r=a(36),n=a(37),i=a(38);e.exports=function(e,t){return r(e)||n(e,t)||i()}},function(e,t){!function(){e.exports=this.wp.serverSideRender}()},,function(e,t,a){"use strict";a.r(t);var r=a(14),n=a(29),i=a(30),o=a(3),c=a(22),l=a(13),u=a(9),s=(a(27),Object(o.select)("amp/block-editor")),d=s.isWebsiteEnabled,m=s.isStoriesEnabled,b=s.isStandardMode,p=window.ampLatestStoriesBlockData;if(d()){var f=a(41);f.keys().forEach(function(e){var t=f(e),a=t.name,r=t.render,i=t.icon;Object(n.registerPlugin)(a,{icon:i,render:r})}),Object(r.addFilter)("blocks.registerBlockType","ampEditorBlocks/addAttributes",l.a),Object(r.addFilter)("blocks.getSaveElement","ampEditorBlocks/filterSave",l.d),Object(r.addFilter)("editor.BlockEdit","ampEditorBlocks/filterEdit",l.c,20),Object(r.addFilter)("blocks.getSaveContent.extraProps","ampEditorBlocks/addExtraAttributes",l.b),Object(r.addFilter)("editor.PostFeaturedImage","ampEditorBlocks/withFeaturedImageNotice",c.c),Object(r.addFilter)("editor.MediaUpload","ampEditorBlocks/addCroppedFeaturedImage",function(e){return Object(c.b)(e,Object(u.d)(),Object(u.e)())})}var h=["amp/amp-brid-player","amp/amp-ima-video","amp/amp-jwplayer","amp/amp-mathml","amp/amp-o2-player","amp/amp-ooyala-player","amp/amp-reach-player","amp/amp-springboard-player","amp/amp-timeago"],O=a(44);O.keys().forEach(function(e){var t=O(e),a=t.name,r=t.settings,n="amp/amp-latest-stories"===a;(d()&&b()&&h.includes(a)||m()&&n&&void 0!==p)&&Object(i.registerBlockType)(a,r)})},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var a=[],r=!0,n=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(a.push(o.value),!t||a.length!==t);r=!0);}catch(e){n=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(n)throw i}}return a}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){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 r(t){return"function"==typeof Symbol&&"symbol"===a(Symbol.iterator)?e.exports=r=function(e){return a(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":a(e)},r(t)}e.exports=r},function(e,t){function a(t,r){return e.exports=a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(t,r)}e.exports=a},function(e,t,a){var r={"./amp-toggle.js":42,"./pre-publish-panel.js":43};function n(e){var t=i(e);return a(t)}function i(e){if(!a.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}n.keys=function(){return Object.keys(r)},n.resolve=i,e.exports=n,n.id=41},function(e,t,a){"use strict";a.r(t),a.d(t,"name",function(){return d}),a.d(t,"icon",function(){return m}),a.d(t,"render",function(){return b});var r=a(0),n=a(23),i=(a(5),a(1)),o=a(2),c=a(3),l=a(24),u=a(15),s=a(13);var d="amp",m="hidden",b=Object(u.compose)(Object(c.withSelect)(function(){return{isEnabled:Object(s.e)()}}),Object(c.withDispatch)(function(e){return{onChange:function(t){var a=t?"enabled":"disabled";e("core/editor").editPost({meta:{amp_status:a}})}}}),u.withInstanceId)(function(e){var t=e.isEnabled,a=e.onChange;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.PluginPostStatusInfo,null,!n.errorMessages.length&&Object(r.createElement)("label",{htmlFor:"amp-enabled"},Object(i.__)("Enable AMP","amp")),!n.errorMessages.length&&Object(r.createElement)(o.FormToggle,{checked:t,onChange:function(){return a(!t)},id:"amp-enabled"}),Boolean(n.errorMessages.length)&&Object(r.createElement)(o.Notice,{status:"warning",isDismissible:!1},n.errorMessages.map(function(e,t){return Object(r.createElement)(r.RawHTML,{key:t},e)}))))})},function(e,t,a){"use strict";a.r(t),a.d(t,"name",function(){return o}),a.d(t,"render",function(){return c});var r=a(0),n=a(22),i=a(9),o="amp-post-featured-image-pre-publish-panel",c=function(){return Object(r.createElement)(n.a,{dimensions:Object(i.d)(),required:!1})}},function(e,t,a){var r={"./amp-brid-player/index.js":50,"./amp-ima-video/index.js":51,"./amp-jwplayer/index.js":52,"./amp-latest-stories/index.js":59,"./amp-mathml/index.js":53,"./amp-o2-player/index.js":54,"./amp-ooyala-player/index.js":55,"./amp-reach-player/index.js":56,"./amp-springboard-player/index.js":57,"./amp-timeago/index.js":58};function n(e){var t=i(e);return a(t)}function i(e){if(!a.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}n.keys=function(){return Object.keys(r)},n.resolve=i,e.exports=n,n.id=44},,,,,,function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(10),i=a.n(n),o=a(0),c=(a(5),a(4)),l=a(2),u=a(8),s=function(e){var t=e.attributes,a=e.setAttributes,n=t.autoPlay,s=t.dataPartner,d=t.dataPlayer,m=t.dataVideo,b=t.dataPlaylist,p=t.dataOutstream,f=[{value:"responsive",label:Object(r.__)("Responsive","amp")},{value:"fixed-height",label:Object(r.__)("Fixed Height","amp")},{value:"fixed",label:Object(r.__)("Fixed","amp")},{value:"fill",label:Object(r.__)("Fill","amp")},{value:"flex-item",label:Object(r.__)("Flex-item","amp")},{value:"nodisplay",label:Object(r.__)("No Display","amp")}],h=!1;return s&&d&&(m||b||p)&&(h="http://cdn.brid.tv/live/partners/".concat(s)),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(r.__)("Brid Player Settings","amp")},Object(o.createElement)(l.TextControl,{label:Object(r.__)("Partner ID (required)","amp"),value:s,onChange:function(e){return a({dataPartner:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Player ID (required)","amp"),value:d,onChange:function(e){return a({dataPlayer:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Video ID (one of video / playlist / outstream ID is required)","amp"),value:m,onChange:function(e){return a({dataVideo:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Outstream unit ID (one of video / playlist / outstream ID is required)","amp"),value:p,onChange:function(e){return a({dataOutstream:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Playlist ID (one of video / playlist / outstream ID is required)","amp"),value:b,onChange:function(e){return a({dataPlaylist:e})}}),Object(o.createElement)(l.ToggleControl,{label:Object(r.__)("Autoplay","amp"),checked:n,onChange:function(){return a({autoPlay:!n})}}),Object(o.createElement)(u.a,i()({},e,{ampLayoutOptions:f})))),h&&Object(o.createElement)(u.b,{name:Object(r.__)("Brid Player","amp"),url:h}),!h&&Object(o.createElement)(l.Placeholder,{label:Object(r.__)("Brid Player","amp")},Object(o.createElement)("p",null,Object(r.__)("Add required data to use the block.","amp"))))},d=function(e){var t=e.attributes,a=t.dataPlayer,r=t.dataOutstream,n=t.dataPartner,i=t.ampLayout,c=t.width,l=t.height,u=t.dataVideo,s=t.autoPlay,d=t.dataPlaylist,m={layout:i,height:l,"data-player":a,"data-partner":n};return"fixed-height"!==i&&c&&(m.width=c),d&&(m["data-playlist"]=d),u&&(m["data-video"]=u),r&&(m["data-outstream"]=r),s&&(m.autoplay=s),Object(o.createElement)("amp-brid-player",m)};a.d(t,"name",function(){return m}),a.d(t,"settings",function(){return b});var m="amp/amp-brid-player",b={title:Object(r.__)("AMP Brid Player","amp"),description:Object(r.__)("Displays the Brid Player used in Brid.tv Video Platform.","amp"),category:"embed",icon:"embed-generic",keywords:[Object(r.__)("Embed","amp")],attributes:{autoPlay:{type:"boolean"},dataPartner:{source:"attribute",selector:"amp-brid-player",attribute:"data-partner"},dataPlayer:{source:"attribute",selector:"amp-brid-player",attribute:"data-player"},dataVideo:{source:"attribute",selector:"amp-brid-player",attribute:"data-video"},dataPlaylist:{source:"attribute",selector:"amp-brid-player",attribute:"data-playlist"},dataOutstream:{source:"attribute",selector:"amp-brid-player",attribute:"data-outstream"},ampLayout:{default:"responsive",source:"attribute",selector:"amp-brid-player",attribute:"layout"},width:{type:"number",default:600},height:{default:400,source:"attribute",selector:"amp-brid-player",attribute:"height"}},edit:s,save:d}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(10),i=a.n(n),o=a(0),c=(a(5),a(4)),l=a(2),u=a(8),s=function(e){var t=e.attributes,a=e.setAttributes,n=t.dataDelayAdRequest,s=t.dataTag,d=t.dataSrc,m=t.dataPoster,b=[{value:"responsive",label:Object(r.__)("Responsive","amp")},{value:"fixed",label:Object(r.__)("Fixed","amp")}],p=!1;return s&&d&&(p=!0),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(r.__)("IMA Video Settings","amp")},Object(o.createElement)(l.TextControl,{label:Object(r.__)("HTTPS URL for your VAST ad document (required)","amp"),value:s,onChange:function(e){return a({dataTag:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("HTTPS URL of your video content (required)","amp"),value:d,onChange:function(e){return a({dataSrc:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("HTTPS URL to preview image","amp"),value:m,onChange:function(e){return a({dataPoster:e})}}),Object(o.createElement)(l.ToggleControl,{label:Object(r.__)("Delay Ad Request","amp"),checked:n,onChange:function(){return a({dataDelayAdRequest:!n})}}),Object(o.createElement)(u.a,i()({},e,{ampLayoutOptions:b})))),p&&Object(o.createElement)(u.b,{name:Object(r.__)("IMA Video","amp"),url:d}),!p&&Object(o.createElement)(l.Placeholder,{label:Object(r.__)("IMA Video","amp")},Object(o.createElement)("p",null,Object(r.__)("Add required data to use the block.","amp"))))},d=function(e){var t=e.attributes,a=t.width,r=t.dataSrc,n=t.ampLayout,i=t.dataTag,c=t.dataDelayAdRequest,l=t.height,u=t.dataPoster,s={layout:n,height:l,width:a,"data-tag":i,"data-src":r};return u&&(s["data-poster"]=u),c&&(s["data-delay-ad-request"]=c),Object(o.createElement)("amp-ima-video",s)};a.d(t,"name",function(){return m}),a.d(t,"settings",function(){return b});var m="amp/amp-ima-video",b={title:Object(r.__)("AMP IMA Video","amp"),description:Object(r.__)("Embeds a video player for instream video ads that are integrated with the IMA SDK","amp"),category:"embed",icon:"embed-generic",keywords:[Object(r.__)("Embed","amp")],attributes:{dataDelayAdRequest:{default:!1,source:"attribute",selector:"amp-ima-video",attribute:"data-delay-ad-request"},dataTag:{source:"attribute",selector:"amp-ima-video",attribute:"data-tag"},dataSrc:{source:"attribute",selector:"amp-ima-video",attribute:"data-src"},dataPoster:{source:"attribute",selector:"amp-ima-video",attribute:"data-poster"},ampLayout:{default:"responsive",source:"attribute",selector:"amp-ima-video",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-ima-video",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-ima-video",attribute:"height"}},edit:s,save:d}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(10),i=a.n(n),o=a(0),c=(a(5),a(4)),l=a(2),u=a(8),s=function(e){var t=e.attributes,a=e.setAttributes,n=t.dataPlayerId,s=t.dataMediaId,d=t.dataPlaylistId,m=[{value:"responsive",label:Object(r.__)("Responsive","amp")},{value:"fixed-height",label:Object(r.__)("Fixed Height","amp")},{value:"fixed",label:Object(r.__)("Fixed","amp")},{value:"fill",label:Object(r.__)("Fill","amp")},{value:"flex-item",label:Object(r.__)("Flex-item","amp")},{value:"nodisplay",label:Object(r.__)("No Display","amp")}],b=!1;return n&&(s||d)&&(b=d?"https://content.jwplatform.com/players/".concat(d,"-").concat(n):"https://content.jwplatform.com/players/".concat(s,"-").concat(n)),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(r.__)("JW Player Settings","amp")},Object(o.createElement)(l.TextControl,{label:Object(r.__)("Player ID (required)","amp"),value:n,onChange:function(e){return a({dataPlayerId:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Media ID (required if playlist ID not set)","amp"),value:s,onChange:function(e){return a({dataMediaId:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Playlist ID (required if media ID not set)","amp"),value:d,onChange:function(e){return a({dataPlaylistId:e})}}),Object(o.createElement)(u.a,i()({},e,{ampLayoutOptions:m})))),b&&Object(o.createElement)(u.b,{name:Object(r.__)("JW Player","amp"),url:b}),!b&&Object(o.createElement)(l.Placeholder,{label:Object(r.__)("JW Player","amp")},Object(o.createElement)("p",null,Object(r.__)("Add required data to use the block.","amp"))))},d=function(e){var t=e.attributes,a=t.width,r=t.height,n=t.ampLayout,i=t.dataPlaylistId,c=t.dataPlayerId,l=t.dataMediaId,u={layout:n,height:r,"data-player-id":c};return"fixed-height"!==n&&a&&(u.width=a),i&&(u["data-playlist-id"]=i),l&&(u["data-media-id"]=l),Object(o.createElement)("amp-jwplayer",u)};a.d(t,"name",function(){return m}),a.d(t,"settings",function(){return b});var m="amp/amp-jwplayer",b={title:Object(r.__)("AMP JW Player","amp"),description:Object(r.__)("Displays a cloud-hosted JW Player.","amp"),category:"embed",icon:"embed-generic",keywords:[Object(r.__)("Embed","amp")],attributes:{dataPlayerId:{source:"attribute",selector:"amp-jwplayer",attribute:"data-player-id"},dataMediaId:{source:"attribute",selector:"amp-jwplayer",attribute:"data-media-id"},dataPlaylistId:{source:"attribute",selector:"amp-jwplayer",attribute:"data-playlist-id"},ampLayout:{default:"responsive",source:"attribute",selector:"amp-jwplayer",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-jwplayer",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-jwplayer",attribute:"height"}},edit:s,save:d}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(0),i=(a(5),a(4)),o=function(e){var t=e.attributes,a=e.setAttributes,o=t.dataFormula;return Object(n.createElement)(i.PlainText,{value:o,placeholder:Object(r.__)("Insert formula","amp"),onChange:function(e){return a({dataFormula:e})}})},c=function(e){var t={"data-formula":e.attributes.dataFormula,layout:"container"};return Object(n.createElement)("amp-mathml",t)};a.d(t,"name",function(){return l}),a.d(t,"settings",function(){return u});var l="amp/amp-mathml",u={title:Object(r.__)("AMP MathML","amp"),category:"common",icon:"welcome-learn-more",keywords:[Object(r.__)("Mathematical formula","amp"),Object(r.__)("Scientific content ","amp")],attributes:{dataFormula:{source:"attribute",selector:"amp-mathml",attribute:"data-formula"}},edit:o,save:c}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(10),i=a.n(n),o=a(0),c=(a(5),a(4)),l=a(2),u=a(8),s=function(e){var t=e.attributes,a=e.setAttributes,n=t.autoPlay,s=t.dataPid,d=t.dataVid,m=t.dataBcid,b=t.dataBid,p=[{value:"responsive",label:Object(r.__)("Responsive","amp")},{value:"fixed-height",label:Object(r.__)("Fixed Height","amp")},{value:"fixed",label:Object(r.__)("Fixed","amp")},{value:"fill",label:Object(r.__)("Fill","amp")},{value:"flex-item",label:Object(r.__)("Flex-item","amp")},{value:"nodisplay",label:Object(r.__)("No Display","amp")}],f=!1;return s&&(m||d)&&(f="https://delivery.vidible.tv/htmlembed/pid=".concat(s,"/")),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(r.__)("O2 Player Settings","amp")},Object(o.createElement)(l.TextControl,{label:Object(r.__)("Player ID (required)","amp"),value:s,onChange:function(e){return a({dataPid:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Buyer Company ID (either buyer or video ID is required)","amp"),value:m,onChange:function(e){return a({dataBcid:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Video ID (either buyer or video ID is required)","amp"),value:d,onChange:function(e){return a({dataVid:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Playlist ID","amp"),value:b,onChange:function(e){return a({dataBid:e})}}),Object(o.createElement)(l.ToggleControl,{label:Object(r.__)("Autoplay","amp"),checked:n,onChange:function(){return a({autoPlay:!n})}}),Object(o.createElement)(u.a,i()({},e,{ampLayoutOptions:p})))),f&&Object(o.createElement)(u.b,{name:Object(r.__)("O2 Player","amp"),url:f}),!f&&Object(o.createElement)(l.Placeholder,{label:Object(r.__)("O2 Player","amp")},Object(o.createElement)("p",null,Object(r.__)("Add required data to use the block.","amp"))))},d=function(e){var t=e.attributes,a=t.dataPid,r=t.width,n=t.height,i=t.ampLayout,c=t.dataBid,l=t.autoPlay,u=t.dataBcid,s=t.dataVid,d={layout:i,height:n,"data-pid":a};return"fixed-height"!==i&&r&&(d.width=r),l||(d["data-macros"]="m.playback=click"),s?d["data-vid"]=s:u&&(d["data-bcid"]=u),c&&(d["data-bid"]=c),Object(o.createElement)("amp-o2-player",d)};a.d(t,"name",function(){return m}),a.d(t,"settings",function(){return b});var m="amp/amp-o2-player",b={title:Object(r.__)("AMP O2 Player","amp"),category:"embed",icon:"embed-generic",keywords:[Object(r.__)("Embed","amp"),Object(r.__)("AOL O2Player","amp")],attributes:{dataPid:{source:"attribute",selector:"amp-o2-player",attribute:"data-pid"},dataVid:{source:"attribute",selector:"amp-o2-player",attribute:"data-vid"},dataBcid:{source:"attribute",selector:"amp-o2-player",attribute:"data-bcid"},dataBid:{source:"attribute",selector:"amp-o2-player",attribute:"data-bid"},autoPlay:{default:!1},ampLayout:{default:"responsive",source:"attribute",selector:"amp-o2-player",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-o2-player",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-o2-player",attribute:"height"}},edit:s,save:d}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(10),i=a.n(n),o=a(0),c=(a(5),a(4)),l=a(2),u=a(8),s=function(e){var t=e.attributes,a=e.setAttributes,n=t.dataEmbedCode,s=t.dataPlayerId,d=t.dataPcode,m=t.dataPlayerVersion,b=[{value:"responsive",label:Object(r.__)("Responsive","amp")},{value:"fixed",label:Object(r.__)("Fixed","amp")},{value:"fill",label:Object(r.__)("Fill","amp")},{value:"flex-item",label:Object(r.__)("Flex-item","amp")}],p=!1;return n&&s&&d&&(p="http://cf.c.ooyala.com/".concat(n)),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(r.__)("Ooyala Settings","amp")},Object(o.createElement)(l.TextControl,{label:Object(r.__)("Video embed code (required)","amp"),value:n,onChange:function(e){return a({dataEmbedCode:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Player ID (required)","amp"),value:s,onChange:function(e){return a({dataPlayerId:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Provider code for the account (required)","amp"),value:d,onChange:function(e){return a({dataPcode:e})}}),Object(o.createElement)(l.SelectControl,{label:Object(r.__)("Player version","amp"),value:m,options:[{value:"v3",label:Object(r.__)("V3","amp")},{value:"v4",label:Object(r.__)("V4","amp")}],onChange:function(e){return a({dataPlayerVersion:e})}}),Object(o.createElement)(u.a,i()({},e,{ampLayoutOptions:b})))),p&&Object(o.createElement)(u.b,{name:Object(r.__)("Ooyala Player","amp"),url:p}),!p&&Object(o.createElement)(l.Placeholder,{label:Object(r.__)("Ooyala Player","amp")},Object(o.createElement)("p",null,Object(r.__)("Add required data to use the block.","amp"))))},d=function(e){var t=e.attributes,a=t.dataEmbedCode,r=t.dataPlayerId,n=t.dataPcode,i=t.dataPlayerVersion,c=t.ampLayout,l=t.height,u=t.width,s={layout:c,height:l,"data-embedcode":a,"data-playerid":r,"data-pcode":n,"data-playerversion":i};return"fixed-height"!==c&&u&&(s.width=u),Object(o.createElement)("amp-ooyala-player",s)};a.d(t,"name",function(){return m}),a.d(t,"settings",function(){return b});var m="amp/amp-ooyala-player",b={title:Object(r.__)("AMP Ooyala Player","amp"),description:Object(r.__)("Displays an Ooyala video.","amp"),category:"embed",icon:"embed-generic",keywords:[Object(r.__)("Embed","amp"),Object(r.__)("Ooyala video","amp")],attributes:{dataEmbedCode:{source:"attribute",selector:"amp-ooyala-player",attribute:"data-embedcode"},dataPlayerId:{source:"attribute",selector:"amp-ooyala-player",attribute:"data-playerid"},dataPcode:{source:"attribute",selector:"amp-ooyala-player",attribute:"data-pcode"},dataPlayerVersion:{default:"v3",source:"attribute",selector:"amp-ooyala-player",attribute:"data-playerversion"},ampLayout:{default:"responsive",source:"attribute",selector:"amp-ooyala-player",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-ooyala-player",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-ooyala-player",attribute:"height"}},edit:s,save:d}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(10),i=a.n(n),o=a(0),c=(a(5),a(4)),l=a(2),u=a(8),s=function(e){var t=e.attributes,a=e.setAttributes,n=t.dataEmbedId,s=[{value:"responsive",label:Object(r.__)("Responsive","amp")},{value:"fixed-height",label:Object(r.__)("Fixed Height","amp")},{value:"fixed",label:Object(r.__)("Fixed","amp")},{value:"fill",label:Object(r.__)("Fill","amp")},{value:"flex-item",label:Object(r.__)("Flex-item","amp")}],d=!1;return n&&(d="https://media-cdn.beachfrontreach.com/acct_1/video/"),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(r.__)("Reach Settings","amp")},Object(o.createElement)(l.TextControl,{label:Object(r.__)("Embed ID (required)","amp"),value:n,onChange:function(e){return a({dataEmbedId:e})}}),Object(o.createElement)(u.a,i()({},e,{ampLayoutOptions:s})))),d&&Object(o.createElement)(u.b,{name:Object(r.__)("Reach Player","amp"),url:d}),!d&&Object(o.createElement)(l.Placeholder,{label:Object(r.__)("Reach Player","amp")},Object(o.createElement)("p",null,Object(r.__)("Add Reach player embed ID to use the block.","amp"))))},d=function(e){var t=e.attributes,a=t.dataEmbedId,r=t.ampLayout,n=t.height,i=t.width,c={layout:r,height:n,"data-embed-id":a};return"fixed-height"!==r&&i&&(c.width=i),Object(o.createElement)("amp-reach-player",c)};a.d(t,"name",function(){return m}),a.d(t,"settings",function(){return b});var m="amp/amp-reach-player",b={title:Object(r.__)("AMP Reach Player","amp"),description:Object(r.__)("Displays the Reach Player configured in the Beachfront Reach platform.","amp"),category:"embed",icon:"embed-generic",keywords:[Object(r.__)("Embed","amp"),Object(r.__)("Beachfront Reach video","amp")],attributes:{dataEmbedId:{source:"attribute",selector:"amp-reach-player",attribute:"data-embed-id"},ampLayout:{default:"fixed-height",source:"attribute",selector:"amp-reach-player",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-reach-player",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-reach-player",attribute:"height"}},edit:s,save:d}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(10),i=a.n(n),o=a(0),c=(a(5),a(4)),l=a(2),u=a(8),s=function(e){var t=e.attributes,a=e.setAttributes,n=t.dataSiteId,s=t.dataPlayerId,d=t.dataContentId,m=t.dataDomain,b=t.dataMode,p=t.dataItems,f=[{value:"responsive",label:Object(r.__)("Responsive","amp")},{value:"fixed",label:Object(r.__)("Fixed","amp")},{value:"fill",label:Object(r.__)("Fill","amp")},{value:"flex-item",label:Object(r.__)("Flex-item","amp")}],h=!1;return n&&d&&m&&b&&p&&(h="https://cms.springboardplatform.com/embed_iframe/"),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(r.__)("Springboard Player Settings","amp")},Object(o.createElement)(l.TextControl,{label:Object(r.__)("Site ID (required)","amp"),value:n,onChange:function(e){return a({dataSiteId:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Content ID (required)","amp"),value:d,onChange:function(e){return a({dataContentId:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Player ID","amp"),value:s,onChange:function(e){return a({dataPlayerId:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Springboard partner domain","amp"),value:m,onChange:function(e){return a({dataDomain:e})}}),Object(o.createElement)(l.SelectControl,{label:Object(r.__)("Mode (required)","amp"),value:b,options:[{value:"video",label:Object(r.__)("Video","amp")},{value:"playlist",label:Object(r.__)("Playlist","amp")}],onChange:function(e){return a({dataMode:e})}}),Object(o.createElement)(l.TextControl,{type:"number",label:Object(r.__)("Number of video is playlist (required)","amp"),value:p,onChange:function(e){return a({dataItems:e})}}),Object(o.createElement)(u.a,i()({},e,{ampLayoutOptions:f})))),h&&Object(o.createElement)(u.b,{name:Object(r.__)("Springboard Player","amp"),url:h}),!h&&Object(o.createElement)(l.Placeholder,{label:Object(r.__)("Springboard Player","amp")},Object(o.createElement)("p",null,Object(r.__)("Add required data to use the block.","amp"))))},d=function(e){var t=e.attributes,a=t.dataSiteId,r=t.dataPlayerId,n=t.dataContentId,i=t.dataDomain,c=t.dataMode,l=t.dataItems,u=t.ampLayout,s=t.height,d=t.width,m={layout:u,height:s,"data-site-id":a,"data-mode":c,"data-content-id":n,"data-player-id":r,"data-domain":i,"data-items":l};return"fixed-height"!==u&&d&&(m.width=t.width),Object(o.createElement)("amp-springboard-player",m)};a.d(t,"name",function(){return m}),a.d(t,"settings",function(){return b});var m="amp/amp-springboard-player",b={title:Object(r.__)("AMP Springboard Player","amp"),description:Object(r.__)("Displays the Springboard Player used in the Springboard Video Platform","amp"),category:"embed",icon:"embed-generic",keywords:[Object(r.__)("Embed","amp")],attributes:{dataSiteId:{source:"attribute",selector:"amp-springboard-player",attribute:"data-site-id"},dataContentId:{source:"attribute",selector:"amp-springboard-player",attribute:"data-content-id"},dataPlayerId:{source:"attribute",selector:"amp-springboard-player",attribute:"data-player-id"},dataDomain:{source:"attribute",selector:"amp-springboard-player",attribute:"data-domain"},dataMode:{default:"video",source:"attribute",selector:"amp-springboard-player",attribute:"data-mode"},dataItems:{default:1,source:"attribute",selector:"amp-springboard-player",attribute:"data-items"},ampLayout:{default:"responsive",source:"attribute",selector:"amp-springboard-player",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-springboard-player",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-springboard-player",attribute:"height"}},edit:s,save:d}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(10),i=a.n(n),o=a(0),c=a(12),l=a.n(c),u=(a(5),a(4)),s=a(2),d=a(8),m=function(e){var t,a=e.attributes,n=e.setAttributes,c=a.align,m=a.cutoff,b=a.dateTime;b?t=m&&parseInt(m)<Math.abs(l()(b).diff(l()(),"seconds"))?l()(b).format("dddd D MMMM HH:mm"):l()(b).fromNow():(t=l()(Date.now()).fromNow(),n({dateTime:l()(l()(),l.a.ISO_8601,!0).format()}));var p=[{value:"",label:Object(r.__)("Responsive","amp")},{value:"fixed",label:Object(r.__)("Fixed","amp")},{value:"fixed-height",label:Object(r.__)("Fixed Height","amp")}];return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(s.PanelBody,{title:Object(r.__)("AMP Timeago Settings","amp")},Object(o.createElement)(s.DateTimePicker,{locale:"en",currentDate:b||l()(),onChange:function(e){return n({dateTime:l()(e,l.a.ISO_8601,!0).format()})}}),Object(o.createElement)(d.a,i()({},e,{ampLayoutOptions:p})),Object(o.createElement)(s.TextControl,{type:"number",className:"blocks-amp-timeout__cutoff",label:Object(r.__)("Cutoff (seconds)","amp"),value:void 0!==m?m:"",onChange:function(e){return n({cutoff:e})}}))),Object(o.createElement)(u.BlockControls,null,Object(o.createElement)(u.BlockAlignmentToolbar,{value:c,onChange:function(e){n({align:e})},controls:["left","center","right"]})),Object(o.createElement)("time",{dateTime:b},t))},b=function(e){var t=e.attributes,a=t.ampLayout,r=t.width,n=t.height,i=t.align,c=t.cutoff,u={layout:"responsive",className:"align"+(i||"none"),datetime:t.dateTime,locale:"en"};if(c&&(u.cutoff=c),a)switch(a){case"fixed-height":n&&(u.height=n,u.layout=a);break;case"fixed":n&&r&&(u.height=n,u.width=r,u.layout=a)}return Object(o.createElement)("amp-timeago",u,l()(t.dateTime).format("dddd D MMMM HH:mm"))};a.d(t,"name",function(){return p}),a.d(t,"settings",function(){return f});var p="amp/amp-timeago",f={title:Object(r.__)("AMP Timeago","amp"),category:"common",icon:"backup",keywords:[Object(r.__)("Time difference","amp"),Object(r.__)("Time ago","amp"),Object(r.__)("Date","amp")],attributes:{align:{type:"string"},cutoff:{source:"attribute",selector:"amp-timeago",attribute:"cutoff"},dateTime:{source:"attribute",selector:"amp-timeago",attribute:"datetime"},ampLayout:{default:"fixed-height",source:"attribute",selector:"amp-timeago",attribute:"layout"},width:{source:"attribute",selector:"amp-timeago",attribute:"width"},height:{default:20,source:"attribute",selector:"amp-timeago",attribute:"height"}},getEditWrapperProps:function(e){var t=e.align;if("left"===t||"right"===t||"center"===t)return{"data-align":t}},edit:m,save:b}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(10),i=a.n(n),o=a(11),c=a.n(o),l=a(16),u=a.n(l),s=a(17),d=a.n(s),m=a(18),b=a.n(m),p=a(19),f=a.n(p),h=a(20),O=a.n(h),y=a(0),g=a(7),j=(a(5),a(2)),_=a(33),v=a.n(_),x=a(4),E=a(3);function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}var w=window.ampLatestStoriesBlockData,S=function(e){function t(){return u()(this,t),b()(this,f()(t).apply(this,arguments))}return O()(t,e),d()(t,[{key:"componentDidMount",value:function(){if(!document.querySelector('link[href="'.concat(w.storyCardStyleURL,'"]'))){var e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href",w.storyCardStyleURL),document.head.appendChild(e)}}},{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,n=e.latestStories,o=t.order,l=t.orderBy,u=t.storiesToShow,s=!Array.isArray(n),d=(n||[]).filter(function(e){return e.featured_media>0}).length>0,m=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?P(a,!0).forEach(function(t){c()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):P(a).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({},t,{useCarousel:!1});return Object(y.createElement)(y.Fragment,null,Object(y.createElement)(x.InspectorControls,null,Object(y.createElement)(j.PanelBody,{title:Object(r.__)("Latest Stories Settings","amp")},Object(y.createElement)(j.QueryControls,i()({order:o,orderBy:l},{numberOfItems:u,onOrderChange:function(e){return a({order:e})},onOrderByChange:function(e){return a({orderBy:e})},onNumberOfItemsChange:function(e){return a({storiesToShow:e})}})))),(s||!d)&&Object(y.createElement)(j.Placeholder,{icon:"admin-post",label:Object(r.__)("Latest Stories","amp")},s?Object(y.createElement)(j.Spinner,null):Object(r.__)("No stories found.","amp")),d&&Object(y.createElement)(v.a,{block:"amp/amp-latest-stories",attributes:m}))}}]),t}(y.Component),C=Object(E.withSelect)(function(e,t){var a=t.attributes,r=a.storiesToShow,n=a.order,i=a.orderBy;return{latestStories:(0,e("core").getEntityRecords)("postType","amp_story",Object(g.pickBy)({order:n,orderby:i,per_page:r},function(e){return!Object(g.isUndefined)(e)}))}})(S);a.d(t,"name",function(){return I}),a.d(t,"settings",function(){return T});var I="amp/amp-latest-stories",T={title:Object(r.__)("Latest Stories","amp"),description:Object(r.__)("Display your most recent stories.","amp"),icon:"list-view",category:"widgets",keywords:[Object(r.__)("recent stories","amp"),Object(r.__)("AMP Stories","amp")],supports:{html:!1},edit:C,save:function(){return null}}}]);
1
+ !function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=37)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t,a){e.exports=a(27)()},function(e,t,a){"use strict";a.d(t,"f",(function(){return r})),a.d(t,"c",(function(){return n})),a.d(t,"e",(function(){return i})),a.d(t,"d",(function(){return o})),a.d(t,"g",(function(){return c})),a.d(t,"b",(function(){return l})),a.d(t,"a",(function(){return u}));var r=6,n=72,i=1200,o=1e6,c=1,l="select-file-type-error",u="select-file-size-error"},function(e,t,a){"use strict";var r=a(0),n=(a(5),a(17),a(2)),i=a(1),o=function(e){var t=e.name,a=e.url;return Object(r.createElement)(n.Placeholder,{label:t},Object(r.createElement)("p",{className:"components-placeholder__error"},a),Object(r.createElement)("p",{className:"components-placeholder__error"},Object(i.__)("Previews for this are unavailable in the editor, sorry!","amp")))},c=function(e){var t=e.attributes,a=e.setAttributes,o=e.ampLayoutOptions,c=t.ampLayout,l=t.height,u=t.width,s=!l&&("fixed"===c||"fixed-height"===c),d=!u&&"fixed"===c;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(n.SelectControl,{label:Object(i.__)("Layout","amp"),value:c,options:o,onChange:function(e){return a({ampLayout:e})}}),d&&Object(r.createElement)(n.Notice,{status:"error",isDismissible:!1},Object(i.sprintf)(
2
  /* translators: %s is the layout name */
3
  Object(i.__)("Width is required for %s layout","amp"),c)),Object(r.createElement)(n.TextControl,{type:"number",label:Object(i.__)("Width (px)","amp"),value:void 0!==u?u:"",onChange:function(e){return a({width:e})}}),s&&Object(r.createElement)(n.Notice,{status:"error",isDismissible:!1},Object(i.sprintf)(
4
  /* translators: %s is the layout name */
5
+ Object(i.__)("Height is required for %s layout","amp"),c)),Object(r.createElement)(n.TextControl,{type:"number",label:Object(i.__)("Height (px)","amp"),value:l,onChange:function(e){return a({height:e})}}))},l=a(18),u=a.n(l),s=a(25),d=a.n(s),m=a(19),b=a.n(m),p=a(20),f=a.n(p),h=a(16),y=a.n(h),O=a(21),g=a.n(O),j=a(22),_=a(10),v=a(3),E=window.wp,x=function(e,t){var a=t.width,r=t.height;return function(e){function t(){var e,a;u()(this,t);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"editor-post-featured-image__media-modal"===(a=b()(this,(e=f()(t)).call.apply(e,[this].concat(n)))).props.modalClass&&(a.initFeaturedImage=a.initFeaturedImage.bind(y()(a)),a.initFeaturedImage()),a}return g()(t,e),d()(t,[{key:"initFeaturedImage",value:function(){var e=this,t=Object(j.c)(j.b);this.frame=new t({allowedTypes:this.props.allowedTypes,button:{text:Object(i.__)("Select","amp"),close:!1},states:[new E.media.controller.Library({title:Object(i.__)("Choose image","amp"),library:E.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:a,suggestedHeight:r})]}),E.media.frame=this.frame,this.frame.on("select",this.onSelectImage,this),this.frame.on("close",(function(){e.initFeaturedImage()}),this)}},{key:"onSelectImage",value:function(){var e=this.frame.state().get("selection").first().toJSON(),t=this.props.onSelect,a=e.url,r=e.id,n=e.width,i=e.height;Object(_.f)({url:a,id:r,width:n,height:i,onSelect:t,dispatchImage:function(e){Object(v.dispatch)("core/editor").editPost({featured_media:e})}}),this.frame.close()}}]),t}(e)};a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return c})),a.d(t,"c",(function(){return x}))},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){e.exports=function(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},function(e,t,a){"use strict";a.d(t,"c",(function(){return u})),a.d(t,"g",(function(){return s})),a.d(t,"d",(function(){return d})),a.d(t,"b",(function(){return m})),a.d(t,"a",(function(){return b})),a.d(t,"e",(function(){return p})),a.d(t,"f",(function(){return O}));a(30),a(33),a(34);var r=a(8),n=a(1),i=(a(4),a(6)),o=window.ampStoriesEditorSettings,c=(void 0===o?{}:o).allowedVideoMimeTypes,l=void 0===c?["video/mp4"]:c,u=function(){var e=i.e;return{width:e,height:e*(9/16)}},s=function(e,t,a){if(!e)return a?[Object(n.__)("Selecting a featured image is required.","amp")]:[Object(n.__)("Selecting a featured image is recommended for an optimal user experience.","amp")];var r=[];if(["image/png","image/gif","image/jpeg"].includes(e.mime_type)||r.push(
6
  /* translators: 1: .jpg, 2: .png. 3: .gif */
7
  Object(n.sprintf)(Object(n.__)("The featured image must be in %1$s, %2$s, or %3$s format.","amp"),".jpg",".png",".gif")),!function(e,t){if(!e||!e.width||!e.height)return!1;var a=t.width,r=t.height;return e.width>=a&&e.height>=r}(e.media_details,t)){var i=t.width,o=t.height;r.push(
8
  /* translators: 1: minimum width, 2: minimum height. */
9
+ Object(n.sprintf)(Object(n.__)("The featured image should have a size of at least %1$s by %2$s pixels.","amp"),Math.ceil(i),Math.ceil(o)))}return 0===r.length?null:r},d=function(e){var t=Object(r.template)("<p>".concat(e,"</p>"),{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g});return function(e){return t(e)}},m=function(e,t){if(e){var a=Object(r.get)(this,["options","allowedTypes"],null),n=this.get("select");a&&e.get("type")&&!function(e,t){var a=e.get("type"),r=e.get("mime");return!(!t.includes(a)&&!t.includes(r))&&!("video"===a&&!l.includes(r))}(e,a)?(this.secondary.set(i.b,new t({mimeType:e.get("mime")})),n&&n.model&&n.model.set("disabled",!0)):(this.secondary.unset(i.b),n&&n.model&&n.model.set("disabled",!1))}},b=function(e,t){e&&(("video"===Object(r.get)(e,["media_type"],null)||"video"===Object(r.get)(e,["attributes","type"],null))&&h(f(e))?this.secondary.set(i.a,new t({actualVideoMegabytesPerSecond:Math.round(f(e)/i.d),maxVideoMegabytesPerSecond:i.g})):this.secondary.unset(i.a))},p=function(){return Boolean(this.secondary.get(i.b))&&Boolean(this.secondary.get(i.a))},f=function(e){return Object(r.has)(e,["media_details","filesize"])&&Object(r.has)(e,["media_details","length"])?e.media_details.filesize/e.media_details.length:Object(r.has)(e,["attributes","filesizeInBytes"])&&Object(r.has)(e,["attributes","fileLength"])?e.attributes.filesizeInBytes/y(e.attributes.fileLength):null},h=function(e){return e>i.g*i.d},y=function(e){var t=e.split(":");return Object(r.reduce)(t,(function(e,a,r){var n=isNaN(parseInt(a))?0:parseInt(a),i=t.length-1-r;return e+Math.pow(60,i)*n}),0)},O=function(e){var t=e.url,a=e.id,n=e.width,i=e.height,o=e.onSelect,c=e.dispatchImage,l={};l.url=t,l.thumbnail_url=t,l.timestamp=Object(r.now)(),a&&(l.attachment_id=a),n&&(l.width=n),i&&(l.height=i),o(l),c(a)}},function(e,t){function a(){return e.exports=a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},a.apply(this,arguments)}e.exports=a},function(e,t){!function(){e.exports=this.moment}()},function(e,t,a){"use strict";var r=a(9),n=a.n(r),i=a(0),o=(a(5),a(17),a(1)),c=a(2),l=a(4),u=a(3),s=["core/paragraph","core/heading","core/code","core/quote","core/subhead"],d=["core/image","core/video"],m=a(6);function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}a.d(t,"a",(function(){return f})),a.d(t,"d",(function(){return h})),a.d(t,"b",(function(){return g})),a.d(t,"c",(function(){return j})),a.d(t,"e",(function(){return A}));var p=[{value:"nodisplay",label:Object(o.__)("No Display","amp"),notAvailable:["core-embed/vimeo","core-embed/dailymotion","core-embed/hulu","core-embed/reddit","core-embed/soundcloud"]},{value:"fixed",label:Object(o.__)("Fixed","amp"),notAvailable:["core-embed/soundcloud"]},{value:"responsive",label:Object(o.__)("Responsive","amp"),notAvailable:["core-embed/soundcloud"]},{value:"fixed-height",label:Object(o.__)("Fixed Height","amp"),notAvailable:[]},{value:"fill",label:Object(o.__)("Fill","amp"),notAvailable:["core-embed/soundcloud"]},{value:"flex-item",label:Object(o.__)("Flex Item","amp"),notAvailable:["core-embed/soundcloud"]},{value:"intrinsic",label:Object(o.__)("Intrinsic","amp"),notAvailable:["core/video","core-embed/youtube","core-embed/facebook","core-embed/instagram","core-embed/vimeo","core-embed/dailymotion","core-embed/hulu","core-embed/reddit","core-embed/soundcloud"]}],f=function(e,t){return"core/shortcode"!==t&&"core/gallery"!==t||(e.attributes||(e.attributes={}),e.attributes.ampCarousel={type:"boolean"},e.attributes.ampLightbox={type:"boolean"}),"core/image"===t&&(e.attributes||(e.attributes={}),e.attributes.ampLightbox={type:"boolean"}),s.includes(t)&&(e.attributes||(e.attributes={}),e.attributes.ampFitText={default:!1},e.attributes.minFont={default:m.f,source:"attribute",selector:"amp-fit-text",attribute:"min-font-size"},e.attributes.maxFont={default:m.c,source:"attribute",selector:"amp-fit-text",attribute:"max-font-size"},e.attributes.height={default:"core/image"===t?200:10*Math.ceil(m.c/10),source:"attribute",selector:"amp-fit-text",attribute:"height"}),(0===t.indexOf("core-embed")||d.includes(t))&&(e.attributes||(e.attributes={}),e.attributes.ampLayout={type:"string"},e.attributes.ampNoLoading={type:"boolean"}),e},h=function(e,t,a){var r=a.text||"",n="",o={layout:"fixed-height"};if("core/shortcode"===t.name&&M(a)){if(a.ampLightbox||F(a.text||"")&&(r=k(a.text)),a.ampCarousel){if(D(r)&&(r=T(r)),!a.ampLightbox)return a.text!==r?Object(i.createElement)(i.RawHTML,null,r):e}else r=D(a.text||"")?a.text:a.text.replace("[gallery","[gallery amp-carousel=false");if(a.ampLightbox&&!F(r)&&(r=r.replace("[gallery","[gallery amp-lightbox=true")),a.text!==r)return Object(i.createElement)(i.RawHTML,null,r)}else if("core/paragraph"!==t.name||a.ampFitText){if(s.includes(t.name)&&a.ampFitText){if(a.minFont&&(o["min-font-size"]=a.minFont),a.maxFont&&(o["max-font-size"]=a.maxFont),a.height&&(o.height=a.height),"core/paragraph"===t.name){var c="<amp-fit-text";for(var l in o){if(o.hasOwnProperty(l))c+=" "+l+'="'+o[l]+'"'}return c+=">"+y(a.content)+"</amp-fit-text>",Object(i.cloneElement)(e,{key:"new",value:c})}return o.children=e,Object(i.createElement)("amp-fit-text",o)}}else if((n=y(a.content))!==a.content)return Object(i.cloneElement)(e,{key:"new",value:n});return e},y=function(e){var t=/<amp-fit-text\b[^>]*>(.*?)<\/amp-fit-text>/.exec(e),a=e;return t&&t[1]&&(a=t[1]),a},O=function(e){var t=[{value:"",label:Object(o.__)("Default","amp")}],a=!0,r=!1,n=void 0;try{for(var i,c=p[Symbol.iterator]();!(a=(i=c.next()).done);a=!0){var l=i.value;!l.notAvailable.includes(e)&&t.push({value:l.value,label:l.label})}}catch(e){r=!0,n=e}finally{try{a||null==c.return||c.return()}finally{if(r)throw n}}return t},g=function(e,t,a){var r={};return"core/shortcode"===t.name?e:"amp/"===t.name.substr(0,4)?e:(a.ampLayout&&(r["data-amp-layout"]=a.ampLayout),a.ampNoLoading&&(r["data-amp-noloading"]=a.ampNoLoading),a.ampLightbox&&(r["data-amp-lightbox"]=a.ampLightbox),a.ampCarousel&&(r["data-amp-carousel"]=a.ampCarousel),function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?b(a,!0).forEach((function(t){n()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):b(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},r,{},e))},j=function(e){return function(t){var a,r=t.attributes,n=r.text,o=r.ampLayout,c=t.setAttributes,l=t.name;if("core/shortcode"===l){if(D(n||"")&&c({text:T(n)}),F(n||"")&&c({text:k(n)}),""===(a=P(t)))return Object(i.createElement)(e,t)}else"core/gallery"===l?a=I(t):"core/image"===l?a=C(t):d.includes(l)||0===l.indexOf("core-embed/")?a=_(t):s.includes(l)&&(a=x(t));return o&&"nodisplay"===o?[a]:Object(i.createElement)(i.Fragment,null,Object(i.createElement)(e,t),a)}},_=function(e){return e.isSelected?Object(i.createElement)(l.InspectorControls,null,Object(i.createElement)(c.PanelBody,{title:Object(o.__)("AMP Settings","amp")},Object(i.createElement)(v,e),Object(i.createElement)(E,e))):null},v=function(e){var t=e.name,a=e.attributes.ampLayout,r=e.setAttributes,n=Object(o.__)("AMP Layout","amp");return"core/image"===t&&(n=Object(o.__)("AMP Layout (modifies width/height)","amp")),Object(i.createElement)(c.SelectControl,{label:n,value:a,options:O(t),onChange:function(t){r({ampLayout:t}),"core/image"===e.name&&function(e,t){var a=e.attributes,r=e.setAttributes;switch(t){case"fixed-height":a.height||r({height:400}),a.ampLightbox&&r({ampLightbox:!1});break;case"fixed":a.height||r({height:400}),a.width||r({width:608})}}(e,t)}})},E=function(e){var t=e.attributes.ampNoLoading,a=e.setAttributes,r=Object(o.__)("AMP Noloading","amp");return Object(i.createElement)(c.ToggleControl,{label:r,checked:t,onChange:function(){return a({ampNoLoading:!t})}})},x=function(e){var t=e.isSelected,a=e.attributes,r=e.setAttributes,n=a.ampFitText,u=a.minFont,s=a.maxFont,d=a.height,b=[{name:"small",shortName:Object(o._x)("S","font size","amp"),size:14},{name:"regular",shortName:Object(o._x)("M","font size","amp"),size:16},{name:"large",shortName:Object(o._x)("L","font size","amp"),size:36},{name:"larger",shortName:Object(o._x)("XL","font size","amp"),size:48}];if(!t)return null;var p=Object(o.__)("Automatically fit text to container","amp");return n&&(s=parseInt(s),d=parseInt(d),u=parseInt(u)),Object(i.createElement)(l.InspectorControls,null,Object(i.createElement)(c.PanelBody,{title:Object(o.__)("AMP Settings","amp"),className:n?"is-amp-fit-text":""},Object(i.createElement)(c.ToggleControl,{label:p,checked:n,onChange:function(){return r({ampFitText:!n})}})),n&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c.TextControl,{label:Object(o.__)("Height","amp"),value:d,min:1,onChange:function(e){r({height:e})}}),s>d&&Object(i.createElement)(c.Notice,{status:"error",isDismissible:!1},Object(o.__)("The height must be greater than the max font size.","amp")),Object(i.createElement)(c.PanelBody,{title:Object(o.__)("Minimum font size","amp")},Object(i.createElement)(c.FontSizePicker,{fallbackFontSize:14,value:u,fontSizes:b,onChange:function(e){e||(e=m.f),parseInt(e)<=s&&r({minFont:e})}})),u>s&&Object(i.createElement)(c.Notice,{status:"error",isDismissible:!1},Object(o.__)("The min font size must less than the max font size.","amp")),Object(i.createElement)(c.PanelBody,{title:Object(o.__)("Maximum font size","amp")},Object(i.createElement)(c.FontSizePicker,{fallbackFontSize:48,value:s,fontSizes:b,onChange:function(e){e||(e=m.c),r({maxFont:e,height:Math.max(e,d)})}}))))},P=function(e){var t=e.isSelected;if(!M(e.attributes)||!t)return null;var a=Object(u.select)("amp/block-editor").hasThemeSupport();return Object(i.createElement)(l.InspectorControls,null,Object(i.createElement)(c.PanelBody,{title:Object(o.__)("AMP Settings","amp")},a&&Object(i.createElement)(S,e),Object(i.createElement)(w,e)))},w=function(e){var t=e.attributes,a=t.ampLightbox,r=t.linkTo,n=t.ampLayout,l=e.setAttributes;return Object(i.createElement)(c.ToggleControl,{label:Object(o.__)("Add lightbox effect","amp"),checked:a,onChange:function(e){l({ampLightbox:!a}),e&&("fixed-height"===n&&l({ampLayout:"fixed"}),r&&"none"!==r&&l({linkTo:"none"}))}})},S=function(e){var t=e.attributes.ampCarousel,a=e.setAttributes;return Object(i.createElement)(c.ToggleControl,{label:Object(o.__)("Display as carousel","amp"),checked:t,onChange:function(){return a({ampCarousel:!t})}})},C=function(e){return e.isSelected?Object(i.createElement)(l.InspectorControls,null,Object(i.createElement)(c.PanelBody,{title:Object(o.__)("AMP Settings","amp")},Object(i.createElement)(v,e),Object(i.createElement)(E,e),Object(i.createElement)(w,e))):null},I=function(e){if(!e.isSelected)return null;var t=Object(u.select)("amp/block-editor").hasThemeSupport();return Object(i.createElement)(l.InspectorControls,null,Object(i.createElement)(c.PanelBody,{title:Object(o.__)("AMP Settings","amp")},t&&Object(i.createElement)(S,e),Object(i.createElement)(w,e)))},T=function(e){return e.replace(" amp-carousel=false","")},k=function(e){return e.replace(" amp-lightbox=true","")},D=function(e){return-1!==e.indexOf("amp-carousel=false")},F=function(e){return-1!==e.indexOf("amp-lightbox=true")},M=function(e){return e.text&&-1!==e.text.indexOf("gallery")},A=function(){var e=Object(u.select)("amp/block-editor"),t=e.getDefaultStatus,a=e.getPossibleStatuses,r=Object(u.select)("core/editor").getEditedPostAttribute;if("amp_story"===r("type"))return!0;var n=r("meta");return n&&n.amp_status&&a().includes(n.amp_status)?"enabled"===n.amp_status:"enabled"===t()}},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){!function(){e.exports=this.React}()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,a){var r=a(41),n=a(16);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?n(e):t}},function(e,t){function a(t){return e.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(t)}e.exports=a},function(e,t,a){var r=a(42);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,a){"use strict";a.d(t,"b",(function(){return p})),a.d(t,"a",(function(){return f})),a.d(t,"c",(function(){return h}));var r=a(9),n=a.n(r),i=a(8),o=a(1),c=a(10);function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}var u,s=window.wp,d=s.media.View.extend({className:"notice notice-warning notice-alt inline",template:(u=Object(o.sprintf)(
10
  /* translators: 1: image width in pixels. 2: image height in pixels. 3: required minimum width in pixels. 4: required minimum height in pixels. */
11
+ Object(o.__)("The selected image is too small (%1$s by %2$s pixels). It should have a size of at least %3$s by %4$s pixels.","amp"),"{{width}}","{{height}}","{{minWidth}}","{{minHeight}}"),Object(c.d)(u))}),m=s.media.View.extend({className:"notice notice-warning notice-alt inline",template:function(){var e=Object(o.sprintf)(
12
  /* translators: 1: the selected file type. */
13
+ Object(o.__)("The selected file mime type, %1$s, is not allowed.","amp"),"{{mimeType}}");return Object(c.d)(e)}()}),b=s.media.View.extend({className:"notice notice-warning notice-alt inline",template:function(){var e=Object(o.sprintf)(
14
  /* translators: 1: the recommended max MB per second for videos. 2: the actual MB per second of the video. */
15
+ Object(o.__)("A video size of less than %1$s MB per second is recommended. The selected video is %2$s MB per second.","amp"),"{{maxVideoMegabytesPerSecond}}","{{actualVideoMegabytesPerSecond}}");return Object(c.d)(e)}()}),p=s.media.view.Toolbar.Select.extend({refresh:function(){s.media.view.Toolbar.Select.prototype.refresh.call(this);var e=this.controller.state(),t=e.get("selection").models[0],a=e.collection.get("library").get("suggestedWidth"),r=e.collection.get("library").get("suggestedHeight");!t||"image"!==t.get("type")||!t.get("width")||t.get("width")>=a&&t.get("height")>=r?this.secondary.unset("select-error"):this.secondary.set("select-error",new d({minWidth:a,minHeight:r,width:t.get("width"),height:t.get("height")})),c.b.call(this,t,m)}}),f=s.media.view.Toolbar.Select.extend({refresh:function(){s.media.view.Toolbar.Select.prototype.refresh.call(this);var e=this.controller.state().get("selection").models[0];c.b.call(this,e,m),c.a.call(this,e,b);var t=this.$el.parents(".media-frame");t&&t.toggleClass("has-two-notices",c.e.call(this))}}),h=function(e){return s.media.view.MediaFrame.Select.extend({createSelectToolbar:function(t,a){(a=a||this.options.button||{}).controller=this,a=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(a,!0).forEach((function(t){n()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},a,{allowedTypes:Object(i.get)(this,["options","allowedTypes"],null)}),t.view=new e(a)}})}},function(e,t){e.exports=ampBlockEditor},function(e,t){!function(){e.exports=this.wp.editPost}()},function(e,t){function a(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}},function(e,t,a){"use strict";var r=a(0),n=(a(5),a(2)),i=a(24),o=a(3),c=a(1),l=a(10),u=Object(o.withSelect)((function(e){var t=e("core/editor").getCurrentPost(),a=e("core/editor").getEditedPostAttribute("featured_media"),r=t.featured_media||a;return{featuredMedia:r?e("core").getMedia(r):null}}))((function(e){var t=e.featuredMedia,a=e.dimensions,o=e.required,u=Object(l.g)(t,a,o);return u?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.PluginPrePublishPanel,{title:Object(c.__)("Featured Image","amp"),initialOpen:"true"},Object(r.createElement)(n.Notice,{status:o?"warning":"notice",isDismissible:!1},u.map((function(e,t){return Object(r.createElement)("p",{key:"error-".concat(t)},e)}))))):null})),s=a(15),d=Object(s.createHigherOrderComponent)((function(e){return function(t){var a=t.media,i=Object(l.g)(a,Object(l.c)(),!1);return i?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(n.Notice,{status:"notice",isDismissible:!1},i.map((function(e,t){return Object(r.createElement)("p",{key:"error-".concat(t)},e)}))),Object(r.createElement)(e,t)):Object(r.createElement)(e,t)}}),"withFeaturedImageNotice");a(18),a(19),a(20),a(16),a(21),a(9),a(8),a(22),window.wp;a.d(t,"a",(function(){return u})),a.d(t,"b",(function(){return d}))},function(e,t,a){"use strict";var r=a(28);function n(){}function i(){}i.resetWarningCache=n,e.exports=function(){function e(e,t,a,n,i,o){if(o!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:n};return a.PropTypes=a,a}},function(e,t,a){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,a){"use strict";var r={};a.r(r),a.d(r,"hasThemeSupport",(function(){return c})),a.d(r,"isStandardMode",(function(){return l})),a.d(r,"isWebsiteEnabled",(function(){return u})),a.d(r,"isStoriesEnabled",(function(){return s})),a.d(r,"getDefaultStatus",(function(){return d})),a.d(r,"getPossibleStatuses",(function(){return m}));var n=a(9),i=a.n(n),o=a(3);function c(e){return Boolean(e.hasThemeSupport)}function l(e){return Boolean(e.isStandardMode)}function u(e){return Boolean(e.isWebsiteEnabled)}function s(e){return Boolean(e.isStoriesEnabled)}function d(e){return e.defaultStatus}function m(e){return e.possibleStatuses}function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}Object(o.registerStore)("amp/block-editor",{reducer:function(e){return e},selectors:r,initialState:function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?b(a,!0).forEach((function(t){i()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):b(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},window.ampBlockEditor)})},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){function a(e,t,a,r,n,i,o){try{var c=e[i](o),l=c.value}catch(e){return void a(e)}c.done?t(l):Promise.resolve(l).then(r,n)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function c(e){a(o,n,i,c,l,"next",e)}function l(e){a(o,n,i,c,l,"throw",e)}c(void 0)}))}}},function(e,t,a){var r=a(38),n=a(39),i=a(40);e.exports=function(e,t){return r(e)||n(e,t)||i()}},function(e,t){!function(){e.exports=this.wp.serverSideRender}()},,function(e,t,a){"use strict";a.r(t);var r=a(14),n=a(31),i=a(32),o=a(3),c=a(26),l=a(7),u=a(13),s=a(10),d=(a(29),Object(o.select)("amp/block-editor")),m=d.isWebsiteEnabled,b=d.isStoriesEnabled,p=d.isStandardMode,f=window.ampLatestStoriesBlockData;if(m()){var h=a(43);h.keys().forEach((function(e){var t=h(e),a=t.name,r=t.render,i=t.icon;Object(n.registerPlugin)(a,{icon:i,render:r})})),Object(r.addFilter)("blocks.registerBlockType","ampEditorBlocks/addAttributes",u.a),Object(r.addFilter)("blocks.getSaveElement","ampEditorBlocks/filterSave",u.d),Object(r.addFilter)("editor.BlockEdit","ampEditorBlocks/filterEdit",u.c,20),Object(r.addFilter)("blocks.getSaveContent.extraProps","ampEditorBlocks/addExtraAttributes",u.b),Object(r.addFilter)("editor.PostFeaturedImage","ampEditorBlocks/withFeaturedImageNotice",c.b),Object(r.addFilter)("editor.MediaUpload","ampEditorBlocks/withMediaLibraryNotice",(function(e){return Object(l.c)(e,Object(s.c)())}))}var y=["amp/amp-brid-player","amp/amp-ima-video","amp/amp-jwplayer","amp/amp-mathml","amp/amp-o2-player","amp/amp-ooyala-player","amp/amp-reach-player","amp/amp-springboard-player","amp/amp-timeago"],O=a(46);O.keys().forEach((function(e){var t=O(e),a=t.name,r=t.settings,n="amp/amp-latest-stories"===a;(m()&&p()&&y.includes(a)||b()&&n&&void 0!==f)&&Object(i.registerBlockType)(a,r)}))},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var a=[],r=!0,n=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(a.push(o.value),!t||a.length!==t);r=!0);}catch(e){n=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(n)throw i}}return a}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){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 r(t){return"function"==typeof Symbol&&"symbol"===a(Symbol.iterator)?e.exports=r=function(e){return a(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":a(e)},r(t)}e.exports=r},function(e,t){function a(t,r){return e.exports=a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(t,r)}e.exports=a},function(e,t,a){var r={"./amp-toggle.js":44,"./pre-publish-panel.js":45};function n(e){var t=i(e);return a(t)}function i(e){if(!a.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}n.keys=function(){return Object.keys(r)},n.resolve=i,e.exports=n,n.id=43},function(e,t,a){"use strict";a.r(t),a.d(t,"name",(function(){return d})),a.d(t,"icon",(function(){return m})),a.d(t,"render",(function(){return b}));var r=a(0),n=a(23),i=(a(5),a(1)),o=a(2),c=a(3),l=a(24),u=a(15),s=a(13);var d="amp",m="hidden",b=Object(u.compose)(Object(c.withSelect)((function(){return{isEnabled:Object(s.e)()}})),Object(c.withDispatch)((function(e){return{onChange:function(t){var a=t?"enabled":"disabled";e("core/editor").editPost({meta:{amp_status:a}})}}})),u.withInstanceId)((function(e){var t=e.isEnabled,a=e.onChange;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.PluginPostStatusInfo,null,!n.errorMessages.length&&Object(r.createElement)("label",{htmlFor:"amp-enabled"},Object(i.__)("Enable AMP","amp")),!n.errorMessages.length&&Object(r.createElement)(o.FormToggle,{checked:t,onChange:function(){return a(!t)},id:"amp-enabled"}),Boolean(n.errorMessages.length)&&Object(r.createElement)(o.Notice,{status:"warning",isDismissible:!1},n.errorMessages.map((function(e,t){return Object(r.createElement)(r.RawHTML,{key:t},e)})))))}))},function(e,t,a){"use strict";a.r(t),a.d(t,"name",(function(){return o})),a.d(t,"render",(function(){return c}));var r=a(0),n=a(26),i=a(10),o="amp-post-featured-image-pre-publish-panel",c=function(){return Object(r.createElement)(n.a,{dimensions:Object(i.c)(),required:!1})}},function(e,t,a){var r={"./amp-brid-player/index.js":52,"./amp-ima-video/index.js":53,"./amp-jwplayer/index.js":54,"./amp-latest-stories/index.js":61,"./amp-mathml/index.js":55,"./amp-o2-player/index.js":56,"./amp-ooyala-player/index.js":57,"./amp-reach-player/index.js":58,"./amp-springboard-player/index.js":59,"./amp-timeago/index.js":60};function n(e){var t=i(e);return a(t)}function i(e){if(!a.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}n.keys=function(){return Object.keys(r)},n.resolve=i,e.exports=n,n.id=46},,,,,,function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(11),i=a.n(n),o=a(0),c=(a(5),a(4)),l=a(2),u=a(7),s=function(e){var t=e.attributes,a=e.setAttributes,n=t.autoPlay,s=t.dataPartner,d=t.dataPlayer,m=t.dataVideo,b=t.dataPlaylist,p=t.dataOutstream,f=[{value:"responsive",label:Object(r.__)("Responsive","amp")},{value:"fixed-height",label:Object(r.__)("Fixed Height","amp")},{value:"fixed",label:Object(r.__)("Fixed","amp")},{value:"fill",label:Object(r.__)("Fill","amp")},{value:"flex-item",label:Object(r.__)("Flex-item","amp")},{value:"nodisplay",label:Object(r.__)("No Display","amp")}],h=!1;return s&&d&&(m||b||p)&&(h="http://cdn.brid.tv/live/partners/".concat(s)),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(r.__)("Brid Player Settings","amp")},Object(o.createElement)(l.TextControl,{label:Object(r.__)("Partner ID (required)","amp"),value:s,onChange:function(e){return a({dataPartner:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Player ID (required)","amp"),value:d,onChange:function(e){return a({dataPlayer:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Video ID (one of video / playlist / outstream ID is required)","amp"),value:m,onChange:function(e){return a({dataVideo:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Outstream unit ID (one of video / playlist / outstream ID is required)","amp"),value:p,onChange:function(e){return a({dataOutstream:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Playlist ID (one of video / playlist / outstream ID is required)","amp"),value:b,onChange:function(e){return a({dataPlaylist:e})}}),Object(o.createElement)(l.ToggleControl,{label:Object(r.__)("Autoplay","amp"),checked:n,onChange:function(){return a({autoPlay:!n})}}),Object(o.createElement)(u.a,i()({},e,{ampLayoutOptions:f})))),h&&Object(o.createElement)(u.b,{name:Object(r.__)("Brid Player","amp"),url:h}),!h&&Object(o.createElement)(l.Placeholder,{label:Object(r.__)("Brid Player","amp")},Object(o.createElement)("p",null,Object(r.__)("Add required data to use the block.","amp"))))},d=function(e){var t=e.attributes,a=t.dataPlayer,r=t.dataOutstream,n=t.dataPartner,i=t.ampLayout,c=t.width,l=t.height,u=t.dataVideo,s=t.autoPlay,d=t.dataPlaylist,m={layout:i,height:l,"data-player":a,"data-partner":n};return"fixed-height"!==i&&c&&(m.width=c),d&&(m["data-playlist"]=d),u&&(m["data-video"]=u),r&&(m["data-outstream"]=r),s&&(m.autoplay=s),Object(o.createElement)("amp-brid-player",m)};a.d(t,"name",(function(){return m})),a.d(t,"settings",(function(){return b}));var m="amp/amp-brid-player",b={title:Object(r.__)("AMP Brid Player","amp"),description:Object(r.__)("Displays the Brid Player used in Brid.tv Video Platform.","amp"),category:"embed",icon:"embed-generic",keywords:[Object(r.__)("Embed","amp")],attributes:{autoPlay:{type:"boolean"},dataPartner:{source:"attribute",selector:"amp-brid-player",attribute:"data-partner"},dataPlayer:{source:"attribute",selector:"amp-brid-player",attribute:"data-player"},dataVideo:{source:"attribute",selector:"amp-brid-player",attribute:"data-video"},dataPlaylist:{source:"attribute",selector:"amp-brid-player",attribute:"data-playlist"},dataOutstream:{source:"attribute",selector:"amp-brid-player",attribute:"data-outstream"},ampLayout:{default:"responsive",source:"attribute",selector:"amp-brid-player",attribute:"layout"},width:{type:"number",default:600},height:{default:400,source:"attribute",selector:"amp-brid-player",attribute:"height"}},edit:s,save:d}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(11),i=a.n(n),o=a(0),c=(a(5),a(4)),l=a(2),u=a(7),s=function(e){var t=e.attributes,a=e.setAttributes,n=t.dataDelayAdRequest,s=t.dataTag,d=t.dataSrc,m=t.dataPoster,b=[{value:"responsive",label:Object(r.__)("Responsive","amp")},{value:"fixed",label:Object(r.__)("Fixed","amp")}],p=!1;return s&&d&&(p=!0),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(r.__)("IMA Video Settings","amp")},Object(o.createElement)(l.TextControl,{label:Object(r.__)("HTTPS URL for your VAST ad document (required)","amp"),value:s,onChange:function(e){return a({dataTag:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("HTTPS URL of your video content (required)","amp"),value:d,onChange:function(e){return a({dataSrc:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("HTTPS URL to preview image","amp"),value:m,onChange:function(e){return a({dataPoster:e})}}),Object(o.createElement)(l.ToggleControl,{label:Object(r.__)("Delay Ad Request","amp"),checked:n,onChange:function(){return a({dataDelayAdRequest:!n})}}),Object(o.createElement)(u.a,i()({},e,{ampLayoutOptions:b})))),p&&Object(o.createElement)(u.b,{name:Object(r.__)("IMA Video","amp"),url:d}),!p&&Object(o.createElement)(l.Placeholder,{label:Object(r.__)("IMA Video","amp")},Object(o.createElement)("p",null,Object(r.__)("Add required data to use the block.","amp"))))},d=function(e){var t=e.attributes,a=t.width,r=t.dataSrc,n=t.ampLayout,i=t.dataTag,c=t.dataDelayAdRequest,l=t.height,u=t.dataPoster,s={layout:n,height:l,width:a,"data-tag":i,"data-src":r};return u&&(s["data-poster"]=u),c&&(s["data-delay-ad-request"]=c),Object(o.createElement)("amp-ima-video",s)};a.d(t,"name",(function(){return m})),a.d(t,"settings",(function(){return b}));var m="amp/amp-ima-video",b={title:Object(r.__)("AMP IMA Video","amp"),description:Object(r.__)("Embeds a video player for instream video ads that are integrated with the IMA SDK","amp"),category:"embed",icon:"embed-generic",keywords:[Object(r.__)("Embed","amp")],attributes:{dataDelayAdRequest:{default:!1,source:"attribute",selector:"amp-ima-video",attribute:"data-delay-ad-request"},dataTag:{source:"attribute",selector:"amp-ima-video",attribute:"data-tag"},dataSrc:{source:"attribute",selector:"amp-ima-video",attribute:"data-src"},dataPoster:{source:"attribute",selector:"amp-ima-video",attribute:"data-poster"},ampLayout:{default:"responsive",source:"attribute",selector:"amp-ima-video",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-ima-video",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-ima-video",attribute:"height"}},edit:s,save:d}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(11),i=a.n(n),o=a(0),c=(a(5),a(4)),l=a(2),u=a(7),s=function(e){var t=e.attributes,a=e.setAttributes,n=t.dataPlayerId,s=t.dataMediaId,d=t.dataPlaylistId,m=[{value:"responsive",label:Object(r.__)("Responsive","amp")},{value:"fixed-height",label:Object(r.__)("Fixed Height","amp")},{value:"fixed",label:Object(r.__)("Fixed","amp")},{value:"fill",label:Object(r.__)("Fill","amp")},{value:"flex-item",label:Object(r.__)("Flex-item","amp")},{value:"nodisplay",label:Object(r.__)("No Display","amp")}],b=!1;return n&&(s||d)&&(b=d?"https://content.jwplatform.com/players/".concat(d,"-").concat(n):"https://content.jwplatform.com/players/".concat(s,"-").concat(n)),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(r.__)("JW Player Settings","amp")},Object(o.createElement)(l.TextControl,{label:Object(r.__)("Player ID (required)","amp"),value:n,onChange:function(e){return a({dataPlayerId:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Media ID (required if playlist ID not set)","amp"),value:s,onChange:function(e){return a({dataMediaId:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Playlist ID (required if media ID not set)","amp"),value:d,onChange:function(e){return a({dataPlaylistId:e})}}),Object(o.createElement)(u.a,i()({},e,{ampLayoutOptions:m})))),b&&Object(o.createElement)(u.b,{name:Object(r.__)("JW Player","amp"),url:b}),!b&&Object(o.createElement)(l.Placeholder,{label:Object(r.__)("JW Player","amp")},Object(o.createElement)("p",null,Object(r.__)("Add required data to use the block.","amp"))))},d=function(e){var t=e.attributes,a=t.width,r=t.height,n=t.ampLayout,i=t.dataPlaylistId,c=t.dataPlayerId,l=t.dataMediaId,u={layout:n,height:r,"data-player-id":c};return"fixed-height"!==n&&a&&(u.width=a),i&&(u["data-playlist-id"]=i),l&&(u["data-media-id"]=l),Object(o.createElement)("amp-jwplayer",u)};a.d(t,"name",(function(){return m})),a.d(t,"settings",(function(){return b}));var m="amp/amp-jwplayer",b={title:Object(r.__)("AMP JW Player","amp"),description:Object(r.__)("Displays a cloud-hosted JW Player.","amp"),category:"embed",icon:"embed-generic",keywords:[Object(r.__)("Embed","amp")],attributes:{dataPlayerId:{source:"attribute",selector:"amp-jwplayer",attribute:"data-player-id"},dataMediaId:{source:"attribute",selector:"amp-jwplayer",attribute:"data-media-id"},dataPlaylistId:{source:"attribute",selector:"amp-jwplayer",attribute:"data-playlist-id"},ampLayout:{default:"responsive",source:"attribute",selector:"amp-jwplayer",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-jwplayer",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-jwplayer",attribute:"height"}},edit:s,save:d}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(0),i=(a(5),a(4)),o=function(e){var t=e.attributes,a=e.setAttributes,o=t.dataFormula;return Object(n.createElement)(i.PlainText,{value:o,placeholder:Object(r.__)("Insert formula","amp"),onChange:function(e){return a({dataFormula:e})}})},c=function(e){var t={"data-formula":e.attributes.dataFormula,layout:"container"};return Object(n.createElement)("amp-mathml",t)};a.d(t,"name",(function(){return l})),a.d(t,"settings",(function(){return u}));var l="amp/amp-mathml",u={title:Object(r.__)("AMP MathML","amp"),category:"common",icon:"welcome-learn-more",keywords:[Object(r.__)("Mathematical formula","amp"),Object(r.__)("Scientific content ","amp")],attributes:{dataFormula:{source:"attribute",selector:"amp-mathml",attribute:"data-formula"}},edit:o,save:c}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(11),i=a.n(n),o=a(0),c=(a(5),a(4)),l=a(2),u=a(7),s=function(e){var t=e.attributes,a=e.setAttributes,n=t.autoPlay,s=t.dataPid,d=t.dataVid,m=t.dataBcid,b=t.dataBid,p=[{value:"responsive",label:Object(r.__)("Responsive","amp")},{value:"fixed-height",label:Object(r.__)("Fixed Height","amp")},{value:"fixed",label:Object(r.__)("Fixed","amp")},{value:"fill",label:Object(r.__)("Fill","amp")},{value:"flex-item",label:Object(r.__)("Flex-item","amp")},{value:"nodisplay",label:Object(r.__)("No Display","amp")}],f=!1;return s&&(m||d)&&(f="https://delivery.vidible.tv/htmlembed/pid=".concat(s,"/")),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(r.__)("O2 Player Settings","amp")},Object(o.createElement)(l.TextControl,{label:Object(r.__)("Player ID (required)","amp"),value:s,onChange:function(e){return a({dataPid:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Buyer Company ID (either buyer or video ID is required)","amp"),value:m,onChange:function(e){return a({dataBcid:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Video ID (either buyer or video ID is required)","amp"),value:d,onChange:function(e){return a({dataVid:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Playlist ID","amp"),value:b,onChange:function(e){return a({dataBid:e})}}),Object(o.createElement)(l.ToggleControl,{label:Object(r.__)("Autoplay","amp"),checked:n,onChange:function(){return a({autoPlay:!n})}}),Object(o.createElement)(u.a,i()({},e,{ampLayoutOptions:p})))),f&&Object(o.createElement)(u.b,{name:Object(r.__)("O2 Player","amp"),url:f}),!f&&Object(o.createElement)(l.Placeholder,{label:Object(r.__)("O2 Player","amp")},Object(o.createElement)("p",null,Object(r.__)("Add required data to use the block.","amp"))))},d=function(e){var t=e.attributes,a=t.dataPid,r=t.width,n=t.height,i=t.ampLayout,c=t.dataBid,l=t.autoPlay,u=t.dataBcid,s=t.dataVid,d={layout:i,height:n,"data-pid":a};return"fixed-height"!==i&&r&&(d.width=r),l||(d["data-macros"]="m.playback=click"),s?d["data-vid"]=s:u&&(d["data-bcid"]=u),c&&(d["data-bid"]=c),Object(o.createElement)("amp-o2-player",d)};a.d(t,"name",(function(){return m})),a.d(t,"settings",(function(){return b}));var m="amp/amp-o2-player",b={title:Object(r.__)("AMP O2 Player","amp"),category:"embed",icon:"embed-generic",keywords:[Object(r.__)("Embed","amp"),Object(r.__)("AOL O2Player","amp")],attributes:{dataPid:{source:"attribute",selector:"amp-o2-player",attribute:"data-pid"},dataVid:{source:"attribute",selector:"amp-o2-player",attribute:"data-vid"},dataBcid:{source:"attribute",selector:"amp-o2-player",attribute:"data-bcid"},dataBid:{source:"attribute",selector:"amp-o2-player",attribute:"data-bid"},autoPlay:{default:!1},ampLayout:{default:"responsive",source:"attribute",selector:"amp-o2-player",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-o2-player",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-o2-player",attribute:"height"}},edit:s,save:d}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(11),i=a.n(n),o=a(0),c=(a(5),a(4)),l=a(2),u=a(7),s=function(e){var t=e.attributes,a=e.setAttributes,n=t.dataEmbedCode,s=t.dataPlayerId,d=t.dataPcode,m=t.dataPlayerVersion,b=[{value:"responsive",label:Object(r.__)("Responsive","amp")},{value:"fixed",label:Object(r.__)("Fixed","amp")},{value:"fill",label:Object(r.__)("Fill","amp")},{value:"flex-item",label:Object(r.__)("Flex-item","amp")}],p=!1;return n&&s&&d&&(p="http://cf.c.ooyala.com/".concat(n)),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(r.__)("Ooyala Settings","amp")},Object(o.createElement)(l.TextControl,{label:Object(r.__)("Video embed code (required)","amp"),value:n,onChange:function(e){return a({dataEmbedCode:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Player ID (required)","amp"),value:s,onChange:function(e){return a({dataPlayerId:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Provider code for the account (required)","amp"),value:d,onChange:function(e){return a({dataPcode:e})}}),Object(o.createElement)(l.SelectControl,{label:Object(r.__)("Player version","amp"),value:m,options:[{value:"v3",label:Object(r.__)("V3","amp")},{value:"v4",label:Object(r.__)("V4","amp")}],onChange:function(e){return a({dataPlayerVersion:e})}}),Object(o.createElement)(u.a,i()({},e,{ampLayoutOptions:b})))),p&&Object(o.createElement)(u.b,{name:Object(r.__)("Ooyala Player","amp"),url:p}),!p&&Object(o.createElement)(l.Placeholder,{label:Object(r.__)("Ooyala Player","amp")},Object(o.createElement)("p",null,Object(r.__)("Add required data to use the block.","amp"))))},d=function(e){var t=e.attributes,a=t.dataEmbedCode,r=t.dataPlayerId,n=t.dataPcode,i=t.dataPlayerVersion,c=t.ampLayout,l=t.height,u=t.width,s={layout:c,height:l,"data-embedcode":a,"data-playerid":r,"data-pcode":n,"data-playerversion":i};return"fixed-height"!==c&&u&&(s.width=u),Object(o.createElement)("amp-ooyala-player",s)};a.d(t,"name",(function(){return m})),a.d(t,"settings",(function(){return b}));var m="amp/amp-ooyala-player",b={title:Object(r.__)("AMP Ooyala Player","amp"),description:Object(r.__)("Displays an Ooyala video.","amp"),category:"embed",icon:"embed-generic",keywords:[Object(r.__)("Embed","amp"),Object(r.__)("Ooyala video","amp")],attributes:{dataEmbedCode:{source:"attribute",selector:"amp-ooyala-player",attribute:"data-embedcode"},dataPlayerId:{source:"attribute",selector:"amp-ooyala-player",attribute:"data-playerid"},dataPcode:{source:"attribute",selector:"amp-ooyala-player",attribute:"data-pcode"},dataPlayerVersion:{default:"v3",source:"attribute",selector:"amp-ooyala-player",attribute:"data-playerversion"},ampLayout:{default:"responsive",source:"attribute",selector:"amp-ooyala-player",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-ooyala-player",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-ooyala-player",attribute:"height"}},edit:s,save:d}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(11),i=a.n(n),o=a(0),c=(a(5),a(4)),l=a(2),u=a(7),s=function(e){var t=e.attributes,a=e.setAttributes,n=t.dataEmbedId,s=[{value:"responsive",label:Object(r.__)("Responsive","amp")},{value:"fixed-height",label:Object(r.__)("Fixed Height","amp")},{value:"fixed",label:Object(r.__)("Fixed","amp")},{value:"fill",label:Object(r.__)("Fill","amp")},{value:"flex-item",label:Object(r.__)("Flex-item","amp")}],d=!1;return n&&(d="https://media-cdn.beachfrontreach.com/acct_1/video/"),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(r.__)("Reach Settings","amp")},Object(o.createElement)(l.TextControl,{label:Object(r.__)("Embed ID (required)","amp"),value:n,onChange:function(e){return a({dataEmbedId:e})}}),Object(o.createElement)(u.a,i()({},e,{ampLayoutOptions:s})))),d&&Object(o.createElement)(u.b,{name:Object(r.__)("Reach Player","amp"),url:d}),!d&&Object(o.createElement)(l.Placeholder,{label:Object(r.__)("Reach Player","amp")},Object(o.createElement)("p",null,Object(r.__)("Add Reach player embed ID to use the block.","amp"))))},d=function(e){var t=e.attributes,a=t.dataEmbedId,r=t.ampLayout,n=t.height,i=t.width,c={layout:r,height:n,"data-embed-id":a};return"fixed-height"!==r&&i&&(c.width=i),Object(o.createElement)("amp-reach-player",c)};a.d(t,"name",(function(){return m})),a.d(t,"settings",(function(){return b}));var m="amp/amp-reach-player",b={title:Object(r.__)("AMP Reach Player","amp"),description:Object(r.__)("Displays the Reach Player configured in the Beachfront Reach platform.","amp"),category:"embed",icon:"embed-generic",keywords:[Object(r.__)("Embed","amp"),Object(r.__)("Beachfront Reach video","amp")],attributes:{dataEmbedId:{source:"attribute",selector:"amp-reach-player",attribute:"data-embed-id"},ampLayout:{default:"fixed-height",source:"attribute",selector:"amp-reach-player",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-reach-player",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-reach-player",attribute:"height"}},edit:s,save:d}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(11),i=a.n(n),o=a(0),c=(a(5),a(4)),l=a(2),u=a(7),s=function(e){var t=e.attributes,a=e.setAttributes,n=t.dataSiteId,s=t.dataPlayerId,d=t.dataContentId,m=t.dataDomain,b=t.dataMode,p=t.dataItems,f=[{value:"responsive",label:Object(r.__)("Responsive","amp")},{value:"fixed",label:Object(r.__)("Fixed","amp")},{value:"fill",label:Object(r.__)("Fill","amp")},{value:"flex-item",label:Object(r.__)("Flex-item","amp")}],h=!1;return n&&d&&m&&b&&p&&(h="https://cms.springboardplatform.com/embed_iframe/"),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(c.InspectorControls,null,Object(o.createElement)(l.PanelBody,{title:Object(r.__)("Springboard Player Settings","amp")},Object(o.createElement)(l.TextControl,{label:Object(r.__)("Site ID (required)","amp"),value:n,onChange:function(e){return a({dataSiteId:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Content ID (required)","amp"),value:d,onChange:function(e){return a({dataContentId:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Player ID","amp"),value:s,onChange:function(e){return a({dataPlayerId:e})}}),Object(o.createElement)(l.TextControl,{label:Object(r.__)("Springboard partner domain","amp"),value:m,onChange:function(e){return a({dataDomain:e})}}),Object(o.createElement)(l.SelectControl,{label:Object(r.__)("Mode (required)","amp"),value:b,options:[{value:"video",label:Object(r.__)("Video","amp")},{value:"playlist",label:Object(r.__)("Playlist","amp")}],onChange:function(e){return a({dataMode:e})}}),Object(o.createElement)(l.TextControl,{type:"number",label:Object(r.__)("Number of video is playlist (required)","amp"),value:p,onChange:function(e){return a({dataItems:e})}}),Object(o.createElement)(u.a,i()({},e,{ampLayoutOptions:f})))),h&&Object(o.createElement)(u.b,{name:Object(r.__)("Springboard Player","amp"),url:h}),!h&&Object(o.createElement)(l.Placeholder,{label:Object(r.__)("Springboard Player","amp")},Object(o.createElement)("p",null,Object(r.__)("Add required data to use the block.","amp"))))},d=function(e){var t=e.attributes,a=t.dataSiteId,r=t.dataPlayerId,n=t.dataContentId,i=t.dataDomain,c=t.dataMode,l=t.dataItems,u=t.ampLayout,s=t.height,d=t.width,m={layout:u,height:s,"data-site-id":a,"data-mode":c,"data-content-id":n,"data-player-id":r,"data-domain":i,"data-items":l};return"fixed-height"!==u&&d&&(m.width=t.width),Object(o.createElement)("amp-springboard-player",m)};a.d(t,"name",(function(){return m})),a.d(t,"settings",(function(){return b}));var m="amp/amp-springboard-player",b={title:Object(r.__)("AMP Springboard Player","amp"),description:Object(r.__)("Displays the Springboard Player used in the Springboard Video Platform","amp"),category:"embed",icon:"embed-generic",keywords:[Object(r.__)("Embed","amp")],attributes:{dataSiteId:{source:"attribute",selector:"amp-springboard-player",attribute:"data-site-id"},dataContentId:{source:"attribute",selector:"amp-springboard-player",attribute:"data-content-id"},dataPlayerId:{source:"attribute",selector:"amp-springboard-player",attribute:"data-player-id"},dataDomain:{source:"attribute",selector:"amp-springboard-player",attribute:"data-domain"},dataMode:{default:"video",source:"attribute",selector:"amp-springboard-player",attribute:"data-mode"},dataItems:{default:1,source:"attribute",selector:"amp-springboard-player",attribute:"data-items"},ampLayout:{default:"responsive",source:"attribute",selector:"amp-springboard-player",attribute:"layout"},width:{default:600,source:"attribute",selector:"amp-springboard-player",attribute:"width"},height:{default:400,source:"attribute",selector:"amp-springboard-player",attribute:"height"}},edit:s,save:d}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(11),i=a.n(n),o=a(0),c=a(12),l=a.n(c),u=(a(5),a(4)),s=a(2),d=a(7),m=function(e){var t,a=e.attributes,n=e.setAttributes,c=a.align,m=a.cutoff,b=a.dateTime;b?t=m&&parseInt(m)<Math.abs(l()(b).diff(l()(),"seconds"))?l()(b).format("dddd D MMMM HH:mm"):l()(b).fromNow():(t=l()(Date.now()).fromNow(),n({dateTime:l()(l()(),l.a.ISO_8601,!0).format()}));var p=[{value:"",label:Object(r.__)("Responsive","amp")},{value:"fixed",label:Object(r.__)("Fixed","amp")},{value:"fixed-height",label:Object(r.__)("Fixed Height","amp")}];return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(u.InspectorControls,null,Object(o.createElement)(s.PanelBody,{title:Object(r.__)("AMP Timeago Settings","amp")},Object(o.createElement)(s.DateTimePicker,{locale:"en",currentDate:b||l()(),onChange:function(e){return n({dateTime:l()(e,l.a.ISO_8601,!0).format()})}}),Object(o.createElement)(d.a,i()({},e,{ampLayoutOptions:p})),Object(o.createElement)(s.TextControl,{type:"number",className:"blocks-amp-timeout__cutoff",label:Object(r.__)("Cutoff (seconds)","amp"),value:void 0!==m?m:"",onChange:function(e){return n({cutoff:e})}}))),Object(o.createElement)(u.BlockControls,null,Object(o.createElement)(u.BlockAlignmentToolbar,{value:c,onChange:function(e){n({align:e})},controls:["left","center","right"]})),Object(o.createElement)("time",{dateTime:b},t))},b=function(e){var t=e.attributes,a=t.ampLayout,r=t.width,n=t.height,i=t.align,c=t.cutoff,u={layout:"responsive",className:"align"+(i||"none"),datetime:t.dateTime,locale:"en"};if(c&&(u.cutoff=c),a)switch(a){case"fixed-height":n&&(u.height=n,u.layout=a);break;case"fixed":n&&r&&(u.height=n,u.width=r,u.layout=a)}return Object(o.createElement)("amp-timeago",u,l()(t.dateTime).format("dddd D MMMM HH:mm"))};a.d(t,"name",(function(){return p})),a.d(t,"settings",(function(){return f}));var p="amp/amp-timeago",f={title:Object(r.__)("AMP Timeago","amp"),category:"common",icon:"backup",keywords:[Object(r.__)("Time difference","amp"),Object(r.__)("Time ago","amp"),Object(r.__)("Date","amp")],attributes:{align:{type:"string"},cutoff:{source:"attribute",selector:"amp-timeago",attribute:"cutoff"},dateTime:{source:"attribute",selector:"amp-timeago",attribute:"datetime"},ampLayout:{default:"fixed-height",source:"attribute",selector:"amp-timeago",attribute:"layout"},width:{source:"attribute",selector:"amp-timeago",attribute:"width"},height:{default:20,source:"attribute",selector:"amp-timeago",attribute:"height"}},getEditWrapperProps:function(e){var t=e.align;if("left"===t||"right"===t||"center"===t)return{"data-align":t}},edit:m,save:b}},function(e,t,a){"use strict";a.r(t);var r=a(1),n=a(11),i=a.n(n),o=a(9),c=a.n(o),l=a(18),u=a.n(l),s=a(25),d=a.n(s),m=a(19),b=a.n(m),p=a(20),f=a.n(p),h=a(21),y=a.n(h),O=a(0),g=a(8),j=(a(5),a(2)),_=a(35),v=a.n(_),E=a(4),x=a(3);function P(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}var w=window.ampLatestStoriesBlockData,S=function(e){function t(){return u()(this,t),b()(this,f()(t).apply(this,arguments))}return y()(t,e),d()(t,[{key:"componentDidMount",value:function(){if(!document.querySelector('link[href="'.concat(w.storyCardStyleURL,'"]'))){var e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href",w.storyCardStyleURL),document.head.appendChild(e)}}},{key:"render",value:function(){var e=this.props,t=e.attributes,a=e.setAttributes,n=e.latestStories,o=t.order,l=t.orderBy,u=t.storiesToShow,s=!Array.isArray(n),d=(n||[]).filter((function(e){return e.featured_media>0})).length>0,m=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?P(a,!0).forEach((function(t){c()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):P(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},t,{useCarousel:!1});return Object(O.createElement)(O.Fragment,null,Object(O.createElement)(E.InspectorControls,null,Object(O.createElement)(j.PanelBody,{title:Object(r.__)("Latest Stories Settings","amp")},Object(O.createElement)(j.QueryControls,i()({order:o,orderBy:l},{numberOfItems:u,onOrderChange:function(e){return a({order:e})},onOrderByChange:function(e){return a({orderBy:e})},onNumberOfItemsChange:function(e){return a({storiesToShow:e})}})))),(s||!d)&&Object(O.createElement)(j.Placeholder,{icon:"admin-post",label:Object(r.__)("Latest Stories","amp")},s?Object(O.createElement)(j.Spinner,null):Object(r.__)("No stories found.","amp")),d&&Object(O.createElement)(v.a,{block:"amp/amp-latest-stories",attributes:m}))}}]),t}(O.Component),C=Object(x.withSelect)((function(e,t){var a=t.attributes,r=a.storiesToShow,n=a.order,i=a.orderBy;return{latestStories:(0,e("core").getEntityRecords)("postType","amp_story",Object(g.pickBy)({order:n,orderby:i,per_page:r},(function(e){return!Object(g.isUndefined)(e)})))}}))(S);a.d(t,"name",(function(){return I})),a.d(t,"settings",(function(){return T}));var I="amp/amp-latest-stories",T={title:Object(r.__)("Latest Stories","amp"),description:Object(r.__)("Display your most recent stories.","amp"),icon:"list-view",category:"widgets",keywords:[Object(r.__)("recent stories","amp"),Object(r.__)("AMP Stories","amp")],supports:{html:!1},edit:C,save:function(){return null}}}]);
assets/js/amp-block-validation.deps.json CHANGED
@@ -1 +1 @@
1
- ["lodash","wp-block-editor","wp-components","wp-compose","wp-data","wp-element","wp-hooks","wp-i18n","wp-polyfill"]
1
+ ["lodash","react","wp-block-editor","wp-components","wp-compose","wp-data","wp-element","wp-hooks","wp-i18n","wp-polyfill"]
assets/js/amp-block-validation.js CHANGED
@@ -1,5 +1,5 @@
1
- !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=49)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t,r){e.exports=r(25)()},function(e,t,r){"use strict";r.d(t,"f",function(){return n}),r.d(t,"c",function(){return o}),r.d(t,"e",function(){return a}),r.d(t,"d",function(){return i}),r.d(t,"g",function(){return c}),r.d(t,"b",function(){return l}),r.d(t,"a",function(){return u});var n=6,o=72,a=1200,i=1e6,c=1,l="select-file-type-error",u="select-file-size-error"},function(e,t){!function(){e.exports=this.lodash}()},,,,function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},,function(e,t,r){"use strict";var n=r(11),o=r.n(n),a=r(0),i=(r(5),r(1)),c=r(2),l=r(4),u=r(3),s=["core/paragraph","core/heading","core/code","core/quote","core/subhead"],b=["core/image","core/video"],m=r(6);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}r.d(t,"a",function(){return d}),r.d(t,"d",function(){return O}),r.d(t,"b",function(){return j}),r.d(t,"c",function(){return v}),r.d(t,"e",function(){return F});var p=[{value:"nodisplay",label:Object(i.__)("No Display","amp"),notAvailable:["core-embed/vimeo","core-embed/dailymotion","core-embed/hulu","core-embed/reddit","core-embed/soundcloud"]},{value:"fixed",label:Object(i.__)("Fixed","amp"),notAvailable:["core-embed/soundcloud"]},{value:"responsive",label:Object(i.__)("Responsive","amp"),notAvailable:["core-embed/soundcloud"]},{value:"fixed-height",label:Object(i.__)("Fixed Height","amp"),notAvailable:[]},{value:"fill",label:Object(i.__)("Fill","amp"),notAvailable:["core-embed/soundcloud"]},{value:"flex-item",label:Object(i.__)("Flex Item","amp"),notAvailable:["core-embed/soundcloud"]},{value:"intrinsic",label:Object(i.__)("Intrinsic","amp"),notAvailable:["core/video","core-embed/youtube","core-embed/facebook","core-embed/instagram","core-embed/vimeo","core-embed/dailymotion","core-embed/hulu","core-embed/reddit","core-embed/soundcloud"]}],d=function(e,t){return"core/shortcode"!==t&&"core/gallery"!==t||(e.attributes||(e.attributes={}),e.attributes.ampCarousel={type:"boolean"},e.attributes.ampLightbox={type:"boolean"}),"core/image"===t&&(e.attributes||(e.attributes={}),e.attributes.ampLightbox={type:"boolean"}),s.includes(t)&&(e.attributes||(e.attributes={}),e.attributes.ampFitText={default:!1},e.attributes.minFont={default:m.f,source:"attribute",selector:"amp-fit-text",attribute:"min-font-size"},e.attributes.maxFont={default:m.c,source:"attribute",selector:"amp-fit-text",attribute:"max-font-size"},e.attributes.height={default:"core/image"===t?200:10*Math.ceil(m.c/10),source:"attribute",selector:"amp-fit-text",attribute:"height"}),(0===t.indexOf("core-embed")||b.includes(t))&&(e.attributes||(e.attributes={}),e.attributes.ampLayout={type:"string"},e.attributes.ampNoLoading={type:"boolean"}),e},O=function(e,t,r){var n=r.text||"",o="",i={layout:"fixed-height"};if("core/shortcode"===t.name&&C(r)){if(r.ampLightbox||I(r.text||"")&&(n=L(r.text)),r.ampCarousel){if(D(n)&&(n=T(n)),!r.ampLightbox)return r.text!==n?Object(a.createElement)(a.RawHTML,null,n):e}else n=D(r.text||"")?r.text:r.text.replace("[gallery","[gallery amp-carousel=false");if(r.ampLightbox&&!I(n)&&(n=n.replace("[gallery","[gallery amp-lightbox=true")),r.text!==n)return Object(a.createElement)(a.RawHTML,null,n)}else if("core/paragraph"!==t.name||r.ampFitText){if(s.includes(t.name)&&r.ampFitText){if(r.minFont&&(i["min-font-size"]=r.minFont),r.maxFont&&(i["max-font-size"]=r.maxFont),r.height&&(i.height=r.height),"core/paragraph"===t.name){var c="<amp-fit-text";for(var l in i){if(i.hasOwnProperty(l))c+=" "+l+'="'+i[l]+'"'}return c+=">"+h(r.content)+"</amp-fit-text>",Object(a.cloneElement)(e,{key:"new",value:c})}return i.children=e,Object(a.createElement)("amp-fit-text",i)}}else if((o=h(r.content))!==r.content)return Object(a.cloneElement)(e,{key:"new",value:o});return e},h=function(e){var t=/<amp-fit-text\b[^>]*>(.*?)<\/amp-fit-text>/.exec(e),r=e;return t&&t[1]&&(r=t[1]),r},g=function(e){for(var t=[{value:"",label:Object(i.__)("Default","amp")}],r=0,n=p;r<n.length;r++){var o=n[r];!o.notAvailable.includes(e)&&t.push({value:o.value,label:o.label})}return t},j=function(e,t,r){var n={};return"core/shortcode"===t.name?e:"amp/"===t.name.substr(0,4)?e:(r.ampLayout&&(n["data-amp-layout"]=r.ampLayout),r.ampNoLoading&&(n["data-amp-noloading"]=r.ampNoLoading),r.ampLightbox&&(n["data-amp-lightbox"]=r.ampLightbox),r.ampCarousel&&(n["data-amp-carousel"]=r.ampCarousel),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(r,!0).forEach(function(t){o()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},n,{},e))},v=function(e){return function(t){var r,n=t.attributes,o=n.text,i=n.ampLayout,c=t.setAttributes,l=t.name;if("core/shortcode"===l){if(D(o||"")&&c({text:T(o)}),I(o||"")&&c({text:L(o)}),""===(r=w(t)))return Object(a.createElement)(e,t)}else"core/gallery"===l?r=A(t):"core/image"===l?r=S(t):b.includes(l)||0===l.indexOf("core-embed/")?r=y(t):s.includes(l)&&(r=x(t));return i&&"nodisplay"===i?[r]:Object(a.createElement)(a.Fragment,null,Object(a.createElement)(e,t),r)}},y=function(e){return e.isSelected?Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(i.__)("AMP Settings","amp")},Object(a.createElement)(_,e),Object(a.createElement)(E,e))):null},_=function(e){var t=e.name,r=e.attributes.ampLayout,n=e.setAttributes,o=Object(i.__)("AMP Layout","amp");return"core/image"===t&&(o=Object(i.__)("AMP Layout (modifies width/height)","amp")),Object(a.createElement)(c.SelectControl,{label:o,value:r,options:g(t),onChange:function(t){n({ampLayout:t}),"core/image"===e.name&&function(e,t){var r=e.attributes,n=e.setAttributes;switch(t){case"fixed-height":r.height||n({height:400}),r.ampLightbox&&n({ampLightbox:!1});break;case"fixed":r.height||n({height:400}),r.width||n({width:608})}}(e,t)}})},E=function(e){var t=e.attributes.ampNoLoading,r=e.setAttributes,n=Object(i.__)("AMP Noloading","amp");return Object(a.createElement)(c.ToggleControl,{label:n,checked:t,onChange:function(){return r({ampNoLoading:!t})}})},x=function(e){var t=e.isSelected,r=e.attributes,n=e.setAttributes,o=r.ampFitText,u=r.minFont,s=r.maxFont,b=r.height,f=[{name:"small",shortName:Object(i._x)("S","font size","amp"),size:14},{name:"regular",shortName:Object(i._x)("M","font size","amp"),size:16},{name:"large",shortName:Object(i._x)("L","font size","amp"),size:36},{name:"larger",shortName:Object(i._x)("XL","font size","amp"),size:48}];if(!t)return null;var p=Object(i.__)("Automatically fit text to container","amp");return o&&(s=parseInt(s),b=parseInt(b),u=parseInt(u)),Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(i.__)("AMP Settings","amp"),className:o?"is-amp-fit-text":""},Object(a.createElement)(c.ToggleControl,{label:p,checked:o,onChange:function(){return n({ampFitText:!o})}})),o&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(c.TextControl,{label:Object(i.__)("Height","amp"),value:b,min:1,onChange:function(e){n({height:e})}}),s>b&&Object(a.createElement)(c.Notice,{status:"error",isDismissible:!1},Object(i.__)("The height must be greater than the max font size.","amp")),Object(a.createElement)(c.PanelBody,{title:Object(i.__)("Minimum font size","amp")},Object(a.createElement)(c.FontSizePicker,{fallbackFontSize:14,value:u,fontSizes:f,onChange:function(e){e||(e=m.f),parseInt(e)<=s&&n({minFont:e})}})),u>s&&Object(a.createElement)(c.Notice,{status:"error",isDismissible:!1},Object(i.__)("The min font size must less than the max font size.","amp")),Object(a.createElement)(c.PanelBody,{title:Object(i.__)("Maximum font size","amp")},Object(a.createElement)(c.FontSizePicker,{fallbackFontSize:48,value:s,fontSizes:f,onChange:function(e){e||(e=m.c),n({maxFont:e,height:Math.max(e,b)})}}))))},w=function(e){var t=e.isSelected;if(!C(e.attributes)||!t)return null;var r=Object(u.select)("amp/block-editor").hasThemeSupport();return Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(i.__)("AMP Settings","amp")},r&&Object(a.createElement)(k,e),Object(a.createElement)(P,e)))},P=function(e){var t=e.attributes,r=t.ampLightbox,n=t.linkTo,o=t.ampLayout,l=e.setAttributes;return Object(a.createElement)(c.ToggleControl,{label:Object(i.__)("Add lightbox effect","amp"),checked:r,onChange:function(e){l({ampLightbox:!r}),e&&("fixed-height"===o&&l({ampLayout:"fixed"}),n&&"none"!==n&&l({linkTo:"none"}))}})},k=function(e){var t=e.attributes.ampCarousel,r=e.setAttributes;return Object(a.createElement)(c.ToggleControl,{label:Object(i.__)("Display as carousel","amp"),checked:t,onChange:function(){return r({ampCarousel:!t})}})},S=function(e){return e.isSelected?Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(i.__)("AMP Settings","amp")},Object(a.createElement)(_,e),Object(a.createElement)(E,e),Object(a.createElement)(P,e))):null},A=function(e){if(!e.isSelected)return null;var t=Object(u.select)("amp/block-editor").hasThemeSupport();return Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(i.__)("AMP Settings","amp")},t&&Object(a.createElement)(k,e),Object(a.createElement)(P,e)))},T=function(e){return e.replace(" amp-carousel=false","")},L=function(e){return e.replace(" amp-lightbox=true","")},D=function(e){return-1!==e.indexOf("amp-carousel=false")},I=function(e){return-1!==e.indexOf("amp-lightbox=true")},C=function(e){return e.text&&-1!==e.text.indexOf("gallery")},F=function(){var e=Object(u.select)("amp/block-editor"),t=e.getDefaultStatus,r=e.getPossibleStatuses,n=Object(u.select)("core/editor").getEditedPostAttribute;if("amp_story"===n("type"))return!0;var o=n("meta");return o&&o.amp_status&&r().includes(o.amp_status)?"enabled"===o.amp_status:"enabled"===t()}},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.wp.compose}()},,,,,,,,,,function(e,t,r){"use strict";var n=r(26);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){"use strict";var n={};r.r(n),r.d(n,"hasThemeSupport",function(){return c}),r.d(n,"isStandardMode",function(){return l}),r.d(n,"isWebsiteEnabled",function(){return u}),r.d(n,"isStoriesEnabled",function(){return s}),r.d(n,"getDefaultStatus",function(){return b}),r.d(n,"getPossibleStatuses",function(){return m});var o=r(11),a=r.n(o),i=r(3);function c(e){return Boolean(e.hasThemeSupport)}function l(e){return Boolean(e.isStandardMode)}function u(e){return Boolean(e.isWebsiteEnabled)}function s(e){return Boolean(e.isStoriesEnabled)}function b(e){return e.defaultStatus}function m(e){return e.possibleStatuses}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}Object(i.registerStore)("amp/block-editor",{reducer:function(e){return e},selectors:n,initialState:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(r,!0).forEach(function(t){a()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},window.ampBlockEditor)})},,,,,,,function(e,t,r){var n=r(46),o=r(47),a=r(48);e.exports=function(e){return n(e)||o(e)||a()}},,,,,,,,,,,function(e,t,r){},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"addValidationError",function(){return w}),r.d(n,"resetValidationErrors",function(){return P}),r.d(n,"updateReviewLink",function(){return k});var o={};r.r(o),r.d(o,"getValidationErrors",function(){return S}),r.d(o,"getBlockValidationErrors",function(){return A}),r.d(o,"getReviewLink",function(){return T}),r.d(o,"isSanitizationAutoAccepted",function(){return L});var a=r(14),i=r(3),c=r(7),l=r(1),u=function(){var e=Object(i.select)("core/notices").getNotices,t=Object(i.dispatch)("core/notices").removeNotice;e().filter(function(e){return"amp-errors-notice"===e.id})&&t("amp-errors-notice")},s=[],b=function(){var e,t=Object(i.select)("amp/block-validation"),r=t.getValidationErrors,n=t.isSanitizationAutoAccepted,o=t.getReviewLink,a=Object(i.dispatch)("core/notices").createWarningNotice,c=Object(i.select)("core/editor").getCurrentPost,u=r(),s=u.length;e=Object(l.sprintf)(
2
  /* translators: %s: number of issues */
3
- Object(l._n)("There is %s issue from AMP validation which needs review.","There are %s issues from AMP validation which need review.",s,"amp"),s);var b=u.filter(function(e){return e.clientId}),m=b.length;if("amp_story"!==c().type)if(m>0?e+=" "+Object(l.sprintf)(
4
  /* translators: %s: number of block errors. */
5
- Object(l._n)("%s issue is directly due to content here.","%s issues are directly due to content here.",m,"amp"),m):1===u.length?e+=" "+Object(l.__)("The issue is not directly due to content here.","amp"):e+=" "+Object(l.__)("The issues are not directly due to content here.","amp"),e+=" ",n()){var f=b.filter(function(e){return 0===e.status||2===e.status}),p=u.filter(function(e){return 0===e.status||2===e.status});e+=0===f.length+p.length?Object(l.__)("However, your site is configured to automatically accept sanitization of the offending markup.","amp"):Object(l._n)("Your site is configured to automatically accept sanitization errors, but this error could be from when auto-acceptance was not selected, or from manually rejecting an error.","Your site is configured to automatically accept sanitization errors, but these errors could be from when auto-acceptance was not selected, or from manually rejecting an error.",u.length,"amp")}else e+=Object(l.__)("Non-accepted validation errors prevent AMP from being served, and the user will be redirected to the non-AMP version.","amp");var d={id:"amp-errors-notice"},O=o();O&&(d.actions=[{label:Object(l.__)("Review issues","amp"),url:O}]),a(e,d)},m=r(13),f=r(0),p=(r(5),function(e){var t=e.message,r=e.code,n=e.node_name,o=e.parent_name;return t?Object(f.createElement)(f.Fragment,null,t):"invalid_element"===r&&n?Object(f.createElement)(f.Fragment,null,Object(l.__)("Invalid element: ","amp"),Object(f.createElement)("code",null,n)):"invalid_attribute"===r&&n?Object(f.createElement)(f.Fragment,null,Object(l.__)("Invalid attribute: ","amp"),Object(f.createElement)("code",null,o?Object(l.sprintf)("%s[%s]",o,n):n)):Object(f.createElement)(f.Fragment,null,Object(l.__)("Error code: ","amp"),Object(f.createElement)("code",null,r||Object(l.__)("unknown","amp")))}),d=r(2),O=r(15),h=(r(45),Object(i.withSelect)(function(e,t){var r=t.clientId,n=(0,e("amp/block-validation").getBlockValidationErrors)(r);return{blockValidationErrors:n.length?n:void 0}})),g=Object(O.createHigherOrderComponent)(function(e){return h(function(t){var r=t.blockValidationErrors,n=t.onReplace;if(!r)return Object(f.createElement)(e,t);var o=r.length,a=[{label:Object(l.__)("Remove Element","amp"),onClick:function(){return n([])}}];return Object(f.createElement)(f.Fragment,null,Object(f.createElement)(d.Notice,{status:"warning",isDismissible:!1,actions:a},Object(f.createElement)("details",{className:"amp-block-validation-errors"},Object(f.createElement)("summary",{className:"amp-block-validation-errors__summary"},Object(l.sprintf)(Object(l._n)("There is %s issue from AMP validation.","There are %s issues from AMP validation.",o,"amp"),o)),Object(f.createElement)("ul",{className:"amp-block-validation-errors__list"},r.map(function(e,t){return Object(f.createElement)("li",{key:t},Object(f.createElement)(p,e))})))),Object(f.createElement)(e,t))})},"withValidationErrorNotice"),j=r(11),v=r.n(j),y=r(34),_=r.n(y);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(r,!0).forEach(function(t){v()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function w(e,t){return{type:"ADD_VALIDATION_ERROR",error:e,clientId:t}}function P(){return{type:"RESET_VALIDATION_ERRORS"}}function k(e){return{type:"UPDATE_REVIEW_LINK",url:e}}function S(e){return e.errors}function A(e,t){return e.errors.filter(function(e){return e.clientId===t})}function T(e){return e.reviewLink}function L(e){return Boolean(e.isSanitizationAutoAccepted)}function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}Object(i.registerStore)("amp/block-validation",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.url,o=t.error,a=t.clientId;switch(r){case"ADD_VALIDATION_ERROR":var i=e?e.errors:[],c=x({},o,{clientId:a});return x({},e,{errors:[].concat(_()(i),[c])});case"RESET_VALIDATION_ERRORS":return x({},e,{errors:[]});case"UPDATE_REVIEW_LINK":return x({},e,{reviewLink:n});default:return e}},selectors:o,actions:n,initialState:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(r,!0).forEach(function(t){v()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},window.ampBlockValidation,{errors:[],reviewLink:void 0})}),r(27);var I=Object(i.select)("core/editor").isEditedPostDirty;Object(i.subscribe)(function(){try{I()||(Object(m.e)()?function(){var e=Object(i.select)("core/block-editor"),t=e.getBlockCount,r=e.getClientIdsWithDescendants,n=e.getBlock,o=Object(i.select)("core/editor").getCurrentPost,a=Object(i.dispatch)("amp/block-validation"),l=a.resetValidationErrors,m=a.addValidationError,f=a.updateReviewLink;if(0!==t()){var p=o(),d=p.amp_validity||{};if(d.results&&d.review_link){var O=d.results.filter(function(e){return 3!==e.term_status}).map(function(e){return e.error});if(!Object(c.isEqual)(O,s))if(s=O,l(),0!==O.length){f(d.review_link);var h=r(),g=!0,j=!1,v=void 0;try{for(var y,_=O[Symbol.iterator]();!(g=(y=_.next()).done);g=!0){var E=y.value;if(!E.sources){m(E);break}var x=void 0,w=!0,P=!1,k=void 0;try{for(var S,A=E.sources[Symbol.iterator]();!(w=(S=A.next()).done);w=!0){var T=S.value;if(T.block_name&&void 0!==T.block_content_index&&p.id===T.post_id){var L=h[T.block_content_index];if(L){var D=n(L);D&&D.name===T.block_name&&(x=L)}}}}catch(e){P=!0,k=e}finally{try{w||null==A.return||A.return()}finally{if(P)throw k}}m(E,x)}}catch(e){j=!0,v=e}finally{try{g||null==_.return||_.return()}finally{if(j)throw v}}b()}else u()}}}():(e=Object(i.select)("amp/block-validation").getValidationErrors,t=Object(i.dispatch)("amp/block-validation").resetValidationErrors,e().length>0&&(t(),u(),s=[])))}catch(e){}var e,t}),Object(a.addFilter)("editor.BlockEdit","amp/add-notice",g,99)}]);
1
+ !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=51)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t,r){e.exports=r(27)()},function(e,t,r){"use strict";r.d(t,"f",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"e",(function(){return a})),r.d(t,"d",(function(){return i})),r.d(t,"g",(function(){return c})),r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return u}));var n=6,o=72,a=1200,i=1e6,c=1,l="select-file-type-error",u="select-file-size-error"},,function(e,t){!function(){e.exports=this.lodash}()},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},,,,function(e,t,r){"use strict";var n=r(9),o=r.n(n),a=r(0),i=(r(5),r(17),r(1)),c=r(2),l=r(4),u=r(3),s=["core/paragraph","core/heading","core/code","core/quote","core/subhead"],b=["core/image","core/video"],m=r(6);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}r.d(t,"a",(function(){return d})),r.d(t,"d",(function(){return O})),r.d(t,"b",(function(){return j})),r.d(t,"c",(function(){return v})),r.d(t,"e",(function(){return F}));var p=[{value:"nodisplay",label:Object(i.__)("No Display","amp"),notAvailable:["core-embed/vimeo","core-embed/dailymotion","core-embed/hulu","core-embed/reddit","core-embed/soundcloud"]},{value:"fixed",label:Object(i.__)("Fixed","amp"),notAvailable:["core-embed/soundcloud"]},{value:"responsive",label:Object(i.__)("Responsive","amp"),notAvailable:["core-embed/soundcloud"]},{value:"fixed-height",label:Object(i.__)("Fixed Height","amp"),notAvailable:[]},{value:"fill",label:Object(i.__)("Fill","amp"),notAvailable:["core-embed/soundcloud"]},{value:"flex-item",label:Object(i.__)("Flex Item","amp"),notAvailable:["core-embed/soundcloud"]},{value:"intrinsic",label:Object(i.__)("Intrinsic","amp"),notAvailable:["core/video","core-embed/youtube","core-embed/facebook","core-embed/instagram","core-embed/vimeo","core-embed/dailymotion","core-embed/hulu","core-embed/reddit","core-embed/soundcloud"]}],d=function(e,t){return"core/shortcode"!==t&&"core/gallery"!==t||(e.attributes||(e.attributes={}),e.attributes.ampCarousel={type:"boolean"},e.attributes.ampLightbox={type:"boolean"}),"core/image"===t&&(e.attributes||(e.attributes={}),e.attributes.ampLightbox={type:"boolean"}),s.includes(t)&&(e.attributes||(e.attributes={}),e.attributes.ampFitText={default:!1},e.attributes.minFont={default:m.f,source:"attribute",selector:"amp-fit-text",attribute:"min-font-size"},e.attributes.maxFont={default:m.c,source:"attribute",selector:"amp-fit-text",attribute:"max-font-size"},e.attributes.height={default:"core/image"===t?200:10*Math.ceil(m.c/10),source:"attribute",selector:"amp-fit-text",attribute:"height"}),(0===t.indexOf("core-embed")||b.includes(t))&&(e.attributes||(e.attributes={}),e.attributes.ampLayout={type:"string"},e.attributes.ampNoLoading={type:"boolean"}),e},O=function(e,t,r){var n=r.text||"",o="",i={layout:"fixed-height"};if("core/shortcode"===t.name&&C(r)){if(r.ampLightbox||I(r.text||"")&&(n=L(r.text)),r.ampCarousel){if(D(n)&&(n=T(n)),!r.ampLightbox)return r.text!==n?Object(a.createElement)(a.RawHTML,null,n):e}else n=D(r.text||"")?r.text:r.text.replace("[gallery","[gallery amp-carousel=false");if(r.ampLightbox&&!I(n)&&(n=n.replace("[gallery","[gallery amp-lightbox=true")),r.text!==n)return Object(a.createElement)(a.RawHTML,null,n)}else if("core/paragraph"!==t.name||r.ampFitText){if(s.includes(t.name)&&r.ampFitText){if(r.minFont&&(i["min-font-size"]=r.minFont),r.maxFont&&(i["max-font-size"]=r.maxFont),r.height&&(i.height=r.height),"core/paragraph"===t.name){var c="<amp-fit-text";for(var l in i){if(i.hasOwnProperty(l))c+=" "+l+'="'+i[l]+'"'}return c+=">"+h(r.content)+"</amp-fit-text>",Object(a.cloneElement)(e,{key:"new",value:c})}return i.children=e,Object(a.createElement)("amp-fit-text",i)}}else if((o=h(r.content))!==r.content)return Object(a.cloneElement)(e,{key:"new",value:o});return e},h=function(e){var t=/<amp-fit-text\b[^>]*>(.*?)<\/amp-fit-text>/.exec(e),r=e;return t&&t[1]&&(r=t[1]),r},g=function(e){var t=[{value:"",label:Object(i.__)("Default","amp")}],r=!0,n=!1,o=void 0;try{for(var a,c=p[Symbol.iterator]();!(r=(a=c.next()).done);r=!0){var l=a.value;!l.notAvailable.includes(e)&&t.push({value:l.value,label:l.label})}}catch(e){n=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(n)throw o}}return t},j=function(e,t,r){var n={};return"core/shortcode"===t.name?e:"amp/"===t.name.substr(0,4)?e:(r.ampLayout&&(n["data-amp-layout"]=r.ampLayout),r.ampNoLoading&&(n["data-amp-noloading"]=r.ampNoLoading),r.ampLightbox&&(n["data-amp-lightbox"]=r.ampLightbox),r.ampCarousel&&(n["data-amp-carousel"]=r.ampCarousel),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(r,!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n,{},e))},v=function(e){return function(t){var r,n=t.attributes,o=n.text,i=n.ampLayout,c=t.setAttributes,l=t.name;if("core/shortcode"===l){if(D(o||"")&&c({text:T(o)}),I(o||"")&&c({text:L(o)}),""===(r=w(t)))return Object(a.createElement)(e,t)}else"core/gallery"===l?r=A(t):"core/image"===l?r=k(t):b.includes(l)||0===l.indexOf("core-embed/")?r=y(t):s.includes(l)&&(r=x(t));return i&&"nodisplay"===i?[r]:Object(a.createElement)(a.Fragment,null,Object(a.createElement)(e,t),r)}},y=function(e){return e.isSelected?Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(i.__)("AMP Settings","amp")},Object(a.createElement)(_,e),Object(a.createElement)(E,e))):null},_=function(e){var t=e.name,r=e.attributes.ampLayout,n=e.setAttributes,o=Object(i.__)("AMP Layout","amp");return"core/image"===t&&(o=Object(i.__)("AMP Layout (modifies width/height)","amp")),Object(a.createElement)(c.SelectControl,{label:o,value:r,options:g(t),onChange:function(t){n({ampLayout:t}),"core/image"===e.name&&function(e,t){var r=e.attributes,n=e.setAttributes;switch(t){case"fixed-height":r.height||n({height:400}),r.ampLightbox&&n({ampLightbox:!1});break;case"fixed":r.height||n({height:400}),r.width||n({width:608})}}(e,t)}})},E=function(e){var t=e.attributes.ampNoLoading,r=e.setAttributes,n=Object(i.__)("AMP Noloading","amp");return Object(a.createElement)(c.ToggleControl,{label:n,checked:t,onChange:function(){return r({ampNoLoading:!t})}})},x=function(e){var t=e.isSelected,r=e.attributes,n=e.setAttributes,o=r.ampFitText,u=r.minFont,s=r.maxFont,b=r.height,f=[{name:"small",shortName:Object(i._x)("S","font size","amp"),size:14},{name:"regular",shortName:Object(i._x)("M","font size","amp"),size:16},{name:"large",shortName:Object(i._x)("L","font size","amp"),size:36},{name:"larger",shortName:Object(i._x)("XL","font size","amp"),size:48}];if(!t)return null;var p=Object(i.__)("Automatically fit text to container","amp");return o&&(s=parseInt(s),b=parseInt(b),u=parseInt(u)),Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(i.__)("AMP Settings","amp"),className:o?"is-amp-fit-text":""},Object(a.createElement)(c.ToggleControl,{label:p,checked:o,onChange:function(){return n({ampFitText:!o})}})),o&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(c.TextControl,{label:Object(i.__)("Height","amp"),value:b,min:1,onChange:function(e){n({height:e})}}),s>b&&Object(a.createElement)(c.Notice,{status:"error",isDismissible:!1},Object(i.__)("The height must be greater than the max font size.","amp")),Object(a.createElement)(c.PanelBody,{title:Object(i.__)("Minimum font size","amp")},Object(a.createElement)(c.FontSizePicker,{fallbackFontSize:14,value:u,fontSizes:f,onChange:function(e){e||(e=m.f),parseInt(e)<=s&&n({minFont:e})}})),u>s&&Object(a.createElement)(c.Notice,{status:"error",isDismissible:!1},Object(i.__)("The min font size must less than the max font size.","amp")),Object(a.createElement)(c.PanelBody,{title:Object(i.__)("Maximum font size","amp")},Object(a.createElement)(c.FontSizePicker,{fallbackFontSize:48,value:s,fontSizes:f,onChange:function(e){e||(e=m.c),n({maxFont:e,height:Math.max(e,b)})}}))))},w=function(e){var t=e.isSelected;if(!C(e.attributes)||!t)return null;var r=Object(u.select)("amp/block-editor").hasThemeSupport();return Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(i.__)("AMP Settings","amp")},r&&Object(a.createElement)(S,e),Object(a.createElement)(P,e)))},P=function(e){var t=e.attributes,r=t.ampLightbox,n=t.linkTo,o=t.ampLayout,l=e.setAttributes;return Object(a.createElement)(c.ToggleControl,{label:Object(i.__)("Add lightbox effect","amp"),checked:r,onChange:function(e){l({ampLightbox:!r}),e&&("fixed-height"===o&&l({ampLayout:"fixed"}),n&&"none"!==n&&l({linkTo:"none"}))}})},S=function(e){var t=e.attributes.ampCarousel,r=e.setAttributes;return Object(a.createElement)(c.ToggleControl,{label:Object(i.__)("Display as carousel","amp"),checked:t,onChange:function(){return r({ampCarousel:!t})}})},k=function(e){return e.isSelected?Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(i.__)("AMP Settings","amp")},Object(a.createElement)(_,e),Object(a.createElement)(E,e),Object(a.createElement)(P,e))):null},A=function(e){if(!e.isSelected)return null;var t=Object(u.select)("amp/block-editor").hasThemeSupport();return Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(i.__)("AMP Settings","amp")},t&&Object(a.createElement)(S,e),Object(a.createElement)(P,e)))},T=function(e){return e.replace(" amp-carousel=false","")},L=function(e){return e.replace(" amp-lightbox=true","")},D=function(e){return-1!==e.indexOf("amp-carousel=false")},I=function(e){return-1!==e.indexOf("amp-lightbox=true")},C=function(e){return e.text&&-1!==e.text.indexOf("gallery")},F=function(){var e=Object(u.select)("amp/block-editor"),t=e.getDefaultStatus,r=e.getPossibleStatuses,n=Object(u.select)("core/editor").getEditedPostAttribute;if("amp_story"===n("type"))return!0;var o=n("meta");return o&&o.amp_status&&r().includes(o.amp_status)?"enabled"===o.amp_status:"enabled"===t()}},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.wp.compose}()},,function(e,t){!function(){e.exports=this.React}()},,,,,,,,,,function(e,t,r){"use strict";var n=r(28);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){"use strict";var n={};r.r(n),r.d(n,"hasThemeSupport",(function(){return c})),r.d(n,"isStandardMode",(function(){return l})),r.d(n,"isWebsiteEnabled",(function(){return u})),r.d(n,"isStoriesEnabled",(function(){return s})),r.d(n,"getDefaultStatus",(function(){return b})),r.d(n,"getPossibleStatuses",(function(){return m}));var o=r(9),a=r.n(o),i=r(3);function c(e){return Boolean(e.hasThemeSupport)}function l(e){return Boolean(e.isStandardMode)}function u(e){return Boolean(e.isWebsiteEnabled)}function s(e){return Boolean(e.isStoriesEnabled)}function b(e){return e.defaultStatus}function m(e){return e.possibleStatuses}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}Object(i.registerStore)("amp/block-editor",{reducer:function(e){return e},selectors:n,initialState:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(r,!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},window.ampBlockEditor)})},,,,,,,function(e,t,r){var n=r(48),o=r(49),a=r(50);e.exports=function(e){return n(e)||o(e)||a()}},,,,,,,,,,,function(e,t,r){},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"addValidationError",(function(){return w})),r.d(n,"resetValidationErrors",(function(){return P})),r.d(n,"updateReviewLink",(function(){return S}));var o={};r.r(o),r.d(o,"getValidationErrors",(function(){return k})),r.d(o,"getBlockValidationErrors",(function(){return A})),r.d(o,"getReviewLink",(function(){return T})),r.d(o,"isSanitizationAutoAccepted",(function(){return L}));var a=r(14),i=r(3),c=r(8),l=r(1),u=function(){var e=Object(i.select)("core/notices").getNotices,t=Object(i.dispatch)("core/notices").removeNotice;e().filter((function(e){return"amp-errors-notice"===e.id}))&&t("amp-errors-notice")},s=[],b=function(){var e,t=Object(i.select)("amp/block-validation"),r=t.getValidationErrors,n=t.isSanitizationAutoAccepted,o=t.getReviewLink,a=Object(i.dispatch)("core/notices").createWarningNotice,c=Object(i.select)("core/editor").getCurrentPost,u=r(),s=u.length;e=Object(l.sprintf)(
2
  /* translators: %s: number of issues */
3
+ Object(l._n)("There is %s issue from AMP validation which needs review.","There are %s issues from AMP validation which need review.",s,"amp"),s);var b=u.filter((function(e){return e.clientId})),m=b.length;if("amp_story"!==c().type)if(m>0?e+=" "+Object(l.sprintf)(
4
  /* translators: %s: number of block errors. */
5
+ Object(l._n)("%s issue is directly due to content here.","%s issues are directly due to content here.",m,"amp"),m):1===u.length?e+=" "+Object(l.__)("The issue is not directly due to content here.","amp"):e+=" "+Object(l.__)("The issues are not directly due to content here.","amp"),e+=" ",n()){var f=b.filter((function(e){return 0===e.status||2===e.status})),p=u.filter((function(e){return 0===e.status||2===e.status}));e+=0===f.length+p.length?Object(l.__)("However, your site is configured to automatically accept sanitization of the offending markup.","amp"):Object(l._n)("Your site is configured to automatically accept sanitization errors, but this error could be from when auto-acceptance was not selected, or from manually rejecting an error.","Your site is configured to automatically accept sanitization errors, but these errors could be from when auto-acceptance was not selected, or from manually rejecting an error.",u.length,"amp")}else e+=Object(l.__)("Non-accepted validation errors prevent AMP from being served, and the user will be redirected to the non-AMP version.","amp");var d={id:"amp-errors-notice"},O=o();O&&(d.actions=[{label:Object(l.__)("Review issues","amp"),url:O}]),a(e,d)},m=r(13),f=r(0),p=(r(5),r(17),function(e){var t=e.message,r=e.code,n=e.node_name,o=e.parent_name;return t?Object(f.createElement)(f.Fragment,null,t):"invalid_element"===r&&n?Object(f.createElement)(f.Fragment,null,Object(l.__)("Invalid element: ","amp"),Object(f.createElement)("code",null,n)):"invalid_attribute"===r&&n?Object(f.createElement)(f.Fragment,null,Object(l.__)("Invalid attribute: ","amp"),Object(f.createElement)("code",null,o?Object(l.sprintf)("%s[%s]",o,n):n)):Object(f.createElement)(f.Fragment,null,Object(l.__)("Error code: ","amp"),Object(f.createElement)("code",null,r||Object(l.__)("unknown","amp")))}),d=r(2),O=r(15),h=(r(47),Object(i.withSelect)((function(e,t){var r=t.clientId,n=(0,e("amp/block-validation").getBlockValidationErrors)(r);return{blockValidationErrors:n.length?n:void 0}}))),g=Object(O.createHigherOrderComponent)((function(e){return h((function(t){var r=t.blockValidationErrors,n=t.onReplace;if(!r)return Object(f.createElement)(e,t);var o=r.length,a=[{label:Object(l.__)("Remove Element","amp"),onClick:function(){return n([])}}];return Object(f.createElement)(f.Fragment,null,Object(f.createElement)(d.Notice,{status:"warning",isDismissible:!1,actions:a},Object(f.createElement)("details",{className:"amp-block-validation-errors"},Object(f.createElement)("summary",{className:"amp-block-validation-errors__summary"},Object(l.sprintf)(Object(l._n)("There is %s issue from AMP validation.","There are %s issues from AMP validation.",o,"amp"),o)),Object(f.createElement)("ul",{className:"amp-block-validation-errors__list"},r.map((function(e,t){return Object(f.createElement)("li",{key:t},Object(f.createElement)(p,e))}))))),Object(f.createElement)(e,t))}))}),"withValidationErrorNotice"),j=r(9),v=r.n(j),y=r(36),_=r.n(y);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(r,!0).forEach((function(t){v()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t){return{type:"ADD_VALIDATION_ERROR",error:e,clientId:t}}function P(){return{type:"RESET_VALIDATION_ERRORS"}}function S(e){return{type:"UPDATE_REVIEW_LINK",url:e}}function k(e){return e.errors}function A(e,t){return e.errors.filter((function(e){return e.clientId===t}))}function T(e){return e.reviewLink}function L(e){return Boolean(e.isSanitizationAutoAccepted)}function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}Object(i.registerStore)("amp/block-validation",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.url,o=t.error,a=t.clientId;switch(r){case"ADD_VALIDATION_ERROR":var i=e?e.errors:[],c=x({},o,{clientId:a});return x({},e,{errors:[].concat(_()(i),[c])});case"RESET_VALIDATION_ERRORS":return x({},e,{errors:[]});case"UPDATE_REVIEW_LINK":return x({},e,{reviewLink:n});default:return e}},selectors:o,actions:n,initialState:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(r,!0).forEach((function(t){v()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},window.ampBlockValidation,{errors:[],reviewLink:void 0})}),r(29);var I=Object(i.select)("core/editor").isEditedPostDirty;Object(i.subscribe)((function(){try{I()||(Object(m.e)()?function(){var e=Object(i.select)("core/block-editor"),t=e.getBlockCount,r=e.getClientIdsWithDescendants,n=e.getBlock,o=Object(i.dispatch)("amp/block-validation"),a=o.resetValidationErrors,l=o.addValidationError,m=o.updateReviewLink;if(0!==t()){var f=(0,Object(i.select)("core/editor").getCurrentPost)(),p=f.amp_validity||{};if(p.results&&p.review_link){var d=p.results.filter((function(e){return 3!==e.term_status})).map((function(e){return e.error}));if(!Object(c.isEqual)(d,s))if(s=d,a(),0!==d.length){m(p.review_link);var O=r(),h=!0,g=!1,j=void 0;try{for(var v,y=d[Symbol.iterator]();!(h=(v=y.next()).done);h=!0){var _=v.value;if(!_.sources){l(_);break}var E=void 0,x=!0,w=!1,P=void 0;try{for(var S,k=_.sources[Symbol.iterator]();!(x=(S=k.next()).done);x=!0){var A=S.value;if(A.block_name&&void 0!==A.block_content_index&&f.id===A.post_id){var T=O[A.block_content_index];if(T){var L=n(T);L&&L.name===A.block_name&&(E=T)}}}}catch(e){w=!0,P=e}finally{try{x||null==k.return||k.return()}finally{if(w)throw P}}l(_,E)}}catch(e){g=!0,j=e}finally{try{h||null==y.return||y.return()}finally{if(g)throw j}}b()}else u()}}}():(e=Object(i.select)("amp/block-validation").getValidationErrors,t=Object(i.dispatch)("amp/block-validation").resetValidationErrors,e().length>0&&(t(),u(),s=[])))}catch(e){}var e,t})),Object(a.addFilter)("editor.BlockEdit","amp/add-notice",g,99)}]);
assets/js/amp-customize-controls.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function a(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(e,t){window.ampCustomizeControls=function(e,t){"use strict";var a={data:{queryVar:"amp",panelId:"",ampUrl:"",l10n:{unavailableMessage:"",unavailableLinkText:""}},tooltipTimeout:5e3,tooltipVisible:new e.Value(!1),tooltipFocused:new e.Value(0),boot:function(t){function n(){e.panel(a.data.panelId,a.panelReady)}a.data=t,e.state?(a.addState(),e.bind("ready",n)):e.bind("ready",function(){a.addState(),n()})},addState:function(){e.state.add("ampEnabled",new e.Value(!1)),e.state.add("ampAvailable",new e.Value(!1))},isAmpUrl:function(e){var t=document.createElement("a"),n=new RegExp("\\/"+a.data.queryVar+"\\/?$");return t.href=e,!_.isUndefined(wp.customize.utils.parseQueryString(t.search.substr(1))[a.data.queryVar])||n.test(t.pathname)},unampifyUrl:function(e){var n=document.createElement("a"),i=new RegExp("\\/"+a.data.queryVar+"\\/?$");if(n.href=e,n.pathname=n.pathname.replace(i,""),1<n.search.length){var o=window.wp.customize.utils.parseQueryString(n.search.substr(1));delete o[a.data.queryVar],n.search=t.param(o)}return n.href},ampifyUrl:function(e){var t=document.createElement("a");return t.href=a.unampifyUrl(e),t.search.length&&(t.search+="&"),t.search+=a.data.queryVar+"=1",t.href},tryToCloseTooltip:function(){clearTimeout(a.tooltipTimeoutId),a.tooltipTimeoutId=setTimeout(function(){a.tooltipVisible.get()&&(0<a.tooltipFocused.get()?a.tryToCloseTooltip():a.tooltipVisible.set(!1))},a.tooltipTimeout)},setCurrentAmpUrl:function(t){var n=e.state("ampEnabled").get();return!n&&a.isAmpUrl(t)?a.unampifyUrl(t):n&&!a.isAmpUrl(t)?a.ampifyUrl(t):t},updatePreviewUrl:function(){e.previewer.previewUrl.set(a.setCurrentAmpUrl(e.previewer.previewUrl.get()))},enableAndNavigateToUrl:function(t){e.state("ampEnabled").set(!0),e.previewer.previewUrl.set(t)},updatePanelNotifications:function(){var t=e.panel(a.data.panelId),n=t.sections().concat([t]);e.state("ampAvailable").get()?_.each(n,function(e){e.notifications.remove("amp_unavailable")}):_.each(n,function(t){t.notifications.add(new e.Notification("amp_unavailable",{message:a.data.l10n.unavailableMessage,type:"info",linkText:a.data.l10n.unavailableLinkText,url:a.data.ampUrl,templateId:"customize-amp-unavailable-notification",render:function(){var t=e.Notification.prototype.render.call(this);return t.find("a").on("click",function(e){e.preventDefault(),a.enableAndNavigateToUrl(this.href)}),t}}))})},panelReady:function(n){var i,o=t(wp.template("customize-amp-enabled-toggle")({message:a.data.l10n.unavailableMessage,linkText:a.data.l10n.unavailableLinkText,url:a.data.ampUrl})),l=o.find("input[type=checkbox]"),r=o.find(".tooltip"),u=r.find("a");n.expanded.bind(function(t){t&&(e.state("ampAvailable").get()?e.state("ampEnabled").set(n.expanded.get()):n.notifications||setTimeout(function(){a.tooltipVisible.set(!0)},250))}),n.notifications&&(e.state("ampAvailable").bind(a.updatePanelNotifications),a.updatePanelNotifications(),e.section.bind("add",a.updatePanelNotifications)),e.previewedDevice.bind(function(t){e.state("ampAvailable").get()&&e.state("ampEnabled").set("mobile"===t)}),e.previewer.bind("amp-status",function(t){e.state("ampAvailable").set(t.available)}),e.previewer.bind("amp-status",function t(a){e.state("ampEnabled").set(a.enabled),e.previewer.unbind("amp-status",t)}),e.previewer.previewUrl.validate=(i=e.previewer.previewUrl.validate,function(e){var t=i.call(this,e);return t&&(t=a.setCurrentAmpUrl(t)),t}),e.state("ampEnabled").bind(function(e){l.prop("checked",e),a.updatePreviewUrl()}),e.state("ampAvailable").bind(function(t){l.toggleClass("disabled",!t),e.state("ampEnabled").get()&&a.tooltipVisible.set(!t)}),t(".devices-wrapper").before(o),u.on("click",function(e){e.preventDefault(),a.enableAndNavigateToUrl(this.href)}),a.tooltipVisible.bind(function(e){r.attr("aria-hidden",e?"false":"true"),e?(t(document).on("click.amp-toggle-outside",function(e){t.contains(o[0],e.target)||a.tooltipVisible.set(!1)}),r.fadeIn(),a.tryToCloseTooltip()):(r.fadeOut(),a.tooltipFocused.set(0),t(document).off("click.amp-toggle-outside"))}),l.on("click",function(){this.checked=!this.checked,e.state("ampAvailable").get()?e.state("ampEnabled").set(!e.state("ampEnabled").get()):a.tooltipVisible.set(!0)}),r.on("mouseenter",function(){e.state("ampAvailable").get()||a.tooltipVisible.set(!0),a.tooltipFocused.set(a.tooltipFocused.get()+1)}),r.on("mouseleave",function(){a.tooltipFocused.set(a.tooltipFocused.get()-1)}),u.on("focus",function(){e.state("ampAvailable").get()||a.tooltipVisible.set(!0),a.tooltipFocused.set(a.tooltipFocused.get()+1)}),u.on("blur",function(){a.tooltipFocused.set(a.tooltipFocused.get()-1)})}};return a}(wp.customize,jQuery)}]);
1
+ !function(e){var t={};function a(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(e,t){window.ampCustomizeControls=function(e,t){"use strict";var a={data:{queryVar:"amp",panelId:"",ampUrl:"",l10n:{unavailableMessage:"",unavailableLinkText:""}},tooltipTimeout:5e3,tooltipVisible:new e.Value(!1),tooltipFocused:new e.Value(0),boot:function(t){function n(){e.panel(a.data.panelId,a.panelReady)}a.data=t,e.state?(a.addState(),e.bind("ready",n)):e.bind("ready",(function(){a.addState(),n()}))},addState:function(){e.state.add("ampEnabled",new e.Value(!1)),e.state.add("ampAvailable",new e.Value(!1))},isAmpUrl:function(e){var t=document.createElement("a"),n=new RegExp("\\/"+a.data.queryVar+"\\/?$");return t.href=e,!_.isUndefined(wp.customize.utils.parseQueryString(t.search.substr(1))[a.data.queryVar])||n.test(t.pathname)},unampifyUrl:function(e){var n=document.createElement("a"),i=new RegExp("\\/"+a.data.queryVar+"\\/?$");if(n.href=e,n.pathname=n.pathname.replace(i,""),1<n.search.length){var o=window.wp.customize.utils.parseQueryString(n.search.substr(1));delete o[a.data.queryVar],n.search=t.param(o)}return n.href},ampifyUrl:function(e){var t=document.createElement("a");return t.href=a.unampifyUrl(e),t.search.length&&(t.search+="&"),t.search+=a.data.queryVar+"=1",t.href},tryToCloseTooltip:function(){clearTimeout(a.tooltipTimeoutId),a.tooltipTimeoutId=setTimeout((function(){a.tooltipVisible.get()&&(0<a.tooltipFocused.get()?a.tryToCloseTooltip():a.tooltipVisible.set(!1))}),a.tooltipTimeout)},setCurrentAmpUrl:function(t){var n=e.state("ampEnabled").get();return!n&&a.isAmpUrl(t)?a.unampifyUrl(t):n&&!a.isAmpUrl(t)?a.ampifyUrl(t):t},updatePreviewUrl:function(){e.previewer.previewUrl.set(a.setCurrentAmpUrl(e.previewer.previewUrl.get()))},enableAndNavigateToUrl:function(t){e.state("ampEnabled").set(!0),e.previewer.previewUrl.set(t)},updatePanelNotifications:function(){var t=e.panel(a.data.panelId),n=t.sections().concat([t]);e.state("ampAvailable").get()?_.each(n,(function(e){e.notifications.remove("amp_unavailable")})):_.each(n,(function(t){t.notifications.add(new e.Notification("amp_unavailable",{message:a.data.l10n.unavailableMessage,type:"info",linkText:a.data.l10n.unavailableLinkText,url:a.data.ampUrl,templateId:"customize-amp-unavailable-notification",render:function(){var t=e.Notification.prototype.render.call(this);return t.find("a").on("click",(function(e){e.preventDefault(),a.enableAndNavigateToUrl(this.href)})),t}}))}))},panelReady:function(n){var i,o=t(wp.template("customize-amp-enabled-toggle")({message:a.data.l10n.unavailableMessage,linkText:a.data.l10n.unavailableLinkText,url:a.data.ampUrl})),l=o.find("input[type=checkbox]"),r=o.find(".tooltip"),u=r.find("a");n.expanded.bind((function(t){t&&(e.state("ampAvailable").get()?e.state("ampEnabled").set(n.expanded.get()):n.notifications||setTimeout((function(){a.tooltipVisible.set(!0)}),250))})),n.notifications&&(e.state("ampAvailable").bind(a.updatePanelNotifications),a.updatePanelNotifications(),e.section.bind("add",a.updatePanelNotifications)),e.previewedDevice.bind((function(t){e.state("ampAvailable").get()&&e.state("ampEnabled").set("mobile"===t)})),e.previewer.bind("amp-status",(function(t){e.state("ampAvailable").set(t.available)})),e.previewer.bind("amp-status",(function t(a){e.state("ampEnabled").set(a.enabled),e.previewer.unbind("amp-status",t)})),e.previewer.previewUrl.validate=(i=e.previewer.previewUrl.validate,function(e){var t=i.call(this,e);return t&&(t=a.setCurrentAmpUrl(t)),t}),e.state("ampEnabled").bind((function(e){l.prop("checked",e),a.updatePreviewUrl()})),e.state("ampAvailable").bind((function(t){l.toggleClass("disabled",!t),e.state("ampEnabled").get()&&a.tooltipVisible.set(!t)})),t(".devices-wrapper").before(o),u.on("click",(function(e){e.preventDefault(),a.enableAndNavigateToUrl(this.href)})),a.tooltipVisible.bind((function(e){r.attr("aria-hidden",e?"false":"true"),e?(t(document).on("click.amp-toggle-outside",(function(e){t.contains(o[0],e.target)||a.tooltipVisible.set(!1)})),r.fadeIn(),a.tryToCloseTooltip()):(r.fadeOut(),a.tooltipFocused.set(0),t(document).off("click.amp-toggle-outside"))})),l.on("click",(function(){this.checked=!this.checked,e.state("ampAvailable").get()?e.state("ampEnabled").set(!e.state("ampEnabled").get()):a.tooltipVisible.set(!0)})),r.on("mouseenter",(function(){e.state("ampAvailable").get()||a.tooltipVisible.set(!0),a.tooltipFocused.set(a.tooltipFocused.get()+1)})),r.on("mouseleave",(function(){a.tooltipFocused.set(a.tooltipFocused.get()-1)})),u.on("focus",(function(){e.state("ampAvailable").get()||a.tooltipVisible.set(!0),a.tooltipFocused.set(a.tooltipFocused.get()+1)})),u.on("blur",(function(){a.tooltipFocused.set(a.tooltipFocused.get()-1)}))}};return a}(wp.customize,jQuery)}]);
assets/js/amp-customize-preview.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([,function(e,t){window.ampCustomizePreview=function(e){"use strict";var t={boot:function(t){e.bind("preview-ready",function(){e.preview.bind("active",function(){e.preview.send("amp-status",t)})})}};return t}(wp.customize)}]);
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([,function(e,t){window.ampCustomizePreview=function(e){"use strict";var t={boot:function(t){e.bind("preview-ready",(function(){e.preview.bind("active",(function(){e.preview.send("amp-status",t)}))}))}};return t}(wp.customize)}]);
assets/js/amp-customizer-design-preview.js CHANGED
@@ -1 +1 @@
1
- !function(e){var o={};function r(t){if(o[t])return o[t].exports;var c=o[t]={i:t,l:!1,exports:{}};return e[t].call(c.exports,c,c.exports,r),c.l=!0,c.exports}r.m=e,r.c=o,r.d=function(e,o,t){r.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},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,o){if(1&o&&(e=r(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var c in e)r.d(t,c,function(o){return e[o]}.bind(null,c));return t},r.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(o,"a",o),o},r.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},r.p="",r(r.s=2)}({2:function(e,o){!function(e){"use strict";wp.customize("amp_customizer[header_color]",function(o){o.bind(function(o){e(".amp-wp-header a").css("color",o),e(".amp-wp-header div").css("color",o),e(".amp-wp-header .amp-wp-site-icon").css("border-color",o).css("background-color",o)})}),wp.customize("amp_customizer[header_background_color]",function(o){o.bind(function(o){e("html, .amp-wp-header").css("background-color",o),e(".amp-wp-article a, .amp-wp-article a:visited, .amp-wp-footer a, .amp-wp-footer a:visited").css("color",o),e("blockquote, .amp-wp-byline amp-img").css("border-color",o)})}),wp.customize("amp_customizer[color_scheme]",function(o){o.bind(function(o){var r=amp_customizer_design.color_schemes[o];r?(e("body").css("background-color",r.theme_color),e("body, a:hover, a:active, a:focus, blockquote, .amp-wp-article, .amp-wp-title").css("color",r.text_color),e(".amp-wp-meta, .wp-caption .wp-caption-text, .amp-wp-tax-category, .amp-wp-tax-tag, .amp-wp-footer p").css("color",r.muted_text_color),e(".wp-caption .wp-caption-text, .amp-wp-comments-link a, .amp-wp-footer").css("border-color",r.border_color),e(".amp-wp-iframe-placeholder, amp-carousel, amp-iframe, amp-youtube, amp-instagram, amp-vine").css("background-color",r.border_color)):console.error('Selected color scheme "%s" not registered.',o)})}),wp.customize("blogname",function(o){o.bind(function(o){e(".amp-wp-header .amp-site-title, .amp-wp-footer h2").text(o)})})}(jQuery)}});
1
+ !function(e){var o={};function r(t){if(o[t])return o[t].exports;var c=o[t]={i:t,l:!1,exports:{}};return e[t].call(c.exports,c,c.exports,r),c.l=!0,c.exports}r.m=e,r.c=o,r.d=function(e,o,t){r.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},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,o){if(1&o&&(e=r(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var c in e)r.d(t,c,function(o){return e[o]}.bind(null,c));return t},r.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(o,"a",o),o},r.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},r.p="",r(r.s=2)}({2:function(e,o){!function(e){"use strict";wp.customize("amp_customizer[header_color]",(function(o){o.bind((function(o){e(".amp-wp-header a").css("color",o),e(".amp-wp-header div").css("color",o),e(".amp-wp-header .amp-wp-site-icon").css("border-color",o).css("background-color",o)}))})),wp.customize("amp_customizer[header_background_color]",(function(o){o.bind((function(o){e("html, .amp-wp-header").css("background-color",o),e(".amp-wp-article a, .amp-wp-article a:visited, .amp-wp-footer a, .amp-wp-footer a:visited").css("color",o),e("blockquote, .amp-wp-byline amp-img").css("border-color",o)}))})),wp.customize("amp_customizer[color_scheme]",(function(o){o.bind((function(o){var r=amp_customizer_design.color_schemes[o];r?(e("body").css("background-color",r.theme_color),e("body, a:hover, a:active, a:focus, blockquote, .amp-wp-article, .amp-wp-title").css("color",r.text_color),e(".amp-wp-meta, .wp-caption .wp-caption-text, .amp-wp-tax-category, .amp-wp-tax-tag, .amp-wp-footer p").css("color",r.muted_text_color),e(".wp-caption .wp-caption-text, .amp-wp-comments-link a, .amp-wp-footer").css("border-color",r.border_color),e(".amp-wp-iframe-placeholder, amp-carousel, amp-iframe, amp-youtube, amp-instagram, amp-vine").css("background-color",r.border_color)):console.error('Selected color scheme "%s" not registered.',o)}))})),wp.customize("blogname",(function(o){o.bind((function(o){e(".amp-wp-header .amp-site-title, .amp-wp-footer h2").text(o)}))}))}(jQuery)}});
assets/js/amp-post-meta-box.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t){!function(){e.exports=this.jQuery}()},function(e,t,n){"use strict";n.r(t);var a,r,o=n(0),i=n.n(o);window.ampPostMetaBox=(a=i.a,r={data:{canonical:!1,previewLink:"",enabled:!0,canSupport:!0,statusInputName:"",l10n:{ampPreviewBtnLabel:""}},toggleSpeed:200,previewBtnSelector:"#post-preview",ampPreviewBtnSelector:"#amp-post-preview",boot:function(e){r.data=e,a(document).ready(function(){r.statusRadioInputs=a('[name="'+r.data.statusInputName+'"]'),r.data.enabled&&!r.data.canonical&&r.addPreviewButton(),r.listen()})},listen:function(){a(r.ampPreviewBtnSelector).on("click.amp-post-preview",function(e){e.preventDefault(),r.onAmpPreviewButtonClick()}),r.statusRadioInputs.prop("disabled",!0),a('.edit-amp-status, [href="#amp_status"]').click(function(e){e.preventDefault(),r.statusRadioInputs.prop("disabled",!1),r.toggleAmpStatus(a(e.target))}),a('#submitpost input[type="submit"]').on("click",function(){a(r.ampPreviewBtnSelector).addClass("disabled")})},addPreviewButton:function(){var e=a(r.previewBtnSelector);e.clone().insertAfter(e).prop({href:r.data.previewLink,id:r.ampPreviewBtnSelector.replace("#","")}).text(r.data.l10n.ampPreviewBtnLabel).parent().addClass("has-amp-preview")},onAmpPreviewButtonClick:function(){var e=a("<input>").prop({type:"hidden",name:"amp-preview",value:"do-preview"}).insertAfter(r.ampPreviewBtnSelector);a(r.previewBtnSelector).click(),e.remove()},toggleAmpStatus:function(e){var t=a("#amp-status-select"),n=a(".edit-amp-status"),o=t.data("amp-status");e.hasClass("button-cancel")||(o=r.statusRadioInputs.filter(":checked").val());var i=a("#amp-status-"+o);n.fadeToggle(r.toggleSpeed,function(){n.is(":visible")?n.focus():t.find('input[type="radio"]').first().focus()}),t.slideToggle(r.toggleSpeed),r.data.canSupport&&(t.data("amp-status",o),i.prop("checked",!0),a(".amp-status-text").text(i.next().text()))}})}]);
1
+ !function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t){!function(){e.exports=this.jQuery}()},function(e,t,n){"use strict";n.r(t);var a,r,o=n(0),i=n.n(o);window.ampPostMetaBox=(a=i.a,r={data:{canonical:!1,previewLink:"",enabled:!0,canSupport:!0,statusInputName:"",l10n:{ampPreviewBtnLabel:""}},toggleSpeed:200,previewBtnSelector:"#post-preview",ampPreviewBtnSelector:"#amp-post-preview",boot:function(e){r.data=e,a(document).ready((function(){r.statusRadioInputs=a('[name="'+r.data.statusInputName+'"]'),r.data.enabled&&!r.data.canonical&&r.addPreviewButton(),r.listen()}))},listen:function(){a(r.ampPreviewBtnSelector).on("click.amp-post-preview",(function(e){e.preventDefault(),r.onAmpPreviewButtonClick()})),r.statusRadioInputs.prop("disabled",!0),a('.edit-amp-status, [href="#amp_status"]').click((function(e){e.preventDefault(),r.statusRadioInputs.prop("disabled",!1),r.toggleAmpStatus(a(e.target))})),a('#submitpost input[type="submit"]').on("click",(function(){a(r.ampPreviewBtnSelector).addClass("disabled")}))},addPreviewButton:function(){var e=a(r.previewBtnSelector);e.clone().insertAfter(e).prop({href:r.data.previewLink,id:r.ampPreviewBtnSelector.replace("#","")}).text(r.data.l10n.ampPreviewBtnLabel).parent().addClass("has-amp-preview")},onAmpPreviewButtonClick:function(){var e=a("<input>").prop({type:"hidden",name:"amp-preview",value:"do-preview"}).insertAfter(r.ampPreviewBtnSelector);a(r.previewBtnSelector).click(),e.remove()},toggleAmpStatus:function(e){var t=a("#amp-status-select"),n=a(".edit-amp-status"),o=t.data("amp-status");e.hasClass("button-cancel")||(o=r.statusRadioInputs.filter(":checked").val());var i=a("#amp-status-"+o);n.fadeToggle(r.toggleSpeed,(function(){n.is(":visible")?n.focus():t.find('input[type="radio"]').first().focus()})),t.slideToggle(r.toggleSpeed),r.data.canSupport&&(t.data("amp-status",o),i.prop("checked",!0),a(".amp-status-text").text(i.next().text()))}})}]);
assets/js/amp-stories-editor.deps.json CHANGED
@@ -1 +1 @@
1
- ["lodash","react","wp-blob","wp-block-editor","wp-blocks","wp-components","wp-compose","wp-data","wp-date","wp-dom-ready","wp-edit-post","wp-element","wp-hooks","wp-i18n","wp-keycodes","wp-plugins","wp-polyfill","wp-rich-text","wp-url","wp-wordcount"]
1
+ ["lodash","react","wp-api-fetch","wp-blob","wp-block-editor","wp-blocks","wp-components","wp-compose","wp-core-data","wp-data","wp-date","wp-dom","wp-dom-ready","wp-edit-post","wp-element","wp-hooks","wp-html-entities","wp-i18n","wp-keycodes","wp-plugins","wp-polyfill","wp-rich-text","wp-url","wp-wordcount"]
assets/js/amp-stories-editor.js CHANGED
@@ -1,34 +1,35 @@
1
- this.AMP=function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(a,n,function(t){return e[t]}.bind(null,n));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=44)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t,r){"use strict";r.d(t,"x",function(){return S}),r.d(t,"w",function(){return P}),r.d(t,"s",function(){return x}),r.d(t,"r",function(){return C}),r.d(t,"e",function(){return I}),r.d(t,"d",function(){return B}),r.d(t,"l",function(){return A}),r.d(t,"j",function(){return z}),r.d(t,"k",function(){return D}),r.d(t,"c",function(){return T}),r.d(t,"b",function(){return N}),r.d(t,"o",function(){return R}),r.d(t,"z",function(){return M}),r.d(t,"f",function(){return V}),r.d(t,"a",function(){return F}),r.d(t,"t",function(){return L}),r.d(t,"q",function(){return H}),r.d(t,"p",function(){return W}),r.d(t,"i",function(){return U}),r.d(t,"g",function(){return G}),r.d(t,"h",function(){return Q}),r.d(t,"v",function(){return $}),r.d(t,"u",function(){return J}),r.d(t,"y",function(){return Y}),r.d(t,"m",function(){return K}),r.d(t,"n",function(){return Z});var a=r(22),n=r.n(a),o=r(0),i=(r(31),r(1)),c=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Arimo"),Object(o.createElement)("path",{d:"M25.232 10.869h-1.304V5.845q0-.893-.19-1.358a1.132 1.132 0 0 0-.125-.232q-.247-.345-.807-.419a2.509 2.509 0 0 0-.328-.02 1.768 1.768 0 0 0-.637.11 1.575 1.575 0 0 0-.696.534q-.389.512-.47 1.355a4.868 4.868 0 0 0-.021.462v4.592h-1.311V4.636a69.373 69.373 0 0 0-.001-.481q-.007-.961-.043-1.211h1.245a.252.252 0 0 1 .003.018q.006.045.011.16a8.532 8.532 0 0 1 .001.02l.015.312a72.157 72.157 0 0 0 .003.058q.011.209.026.787h.022a4.213 4.213 0 0 1 .292-.497q.166-.241.348-.416a1.869 1.869 0 0 1 .334-.259 2.241 2.241 0 0 1 .716-.27 3.155 3.155 0 0 1 .624-.059q.901 0 1.425.359a1.631 1.631 0 0 1 .504.566q.122.22.203.496a3.058 3.058 0 0 1 .022.08h.022q.338-.658.793-1.012a2.04 2.04 0 0 1 .199-.138 2.377 2.377 0 0 1 .778-.293 3.281 3.281 0 0 1 .632-.058 3.489 3.489 0 0 1 .648.056q.713.135 1.099.596.498.595.542 1.888a7.53 7.53 0 0 1 .004.25v5.281h-1.304V5.845q0-.893-.19-1.358a1.132 1.132 0 0 0-.125-.232q-.248-.345-.807-.419a2.509 2.509 0 0 0-.328-.02 1.86 1.86 0 0 0-.606.094 1.526 1.526 0 0 0-.738.547q-.37.493-.455 1.306a4.949 4.949 0 0 0-.025.514v4.592zm-15.286 0H8.518L7.339 7.852H2.637L1.45 10.869H0L4.211.549h1.59l4.145 10.32zm2.388 0h-1.318V4.79a36.993 36.993 0 0 0-.011-.879 49.319 49.319 0 0 0-.033-.967h1.245a244.312 244.312 0 0 1 .02.468q.032.766.037 1.051a5.258 5.258 0 0 1 .001.1h.03a6.431 6.431 0 0 1 .174-.495q.193-.483.418-.756a1.346 1.346 0 0 1 .133-.141 1.344 1.344 0 0 1 .531-.291q.276-.082.626-.082a2.029 2.029 0 0 1 .497.063 2.267 2.267 0 0 1 .038.01V4.08q-.177-.05-.434-.066a4.303 4.303 0 0 0-.269-.008 1.503 1.503 0 0 0-.598.115q-.341.146-.58.478a1.848 1.848 0 0 0-.075.114q-.432.707-.432 2.025v4.131zm25.261-.871a3.067 3.067 0 0 0 .556-.909q.36-.886.36-2.19a8.204 8.204 0 0 0-.071-1.114q-.175-1.274-.786-1.987-.603-.703-1.68-.912a5.232 5.232 0 0 0-.994-.088 5.057 5.057 0 0 0-.885.073q-2.018.359-2.509 2.481a6.889 6.889 0 0 0-.158 1.547 7.799 7.799 0 0 0 .038.785q.062.615.227 1.121a3.43 3.43 0 0 0 .621 1.152 2.768 2.768 0 0 0 .28.289q.533.475 1.301.657a4.523 4.523 0 0 0 1.042.113q.64 0 1.168-.138a2.947 2.947 0 0 0 1.49-.88zm-20.303.871h-1.318V2.944h1.318v7.925zm19.834-3.97a8.771 8.771 0 0 0-.036-.83q-.097-1.013-.451-1.554-.487-.743-1.637-.743-1.157 0-1.673.758-.47.69-.512 2.087a9.359 9.359 0 0 0-.005.282 7.788 7.788 0 0 0 .041.82q.103.969.469 1.535a1.666 1.666 0 0 0 1.207.759 2.612 2.612 0 0 0 .393.029 2.894 2.894 0 0 0 .637-.066q.404-.091.694-.31a1.572 1.572 0 0 0 .364-.386 2.444 2.444 0 0 0 .289-.621q.22-.694.22-1.76zM5.186 2.212l-.198-.608-.066.205q-.183.608-.542 1.56L3.062 6.76h3.859L5.596 3.354a14.133 14.133 0 0 1-.205-.538 19.209 19.209 0 0 1-.205-.604zm12.106-.952h-1.318V0h1.318v1.26z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};c.defaultProps={width:"38.511",height:"11.016",viewBox:"0 0 38.511 11.016"};var l=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Lato"),Object(o.createElement)("path",{d:"M14.625 9.105v-5.49H13.41q-.103 0-.105-.072a.104.104 0 0 1 0-.003v-.045l1.32-.03.06-2.955a.145.145 0 0 1 .019-.071.071.071 0 0 1 .015-.02q.015-.013.037-.014a.08.08 0 0 1 .004 0h.045v3.06h2.505v.15h-2.505v5.49a2.497 2.497 0 0 0 .014.275q.023.201.08.359a1.284 1.284 0 0 0 .103.221.974.974 0 0 0 .155.199q.165.161.383.236a1.396 1.396 0 0 0 .404.074 1.597 1.597 0 0 0 .061.001 1.724 1.724 0 0 0 .269-.02 1.248 1.248 0 0 0 .282-.077q.237-.098.402-.21a2.841 2.841 0 0 0 .114-.083q.055-.042.101-.081a1.358 1.358 0 0 0 .051-.047q.087-.084.133-.095a.055.055 0 0 1 .013-.002q.03 0 .06.03l.03.03a1.545 1.545 0 0 1-.194.212 1.82 1.82 0 0 1-.08.069q-.161.132-.352.225a2.002 2.002 0 0 1-.405.146q-.214.053-.424.053-.645 0-1.012-.352-.368-.353-.368-1.163zm-2.88 1.395h-.03q-.105 0-.105-.12l-.045-1.192a8.479 8.479 0 0 1-.453.441 7.289 7.289 0 0 1-.177.155q-.315.266-.668.45-.352.184-.757.285a3.32 3.32 0 0 1-.484.082 4.3 4.3 0 0 1-.416.019 2.27 2.27 0 0 1-.643-.095 2.53 2.53 0 0 1-.021-.006 1.741 1.741 0 0 1-.604-.323 1.597 1.597 0 0 1-.36-.423 1.933 1.933 0 0 1-.078-.147q-.169-.348-.169-.851a1.466 1.466 0 0 1 .289-.889 1.766 1.766 0 0 1 .338-.343q.169-.133.385-.247a3.417 3.417 0 0 1 .162-.081 4.532 4.532 0 0 1 .536-.206q.268-.086.579-.155a9.056 9.056 0 0 1 .388-.078q.908-.161 2.153-.191V5.64a4.484 4.484 0 0 0-.032-.545 3.335 3.335 0 0 0-.095-.49q-.128-.457-.375-.772-.248-.315-.623-.484a1.875 1.875 0 0 0-.484-.141 2.515 2.515 0 0 0-.386-.028q-.39 0-.705.083a3.452 3.452 0 0 0-.324.101 2.678 2.678 0 0 0-.238.101q-.248.12-.432.263-.158.122-.28.228a4.45 4.45 0 0 0-.038.034q-.136.12-.218.203a.803.803 0 0 1-.032.03q-.058.052-.088.052a.054.054 0 0 1-.02-.004q-.024-.01-.055-.041l-.03-.03q.54-.57 1.118-.87a2.635 2.635 0 0 1 .827-.263 3.449 3.449 0 0 1 .515-.037 2.953 2.953 0 0 1 .459.034q.281.044.512.146a1.766 1.766 0 0 1 .679.517 2.028 2.028 0 0 1 .293.506 2.577 2.577 0 0 1 .105.316 3.74 3.74 0 0 1 .099.549 5.02 5.02 0 0 1 .028.542v4.86zM.18 0v10.335h5.355v.165H0V0h.18zm22.509 3.098a3.725 3.725 0 0 0-.729-.068 3.893 3.893 0 0 0-.581.042 2.951 2.951 0 0 0-.795.232q-.596.274-1.005.769a3.042 3.042 0 0 0-.321.474 3.702 3.702 0 0 0-.298.722 4.776 4.776 0 0 0-.147.667 6.035 6.035 0 0 0-.063.889q0 .855.21 1.549a3.938 3.938 0 0 0 .134.374 3.207 3.207 0 0 0 .485.815 2.726 2.726 0 0 0 1.005.761 2.948 2.948 0 0 0 .663.204 3.882 3.882 0 0 0 .713.062q.772 0 1.373-.266a2.719 2.719 0 0 0 1.008-.762 3.068 3.068 0 0 0 .31-.453 3.67 3.67 0 0 0 .309-.735 4.686 4.686 0 0 0 .151-.686 6.014 6.014 0 0 0 .059-.863q0-.855-.21-1.556a3.939 3.939 0 0 0-.151-.418 3.168 3.168 0 0 0-.468-.778 2.792 2.792 0 0 0-1.009-.769 2.919 2.919 0 0 0-.643-.206zm-.729 7.342a3.649 3.649 0 0 0 .664-.058 2.764 2.764 0 0 0 .656-.205q.57-.262.949-.734a3.007 3.007 0 0 0 .428-.733 3.766 3.766 0 0 0 .142-.407q.191-.668.191-1.478a5.965 5.965 0 0 0-.061-.867 4.77 4.77 0 0 0-.13-.614 3.611 3.611 0 0 0-.275-.695 2.963 2.963 0 0 0-.295-.456q-.379-.48-.949-.747a2.785 2.785 0 0 0-.762-.225 3.691 3.691 0 0 0-.558-.041q-.757 0-1.324.266-.566.267-.945.747a3.089 3.089 0 0 0-.432.75 3.843 3.843 0 0 0-.138.401 4.961 4.961 0 0 0-.164.893 6.243 6.243 0 0 0-.027.588 5.952 5.952 0 0 0 .059.855 4.721 4.721 0 0 0 .132.623 3.552 3.552 0 0 0 .266.671 2.891 2.891 0 0 0 .304.469q.379.472.945.735a2.76 2.76 0 0 0 .719.215 3.747 3.747 0 0 0 .605.047zM11.565 9V6.735q-1.998.063-3.124.441a4.148 4.148 0 0 0-.382.148 2.817 2.817 0 0 0-.514.293q-.276.202-.431.449a1.306 1.306 0 0 0-.199.709 2.244 2.244 0 0 0 .027.357q.032.198.102.364a1.352 1.352 0 0 0 .017.04q.147.319.383.525.236.207.54.308a1.968 1.968 0 0 0 .626.101 3.853 3.853 0 0 0 .522-.034 2.982 2.982 0 0 0 .415-.086 3.512 3.512 0 0 0 .638-.249 3.184 3.184 0 0 0 .135-.073 4.064 4.064 0 0 0 .656-.469A10.315 10.315 0 0 0 11.565 9z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};l.defaultProps={width:"25.17",height:"10.62",viewBox:"0 0 25.17 10.62"};var s=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Lora"),Object(o.createElement)("path",{d:"M0 10.5v-.495q.497-.014.725-.217a.571.571 0 0 0 .025-.023q.225-.225.255-.532.028-.284.03-.955a36.327 36.327 0 0 0 0-.118V1.68a14.948 14.948 0 0 1 .006-.447Q1.052.881 1.08.6L0 .66V0h3.375v.495q-.497.014-.725.217a.571.571 0 0 0-.025.023Q2.4.96 2.37 1.268q-.028.283-.03.954a36.327 36.327 0 0 0 0 .118v6.435a22.259 22.259 0 0 1-.003.366q-.008.512-.042.804L5.1 9.9q.96-.015 1.44-.607.449-.555.478-1.734a6.732 6.732 0 0 0 .002-.164h.51L7.44 10.5H0zm28.2-4.185v-.93q0-.975-.285-1.522a.916.916 0 0 0-.495-.432q-.173-.069-.394-.097a2.596 2.596 0 0 0-.326-.019q-.465 0-.885.195a1.324 1.324 0 0 0-.401.281 1.224 1.224 0 0 0-.214.304.704.704 0 0 1 .167.319q.028.115.028.251 0 .225-.165.428a.534.534 0 0 1-.319.187.813.813 0 0 1-.161.015.788.788 0 0 1-.213-.027.578.578 0 0 1-.282-.176.694.694 0 0 1-.159-.32 1.001 1.001 0 0 1-.021-.212 1.248 1.248 0 0 1 .243-.737 1.696 1.696 0 0 1 .14-.17q.353-.382.963-.616A3.852 3.852 0 0 1 25.522 3a4.198 4.198 0 0 1 .915-.206 5.309 5.309 0 0 1 .608-.034 3.775 3.775 0 0 1 .69.059q.386.072.685.231a1.76 1.76 0 0 1 .485.377 1.976 1.976 0 0 1 .379.651q.206.564.206 1.387a6.697 6.697 0 0 1 0 .07l-.015 3.375a8.633 8.633 0 0 1-.023.623 10.396 10.396 0 0 1-.037.397l1.065-.06v.63h-2.145a2.825 2.825 0 0 1-.022-.128q-.037-.245-.083-.727a4.338 4.338 0 0 1-.804.643 2.936 2.936 0 0 1-1.551.452 3.884 3.884 0 0 1-.634-.048q-.641-.107-1.038-.447a1.6 1.6 0 0 1-.574-1.168 2.096 2.096 0 0 1-.004-.122 1.843 1.843 0 0 1 .593-1.375 2.457 2.457 0 0 1 .104-.095 4.038 4.038 0 0 1 .984-.617 5.357 5.357 0 0 1 .771-.276 7.541 7.541 0 0 1 2.019-.278 7.378 7.378 0 0 1 .104.001zM17.28 10.5v-.45a1.368 1.368 0 0 0 .224-.017q.264-.044.399-.2a.914.914 0 0 0 .184-.347 1.234 1.234 0 0 0 .041-.208q.037-.338.037-1.058V4.8a11.104 11.104 0 0 1 .004-.297q.011-.419.056-.678l-1.065.045v-.615h.465q.57 0 .825-.097a1.403 1.403 0 0 0 .351-.199 1.716 1.716 0 0 0 .129-.109h.435q.04.393.06.928a27.003 27.003 0 0 1 .015.557 3.332 3.332 0 0 1 .595-.716 4.322 4.322 0 0 1 .478-.379 2.834 2.834 0 0 1 .688-.352 2.33 2.33 0 0 1 .759-.128 1.39 1.39 0 0 1 .353.043A1.055 1.055 0 0 1 22.71 3a.774.774 0 0 1 .276.461 1.185 1.185 0 0 1 .024.244.669.669 0 0 1-.063.278q-.04.088-.105.177a1.218 1.218 0 0 1-.02.025q-.187.24-.532.24a.715.715 0 0 1-.292-.058.69.69 0 0 1-.248-.19.71.71 0 0 1-.173-.473q0-.058.008-.119a1.398 1.398 0 0 0-.037 0q-.518 0-1.042.383a2.856 2.856 0 0 0-.069.052 3.461 3.461 0 0 0-.676.71 4.431 4.431 0 0 0-.306.49l.015 3.69a12.56 12.56 0 0 1-.004.317q-.011.444-.056.703l.945-.045v.615H17.28zm-5.055.24q-1.035 0-1.897-.487-.863-.488-1.365-1.358a3.775 3.775 0 0 1-.493-1.661 4.577 4.577 0 0 1-.01-.304q0-1.17.495-2.122.495-.953 1.358-1.5.862-.548 1.912-.548 1.035 0 1.905.503.87.502 1.373 1.372a3.783 3.783 0 0 1 .501 1.864 4.474 4.474 0 0 1 .001.071q0 1.14-.502 2.1a3.998 3.998 0 0 1-.993 1.243 3.846 3.846 0 0 1-.373.272q-.862.555-1.912.555zm.12-.6a2.088 2.088 0 0 0 .685-.106q.588-.203.928-.794.517-.9.517-2.235a6.823 6.823 0 0 0-.104-1.222q-.131-.722-.429-1.315a4.256 4.256 0 0 0-.029-.058 2.307 2.307 0 0 0-.419-.581q-.504-.499-1.269-.499-1.065 0-1.626.842a2.373 2.373 0 0 0-.046.073q-.548.89-.563 2.177a6.258 6.258 0 0 0 0 .073 6.206 6.206 0 0 0 .124 1.26 5.425 5.425 0 0 0 .139.532 3.624 3.624 0 0 0 .305.71 2.774 2.774 0 0 0 .49.633q.532.51 1.297.51zm15.84-1.905l.015-1.41a6.155 6.155 0 0 0-1.231.164 4.93 4.93 0 0 0-.959.338 2.045 2.045 0 0 0-.485.315 1.392 1.392 0 0 0-.475 1.088 1.492 1.492 0 0 0 .038.348.973.973 0 0 0 .292.507 1.14 1.14 0 0 0 .625.286 1.553 1.553 0 0 0 .215.014 2.587 2.587 0 0 0 .64-.077 2.225 2.225 0 0 0 .395-.14q.431-.202.875-.604A5.282 5.282 0 0 0 28.2 9a4.554 4.554 0 0 1-.007-.132q-.008-.228-.008-.633z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};s.defaultProps={width:"30.48",height:"10.74",viewBox:"0 0 30.48 10.74"};var u=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Merriweather"),Object(o.createElement)("path",{d:"M1.275 11.505l1.11-9.555L.72 1.785V1.14h3.54l2.325 6.93.555 2.01.495-2.01 2.31-6.93h3.51v.645l-1.65.165 1.185 9.54 1.365.15v.645H10.32v-.645l1.395-.135-.69-6.84-.33-3-.66 2.07-2.715 8.01h-.6l-2.55-7.17-.975-2.91-.3 3-.615 6.84 1.47.135v.645H0v-.645l1.275-.135zm39.615-6.93V3.96h3.255v.615l-1.2.18L44.28 9.42l.495 2.085.495-2.1 1.5-5.445h1.245l1.5 5.445.48 2.115.54-2.1 1.32-4.65-1.155-.195V3.96h2.94v.615l-.825.195-2.34 7.635H49.26l-1.635-5.58-.42-1.89-.36 1.89-1.575 5.58h-1.185l-2.4-7.65-.795-.18zm36.705 6.96V.945L76.26.81V.255L78.48 0h.03l.285.195v3.57l-.03 1.245a3.73 3.73 0 0 1 .415-.322q.22-.149.488-.294a8.278 8.278 0 0 1 .447-.224 4.469 4.469 0 0 1 .916-.316 3.651 3.651 0 0 1 .794-.089q.63 0 1.074.16a1.745 1.745 0 0 1 .396.2 1.692 1.692 0 0 1 .533.605 2.461 2.461 0 0 1 .202.512q.206.742.21 1.994a15.656 15.656 0 0 1 0 .054v4.23l1.095.12v.645h-3.36v-.645l1.05-.12V7.275a11.701 11.701 0 0 0-.012-.556q-.025-.511-.098-.863a3.005 3.005 0 0 0-.018-.081 1.659 1.659 0 0 0-.137-.381 1.193 1.193 0 0 0-.365-.429 1.243 1.243 0 0 0-.354-.172q-.308-.098-.741-.098-.582 0-1.25.276a4.738 4.738 0 0 0-.04.016 5.877 5.877 0 0 0-.798.41 4.902 4.902 0 0 0-.417.288v5.835l1.11.12v.645H76.65v-.645l.945-.105zm-10.2-4.245v-.465a6.063 6.063 0 0 0-.015-.447q-.033-.441-.135-.74a1.753 1.753 0 0 0-.008-.02 1.218 1.218 0 0 0-.207-.373 1.086 1.086 0 0 0-.34-.272 1.518 1.518 0 0 0-.321-.12q-.317-.082-.76-.083a4.85 4.85 0 0 0-.014 0q-.765 0-1.387.233-.623.232-1.208.562l-.33-.66a1.09 1.09 0 0 1 .101-.08q.173-.122.514-.301a11.219 11.219 0 0 1 .075-.039q.525-.27 1.2-.48a4.688 4.688 0 0 1 .826-.18 3.96 3.96 0 0 1 .479-.03q1.02 0 1.612.285.593.285.856.915a2.918 2.918 0 0 1 .157.521q.056.266.082.58a7.177 7.177 0 0 1 .023.594v4.95h.93v.555a8.071 8.071 0 0 1-.537.128q-.265.053-.496.077a3.518 3.518 0 0 1-.362.02 1.808 1.808 0 0 1-.166-.007q-.228-.021-.329-.105a.271.271 0 0 1-.07-.096q-.065-.14-.065-.419a2.596 2.596 0 0 1 0-.003v-.555q-.54.48-1.178.848a2.766 2.766 0 0 1-1.174.356 3.387 3.387 0 0 1-.273.011 3.196 3.196 0 0 1-.846-.107 2.458 2.458 0 0 1-.947-.493 1.933 1.933 0 0 1-.639-1.072 3.002 3.002 0 0 1-.073-.683 2.269 2.269 0 0 1 .215-1.005q.246-.505.771-.854a3.23 3.23 0 0 1 .454-.249q1.187-.537 2.853-.662a13.588 13.588 0 0 1 .732-.035zm-45.585.735h-5.34a5.701 5.701 0 0 0 .1 1.1q.167.849.612 1.473.713.997 2.003.997a3.841 3.841 0 0 0 .982-.132 4.554 4.554 0 0 0 .308-.093q.66-.225 1.02-.54l.24.555a2.475 2.475 0 0 1-.438.354q-.218.141-.487.263a5.152 5.152 0 0 1-.343.14 4.818 4.818 0 0 1-1.567.307 4.586 4.586 0 0 1-.105.001 4.048 4.048 0 0 1-1.136-.151 2.974 2.974 0 0 1-1.541-1.041 4.163 4.163 0 0 1-.746-1.54q-.192-.736-.192-1.633a5.604 5.604 0 0 1 .132-1.239 4.51 4.51 0 0 1 .363-1.026 3.885 3.885 0 0 1 .809-1.103 3.597 3.597 0 0 1 .563-.434 3.635 3.635 0 0 1 1.905-.547 4.339 4.339 0 0 1 .068-.001 3.743 3.743 0 0 1 .848.09q.638.149 1.087.54a2.338 2.338 0 0 1 .142.135q.653.672.778 1.864a5.393 5.393 0 0 1 .025.341q0 .93-.09 1.32zm39.03 0H55.5a5.701 5.701 0 0 0 .1 1.1q.167.849.613 1.473.712.997 2.002.997a3.841 3.841 0 0 0 .982-.132 4.554 4.554 0 0 0 .308-.093q.66-.225 1.02-.54l.24.555a2.475 2.475 0 0 1-.438.354q-.218.141-.487.263a5.152 5.152 0 0 1-.343.14 4.818 4.818 0 0 1-1.567.307 4.586 4.586 0 0 1-.105.001 4.048 4.048 0 0 1-1.136-.151 2.974 2.974 0 0 1-1.541-1.041 4.163 4.163 0 0 1-.746-1.54q-.192-.736-.192-1.633a5.604 5.604 0 0 1 .132-1.239 4.51 4.51 0 0 1 .363-1.026 3.885 3.885 0 0 1 .809-1.103 3.597 3.597 0 0 1 .563-.434 3.635 3.635 0 0 1 1.905-.547 4.339 4.339 0 0 1 .068-.001 3.743 3.743 0 0 1 .848.09q.638.149 1.087.54a2.338 2.338 0 0 1 .142.135q.653.672.778 1.864a5.393 5.393 0 0 1 .025.341q0 .93-.09 1.32zm32.325 0h-5.34a5.701 5.701 0 0 0 .1 1.1q.167.849.613 1.473.712.997 2.002.997a3.841 3.841 0 0 0 .982-.132 4.554 4.554 0 0 0 .308-.093q.66-.225 1.02-.54l.24.555a2.475 2.475 0 0 1-.438.354q-.218.141-.487.263a5.152 5.152 0 0 1-.343.14 4.818 4.818 0 0 1-1.567.307 4.586 4.586 0 0 1-.105.001 4.048 4.048 0 0 1-1.136-.151 2.974 2.974 0 0 1-1.541-1.041 4.163 4.163 0 0 1-.746-1.54q-.192-.736-.192-1.633a5.604 5.604 0 0 1 .132-1.239 4.51 4.51 0 0 1 .363-1.026 3.885 3.885 0 0 1 .809-1.103 3.597 3.597 0 0 1 .563-.434 3.635 3.635 0 0 1 1.905-.547 4.339 4.339 0 0 1 .068-.001 3.743 3.743 0 0 1 .848.09q.638.149 1.087.54a2.338 2.338 0 0 1 .142.135q.653.672.778 1.864a5.393 5.393 0 0 1 .025.341q0 .93-.09 1.32zm-69.855 4.26v-.63l1.2-.09V4.95l-1.155-.255V4.02l1.905-.24h.03l.285.24v.24l-.03 1.14h.03a.446.446 0 0 0 .013-.014q.063-.069.385-.443a2.667 2.667 0 0 1 .342-.329q.309-.251.753-.489a3.357 3.357 0 0 1 .797-.31 2.821 2.821 0 0 1 .665-.08 1.702 1.702 0 0 1 .323.03 1.489 1.489 0 0 1 .127.03v1.32a.222.222 0 0 0-.037-.022q-.065-.031-.197-.061a2.583 2.583 0 0 0-.029-.007 1.921 1.921 0 0 0-.343-.043 2.189 2.189 0 0 0-.084-.002 4.784 4.784 0 0 0-.653.042q-.446.062-.802.213-.6.255-1.11.63v5.685l1.995.12v.615h-4.41zm6.75 0v-.63l1.2-.09V4.95l-1.155-.255V4.02l1.905-.24h.03l.285.24v.24l-.03 1.14h.03a.446.446 0 0 0 .013-.014q.063-.069.385-.443a2.667 2.667 0 0 1 .342-.329q.309-.251.753-.489a3.357 3.357 0 0 1 .797-.31 2.821 2.821 0 0 1 .665-.08 1.702 1.702 0 0 1 .323.03 1.489 1.489 0 0 1 .127.03v1.32a.222.222 0 0 0-.037-.022q-.065-.031-.197-.061a2.583 2.583 0 0 0-.029-.007 1.921 1.921 0 0 0-.343-.043 2.189 2.189 0 0 0-.084-.002 4.784 4.784 0 0 0-.653.042q-.446.062-.802.213-.6.255-1.11.63v5.685l1.995.12v.615h-4.41zm64.605 0v-.63l1.2-.09V4.95l-1.155-.255V4.02l1.905-.24h.03l.285.24v.24L96.9 5.4h.03a.446.446 0 0 0 .013-.014q.063-.069.384-.443a2.667 2.667 0 0 1 .343-.329q.309-.251.752-.489a3.357 3.357 0 0 1 .798-.31 2.821 2.821 0 0 1 .665-.08 1.702 1.702 0 0 1 .323.03 1.489 1.489 0 0 1 .127.03v1.32a.222.222 0 0 0-.037-.022q-.065-.031-.197-.061a2.583 2.583 0 0 0-.029-.007 1.921 1.921 0 0 0-.343-.043 2.189 2.189 0 0 0-.084-.002 4.784 4.784 0 0 0-.653.042q-.446.062-.802.213-.6.255-1.11.63v5.685l1.995.12v.615h-4.41zm-23.04-1.515V4.845h-1.14V4.26a19.476 19.476 0 0 0 .259-.059q.514-.12.611-.181.186-.099.29-.353a1.268 1.268 0 0 0 .04-.112 2.489 2.489 0 0 0 .049-.135q.075-.225.181-.635a22.576 22.576 0 0 0 .01-.04 66.034 66.034 0 0 0 .07-.277q.068-.268.116-.469a17.904 17.904 0 0 0 .039-.169h.69v2.13h2.655v.885H72.84v4.86q0 .856.058 1.211a1.822 1.822 0 0 0 .002.011q.053.313.201.431a.325.325 0 0 0 .039.027.556.556 0 0 0 .123.051q.133.039.339.05a3.207 3.207 0 0 0 .168.004q.435 0 .975-.12a6.804 6.804 0 0 0 .282-.069q.272-.072.451-.15a1.582 1.582 0 0 0 .077-.036l.195.57q-.291.228-.902.439a7.907 7.907 0 0 1-.238.078 6.6 6.6 0 0 1-.567.151q-.447.097-.813.097a2.749 2.749 0 0 1-.448-.034q-.239-.04-.429-.125a1.219 1.219 0 0 1-.323-.208 1.03 1.03 0 0 1-.253-.371q-.152-.362-.152-.942zm-33.6.75V4.95l-1.17-.255V4.02l2.055-.24h.03l.3.24v7.515l1.305.105v.645h-3.84v-.645l1.32-.12zm29.37-.87V7.995a10.223 10.223 0 0 0-1 .054q-1.093.117-1.752.486a2.323 2.323 0 0 0-.469.339 1.426 1.426 0 0 0-.469 1.071 2.661 2.661 0 0 0 .034.444q.088.519.401.794a1.464 1.464 0 0 0 .599.311q.222.06.487.069a2.819 2.819 0 0 0 .099.002q.42 0 1.005-.27a5.419 5.419 0 0 0 1.005-.599 5.048 5.048 0 0 0 .06-.046zm-50.91-3.33h4.065a4.56 4.56 0 0 0 .043-.532 5.163 5.163 0 0 0 .002-.128q-.015-.99-.472-1.575a1.459 1.459 0 0 0-.811-.516q-.267-.069-.592-.069a2.115 2.115 0 0 0-1.078.262q-.835.483-1.076 1.861a6.427 6.427 0 0 0-.081.697zm39.03 0h4.065a4.56 4.56 0 0 0 .043-.532 5.163 5.163 0 0 0 .002-.128q-.015-.99-.472-1.575a1.459 1.459 0 0 0-.811-.516q-.267-.069-.592-.069a2.115 2.115 0 0 0-1.078.262q-.835.483-1.076 1.861a6.427 6.427 0 0 0-.081.697zm32.325 0h4.065a4.56 4.56 0 0 0 .043-.532 5.163 5.163 0 0 0 .002-.128q-.015-.99-.473-1.575a1.459 1.459 0 0 0-.81-.516Q90.4 4.5 90.075 4.5a2.115 2.115 0 0 0-1.078.262q-.835.483-1.076 1.861a6.427 6.427 0 0 0-.081.697zM38.52 2.385h-.015a1.102 1.102 0 0 1-.325-.044q-.485-.15-.485-.811a1.214 1.214 0 0 1 .042-.327.93.93 0 0 1 .213-.386.841.841 0 0 1 .508-.264A1.198 1.198 0 0 1 38.64.54a1.29 1.29 0 0 1 .233.02q.127.023.226.075a.57.57 0 0 1 .186.153.902.902 0 0 1 .184.444 1.197 1.197 0 0 1 .011.163q0 .382-.167.627a.811.811 0 0 1-.081.1q-.247.263-.712.263z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};u.defaultProps={width:"100.335",height:"12.45",viewBox:"0 0 100.335 12.45"};var p=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Montserrat"),Object(o.createElement)("path",{d:"M10.095 0h.255v10.5h-.3V.645l-4.785 8.37h-.18L.3.675V10.5H0V0h.255l4.92 8.61L10.095 0zM29.88 5.925V10.5h-.3V5.925q0-1.03-.38-1.711a2.282 2.282 0 0 0-.348-.471 2.367 2.367 0 0 0-1.146-.651q-.376-.097-.823-.106a4.594 4.594 0 0 0-.093-.001 4.088 4.088 0 0 0-1.007.117 2.865 2.865 0 0 0-1.386.791 3.065 3.065 0 0 0-.815 1.644 4.337 4.337 0 0 0-.062.748V10.5h-.3V2.745h.3v2.07q.36-.99 1.2-1.552a3.262 3.262 0 0 1 1.23-.49 4.481 4.481 0 0 1 .825-.073q1.455 0 2.28.833.825.832.825 2.392zm7.935 3.555l.18-.24a2.911 2.911 0 0 0 .508.388q.309.189.7.34.757.292 1.642.292a6.079 6.079 0 0 0 .688-.036q.715-.082 1.152-.348a1.642 1.642 0 0 0 .11-.074 1.452 1.452 0 0 0 .618-1.046 1.908 1.908 0 0 0 .012-.221 1.634 1.634 0 0 0-.044-.389 1.112 1.112 0 0 0-.294-.533q-.337-.338-.824-.495a6.728 6.728 0 0 0-.341-.1q-.356-.094-.84-.191a22.906 22.906 0 0 0-.162-.032 16.76 16.76 0 0 1-.587-.116q-.521-.113-.89-.236a2.249 2.249 0 0 1-.809-.465 2.185 2.185 0 0 1-.136-.135q-.352-.38-.381-1.032a2.679 2.679 0 0 1-.002-.116 1.742 1.742 0 0 1 .573-1.307 2.397 2.397 0 0 1 .124-.111q.538-.445 1.464-.547a5.342 5.342 0 0 1 .584-.03q.72 0 1.425.218a4.224 4.224 0 0 1 .528.2q.265.122.477.273a2.373 2.373 0 0 1 .135.104l-.18.24a3.037 3.037 0 0 0-.695-.413 3.784 3.784 0 0 0-.385-.142q-.63-.195-1.305-.195a4.985 4.985 0 0 0-.668.042q-.335.045-.607.14a1.916 1.916 0 0 0-.548.29q-.597.465-.607 1.213a1.907 1.907 0 0 0 0 .025 1.768 1.768 0 0 0 .043.4q.072.312.267.53a1.123 1.123 0 0 0 .035.038 2.02 2.02 0 0 0 .715.467 2.414 2.414 0 0 0 .14.05 6.426 6.426 0 0 0 .351.102q.415.108.981.21a20.374 20.374 0 0 0 .018.003 19.837 19.837 0 0 1 .535.113q.512.115.87.231a5.702 5.702 0 0 1 .05.016q.54.18.915.578.351.371.373 1.012a2.541 2.541 0 0 1 .002.09q0 .884-.686 1.425a2.243 2.243 0 0 1-.049.038 2.415 2.415 0 0 1-.709.354q-.332.107-.738.155a5.995 5.995 0 0 1-.698.038 5.133 5.133 0 0 1-1.599-.246 4.849 4.849 0 0 1-.156-.054 4.502 4.502 0 0 1-.566-.248q-.287-.152-.509-.333a2.344 2.344 0 0 1-.2-.184zM71.55 5.415V10.5h-.3V8.85q-.375.795-1.132 1.245a3.136 3.136 0 0 1-1.038.381 4.29 4.29 0 0 1-.785.069 4.543 4.543 0 0 1-.786-.064q-.441-.077-.792-.249a2.274 2.274 0 0 1-.439-.28 1.907 1.907 0 0 1-.721-1.392 2.545 2.545 0 0 1-.007-.19 2.153 2.153 0 0 1 .12-.734 1.867 1.867 0 0 1 .532-.774 1.938 1.938 0 0 1 .618-.357q.554-.206 1.377-.219a7.097 7.097 0 0 1 .113-.001h2.94V5.43a3.775 3.775 0 0 0-.06-.699q-.073-.387-.235-.689a1.825 1.825 0 0 0-.328-.442q-.528-.522-1.483-.601a4.299 4.299 0 0 0-.354-.014q-.84 0-1.567.293-.728.292-1.253.787l-.21-.21q.555-.54 1.35-.847.795-.308 1.665-.308a4.181 4.181 0 0 1 .799.072q.463.09.821.293a2.14 2.14 0 0 1 .442.333q.646.631.707 1.774a4.578 4.578 0 0 1 .006.243zM52.275 6.54v.075h-6.9a4.062 4.062 0 0 0 .16 1.156 3.544 3.544 0 0 0 .305.727q.465.832 1.283 1.297a3.584 3.584 0 0 0 1.585.458 4.316 4.316 0 0 0 .252.007q.795 0 1.493-.307.697-.308 1.147-.893l.21.21q-.51.615-1.26.945-.75.33-1.59.33a4.198 4.198 0 0 1-1.221-.173 3.682 3.682 0 0 1-.767-.329q-.877-.503-1.379-1.403a3.987 3.987 0 0 1-.491-1.679 4.815 4.815 0 0 1-.012-.346 4.67 4.67 0 0 1 .147-1.192 3.962 3.962 0 0 1 .318-.825q.465-.893 1.283-1.395a3.418 3.418 0 0 1 1.742-.502 4.085 4.085 0 0 1 .095-.001q1.005 0 1.83.495.825.495 1.298 1.365.472.87.472 1.98zM36.54 9.78l.21.21a1.496 1.496 0 0 1-.397.297 1.958 1.958 0 0 1-.271.115q-.412.143-.847.143a2.507 2.507 0 0 1-.558-.058q-.387-.089-.668-.311a1.51 1.51 0 0 1-.162-.148 1.743 1.743 0 0 1-.432-.843 2.557 2.557 0 0 1-.055-.545V3.03h-1.5v-.285h1.5V1.05h.3v1.695h2.625v.285H33.66v5.535a2.699 2.699 0 0 0 .04.478q.048.268.155.479a1.312 1.312 0 0 0 .21.303q.374.401 1.066.432a2.646 2.646 0 0 0 .119.003 2.078 2.078 0 0 0 .628-.091 1.701 1.701 0 0 0 .662-.389zm41.67 0l.21.21a1.496 1.496 0 0 1-.397.297 1.958 1.958 0 0 1-.271.115q-.412.143-.847.143a2.507 2.507 0 0 1-.558-.058q-.387-.089-.668-.311a1.51 1.51 0 0 1-.162-.148 1.743 1.743 0 0 1-.432-.843 2.557 2.557 0 0 1-.055-.545V3.03h-1.5v-.285h1.5V1.05h.3v1.695h2.625v.285H75.33v5.535a2.699 2.699 0 0 0 .04.478q.048.268.155.479a1.312 1.312 0 0 0 .21.303q.374.401 1.066.432a2.646 2.646 0 0 0 .119.003 2.078 2.078 0 0 0 .628-.091 1.701 1.701 0 0 0 .662-.389zm-62.659.527a3.883 3.883 0 0 0 1.369.238 4.436 4.436 0 0 0 .132-.002 3.728 3.728 0 0 0 1.796-.501q.862-.502 1.349-1.402a3.908 3.908 0 0 0 .316-.768 4.464 4.464 0 0 0 .172-1.257 4.905 4.905 0 0 0-.018-.422 4.008 4.008 0 0 0-.47-1.595q-.487-.893-1.349-1.395a3.628 3.628 0 0 0-.559-.265A3.883 3.883 0 0 0 16.92 2.7a4.436 4.436 0 0 0-.132.002 3.728 3.728 0 0 0-1.796.501q-.862.502-1.349 1.395a3.849 3.849 0 0 0-.325.794 4.451 4.451 0 0 0-.163 1.223 4.941 4.941 0 0 0 .014.38 4.069 4.069 0 0 0 .473 1.645q.488.9 1.351 1.403a3.628 3.628 0 0 0 .558.264zM58.155 2.7V3h-.09a3.496 3.496 0 0 0-.923.115 2.499 2.499 0 0 0-1.252.777 3.002 3.002 0 0 0-.631 1.211q-.121.448-.144.978a5.812 5.812 0 0 0-.005.249v4.17h-.3V2.745h.3v2.01a3.185 3.185 0 0 1 .44-.873 2.713 2.713 0 0 1 .67-.649 2.976 2.976 0 0 1 1.09-.452 4.181 4.181 0 0 1 .845-.081zm5.745 0V3h-.09a3.496 3.496 0 0 0-.923.115 2.499 2.499 0 0 0-1.252.777 3.002 3.002 0 0 0-.631 1.211q-.121.448-.144.978a5.812 5.812 0 0 0-.005.249v4.17h-.3V2.745h.3v2.01a3.185 3.185 0 0 1 .44-.873 2.713 2.713 0 0 1 .67-.649 2.976 2.976 0 0 1 1.09-.452A4.181 4.181 0 0 1 63.9 2.7zm-46.98 7.56a3.521 3.521 0 0 0 1.335-.251 3.359 3.359 0 0 0 .435-.214q.795-.465 1.245-1.297a3.762 3.762 0 0 0 .431-1.465 4.613 4.613 0 0 0 .019-.418 4.21 4.21 0 0 0-.142-1.112 3.615 3.615 0 0 0-.308-.77q-.45-.833-1.245-1.29a3.464 3.464 0 0 0-1.679-.457 4.103 4.103 0 0 0-.091-.001 3.581 3.581 0 0 0-1.302.234 3.379 3.379 0 0 0-.468.223q-.795.458-1.245 1.291a3.762 3.762 0 0 0-.431 1.464 4.613 4.613 0 0 0-.019.418 4.21 4.21 0 0 0 .142 1.112 3.615 3.615 0 0 0 .308.77q.45.833 1.245 1.298a3.428 3.428 0 0 0 1.709.465 4.055 4.055 0 0 0 .061 0zm28.455-3.93h6.615a3.759 3.759 0 0 0-.285-1.291 3.525 3.525 0 0 0-.21-.419q-.45-.765-1.185-1.2a3.144 3.144 0 0 0-1.607-.435 3.715 3.715 0 0 0-.028 0 3.202 3.202 0 0 0-1.3.263 3.104 3.104 0 0 0-.335.172q-.735.435-1.177 1.2-.443.765-.488 1.71zM71.25 8.28V6.57h-2.955q-1.195 0-1.789.431a1.501 1.501 0 0 0-.064.049 1.558 1.558 0 0 0-.586 1.141 2.159 2.159 0 0 0-.006.164q0 .885.645 1.395t1.8.51a3.602 3.602 0 0 0 1.217-.193q1.005-.359 1.551-1.384a4.12 4.12 0 0 0 .187-.403z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};p.defaultProps={width:"78.42",height:"10.545",viewBox:"0 0 78.42 10.545"};var d=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Noto Sans"),Object(o.createElement)("path",{d:"M8.489.154v10.708H6.914L1.179 1.97h-.058l.036.594a47.361 47.361 0 0 1 .054.95q.021.469.029.885a24.791 24.791 0 0 1 .005.479v5.984H0V.154h1.56l.33.52 3.515 5.435 1.868 2.907h.059a4.283 4.283 0 0 1-.007-.097q-.013-.231-.04-.863a258.15 258.15 0 0 1-.012-.296 95.86 95.86 0 0 1-.019-.503q-.024-.663-.025-1.024a11.409 11.409 0 0 1 0-.037V.154h1.26zm29.67 10.349V9.214q.681.293 1.491.461a8.305 8.305 0 0 0 .865.135 6.51 6.51 0 0 0 .647.034 5.003 5.003 0 0 0 .661-.041q.332-.044.602-.137a1.939 1.939 0 0 0 .546-.284q.608-.461.608-1.267a2.138 2.138 0 0 0-.031-.374q-.038-.212-.122-.385a1.197 1.197 0 0 0-.067-.12q-.219-.344-.736-.644-.516-.3-1.563-.681a8.525 8.525 0 0 1-.828-.349q-.839-.411-1.282-.912a2.481 2.481 0 0 1-.014-.017 2.56 2.56 0 0 1-.575-1.215 3.614 3.614 0 0 1-.063-.686 2.68 2.68 0 0 1 .166-.961A2.375 2.375 0 0 1 39.24.74a3.305 3.305 0 0 1 1.247-.598Q41.046 0 41.719 0a7.477 7.477 0 0 1 2.062.278 6.704 6.704 0 0 1 .889.323l-.417 1.157a8.239 8.239 0 0 0-1.168-.391q-.66-.163-1.27-.179a4.993 4.993 0 0 0-.126-.001 3.573 3.573 0 0 0-.58.044q-.308.051-.558.16a1.716 1.716 0 0 0-.352.206q-.538.41-.538 1.15a2.209 2.209 0 0 0 .029.37q.037.215.119.391a1.252 1.252 0 0 0 .06.114 1.542 1.542 0 0 0 .252.312q.175.17.422.321.387.238 1.141.531a18.412 18.412 0 0 0 .32.121q1.194.44 1.78.854a3.125 3.125 0 0 1 .482.415 2.396 2.396 0 0 1 .382.537 2.413 2.413 0 0 1 .225.671 3.361 3.361 0 0 1 .054.614 3.112 3.112 0 0 1-.154 1.003 2.567 2.567 0 0 1-.857 1.202 3.405 3.405 0 0 1-1.162.59q-.72.215-1.65.215a11.567 11.567 0 0 1-1.093-.048q-1.095-.104-1.803-.434a3.27 3.27 0 0 1-.049-.023zm23.943.359h-1.304V5.72a3.515 3.515 0 0 0-.038-.538q-.043-.275-.133-.494a1.442 1.442 0 0 0-.264-.429 1.339 1.339 0 0 0-.56-.36q-.341-.12-.806-.12a3.525 3.525 0 0 0-.668.059q-.373.072-.659.233a1.639 1.639 0 0 0-.472.393 2.034 2.034 0 0 0-.329.602q-.2.552-.227 1.369a7.931 7.931 0 0 0-.004.259v4.168H55.32V2.82h1.062l.198 1.099h.073q.373-.594 1.047-.92.674-.326 1.487-.326.951 0 1.588.297a2.119 2.119 0 0 1 .609.421 2.19 2.19 0 0 1 .503.815q.126.346.178.773a5.352 5.352 0 0 1 .037.646v5.237zm1.992-.359V9.302a6.837 6.837 0 0 0 1.222.463 5.154 5.154 0 0 0 1.334.181q.881 0 1.338-.251a1.171 1.171 0 0 0 .113-.071 1.121 1.121 0 0 0 .294-.298q.16-.244.16-.566a.933.933 0 0 0-.294-.683 1.39 1.39 0 0 0-.142-.123 2.707 2.707 0 0 0-.279-.182q-.453-.26-1.27-.572-.874-.338-1.348-.6a3.312 3.312 0 0 1-.249-.151 2.582 2.582 0 0 1-.346-.276q-.187-.18-.307-.382a1.584 1.584 0 0 1-.024-.041 1.646 1.646 0 0 1-.172-.475q-.041-.204-.044-.437a2.83 2.83 0 0 1 0-.033 1.94 1.94 0 0 1 .154-.785q.198-.454.651-.775.641-.454 1.661-.548a6.07 6.07 0 0 1 .551-.024q1.37 0 2.564.542l-.447 1.048a7.693 7.693 0 0 0-.919-.322q-.473-.131-.903-.172a4.044 4.044 0 0 0-.383-.019 4.156 4.156 0 0 0-.452.023q-.466.051-.758.217a1.187 1.187 0 0 0-.035.02 1.006 1.006 0 0 0-.237.197.763.763 0 0 0-.188.517.875.875 0 0 0 .291.664 1.182 1.182 0 0 0 .076.065q.318.251 1.37.671a25.694 25.694 0 0 0 .336.131q.87.324 1.346.609a3.133 3.133 0 0 1 .137.087q.463.311.691.696a1.657 1.657 0 0 1 .016.029 1.718 1.718 0 0 1 .19.535 2.371 2.371 0 0 1 .037.432 2.412 2.412 0 0 1-.118.774 1.968 1.968 0 0 1-.724.973q-.657.482-1.729.589a6.469 6.469 0 0 1-.637.029q-1.589 0-2.527-.505zm-11.264.359h-.96l-.256-1.143h-.059a5.04 5.04 0 0 1-.408.457q-.219.215-.438.366a2.24 2.24 0 0 1-.351.199 2.79 2.79 0 0 1-.577.182q-.281.058-.609.077a5.619 5.619 0 0 1-.319.008q-1.187 0-1.861-.622a2.028 2.028 0 0 1-.599-1.061 3.086 3.086 0 0 1-.075-.697 2.122 2.122 0 0 1 1.205-2.006q.892-.474 2.444-.549a11.707 11.707 0 0 1 .211-.008l1.363-.052v-.476a3.369 3.369 0 0 0-.034-.489q-.036-.25-.114-.451a1.311 1.311 0 0 0-.248-.411 1.198 1.198 0 0 0-.485-.316q-.326-.12-.782-.12a3.807 3.807 0 0 0-1.053.143 3.547 3.547 0 0 0-.152.048 10.204 10.204 0 0 0-.812.31 9.002 9.002 0 0 0-.254.114l-.402-.988a5.878 5.878 0 0 1 1.137-.455 6.647 6.647 0 0 1 .188-.051 5.731 5.731 0 0 1 1.421-.183q.913 0 1.533.253a2.135 2.135 0 0 1 .635.392 1.961 1.961 0 0 1 .522.803q.189.522.189 1.247v5.479zM24.097 9.763v1.011a1.364 1.364 0 0 1-.119.045q-.173.057-.449.113-.384.076-.78.076a3.217 3.217 0 0 1-.948-.127q-1.041-.321-1.314-1.452a3.865 3.865 0 0 1-.096-.903V3.845h-1.136v-.63l1.15-.527.528-1.714h.783V2.82h2.322v1.025h-2.322v4.644a2.331 2.331 0 0 0 .035.413q.04.226.13.406a1.136 1.136 0 0 0 .169.25 1.091 1.091 0 0 0 .637.349 1.603 1.603 0 0 0 .289.025 3.166 3.166 0 0 0 .232-.009q.122-.009.259-.027a6.001 6.001 0 0 0 .11-.016 5.011 5.011 0 0 0 .18-.029q.213-.04.34-.088zm-6.009-1.71a6.281 6.281 0 0 0 .113-1.227q0-1.919-1-3.036a3.21 3.21 0 0 0-1.501-.953 4.173 4.173 0 0 0-1.198-.164q-1.773 0-2.754 1.095-.981 1.095-.981 3.058 0 1.26.454 2.212a4.01 4.01 0 0 0 .073.146 3.3 3.3 0 0 0 1.223 1.315 3.415 3.415 0 0 0 .815.357 3.982 3.982 0 0 0 1.119.152q1.757 0 2.754-1.106a3.402 3.402 0 0 0 .403-.55q.335-.568.48-1.299zm14.488 0a6.281 6.281 0 0 0 .112-1.227q0-1.919-1-3.036a3.21 3.21 0 0 0-1.5-.953 4.173 4.173 0 0 0-1.199-.164q-1.772 0-2.754 1.095-.981 1.095-.981 3.058 0 1.26.454 2.212a4.01 4.01 0 0 0 .073.146 3.3 3.3 0 0 0 1.223 1.315 3.415 3.415 0 0 0 .815.357 3.982 3.982 0 0 0 1.119.152q1.758 0 2.754-1.106a3.402 3.402 0 0 0 .403-.55q.335-.568.481-1.299zM12.129 6.826a6.168 6.168 0 0 0 .055.857q.127.899.542 1.447a1.933 1.933 0 0 0 1.263.747 2.937 2.937 0 0 0 .498.04 2.671 2.671 0 0 0 .726-.093 1.905 1.905 0 0 0 1.025-.694 2.562 2.562 0 0 0 .389-.76q.117-.357.169-.793a6.315 6.315 0 0 0 .042-.751q0-1.516-.604-2.281-.604-.766-1.769-.766a2.512 2.512 0 0 0-1.063.209q-1.273.589-1.273 2.838zm14.487 0a6.168 6.168 0 0 0 .056.857q.126.899.541 1.447a1.933 1.933 0 0 0 1.263.747 2.937 2.937 0 0 0 .499.04 2.671 2.671 0 0 0 .725-.093 1.905 1.905 0 0 0 1.025-.694 2.562 2.562 0 0 0 .389-.76q.117-.357.17-.793a6.315 6.315 0 0 0 .042-.751q0-1.516-.605-2.281-.604-.766-1.768-.766a2.512 2.512 0 0 0-1.063.209q-1.274.589-1.274 2.838zm24.91.828v-.725l-1.187.051a8.375 8.375 0 0 0-.71.054q-.688.085-1.119.285a1.854 1.854 0 0 0-.188.101 1.266 1.266 0 0 0-.611.919 1.898 1.898 0 0 0-.023.304 1.651 1.651 0 0 0 .043.39 1.086 1.086 0 0 0 .342.577q.332.291.896.33a2.624 2.624 0 0 0 .184.006q1.106 0 1.739-.597a1.94 1.94 0 0 0 .55-.963q.084-.333.084-.732z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};d.defaultProps={width:"69.829",height:"11.009",viewBox:"0 0 69.829 11.009"};var m=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Open Sans"),Object(o.createElement)("path",{d:"M41.236 10.591v-.747q1.157.491 2.951.491a4.664 4.664 0 0 0 .842-.072q.742-.136 1.249-.533a2.007 2.007 0 0 0 .566-.67q.201-.395.207-.884a2.472 2.472 0 0 0 0-.031 2.389 2.389 0 0 0-.036-.427q-.06-.331-.22-.58a1.755 1.755 0 0 0-.286-.336q-.147-.136-.338-.263a3.621 3.621 0 0 0-.211-.13q-.523-.298-1.488-.637a20.845 20.845 0 0 0-.212-.074 11.516 11.516 0 0 1-.821-.315q-.773-.334-1.22-.697a2.445 2.445 0 0 1-.225-.207 2.207 2.207 0 0 1-.565-1.107 3.184 3.184 0 0 1-.062-.64q0-1.199.938-1.956a3.263 3.263 0 0 1 .004-.003 3.336 3.336 0 0 1 1.416-.658 4.783 4.783 0 0 1 1.004-.1 7.085 7.085 0 0 1 2.835.571l-.271.645a7.596 7.596 0 0 0-1.299-.417 5.829 5.829 0 0 0-1.25-.14 4.172 4.172 0 0 0-.759.065q-.439.081-.789.265a2.248 2.248 0 0 0-.342.219 1.761 1.761 0 0 0-.694 1.286 2.37 2.37 0 0 0-.009.209q0 .464.132.798a1.4 1.4 0 0 0 .084.176 1.611 1.611 0 0 0 .279.356q.14.136.322.26a3.002 3.002 0 0 0 .106.068q.491.304 1.684.729 1.253.432 1.883.839.571.369.862.828a2.033 2.033 0 0 1 .057.095 2.191 2.191 0 0 1 .234.649q.054.27.055.58a3.691 3.691 0 0 1 0 .019 2.931 2.931 0 0 1-.162.998 2.505 2.505 0 0 1-.823 1.127 3.431 3.431 0 0 1-1.292.628q-.487.126-1.058.15a6.479 6.479 0 0 1-.268.005q-1.818 0-2.85-.37a3.667 3.667 0 0 1-.16-.062zm-5.955.286h-.718V5.713a4.52 4.52 0 0 0-.04-.624q-.1-.717-.452-1.109a1.358 1.358 0 0 0-.013-.014 1.558 1.558 0 0 0-.645-.409q-.392-.136-.923-.136a4.469 4.469 0 0 0-.771.062q-.412.072-.735.229a1.934 1.934 0 0 0-.585.43 2.133 2.133 0 0 0-.416.701q-.231.612-.246 1.517a7.657 7.657 0 0 0 0 .122v4.395h-.726V2.915h.616l.139 1.092h.044q.702-1.126 2.392-1.234a5.799 5.799 0 0 1 .369-.012 3.613 3.613 0 0 1 1.105.155q1.176.378 1.49 1.679a4.586 4.586 0 0 1 .115 1.074v5.208zm28.865 0h-.718V5.713a4.52 4.52 0 0 0-.04-.624q-.1-.717-.453-1.109a1.358 1.358 0 0 0-.012-.014 1.558 1.558 0 0 0-.645-.409q-.392-.136-.923-.136a4.469 4.469 0 0 0-.771.062q-.412.072-.735.229a1.934 1.934 0 0 0-.585.43 2.133 2.133 0 0 0-.417.701q-.23.612-.245 1.517a7.657 7.657 0 0 0-.001.122v4.395h-.725V2.915h.615l.14 1.092h.044q.702-1.126 2.392-1.234a5.799 5.799 0 0 1 .369-.012 3.613 3.613 0 0 1 1.105.155q1.175.378 1.49 1.679a4.586 4.586 0 0 1 .115 1.074v5.208zm1.86-.345v-.783a5.593 5.593 0 0 0 2.534.6 5.703 5.703 0 0 0 .65-.034q.693-.08 1.119-.343a1.676 1.676 0 0 0 .022-.014 1.514 1.514 0 0 0 .342-.293 1.125 1.125 0 0 0 .27-.751 1.253 1.253 0 0 0-.407-.939 1.68 1.68 0 0 0-.08-.072 2.721 2.721 0 0 0-.355-.248q-.395-.237-1.002-.468a11.474 11.474 0 0 0-.244-.09q-.918-.332-1.416-.593a3.399 3.399 0 0 1-.261-.15 2.826 2.826 0 0 1-.377-.288q-.214-.195-.352-.415a1.565 1.565 0 0 1-.205-.526 2.172 2.172 0 0 1-.04-.43 1.699 1.699 0 0 1 .159-.744q.187-.389.592-.669.574-.398 1.498-.492a5.971 5.971 0 0 1 .6-.029 6.283 6.283 0 0 1 2.446.484l-.271.659q-1.172-.483-2.175-.483-.667 0-1.146.151a2.1 2.1 0 0 0-.399.171 1.346 1.346 0 0 0-.3.224.918.918 0 0 0-.272.669 1.416 1.416 0 0 0 .073.465 1.197 1.197 0 0 0 .37.532 2.166 2.166 0 0 0 .275.192q.491.296 1.458.643a16.607 16.607 0 0 1 .559.212q.502.202.826.38a3.398 3.398 0 0 1 .182.107 2.795 2.795 0 0 1 .379.286q.204.184.339.393a1.726 1.726 0 0 1 .018.028 1.625 1.625 0 0 1 .226.64 2.1 2.1 0 0 1 .019.29 2.235 2.235 0 0 1-.114.732 1.831 1.831 0 0 1-.699.912 2.772 2.772 0 0 1-.798.38q-.36.11-.792.158a6.516 6.516 0 0 1-.717.037 8.453 8.453 0 0 1-.977-.053q-.489-.057-.895-.175a3.601 3.601 0 0 1-.662-.263zm-53.43-.886h-.051l.022.615a19.406 19.406 0 0 1 .022.568 25.103 25.103 0 0 1 .007.619v3.032h-.725V2.915h.615l.139 1.136h.044a2.687 2.687 0 0 1 1.918-1.234 4.275 4.275 0 0 1 .704-.056q1.612 0 2.457 1.059a3.443 3.443 0 0 1 .575 1.099q.271.836.271 1.981a6.96 6.96 0 0 1-.094 1.186q-.196 1.129-.795 1.857-.89 1.08-2.428 1.08a3.849 3.849 0 0 1-1.076-.141 2.712 2.712 0 0 1-1.605-1.236zm42.722 1.231h-.535l-.183-1.26h-.058a5.176 5.176 0 0 1-.455.513q-.251.246-.509.417a2.622 2.622 0 0 1-.27.158q-.634.318-1.498.318a3.677 3.677 0 0 1-.729-.068q-.434-.087-.77-.289a1.996 1.996 0 0 1-.325-.243 1.971 1.971 0 0 1-.6-1.102 2.905 2.905 0 0 1-.052-.561 2.22 2.22 0 0 1 .17-.883q.212-.495.689-.848a2.691 2.691 0 0 1 .112-.078q.689-.458 1.817-.609a8.81 8.81 0 0 1 .991-.072l1.517-.044v-.528a4.481 4.481 0 0 0-.041-.625q-.045-.319-.141-.578a1.814 1.814 0 0 0-.28-.51 1.429 1.429 0 0 0-.685-.464q-.243-.081-.54-.105a3.26 3.26 0 0 0-.262-.01q-1.106 0-2.292.615l-.271-.63a6.624 6.624 0 0 1 1.465-.497 5.524 5.524 0 0 1 1.128-.118q.883 0 1.466.31a1.915 1.915 0 0 1 .493.371 2.075 2.075 0 0 1 .44.734q.117.322.168.722a5.271 5.271 0 0 1 .04.668v5.296zM26.814 6.409v.586h-5.735a5.819 5.819 0 0 0 .081.949q.09.511.277.918a2.668 2.668 0 0 0 .408.638 2.433 2.433 0 0 0 1.357.784 3.699 3.699 0 0 0 .792.08q.681 0 1.198-.095a4.328 4.328 0 0 0 .349-.081q.414-.113.958-.329v.659q-.62.27-1.154.381a4.21 4.21 0 0 1-.091.018 6.181 6.181 0 0 1-.68.086 7.981 7.981 0 0 1-.58.02 4.528 4.528 0 0 1-1.126-.132 3.132 3.132 0 0 1-1.58-.937q-.86-.947-.958-2.567a7.088 7.088 0 0 1-.012-.429 6.286 6.286 0 0 1 .121-1.271q.162-.784.54-1.393a3.661 3.661 0 0 1 .276-.386 3.039 3.039 0 0 1 2.229-1.136 4.162 4.162 0 0 1 .298-.011 3.237 3.237 0 0 1 1.003.149 2.592 2.592 0 0 1 1.216.833 3.341 3.341 0 0 1 .64 1.262q.173.627.173 1.404zm-17.392.725a8.267 8.267 0 0 0 .151-1.626 9.732 9.732 0 0 0-.011-.461q-.042-.887-.249-1.634a4.969 4.969 0 0 0-1.007-1.937A4.047 4.047 0 0 0 6.312.199 5.463 5.463 0 0 0 4.798 0a6.022 6.022 0 0 0-.802.052 4.219 4.219 0 0 0-2.71 1.417 4.566 4.566 0 0 0-.474.648q-.461.763-.66 1.748A8.211 8.211 0 0 0 0 5.493a9.785 9.785 0 0 0 .009.421Q.107 8.181 1.275 9.54a4.07 4.07 0 0 0 1.975 1.277 5.403 5.403 0 0 0 1.533.206 6.013 6.013 0 0 0 .822-.054A4.174 4.174 0 0 0 8.299 9.54a4.649 4.649 0 0 0 .469-.653q.457-.768.654-1.753zM.813 5.508a8.303 8.303 0 0 0 .105 1.366q.224 1.336.921 2.19a3.328 3.328 0 0 0 2.067 1.182 4.985 4.985 0 0 0 .877.074q1.933 0 2.955-1.245a4.071 4.071 0 0 0 .716-1.349q.191-.593.263-1.311a9.148 9.148 0 0 0 .043-.907q0-1.562-.466-2.632a3.81 3.81 0 0 0-.556-.917A3.311 3.311 0 0 0 5.754.812a4.992 4.992 0 0 0-.956-.087 4.685 4.685 0 0 0-1.236.154A3.304 3.304 0 0 0 1.85 1.97Q1.005 2.986.849 4.697a8.938 8.938 0 0 0-.036.811zM12.576 6.68v.234q0 1.868.626 2.666.538.686 1.655.783a4.449 4.449 0 0 0 .385.016 2.628 2.628 0 0 0 .839-.128 2.13 2.13 0 0 0 1.054-.781 3.097 3.097 0 0 0 .464-.952q.206-.683.206-1.589 0-3.437-2.432-3.507a3.552 3.552 0 0 0-.102-.001 4.004 4.004 0 0 0-.761.067q-.431.084-.762.271a1.915 1.915 0 0 0-.52.427 2.262 2.262 0 0 0-.391.692q-.235.638-.259 1.588a8.694 8.694 0 0 0-.002.214zm8.547-.33h4.922a5.153 5.153 0 0 0-.065-.843q-.074-.448-.234-.81a2.477 2.477 0 0 0-.301-.511 1.934 1.934 0 0 0-1.405-.768 2.673 2.673 0 0 0-.258-.012 2.825 2.825 0 0 0-.844.12 2.245 2.245 0 0 0-1.002.638 2.764 2.764 0 0 0-.535.883q-.217.561-.278 1.303zM54.58 7.61v-.784l-1.391.059a10.947 10.947 0 0 0-.823.068q-.793.099-1.286.31a2.118 2.118 0 0 0-.283.146 1.441 1.441 0 0 0-.689 1.046 2.134 2.134 0 0 0-.025.334 1.962 1.962 0 0 0 .054.475 1.337 1.337 0 0 0 .404.686 1.501 1.501 0 0 0 .588.322q.228.067.501.086a3.096 3.096 0 0 0 .204.006q1.274 0 2.01-.729a2.397 2.397 0 0 0 .641-1.166q.095-.393.095-.859z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};m.defaultProps={width:"71.661",height:"14.48",viewBox:"0 0 71.661 14.48"};var b=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Open Sans Condensed"),Object(o.createElement)("path",{d:"M24.749 11.396h-.689V5.918a4.989 4.989 0 0 0-.041-.672q-.101-.74-.45-1.06a.967.967 0 0 0-.681-.246 1.686 1.686 0 0 0-.555.087q-.48.166-.752.653a2.516 2.516 0 0 0-.218.548q-.152.541-.186 1.33a11.057 11.057 0 0 0-.01.473v4.365h-.696V3.45h.586l.059 1.106h.066a2.323 2.323 0 0 1 .304-.533 1.904 1.904 0 0 1 .413-.398 1.807 1.807 0 0 1 .576-.274 1.654 1.654 0 0 1 .428-.055 2.181 2.181 0 0 1 .556.067 1.467 1.467 0 0 1 .828.552 1.882 1.882 0 0 1 .263.514q.171.497.195 1.235a7.548 7.548 0 0 1 .004.239v5.493zm20.859 0h-.688V5.918a4.989 4.989 0 0 0-.042-.672q-.101-.74-.45-1.06a.967.967 0 0 0-.68-.246 1.686 1.686 0 0 0-.555.087q-.48.166-.753.653a2.516 2.516 0 0 0-.218.548q-.152.541-.186 1.33a11.057 11.057 0 0 0-.01.473v4.365h-.695V3.45h.586l.058 1.106h.066a2.323 2.323 0 0 1 .304-.533 1.904 1.904 0 0 1 .414-.398 1.807 1.807 0 0 1 .576-.274 1.654 1.654 0 0 1 .427-.055 2.181 2.181 0 0 1 .556.067 1.467 1.467 0 0 1 .829.552 1.882 1.882 0 0 1 .262.514q.172.497.195 1.235a7.548 7.548 0 0 1 .004.239v5.493zm26.44 0h-.688V5.918a4.989 4.989 0 0 0-.041-.672q-.101-.74-.451-1.06a.967.967 0 0 0-.68-.246 1.686 1.686 0 0 0-.555.087q-.48.166-.752.653a2.516 2.516 0 0 0-.219.548q-.152.541-.185 1.33a11.057 11.057 0 0 0-.01.473v4.365h-.696V3.45h.586l.059 1.106h.066a2.323 2.323 0 0 1 .303-.533 1.904 1.904 0 0 1 .414-.398 1.807 1.807 0 0 1 .576-.274 1.654 1.654 0 0 1 .428-.055 2.181 2.181 0 0 1 .556.067 1.467 1.467 0 0 1 .828.552 1.882 1.882 0 0 1 .263.514q.171.497.195 1.235a7.548 7.548 0 0 1 .003.239v5.493zm18.794 0h-.688V5.918a4.989 4.989 0 0 0-.041-.672q-.101-.74-.451-1.06a.967.967 0 0 0-.68-.246 1.686 1.686 0 0 0-.555.087q-.48.166-.752.653a2.516 2.516 0 0 0-.219.548q-.152.541-.185 1.33a11.057 11.057 0 0 0-.01.473v4.365h-.696V3.45h.586l.059 1.106h.065a2.323 2.323 0 0 1 .304-.533 1.904 1.904 0 0 1 .414-.398 1.807 1.807 0 0 1 .576-.274 1.654 1.654 0 0 1 .428-.055 2.181 2.181 0 0 1 .556.067 1.467 1.467 0 0 1 .828.552 1.882 1.882 0 0 1 .263.514q.171.497.195 1.235a7.548 7.548 0 0 1 .003.239v5.493zm-61.611-.227v-.776a2.765 2.765 0 0 0 .383.175q.19.07.411.126a5.029 5.029 0 0 0 .151.036 5.153 5.153 0 0 0 1.113.124 1.755 1.755 0 0 0 .763-.163 1.749 1.749 0 0 0 .585-.459 2.192 2.192 0 0 0 .485-1.066 3.03 3.03 0 0 0 .042-.516 3.408 3.408 0 0 0-.043-.563q-.05-.298-.157-.539a1.699 1.699 0 0 0-.173-.304 2.002 2.002 0 0 0-.3-.325q-.339-.301-.904-.601a8.416 8.416 0 0 0-.225-.114 8.516 8.516 0 0 1-.476-.259q-.462-.271-.74-.531a2.433 2.433 0 0 1-.021-.02 2.454 2.454 0 0 1-.608-.912 2.839 2.839 0 0 1-.142-.532q-.045-.261-.054-.559a5.079 5.079 0 0 1-.002-.154q0-.791.322-1.406.322-.615.901-.956a2.453 2.453 0 0 1 1.267-.34 4.83 4.83 0 0 1 .63.039 3.764 3.764 0 0 1 .502.1q.333.091.574.192a2.371 2.371 0 0 1 .228.108l-.279.689a3.755 3.755 0 0 0-1.076-.368 3.381 3.381 0 0 0-.579-.05 1.893 1.893 0 0 0-.614.096 1.602 1.602 0 0 0-.671.442 1.83 1.83 0 0 0-.441.881 2.644 2.644 0 0 0-.054.544 3.664 3.664 0 0 0 .035.524q.04.274.125.499a1.623 1.623 0 0 0 .199.376 1.946 1.946 0 0 0 .283.307q.395.354 1.124.726a5.723 5.723 0 0 1 .703.402q.351.237.608.503a2.837 2.837 0 0 1 .274.329 2.689 2.689 0 0 1 .458 1.144 3.587 3.587 0 0 1 .044.573 3.868 3.868 0 0 1-.107.936 2.765 2.765 0 0 1-.626 1.199 2.371 2.371 0 0 1-1.72.814 3.017 3.017 0 0 1-.14.003q-.898 0-1.548-.184a3.144 3.144 0 0 1-.51-.19zm30.652-.615v.659q-.461.266-1.155.318a4.693 4.693 0 0 1-.347.012 2.649 2.649 0 0 1-1.783-.659 3.458 3.458 0 0 1-.678-.807q-.236-.38-.416-.854a6.37 6.37 0 0 1-.089-.247q-.376-1.125-.413-2.626a13.513 13.513 0 0 1-.004-.337 11.768 11.768 0 0 1 .089-1.495q.196-1.526.823-2.533a3.501 3.501 0 0 1 .696-.827 2.673 2.673 0 0 1 1.79-.638q.982 0 1.714.454l-.33.63a2.503 2.503 0 0 0-1.277-.393 3.03 3.03 0 0 0-.122-.003q-1.208 0-1.922 1.279-.505.903-.653 2.299a11.811 11.811 0 0 0-.061 1.242 11.095 11.095 0 0 0 .062 1.21q.066.599.201 1.118a6.343 6.343 0 0 0 .066.235q.266.878.716 1.429a2.711 2.711 0 0 0 .229.249 2.008 2.008 0 0 0 1.428.585 3.89 3.89 0 0 0 .68-.056q.399-.071.729-.231a2.421 2.421 0 0 0 .027-.013zM8.76 10.298h-.066l.051.871V15h-.696V3.45h.572l.073 1.091h.066q.293-.601.751-.923.457-.322.999-.322a1.919 1.919 0 0 1 1.835 1.194q.427.881.485 2.413a13.174 13.174 0 0 1 .009.502 11.103 11.103 0 0 1-.054 1.138q-.12 1.159-.504 1.898a3.215 3.215 0 0 1-.013.025 2.391 2.391 0 0 1-.408.568 1.696 1.696 0 0 1-1.254.509 1.917 1.917 0 0 1-1.095-.333 2.085 2.085 0 0 1-.731-.867 2.497 2.497 0 0 1-.02-.045zm69.075-5.845h.058l-.029-.886V0h.696v11.396h-.572l-.058-1.113h-.066a2.779 2.779 0 0 1-.294.493 2.073 2.073 0 0 1-.446.441 1.738 1.738 0 0 1-1.04.326 1.907 1.907 0 0 1-1.823-1.194q-.424-.881-.482-2.413a13.257 13.257 0 0 1-.009-.502q0-1.915.519-2.966a3.116 3.116 0 0 1 .059-.114 2.291 2.291 0 0 1 .445-.586q.508-.472 1.262-.472a1.833 1.833 0 0 1 .954.27 2.208 2.208 0 0 1 .06.038 2.181 2.181 0 0 1 .71.75 2.603 2.603 0 0 1 .056.099zm29.399 0h.059l-.03-.886V0h.696v11.396h-.571l-.059-1.113h-.066a2.779 2.779 0 0 1-.293.493 2.073 2.073 0 0 1-.446.441 1.738 1.738 0 0 1-1.041.326 1.907 1.907 0 0 1-1.822-1.194q-.425-.881-.483-2.413a13.257 13.257 0 0 1-.009-.502q0-1.915.519-2.966a3.116 3.116 0 0 1 .06-.114 2.291 2.291 0 0 1 .444-.586q.509-.472 1.262-.472a1.833 1.833 0 0 1 .954.27 2.208 2.208 0 0 1 .061.038 2.181 2.181 0 0 1 .71.75 2.603 2.603 0 0 1 .055.099zm-60.051 6.643v-.813a1.679 1.679 0 0 0 .337.258q.16.094.354.168a2.793 2.793 0 0 0 .026.01 2.626 2.626 0 0 0 .916.165q.615 0 .967-.403a1.374 1.374 0 0 0 .297-.589q.051-.209.054-.455a2.546 2.546 0 0 0 0-.033q0-.527-.252-.89a1.719 1.719 0 0 0-.191-.224q-.273-.275-.772-.6a14.51 14.51 0 0 1-.375-.243q-.355-.24-.571-.424a2.341 2.341 0 0 1-.164-.153q-.297-.307-.462-.688-.164-.381-.164-.909a2.078 2.078 0 0 1 .123-.727 1.845 1.845 0 0 1 .455-.69 1.97 1.97 0 0 1 1.226-.549 2.651 2.651 0 0 1 .246-.011 3.356 3.356 0 0 1 .728.075 2.41 2.41 0 0 1 .876.379l-.358.608q-.601-.403-1.275-.403a1.689 1.689 0 0 0-.426.051 1.205 1.205 0 0 0-.555.312 1.216 1.216 0 0 0-.349.707 1.701 1.701 0 0 0-.017.248q0 .528.249.883t1.054.861q.791.52 1.084.831.293.311.436.688a2.145 2.145 0 0 1 .115.457 2.903 2.903 0 0 1 .028.411 3.074 3.074 0 0 1-.062.639q-.119.56-.466.932a1.697 1.697 0 0 1-.816.481q-.318.087-.707.087a3.583 3.583 0 0 1-.464-.029q-.245-.032-.456-.1a2.176 2.176 0 0 1-.032-.01 3.613 3.613 0 0 1-.239-.09q-.121-.051-.221-.105a1.525 1.525 0 0 1-.177-.113zm45.234 0v-.813a1.679 1.679 0 0 0 .338.258q.16.094.354.168a2.793 2.793 0 0 0 .026.01 2.626 2.626 0 0 0 .915.165q.616 0 .967-.403a1.374 1.374 0 0 0 .298-.589q.05-.209.054-.455a2.546 2.546 0 0 0 0-.033q0-.527-.253-.89a1.719 1.719 0 0 0-.19-.224q-.274-.275-.773-.6a14.51 14.51 0 0 1-.374-.243q-.355-.24-.571-.424a2.341 2.341 0 0 1-.165-.153q-.296-.307-.461-.688-.165-.381-.165-.909a2.078 2.078 0 0 1 .123-.727 1.845 1.845 0 0 1 .456-.69 1.97 1.97 0 0 1 1.225-.549 2.651 2.651 0 0 1 .247-.011 3.356 3.356 0 0 1 .727.075 2.41 2.41 0 0 1 .877.379l-.359.608q-.601-.403-1.274-.403a1.689 1.689 0 0 0-.426.051 1.205 1.205 0 0 0-.556.312 1.216 1.216 0 0 0-.349.707 1.701 1.701 0 0 0-.017.248q0 .528.249.883t1.055.861q.791.52 1.084.831.293.311.435.688a2.145 2.145 0 0 1 .115.457 2.903 2.903 0 0 1 .028.411 3.074 3.074 0 0 1-.062.639q-.119.56-.465.932a1.697 1.697 0 0 1-.817.481q-.317.087-.707.087a3.583 3.583 0 0 1-.464-.029q-.245-.032-.456-.1a2.176 2.176 0 0 1-.032-.01 3.613 3.613 0 0 1-.238-.09q-.122-.051-.221-.105a1.525 1.525 0 0 1-.178-.113zm-53.181.3h-.571l-.088-1.113h-.03a2.786 2.786 0 0 1-.364.606 1.675 1.675 0 0 1-1.364.654q-.776 0-1.249-.619a2.162 2.162 0 0 1-.361-.75q-.084-.304-.104-.663a4.256 4.256 0 0 1-.007-.246 3.054 3.054 0 0 1 .092-.77 2.164 2.164 0 0 1 .589-1.028q.626-.609 1.717-.708a4.581 4.581 0 0 1 .195-.013l.856-.044v-.66q0-.929-.194-1.437a1.498 1.498 0 0 0-.084-.185.921.921 0 0 0-.658-.485 1.366 1.366 0 0 0-.265-.024q-.681 0-1.391.447l-.301-.549q.828-.513 1.736-.513a2.441 2.441 0 0 1 .535.054q.337.076.581.257a1.322 1.322 0 0 1 .298.308q.371.532.423 1.678a8.609 8.609 0 0 1 .009.391v5.412zM6.101 7.534a14.328 14.328 0 0 0 .073-1.506 17.511 17.511 0 0 0 0-.106q-.01-1.625-.323-2.781a5.301 5.301 0 0 0-.464-1.182 3.667 3.667 0 0 0-.204-.328q-.35-.501-.814-.773A2.45 2.45 0 0 0 3.106.535q-.974 0-1.642.532a2.84 2.84 0 0 0-.688.823 3.871 3.871 0 0 0-.156.305q-.425.921-.559 2.373A15.819 15.819 0 0 0 0 6.013a17.7 17.7 0 0 0 0 .106q.016 2.574.784 3.985a3.607 3.607 0 0 0 .229.369q.763 1.07 2.071 1.07 1.501 0 2.296-1.428a4.16 4.16 0 0 0 .018-.034q.537-.986.703-2.547zm12.605-.759v.644h-3.765a10.348 10.348 0 0 0 .045.908q.089.912.35 1.498a2.582 2.582 0 0 0 .096.195q.476.864 1.443.864a2.591 2.591 0 0 0 .804-.135q.376-.122.771-.356v.674a3.094 3.094 0 0 1-1.035.42 2.884 2.884 0 0 1-.569.056q-1.166 0-1.833-.919a2.872 2.872 0 0 1-.104-.154q-.501-.793-.632-2.049a9.134 9.134 0 0 1-.046-.943 11.06 11.06 0 0 1 .053-1.124q.118-1.144.493-1.877a3.138 3.138 0 0 1 .058-.108 2.396 2.396 0 0 1 .454-.589 1.822 1.822 0 0 1 1.286-.484 1.671 1.671 0 0 1 1.321.609 2.468 2.468 0 0 1 .239.332 3.523 3.523 0 0 1 .38.911q.118.434.163.952a7.783 7.783 0 0 1 .028.675zm66.094 0v.644h-3.765a10.348 10.348 0 0 0 .045.908q.088.912.35 1.498a2.582 2.582 0 0 0 .096.195q.476.864 1.443.864a2.591 2.591 0 0 0 .804-.135q.376-.122.771-.356v.674a3.094 3.094 0 0 1-1.035.42 2.884 2.884 0 0 1-.569.056q-1.166 0-1.834-.919a2.872 2.872 0 0 1-.104-.154q-.501-.793-.631-2.049a9.134 9.134 0 0 1-.046-.943 11.06 11.06 0 0 1 .053-1.124q.117-1.144.493-1.877a3.138 3.138 0 0 1 .058-.108 2.396 2.396 0 0 1 .454-.589 1.822 1.822 0 0 1 1.286-.484 1.671 1.671 0 0 1 1.321.609 2.468 2.468 0 0 1 .239.332 3.523 3.523 0 0 1 .38.911q.118.434.163.952a7.783 7.783 0 0 1 .028.675zm16.977 0v.644h-3.764a10.348 10.348 0 0 0 .045.908q.088.912.349 1.498a2.582 2.582 0 0 0 .097.195q.476.864 1.442.864a2.591 2.591 0 0 0 .805-.135q.376-.122.77-.356v.674a3.094 3.094 0 0 1-1.034.42 2.884 2.884 0 0 1-.57.056q-1.166 0-1.833-.919a2.872 2.872 0 0 1-.104-.154q-.501-.793-.632-2.049a9.134 9.134 0 0 1-.046-.943 11.06 11.06 0 0 1 .054-1.124q.117-1.144.492-1.877a3.138 3.138 0 0 1 .059-.108 2.396 2.396 0 0 1 .453-.589 1.822 1.822 0 0 1 1.286-.484 1.671 1.671 0 0 1 1.321.609 2.468 2.468 0 0 1 .239.332 3.523 3.523 0 0 1 .38.911q.118.434.163.952a7.783 7.783 0 0 1 .028.675zM.747 6.028q0 2.388.597 3.607a2.782 2.782 0 0 0 .379.59 1.715 1.715 0 0 0 1.361.629 1.741 1.741 0 0 0 1.422-.69 2.828 2.828 0 0 0 .324-.518q.597-1.208.597-3.618a15.624 15.624 0 0 0-.046-1.247q-.1-1.249-.418-2.065a3.863 3.863 0 0 0-.122-.281 2.698 2.698 0 0 0-.385-.599 1.711 1.711 0 0 0-1.35-.613 1.756 1.756 0 0 0-1.438.69 2.783 2.783 0 0 0-.331.537 4.821 4.821 0 0 0-.324.926q-.228.921-.261 2.218a17.511 17.511 0 0 0-.005.434zM65.962 8.54a10.214 10.214 0 0 0 .059-1.135 9.845 9.845 0 0 0-.054-1.058q-.131-1.209-.584-1.974a2.725 2.725 0 0 0-.279-.393 1.894 1.894 0 0 0-1.5-.684q-1.976 0-2.347 2.712a10.38 10.38 0 0 0-.085 1.397 12.835 12.835 0 0 0 0 .08q.008 1.234.254 2.105a3.84 3.84 0 0 0 .365.887 2.747 2.747 0 0 0 .159.245q.299.408.703.613a2.002 2.002 0 0 0 .921.208 2.565 2.565 0 0 0 .06-.001q1.136-.026 1.753-1.065a2.986 2.986 0 0 0 .007-.012q.435-.739.568-1.925zm11.902-.652v-.454a11.874 11.874 0 0 0-.033-.913q-.086-1.118-.403-1.727a1.751 1.751 0 0 0-.335-.46q-.394-.379-.994-.379a1.253 1.253 0 0 0-.622.151q-.388.217-.609.746-.373.898-.373 2.597a12.265 12.265 0 0 0 .03.898q.067.897.275 1.49a3.028 3.028 0 0 0 .083.212 1.829 1.829 0 0 0 .263.438 1.214 1.214 0 0 0 .982.448 1.418 1.418 0 0 0 .698-.17q.348-.192.587-.603.432-.74.45-2.15a9.709 9.709 0 0 0 .001-.124zm29.399 0v-.454a11.874 11.874 0 0 0-.032-.913q-.087-1.118-.404-1.727a1.751 1.751 0 0 0-.335-.46q-.394-.379-.994-.379a1.253 1.253 0 0 0-.621.151q-.389.217-.609.746-.374.898-.374 2.597a12.265 12.265 0 0 0 .031.898q.066.897.274 1.49a3.028 3.028 0 0 0 .083.212 1.829 1.829 0 0 0 .264.438 1.214 1.214 0 0 0 .981.448 1.418 1.418 0 0 0 .699-.17q.348-.192.587-.603.431-.74.449-2.15a9.709 9.709 0 0 0 .001-.124zM8.745 7.134v.227q0 1.831.432 2.691.43.856 1.309.861a1.82 1.82 0 0 0 .01 0 1.204 1.204 0 0 0 .989-.475 1.896 1.896 0 0 0 .23-.378 3.25 3.25 0 0 0 .206-.608q.15-.618.184-1.512a14.359 14.359 0 0 0 .009-.535q0-1.515-.289-2.366a2.934 2.934 0 0 0-.084-.22q-.349-.806-1.156-.86a1.772 1.772 0 0 0-.119-.004 1.546 1.546 0 0 0-.59.108q-.372.152-.619.518a1.879 1.879 0 0 0-.087.143 2.65 2.65 0 0 0-.224.566q-.201.716-.201 1.844zm53.474 2.661a2.869 2.869 0 0 0 .088.21 1.837 1.837 0 0 0 .284.444 1.27 1.27 0 0 0 .998.435 1.35 1.35 0 0 0 1.253-.816q.453-.869.453-2.663 0-2.043-.598-2.876a1.296 1.296 0 0 0-1.108-.574q-.894 0-1.293.864-.36.781-.395 2.261a13.797 13.797 0 0 0-.004.325q0 1.526.322 2.39zM38.547 8.13v-.828l-.827.044a3.242 3.242 0 0 0-.545.073q-.288.065-.513.185a1.469 1.469 0 0 0-.367.273q-.394.407-.454 1.134a3.285 3.285 0 0 0-.011.269q0 .864.308 1.267a.978.978 0 0 0 .706.396 1.281 1.281 0 0 0 .129.007 1.208 1.208 0 0 0 .964-.45 1.832 1.832 0 0 0 .197-.286 2.736 2.736 0 0 0 .248-.623q.164-.604.165-1.448a8.848 8.848 0 0 0 0-.013zM14.956 6.79h3.054q0-1.311-.399-2.088a1.943 1.943 0 0 0-.239-.366q-.181-.215-.403-.317a1.034 1.034 0 0 0-.438-.093q-1.436 0-1.575 2.864zm66.094 0h3.054q0-1.311-.399-2.088a1.943 1.943 0 0 0-.239-.366q-.182-.215-.404-.317a1.034 1.034 0 0 0-.437-.093q-1.436 0-1.575 2.864zm16.977 0h3.055q0-1.311-.4-2.088a1.943 1.943 0 0 0-.239-.366q-.181-.215-.403-.317a1.034 1.034 0 0 0-.438-.093q-1.435 0-1.575 2.864z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};b.defaultProps={width:"107.959",height:"15",viewBox:"0 0 107.959 15"};var f=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Oswald"),Object(o.createElement)("path",{d:"M14.13 12.285l-1.425-8.67h.705l1.2 7.755 1.485-7.755h.78l1.515 7.725 1.125-7.725h.705l-1.395 8.67H18L16.5 4.68l-1.47 7.605h-.9zm-6.75-2.34l.675-.195a4.787 4.787 0 0 0 .07.555q.117.617.394.974a1.398 1.398 0 0 0 .031.039 1.372 1.372 0 0 0 .9.484 1.987 1.987 0 0 0 .27.018 1.9 1.9 0 0 0 .41-.041q.267-.059.465-.202a1.105 1.105 0 0 0 .145-.124q.331-.339.358-.937a2.397 2.397 0 0 0 .002-.106q0-.865-1.069-1.844a7.142 7.142 0 0 0-.206-.181L8.82 7.53a6.799 6.799 0 0 1-.41-.383q-.35-.357-.542-.682-.293-.495-.293-1.14a2.285 2.285 0 0 1 .066-.564 1.576 1.576 0 0 1 .467-.793 1.794 1.794 0 0 1 .809-.419q.286-.069.623-.069a2.371 2.371 0 0 1 .584.068 1.582 1.582 0 0 1 .856.532q.417.505.504 1.339a4.296 4.296 0 0 1 .021.326l-.585.18a3.964 3.964 0 0 0-.072-.662q-.239-1.17-1.24-1.183a1.74 1.74 0 0 0-.023 0q-.497 0-.82.216a1.088 1.088 0 0 0-.11.084.973.973 0 0 0-.315.548 1.469 1.469 0 0 0-.03.307q0 .486.181.835a1.375 1.375 0 0 0 .007.013q.187.352.697.802l1.035.915a18.808 18.808 0 0 1 .335.304q.148.137.272.26a7.845 7.845 0 0 1 .226.231 2.938 2.938 0 0 1 .391.534 3.541 3.541 0 0 1 .134.254 2.233 2.233 0 0 1 .194.672 2.84 2.84 0 0 1 .023.37 2.446 2.446 0 0 1-.074.617 1.725 1.725 0 0 1-.496.846q-.557.52-1.499.532a3.52 3.52 0 0 1-.046 0q-1.02 0-1.62-.66a2.475 2.475 0 0 1-.504-.87q-.145-.422-.186-.945zM24.81 7.11v-.615a12.856 12.856 0 0 0-.01-.537q-.021-.488-.081-.826a3.231 3.231 0 0 0-.021-.107 2.175 2.175 0 0 0-.076-.27q-.111-.314-.299-.465-.263-.21-.713-.21a1.785 1.785 0 0 0-.443.052 1.291 1.291 0 0 0-.554.293.934.934 0 0 0-.226.326q-.129.296-.152.759a4.189 4.189 0 0 0-.005.205v.225h-.78q0-1.26.51-1.86.403-.474 1.219-.574a3.82 3.82 0 0 1 .461-.026 2.676 2.676 0 0 1 .557.054q.648.138.966.629a2.12 2.12 0 0 1 .233.512q.209.658.209 1.73v4.365a17.208 17.208 0 0 0 .001.172q.002.193.008.447a59.617 59.617 0 0 0 .006.244 39.045 39.045 0 0 0 .006.189q.011.336.021.441a.597.597 0 0 0 .003.022h-.69a4.228 4.228 0 0 0-.017-.206q-.01-.092-.025-.194a8.484 8.484 0 0 0-.033-.215l-.06-.54q-.195.555-.69.923-.495.367-1.125.367a1.88 1.88 0 0 1-.594-.09 1.551 1.551 0 0 1-.666-.435 1.8 1.8 0 0 1-.442-.917 2.53 2.53 0 0 1-.038-.448q0-.589.16-1.013a1.812 1.812 0 0 1 .11-.239 1.918 1.918 0 0 1 .267-.364q.147-.16.344-.318a4.737 4.737 0 0 1 .387-.278 9.739 9.739 0 0 1 .473-.287q.527-.301 1.302-.681a45.09 45.09 0 0 1 .497-.24zm5.055 1.62V7.185a16.073 16.073 0 0 1 .017-.759q.037-.782.156-1.333.172-.803.607-1.208a1.432 1.432 0 0 1 .599-.327q.221-.063.485-.075a2.84 2.84 0 0 1 .131-.003 1.974 1.974 0 0 1 .524.067 1.674 1.674 0 0 1 .384.158q.397.225.667.57V.135h.795v12.15h-.795v-.66a2.66 2.66 0 0 1-.479.449 1.774 1.774 0 0 1-1.051.346q-.75 0-1.192-.375a1.643 1.643 0 0 1-.352-.426q-.114-.195-.2-.44a3.557 3.557 0 0 1-.093-.311 5.424 5.424 0 0 1-.107-.554q-.096-.666-.096-1.584zM0 8.835v-5.31q0-1.12.304-1.904A2.973 2.973 0 0 1 .683.923q.574-.777 1.823-.9A5.047 5.047 0 0 1 3 0a4.438 4.438 0 0 1 .838.074q.473.091.833.295A2.03 2.03 0 0 1 5.31.93Q6 1.86 6 3.525V8.85a7.095 7.095 0 0 1-.065.994q-.144 1.011-.602 1.661-.668.945-2.333.945-1.003 0-1.644-.346a1.966 1.966 0 0 1-.688-.606Q0 10.545 0 8.835zm5.175.18v-5.61a6.18 6.18 0 0 0-.042-.743q-.098-.812-.43-1.297A1.441 1.441 0 0 0 4 .832Q3.745.735 3.424.698A3.703 3.703 0 0 0 3 .675q-.715 0-1.174.233a1.39 1.39 0 0 0-.528.457q-.473.69-.473 2.04v5.61a6.317 6.317 0 0 0 .042.752q.098.82.431 1.311a1.448 1.448 0 0 0 .715.544q.257.096.578.132a3.687 3.687 0 0 0 .409.021q1.23 0 1.703-.705a2.39 2.39 0 0 0 .292-.634q.095-.31.14-.688a6.237 6.237 0 0 0 .04-.733zm22.215 3.27V.135h.795v12.15h-.795zm6.045-1.215V4.845a3.665 3.665 0 0 0-.417-.362q-.235-.173-.463-.269a1.442 1.442 0 0 0-.56-.119 1.683 1.683 0 0 0-.32.029q-.324.063-.52.264a1.15 1.15 0 0 0-.202.29q-.07.142-.121.319a2.802 2.802 0 0 0-.067.298 5.865 5.865 0 0 0-.055.43q-.05.523-.05 1.265v1.8q0 1.045.103 1.68a4.764 4.764 0 0 0 .01.06q.112.645.405.96a.948.948 0 0 0 .476.274q.152.039.332.041a1.824 1.824 0 0 0 .024 0q.405 0 .773-.21.367-.21.652-.525zm-8.625-.525v-2.85a65.824 65.824 0 0 0-.583.309q-.72.386-1.102.62a7.358 7.358 0 0 0-.085.054 3.031 3.031 0 0 0-.343.25q-.254.216-.399.455a1.438 1.438 0 0 0-.157.377q-.076.282-.076.65 0 .72.33 1.035a1.126 1.126 0 0 0 .795.315 1.454 1.454 0 0 0 .015 0q.525 0 .938-.345a2.542 2.542 0 0 0 .592-.726 2.993 2.993 0 0 0 .075-.144z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};f.defaultProps={width:"34.23",height:"12.45",viewBox:"0 0 34.23 12.45"};var h=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Playfair Display"),Object(o.createElement)("path",{d:"M27.315 4.035v.3q-.3.03-.532.27-.211.217-.403.681a4.841 4.841 0 0 0-.04.099l-2.46 6.45-.51 1.305q-.285.735-.645 1.05a1.293 1.293 0 0 1-.501.288 1.509 1.509 0 0 1-.039.012q-.315.09-.63.09a1.379 1.379 0 0 1-.326-.037.986.986 0 0 1-.409-.203.786.786 0 0 1-.278-.533 1.123 1.123 0 0 1-.007-.127 1.003 1.003 0 0 1 .03-.25.721.721 0 0 1 .18-.328.689.689 0 0 1 .347-.191 1.041 1.041 0 0 1 .238-.026.956.956 0 0 1 .258.033.744.744 0 0 1 .29.154.614.614 0 0 1 .209.395.887.887 0 0 1 .008.123.784.784 0 0 1-.062.317q-.096.221-.343.358a.112.112 0 0 0 .022.008q.023.006.057.007a.445.445 0 0 0 .011 0 1.077 1.077 0 0 0 .817-.378q.156-.17.289-.418a3.331 3.331 0 0 0 .169-.374l.525-1.365-2.715-6.555a3.351 3.351 0 0 0-.139-.253q-.146-.237-.291-.362a.739.739 0 0 0-.08-.06q-.255-.165-.51-.165v-.315q.602.084 1.361.09a14.802 14.802 0 0 0 .109 0q.742 0 1.924-.088a50.673 50.673 0 0 0 .026-.002v.315q-.426 0-.671.056a.999.999 0 0 0-.116.034q-.248.09-.248.435a1.366 1.366 0 0 0 .029.272q.044.213.151.463l1.8 4.47 1.665-4.335a4.526 4.526 0 0 0 .072-.212q.069-.221.087-.378a.894.894 0 0 0 .006-.1.692.692 0 0 0-.031-.214.532.532 0 0 0-.239-.296q-.236-.145-.715-.197a4.34 4.34 0 0 0-.14-.013v-.3a41.07 41.07 0 0 0 .377.02q.534.025.883.025a16.533 16.533 0 0 0 .47-.006q.37-.011.67-.039zm77.235 0v.3q-.3.03-.532.27-.211.217-.403.681a4.841 4.841 0 0 0-.04.099l-2.46 6.45-.51 1.305q-.285.735-.645 1.05a1.293 1.293 0 0 1-.501.288 1.509 1.509 0 0 1-.039.012q-.315.09-.63.09a1.379 1.379 0 0 1-.326-.037.986.986 0 0 1-.409-.203.786.786 0 0 1-.278-.533 1.123 1.123 0 0 1-.007-.127 1.003 1.003 0 0 1 .03-.25.721.721 0 0 1 .18-.328.689.689 0 0 1 .347-.191 1.041 1.041 0 0 1 .238-.026.956.956 0 0 1 .258.033.744.744 0 0 1 .29.154.614.614 0 0 1 .209.395.887.887 0 0 1 .008.123.784.784 0 0 1-.062.317q-.096.221-.343.358a.112.112 0 0 0 .022.008q.023.006.057.007a.445.445 0 0 0 .011 0 1.077 1.077 0 0 0 .817-.378q.156-.17.289-.418a3.331 3.331 0 0 0 .169-.374l.525-1.365L98.1 5.19a3.351 3.351 0 0 0-.139-.253q-.146-.237-.291-.362a.739.739 0 0 0-.08-.06q-.255-.165-.51-.165v-.315q.602.084 1.361.09a14.802 14.802 0 0 0 .109 0q.742 0 1.924-.088a50.673 50.673 0 0 0 .026-.002v.315q-.426 0-.671.056a.999.999 0 0 0-.116.034q-.248.09-.248.435a1.366 1.366 0 0 0 .029.272q.044.213.151.463l1.8 4.47 1.665-4.335a4.526 4.526 0 0 0 .072-.212q.069-.221.087-.378a.894.894 0 0 0 .006-.1.692.692 0 0 0-.031-.214.532.532 0 0 0-.239-.296q-.236-.145-.715-.197a4.34 4.34 0 0 0-.14-.013v-.3a41.07 41.07 0 0 0 .377.02q.534.025.883.025a16.533 16.533 0 0 0 .47-.006q.37-.011.67-.039zM30.405 3.66v.39h1.605v.3h-1.605v5.865a1.867 1.867 0 0 0 .03.346q.079.418.368.614a1.304 1.304 0 0 0 .337.159q.324.104.791.111a4.541 4.541 0 0 0 .064 0v.315l-.36-.015a306.802 306.802 0 0 0-.535-.015q-1.074-.03-1.415-.03-.378 0-1.687.056a218.727 218.727 0 0 0-.083.004v-.315q.527 0 .792-.163a.62.62 0 0 0 .093-.07.642.642 0 0 0 .155-.228q.1-.235.1-.619V4.35h-1.2v-.3h1.2q0-1.189.134-1.891a4.128 4.128 0 0 1 .031-.149 3.032 3.032 0 0 1 .291-.781A2.642 2.642 0 0 1 29.82.78q.3-.345.765-.548A2.459 2.459 0 0 1 31.4.037a2.912 2.912 0 0 1 .205-.007 2.483 2.483 0 0 1 .613.072 1.876 1.876 0 0 1 .692.333q.465.375.465.93a.866.866 0 0 1-.045.286.742.742 0 0 1-.18.284.76.76 0 0 1-.512.223 1.013 1.013 0 0 1-.058.002.908.908 0 0 1-.319-.054.819.819 0 0 1-.266-.164.716.716 0 0 1-.229-.435 1.027 1.027 0 0 1-.011-.157.937.937 0 0 1 .025-.224.663.663 0 0 1 .147-.286.785.785 0 0 1 .354-.227 1.012 1.012 0 0 1 .104-.028q-.045-.15-.24-.24a.888.888 0 0 0-.187-.061q-.137-.029-.308-.029a1.239 1.239 0 0 0-.329.042 1.05 1.05 0 0 0-.256.108q-.255.15-.39.405a1.321 1.321 0 0 0-.096.228q-.086.264-.121.657a8.863 8.863 0 0 0-.023.342q-.027.526-.03 1.41a67.712 67.712 0 0 0 0 .213zm44.91.18h.345a12.088 12.088 0 0 0-.026.435q-.03.674-.034 1.835a102.175 102.175 0 0 0 0 .28h-.345a4.684 4.684 0 0 0-.194-.774q-.17-.488-.443-.861-.473-.645-1.403-.645a1.55 1.55 0 0 0-.406.051 1.167 1.167 0 0 0-.479.256 1.009 1.009 0 0 0-.326.608 1.462 1.462 0 0 0-.019.24 1.258 1.258 0 0 0 .09.482 1.175 1.175 0 0 0 .27.395q.36.353 1.155.848a2.664 2.664 0 0 1 .076.044q.127.076.329.211a18.97 18.97 0 0 1 .442.297q.196.136.363.26a8.315 8.315 0 0 1 .305.238q.42.345.683.795a1.929 1.929 0 0 1 .248.768 2.414 2.414 0 0 1 .014.267 2.109 2.109 0 0 1-.113.706 1.768 1.768 0 0 1-.63.839 2.759 2.759 0 0 1-1.237.51 3.706 3.706 0 0 1-.585.045 3.676 3.676 0 0 1-.592-.045 2.691 2.691 0 0 1-.593-.165q-.33-.165-.615-.405a.221.221 0 0 0-.051-.039.174.174 0 0 0-.084-.021.155.155 0 0 0-.095.034q-.048.036-.09.111a.623.623 0 0 0-.003.005q-.055.101-.093.256a2.145 2.145 0 0 0-.034.163l-.345.001a16.26 16.26 0 0 0 .026-.507q.03-.79.034-2.162a142.621 142.621 0 0 0 0-.331h.345a9.229 9.229 0 0 0 .122.774q.172.843.478 1.334.426.682 1.441.697a3.103 3.103 0 0 0 .044 0q.525 0 .93-.345a1.072 1.072 0 0 0 .322-.494q.058-.178.076-.395a2.398 2.398 0 0 0 .007-.191 1.42 1.42 0 0 0-.119-.586 1.376 1.376 0 0 0-.278-.404q-.398-.405-1.298-.975a31.244 31.244 0 0 1-.346-.222q-.374-.244-.636-.432a8.363 8.363 0 0 1-.15-.111q-.398-.3-.668-.735a1.79 1.79 0 0 1-.251-.72 2.3 2.3 0 0 1-.019-.3 2.253 2.253 0 0 1 .074-.596 1.572 1.572 0 0 1 .556-.844q.63-.495 1.59-.495a3.017 3.017 0 0 1 .502.04 2.291 2.291 0 0 1 .458.125 2.932 2.932 0 0 1 .314.144q.156.083.279.179a1.59 1.59 0 0 1 .082.067q.133.097.227.115a.22.22 0 0 0 .043.005q.27 0 .33-.66zm4.17 7.32v1.92a1.641 1.641 0 0 0 .025.3q.071.377.335.548a1.207 1.207 0 0 0 .303.136q.294.09.718.096a4.323 4.323 0 0 0 .059 0v.315l-.345-.015a226.276 226.276 0 0 0-.564-.018q-.923-.027-1.251-.027a8.821 8.821 0 0 0-.201.003q-.435.01-1.419.057v-.315q.455 0 .683-.136a.526.526 0 0 0 .09-.066.562.562 0 0 0 .132-.198q.073-.174.083-.443a2.341 2.341 0 0 0 .002-.087V5.67a2.959 2.959 0 0 0-.02-.356q-.051-.422-.235-.649-.255-.315-.885-.315v-.315q.465.045.93.045a7.018 7.018 0 0 0 .637-.027q.297-.027.552-.082a3.246 3.246 0 0 0 .371-.101v1.59a2.932 2.932 0 0 1 .431-.725 2.492 2.492 0 0 1 .529-.482 2.488 2.488 0 0 1 1.364-.427 3.023 3.023 0 0 1 .076-.001q.795 0 1.433.435.637.435.997 1.275.36.84.36 2.01a6.423 6.423 0 0 1-.207 1.648 5.825 5.825 0 0 1-.16.512 3.86 3.86 0 0 1-.647 1.146 3.549 3.549 0 0 1-.493.489 2.766 2.766 0 0 1-1.341.586 3.737 3.737 0 0 1-.587.044q-.57 0-1.035-.225a2.125 2.125 0 0 1-.39-.241 1.654 1.654 0 0 1-.33-.344zm-62.25-4.59v-.93q0-.733-.261-1.077a.776.776 0 0 0-.106-.116 1.216 1.216 0 0 0-.465-.249q-.248-.073-.563-.073a3.207 3.207 0 0 0-.528.04q-.641.108-.957.5.3.075.503.315a.851.851 0 0 1 .191.438 1.145 1.145 0 0 1 .011.162.943.943 0 0 1-.034.259.7.7 0 0 1-.206.333q-.24.218-.615.218a1.067 1.067 0 0 1-.248-.027q-.191-.045-.32-.168a.664.664 0 0 1-.062-.067.955.955 0 0 1-.204-.511 1.243 1.243 0 0 1-.006-.127 1.24 1.24 0 0 1 .028-.273.888.888 0 0 1 .145-.327q.172-.24.517-.48a2.5 2.5 0 0 1 .377-.218q.241-.114.538-.202.555-.165 1.215-.165a3.935 3.935 0 0 1 .672.054q.684.118 1.098.501.375.345.503.833a3.29 3.29 0 0 1 .072.371q.028.195.041.422a8.146 8.146 0 0 1 .014.489v4.17a2.127 2.127 0 0 0 .007.184q.016.182.066.296a.446.446 0 0 0 .032.06q.105.165.36.165.18 0 .338-.082a1.546 1.546 0 0 0 .142-.086q.094-.063.195-.147l.165.255a5.87 5.87 0 0 1-.233.171q-.236.163-.422.251a1.728 1.728 0 0 1-.012.006 1.277 1.277 0 0 1-.271.087q-.131.027-.284.036a2.53 2.53 0 0 1-.143.004 2.258 2.258 0 0 1-.352-.025q-.444-.071-.653-.335-.25-.316-.281-.83a2.462 2.462 0 0 1-.004-.145 3.566 3.566 0 0 1-.349.489q-.316.368-.686.554a2.78 2.78 0 0 1-.962.274 3.434 3.434 0 0 1-.358.018 3.007 3.007 0 0 1-.518-.042q-.281-.049-.503-.157a1.347 1.347 0 0 1-.382-.273 1.558 1.558 0 0 1-.386-.707q-.062-.24-.07-.524a2.986 2.986 0 0 1-.001-.082 2.032 2.032 0 0 1 .059-.504 1.5 1.5 0 0 1 .309-.606q.367-.435.87-.69a6.936 6.936 0 0 1 .383-.179q.201-.087.437-.177a16.483 16.483 0 0 1 .507-.184q.84-.285 1.245-.525a.992.992 0 0 0 .214-.166.669.669 0 0 0 .191-.479zm20.01 0v-.93q0-.733-.261-1.077a.776.776 0 0 0-.106-.116 1.216 1.216 0 0 0-.465-.249q-.248-.073-.563-.073a3.207 3.207 0 0 0-.528.04q-.641.108-.957.5.3.075.503.315a.851.851 0 0 1 .191.438 1.145 1.145 0 0 1 .011.162.943.943 0 0 1-.034.259.7.7 0 0 1-.206.333q-.24.218-.615.218a1.067 1.067 0 0 1-.248-.027q-.191-.045-.32-.168a.664.664 0 0 1-.062-.067.955.955 0 0 1-.204-.511 1.243 1.243 0 0 1-.006-.127 1.24 1.24 0 0 1 .028-.273.888.888 0 0 1 .145-.327q.172-.24.517-.48a2.5 2.5 0 0 1 .377-.218q.241-.114.538-.202.555-.165 1.215-.165a3.935 3.935 0 0 1 .672.054q.684.118 1.098.501.375.345.503.833a3.29 3.29 0 0 1 .072.371q.028.195.041.422a8.146 8.146 0 0 1 .014.489v4.17a2.127 2.127 0 0 0 .007.184q.016.182.066.296a.446.446 0 0 0 .032.06q.105.165.36.165.18 0 .338-.082a1.546 1.546 0 0 0 .142-.086q.094-.063.195-.147l.165.255a5.87 5.87 0 0 1-.233.171q-.236.163-.422.251a1.728 1.728 0 0 1-.012.006 1.277 1.277 0 0 1-.271.087q-.131.027-.284.036a2.53 2.53 0 0 1-.143.004 2.258 2.258 0 0 1-.352-.025q-.444-.071-.653-.335-.25-.316-.281-.83a2.462 2.462 0 0 1-.004-.145 3.566 3.566 0 0 1-.349.489q-.316.368-.686.554a2.78 2.78 0 0 1-.962.274 3.434 3.434 0 0 1-.358.018 3.007 3.007 0 0 1-.518-.042q-.281-.049-.503-.157a1.347 1.347 0 0 1-.382-.273 1.558 1.558 0 0 1-.386-.707q-.062-.24-.07-.524a2.986 2.986 0 0 1-.001-.082 2.032 2.032 0 0 1 .059-.504 1.5 1.5 0 0 1 .309-.606q.367-.435.87-.69a6.936 6.936 0 0 1 .383-.179q.201-.087.437-.177a16.483 16.483 0 0 1 .507-.184q.84-.285 1.245-.525a.992.992 0 0 0 .214-.166.669.669 0 0 0 .191-.479zm57.225 0v-.93q0-.733-.261-1.077a.776.776 0 0 0-.106-.116 1.216 1.216 0 0 0-.465-.249q-.248-.073-.563-.073a3.207 3.207 0 0 0-.528.04q-.641.108-.957.5.3.075.503.315a.851.851 0 0 1 .191.438 1.145 1.145 0 0 1 .011.162.943.943 0 0 1-.034.259.7.7 0 0 1-.206.333q-.24.218-.615.218a1.067 1.067 0 0 1-.248-.027q-.191-.045-.32-.168a.664.664 0 0 1-.062-.067.955.955 0 0 1-.204-.511 1.243 1.243 0 0 1-.006-.127 1.24 1.24 0 0 1 .028-.273.888.888 0 0 1 .145-.327q.172-.24.517-.48a2.5 2.5 0 0 1 .377-.218q.241-.114.538-.202.555-.165 1.215-.165a3.935 3.935 0 0 1 .672.054q.684.118 1.098.501.375.345.503.833a3.29 3.29 0 0 1 .072.371q.028.195.041.422a8.146 8.146 0 0 1 .014.489v4.17a2.127 2.127 0 0 0 .007.184q.016.182.066.296a.446.446 0 0 0 .032.06q.105.165.36.165.18 0 .338-.082a1.546 1.546 0 0 0 .142-.086q.094-.063.195-.147l.165.255a5.87 5.87 0 0 1-.233.171q-.236.163-.422.251a1.728 1.728 0 0 1-.012.006 1.277 1.277 0 0 1-.271.087q-.131.027-.284.036a2.53 2.53 0 0 1-.143.004 2.258 2.258 0 0 1-.352-.025q-.444-.071-.653-.335-.25-.316-.281-.83a2.462 2.462 0 0 1-.004-.145 3.566 3.566 0 0 1-.349.489q-.316.368-.686.554a2.78 2.78 0 0 1-.962.274 3.434 3.434 0 0 1-.358.018 3.007 3.007 0 0 1-.518-.042q-.281-.049-.503-.157a1.347 1.347 0 0 1-.382-.273 1.558 1.558 0 0 1-.386-.707q-.062-.24-.07-.524a2.986 2.986 0 0 1-.001-.082 2.032 2.032 0 0 1 .059-.504 1.5 1.5 0 0 1 .309-.606q.367-.435.87-.69a6.936 6.936 0 0 1 .383-.179q.201-.087.437-.177a16.483 16.483 0 0 1 .507-.184q.84-.285 1.245-.525a.992.992 0 0 0 .214-.166.669.669 0 0 0 .191-.479zm-90.705.9H2.61v2.7a4.308 4.308 0 0 0 .008.281q.018.269.073.442a.819.819 0 0 0 .039.102.621.621 0 0 0 .339.316.862.862 0 0 0 .081.029 1.786 1.786 0 0 0 .186.044q.199.037.492.059a9.744 9.744 0 0 0 .297.017v.3a19.902 19.902 0 0 0-.43-.02q-.706-.025-1.775-.025a60.592 60.592 0 0 0-.604.003q-.843.008-1.316.042v-.3a6.242 6.242 0 0 0 .252-.019q.35-.033.536-.101a.533.533 0 0 0 .319-.299.682.682 0 0 0 .018-.046q.09-.255.09-.825V2.73q0-.57-.09-.825a.582.582 0 0 0-.114-.197.543.543 0 0 0-.223-.148 1.307 1.307 0 0 0-.163-.046q-.179-.04-.444-.062A6.652 6.652 0 0 0 0 1.44v-.3a12.801 12.801 0 0 0 .351.02q.398.017.948.023a53.85 53.85 0 0 0 .531.002l1.62-.015q.266-.014.598-.015a16.961 16.961 0 0 1 .047 0 6.163 6.163 0 0 1 1.016.078q1.03.173 1.669.724a2.635 2.635 0 0 1 .919 1.864 3.673 3.673 0 0 1 .011.289q0 .825-.367 1.583-.368.757-1.245 1.267a3.394 3.394 0 0 1-.861.344q-.642.166-1.472.166zm55.545 4.29l-.87-.015q-.84-.03-1.23-.03a55.62 55.62 0 0 0-.577.003q-.81.008-1.283.042v-.3a6.242 6.242 0 0 0 .252-.019q.35-.033.536-.101a.533.533 0 0 0 .319-.299.682.682 0 0 0 .018-.046q.09-.255.09-.825V2.73q0-.57-.09-.825a.582.582 0 0 0-.114-.197.543.543 0 0 0-.223-.148 1.307 1.307 0 0 0-.163-.046q-.179-.04-.444-.062a6.652 6.652 0 0 0-.181-.012v-.3a9.162 9.162 0 0 0 .288.02q.47.025 1.167.025l1.275-.015a163.608 163.608 0 0 1 .414-.012q.681-.018.951-.018a8.452 8.452 0 0 1 1.494.123q1.563.281 2.481 1.204a4.249 4.249 0 0 1 1.04 1.783q.206.669.26 1.477a8.925 8.925 0 0 1 .02.603 7.042 7.042 0 0 1-.142 1.444 5.443 5.443 0 0 1-.503 1.421q-.645 1.23-1.867 1.898a5.323 5.323 0 0 1-1.616.556 7.312 7.312 0 0 1-1.302.111zM47.235 7.035v3.18a1.867 1.867 0 0 0 .03.346q.079.418.368.614a1.304 1.304 0 0 0 .337.159q.324.104.791.111a4.541 4.541 0 0 0 .064 0v.315l-.36-.015a306.802 306.802 0 0 0-.535-.015q-1.074-.03-1.415-.03-.378 0-1.687.056a218.727 218.727 0 0 0-.083.004v-.315q.527 0 .792-.163a.62.62 0 0 0 .093-.07.642.642 0 0 0 .155-.228q.1-.235.1-.619V5.67a2.959 2.959 0 0 0-.02-.356q-.051-.422-.235-.649-.255-.315-.885-.315v-.315a10.097 10.097 0 0 0 .817.044 9.113 9.113 0 0 0 .113.001 7.018 7.018 0 0 0 .637-.027q.297-.027.552-.082a3.246 3.246 0 0 0 .371-.101v1.875q.27-.75.863-1.335a2.23 2.23 0 0 1 .482-.368 1.685 1.685 0 0 1 .83-.217 1.705 1.705 0 0 1 .451.057 1.289 1.289 0 0 1 .532.288 1.177 1.177 0 0 1 .274.356 1.085 1.085 0 0 1 .108.484 1.09 1.09 0 0 1-.061.37.969.969 0 0 1-.172.297.757.757 0 0 1-.55.276 1.037 1.037 0 0 1-.072.002.86.86 0 0 1-.323-.059.799.799 0 0 1-.239-.151.692.692 0 0 1-.223-.43.987.987 0 0 1-.01-.14.853.853 0 0 1 .293-.647 1.398 1.398 0 0 1 .217-.163.342.342 0 0 0-.246-.146.519.519 0 0 0-.069-.004 1.445 1.445 0 0 0-.877.299 1.973 1.973 0 0 0-.188.158 3.145 3.145 0 0 0-.688.976 3.663 3.663 0 0 0-.062.142 3.895 3.895 0 0 0-.194.602 2.87 2.87 0 0 0-.076.643zM10.965 0v10.365a2.336 2.336 0 0 0 .016.284q.048.389.239.564.229.208.758.229a3.109 3.109 0 0 0 .127.003v.315a159.577 159.577 0 0 0-.559-.023q-.701-.028-1.065-.035a10.797 10.797 0 0 0-.191-.002 11.849 11.849 0 0 0-.236.003q-.501.01-1.579.057v-.315q.527 0 .792-.163a.62.62 0 0 0 .093-.07.642.642 0 0 0 .155-.228q.1-.235.1-.619V1.8a2.959 2.959 0 0 0-.02-.356q-.051-.422-.235-.649Q9.105.48 8.475.48V.165q.465.045.93.045a7.018 7.018 0 0 0 .637-.027q.297-.027.552-.082A3.246 3.246 0 0 0 10.965 0zM88.2 0v10.365a2.336 2.336 0 0 0 .016.284q.048.389.239.564.229.208.758.229a3.109 3.109 0 0 0 .127.003v.315a159.577 159.577 0 0 0-.559-.023q-.701-.028-1.065-.035a10.797 10.797 0 0 0-.191-.002 11.849 11.849 0 0 0-.236.003q-.501.01-1.579.057v-.315q.527 0 .792-.163a.62.62 0 0 0 .093-.07.642.642 0 0 0 .155-.228q.1-.235.1-.619V1.8a2.959 2.959 0 0 0-.02-.356q-.051-.422-.235-.649Q86.34.48 85.71.48V.165q.465.045.93.045a7.018 7.018 0 0 0 .637-.027q.297-.027.552-.082A3.246 3.246 0 0 0 88.2 0zM57.96 2.7v7.5a5.206 5.206 0 0 0 .007.282q.018.334.083.528a.7.7 0 0 0 .095.191.559.559 0 0 0 .227.184q.204.092.597.103a3.978 3.978 0 0 0 .116.002 7.093 7.093 0 0 0 .971-.062q.919-.127 1.534-.515a3.009 3.009 0 0 0 1.209-1.485 3.827 3.827 0 0 0 .074-.203 6.328 6.328 0 0 0 .223-.919q.081-.471.117-1.019a13.954 13.954 0 0 0 .027-.897 12.095 12.095 0 0 0-.048-1.111q-.091-.988-.357-1.701a3.395 3.395 0 0 0-.51-.926 2.903 2.903 0 0 0-.802-.702q-.908-.54-2.453-.54a3.312 3.312 0 0 0-.243.008q-.287.022-.454.097a.574.574 0 0 0-.294.3.796.796 0 0 0-.029.075q-.09.27-.09.81zM42.84 3.87v6.495a2.336 2.336 0 0 0 .016.284q.048.389.239.564.229.208.758.229a3.109 3.109 0 0 0 .127.003v.315a159.577 159.577 0 0 0-.559-.023q-.701-.028-1.065-.035a10.797 10.797 0 0 0-.191-.002 11.849 11.849 0 0 0-.236.003q-.501.01-1.579.057v-.315q.527 0 .792-.163a.62.62 0 0 0 .093-.07.642.642 0 0 0 .155-.228q.1-.235.1-.619V5.67a2.959 2.959 0 0 0-.02-.356q-.051-.422-.235-.649-.255-.315-.885-.315v-.315a10.097 10.097 0 0 0 .817.044 9.113 9.113 0 0 0 .113.001 7.018 7.018 0 0 0 .637-.027q.297-.027.552-.082a3.246 3.246 0 0 0 .371-.101zm25.65 0v6.495a2.336 2.336 0 0 0 .016.284q.048.389.239.564.229.208.758.229a3.109 3.109 0 0 0 .127.003v.315a159.577 159.577 0 0 0-.559-.023q-.701-.028-1.065-.035a10.797 10.797 0 0 0-.191-.002 11.849 11.849 0 0 0-.236.003q-.501.01-1.579.057v-.315q.527 0 .792-.163a.62.62 0 0 0 .093-.07.642.642 0 0 0 .155-.228q.1-.235.1-.619V5.67a2.959 2.959 0 0 0-.02-.356q-.051-.422-.235-.649Q66.63 4.35 66 4.35v-.315a10.097 10.097 0 0 0 .817.044 9.113 9.113 0 0 0 .113.001 7.018 7.018 0 0 0 .637-.027q.297-.027.552-.082a3.246 3.246 0 0 0 .371-.101zm10.995 2.295v4.5q.21.435.615.698a1.61 1.61 0 0 0 .615.233 2.159 2.159 0 0 0 .36.029q1.997 0 2.135-3.354a12.573 12.573 0 0 0 .01-.516q0-2.065-.613-2.905a1.326 1.326 0 0 0-1.127-.575 1.743 1.743 0 0 0-1.13.414 2.258 2.258 0 0 0-.085.074 2.311 2.311 0 0 0-.483.627q-.183.339-.297.775zM2.61 2.73v4.44h1.005a4.284 4.284 0 0 0 .717-.056q.377-.064.669-.202a1.64 1.64 0 0 0 .647-.529 2.801 2.801 0 0 0 .412-.888q.15-.539.15-1.22a5.852 5.852 0 0 0-.046-.758q-.116-.891-.531-1.387a1.737 1.737 0 0 0-.738-.507q-.289-.108-.649-.153a4.32 4.32 0 0 0-.526-.03 3.312 3.312 0 0 0-.243.008q-.287.022-.454.097a.574.574 0 0 0-.294.3.796.796 0 0 0-.029.075q-.09.27-.09.81zm14.625 7.395v-2.94a1.012 1.012 0 0 1-.289.292 1.23 1.23 0 0 1-.086.053 4.575 4.575 0 0 1-.136.073q-.157.081-.381.186a20.935 20.935 0 0 1-.218.101 9.952 9.952 0 0 0-.382.17q-.315.148-.54.288a1.958 1.958 0 0 0-.509.457 2.324 2.324 0 0 0-.099.135 1.403 1.403 0 0 0-.201.465q-.046.19-.053.412a2.582 2.582 0 0 0-.001.083 2.201 2.201 0 0 0 .032.389q.071.393.298.631.33.345.87.345a1.663 1.663 0 0 0 1.113-.434q.234-.202.444-.498a3.91 3.91 0 0 0 .138-.208zm20.01 0v-2.94a1.012 1.012 0 0 1-.289.292 1.23 1.23 0 0 1-.086.053 4.575 4.575 0 0 1-.136.073q-.157.081-.381.186a20.935 20.935 0 0 1-.218.101 9.952 9.952 0 0 0-.382.17q-.315.148-.54.288a1.958 1.958 0 0 0-.509.457 2.324 2.324 0 0 0-.099.135 1.403 1.403 0 0 0-.201.465q-.046.19-.053.412a2.582 2.582 0 0 0-.001.083 2.201 2.201 0 0 0 .032.389q.071.393.298.631.33.345.87.345a1.663 1.663 0 0 0 1.113-.434q.234-.202.444-.498a3.91 3.91 0 0 0 .138-.208zm57.225 0v-2.94a1.012 1.012 0 0 1-.289.292 1.23 1.23 0 0 1-.086.053 4.575 4.575 0 0 1-.136.073q-.157.081-.381.186a20.935 20.935 0 0 1-.218.101 9.952 9.952 0 0 0-.382.17q-.315.148-.54.288a1.958 1.958 0 0 0-.509.457 2.324 2.324 0 0 0-.099.135 1.403 1.403 0 0 0-.201.465q-.046.19-.053.412a2.582 2.582 0 0 0-.001.083 2.201 2.201 0 0 0 .032.389q.071.393.298.631.33.345.87.345a1.663 1.663 0 0 0 1.113-.434q.234-.202.444-.498a3.91 3.91 0 0 0 .138-.208zM42.726.561a.921.921 0 0 0-.666-.276.93.93 0 0 0-.343.063.97.97 0 0 0-.332.222 1.17 1.17 0 0 0-.009.009.921.921 0 0 0-.276.666.93.93 0 0 0 .063.343.97.97 0 0 0 .222.332 1.17 1.17 0 0 0 .009.009.921.921 0 0 0 .666.276.93.93 0 0 0 .343-.063.97.97 0 0 0 .332-.222 1.17 1.17 0 0 0 .009-.009.921.921 0 0 0 .276-.666.93.93 0 0 0-.063-.343.97.97 0 0 0-.222-.332 1.17 1.17 0 0 0-.009-.009zm25.65 0a.921.921 0 0 0-.666-.276.93.93 0 0 0-.343.063.97.97 0 0 0-.332.222 1.17 1.17 0 0 0-.009.009.921.921 0 0 0-.276.666.93.93 0 0 0 .063.343.97.97 0 0 0 .222.332 1.17 1.17 0 0 0 .009.009.921.921 0 0 0 .666.276.93.93 0 0 0 .343-.063.97.97 0 0 0 .332-.222 1.17 1.17 0 0 0 .009-.009.921.921 0 0 0 .276-.666.93.93 0 0 0-.063-.343.97.97 0 0 0-.222-.332 1.17 1.17 0 0 0-.009-.009z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};h.defaultProps={width:"104.55",height:"14.58",viewBox:"0 0 104.55 14.58"};var g=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"PT Sans"),Object(o.createElement)("path",{d:"M25.665.48l-.375 1.095a2.666 2.666 0 0 0-.245-.101q-.307-.111-.767-.214-.663-.149-1.495-.15a9.34 9.34 0 0 0-.013 0 3.542 3.542 0 0 0-.544.039q-.287.045-.517.141a1.495 1.495 0 0 0-.424.263 1.593 1.593 0 0 0-.318.381 1.286 1.286 0 0 0-.177.661q0 .585.375.975a3.467 3.467 0 0 0 .508.431 4.502 4.502 0 0 0 .43.267 17.34 17.34 0 0 0 .741.381 20.838 20.838 0 0 0 .481.226q.66.3 1.223.698.562.397.937.952a2.126 2.126 0 0 1 .315.765 3.012 3.012 0 0 1 .06.615 3.266 3.266 0 0 1-.072.698 2.674 2.674 0 0 1-.168.517q-.24.54-.705.93a3.072 3.072 0 0 1-.732.451 3.819 3.819 0 0 1-.393.149 4.335 4.335 0 0 1-.776.167 5.821 5.821 0 0 1-.724.043q-1.125 0-1.86-.172-.735-.173-1.14-.383l.42-1.125q.312.176.893.346a9.616 9.616 0 0 0 .127.037 5.025 5.025 0 0 0 .812.151 6.625 6.625 0 0 0 .703.036 4.462 4.462 0 0 0 .651-.046 3.827 3.827 0 0 0 .279-.051 2.38 2.38 0 0 0 .428-.138 1.889 1.889 0 0 0 .322-.177q.315-.218.503-.548a1.415 1.415 0 0 0 .163-.472 1.884 1.884 0 0 0 .024-.308 1.726 1.726 0 0 0-.062-.472 1.322 1.322 0 0 0-.313-.555 3.409 3.409 0 0 0-.527-.452 4.367 4.367 0 0 0-.41-.253 11.509 11.509 0 0 0-.82-.406 13.506 13.506 0 0 0-.403-.172q-.66-.27-1.222-.652-.563-.383-.938-.945-.348-.522-.373-1.309a3.886 3.886 0 0 1-.002-.124 2.852 2.852 0 0 1 .13-.883A2.299 2.299 0 0 1 20.4.72q.702-.591 1.89-.697A6.098 6.098 0 0 1 22.83 0a10.823 10.823 0 0 1 .874.034 8.219 8.219 0 0 1 .791.101q.75.135 1.17.345zm15.51 10.2h-1.2V6.405q0-1.071-.283-1.658a1.711 1.711 0 0 0-.054-.104 1.105 1.105 0 0 0-.686-.523q-.197-.057-.438-.068a2.574 2.574 0 0 0-.114-.002q-.795 0-1.312.428-.518.427-.728 1.072v5.13h-1.2v-7.5H36l.225.915h.06a2.57 2.57 0 0 1 .645-.601 3.207 3.207 0 0 1 .323-.186 2.764 2.764 0 0 1 .757-.249A3.851 3.851 0 0 1 38.7 3q.573 0 1.016.124a2.682 2.682 0 0 1 .064.019q.465.142.773.502a1.914 1.914 0 0 1 .255.392q.094.19.165.419a3.564 3.564 0 0 1 .044.157q.158.607.158 1.537v4.53zM14.925.18v1.11h-3.27v9.39H10.41V1.29H7.14V.18h7.785zm32.76 3.3l-.285.99a3.713 3.713 0 0 0-.329-.137q-.172-.063-.369-.119a6.65 6.65 0 0 0-.134-.036 3.959 3.959 0 0 0-.77-.12 4.621 4.621 0 0 0-.273-.008q-.66 0-.967.225-.308.225-.308.78a.901.901 0 0 0 .037.266.691.691 0 0 0 .233.342q.262.21.643.379a4.029 4.029 0 0 0 .025.011q.397.172.87.337.472.165.87.435.397.27.667.683.27.412.27 1.087a2.592 2.592 0 0 1-.102.734 2.395 2.395 0 0 1-.055.166q-.158.42-.488.72a2.2 2.2 0 0 1-.5.338 2.796 2.796 0 0 1-.318.135q-.487.172-1.147.172-.671 0-1.185-.102a3.794 3.794 0 0 1-.27-.063q-.5-.137-.864-.317a3.149 3.149 0 0 1-.141-.073l.36-1.02a3.065 3.065 0 0 0 .288.142q.158.068.344.132a6.65 6.65 0 0 0 .268.086q.555.165 1.125.165a2.691 2.691 0 0 0 .452-.036q.351-.06.613-.219a.818.818 0 0 0 .361-.477q.059-.19.059-.438a1.206 1.206 0 0 0-.034-.295.829.829 0 0 0-.236-.41 2.096 2.096 0 0 0-.387-.287 2.672 2.672 0 0 0-.28-.14q-.398-.173-.87-.33a4.125 4.125 0 0 1-.77-.345 3.805 3.805 0 0 1-.1-.06q-.398-.248-.668-.638a1.396 1.396 0 0 1-.194-.425q-.052-.187-.068-.411a2.911 2.911 0 0 1-.008-.214 3 3 0 0 1 .054-.59q.129-.639.561-.992a2.064 2.064 0 0 1 .728-.375q.296-.088.649-.116A4.304 4.304 0 0 1 45.375 3q.616 0 1.08.082a3.601 3.601 0 0 1 .277.061q.512.133.899.311a3.79 3.79 0 0 1 .054.026zm-19.71 1.155l-.375-.9a3.967 3.967 0 0 1 .786-.361 5.03 5.03 0 0 1 .542-.149 7.366 7.366 0 0 1 1.466-.164 8.181 8.181 0 0 1 .116-.001q.78 0 1.253.21a2.147 2.147 0 0 1 .358.2q.217.151.359.344a1.294 1.294 0 0 1 .003.004q.247.337.33.742.082.405.082.81 0 .9-.045 1.755a32.907 32.907 0 0 0-.039 1.034 27.772 27.772 0 0 0-.006.586 12.234 12.234 0 0 0 .021.735 10.363 10.363 0 0 0 .024.315 5.345 5.345 0 0 0 .086.589 4.406 4.406 0 0 0 .079.326h-.885l-.315-1.05h-.075a2.311 2.311 0 0 1-.195.26 2.848 2.848 0 0 1-.142.153q-.203.202-.488.36a2.737 2.737 0 0 1-.349.16 3.589 3.589 0 0 1-.311.102 2.715 2.715 0 0 1-.401.079q-.201.024-.424.026a4.333 4.333 0 0 1-.03 0 2.707 2.707 0 0 1-.628-.071 2.394 2.394 0 0 1-.264-.079 2.141 2.141 0 0 1-.556-.297 1.967 1.967 0 0 1-.157-.13q-.3-.278-.472-.668a2.005 2.005 0 0 1-.153-.557 2.558 2.558 0 0 1-.02-.328 2.675 2.675 0 0 1 .041-.482q.064-.351.229-.62.27-.443.758-.705a3.184 3.184 0 0 1 .554-.231q.285-.09.616-.144a8.274 8.274 0 0 1 .806-.091 10.783 10.783 0 0 1 .701-.022h.413q.202 0 .412.03.045-.45.045-.81 0-.704-.24-1.047a.8.8 0 0 0-.09-.108.895.895 0 0 0-.291-.188q-.277-.116-.71-.137a4.101 4.101 0 0 0-.199-.005 3.966 3.966 0 0 0-.325.014 4.932 4.932 0 0 0-.222.024 6.797 6.797 0 0 0-.524.088 7.503 7.503 0 0 0-.076.017 5.057 5.057 0 0 0-.516.141 4.577 4.577 0 0 0-.069.024q-.278.097-.488.217zM0 10.68V.285Q.57.15 1.23.105 1.89.06 2.535.06q.69 0 1.403.135Q4.65.33 5.235.69a2.771 2.771 0 0 1 .918.932 3.246 3.246 0 0 1 .034.058 2.52 2.52 0 0 1 .27.691q.074.309.092.668a4.832 4.832 0 0 1 .006.246 4.436 4.436 0 0 1-.056.727q-.083.5-.289.893a3.081 3.081 0 0 1-.709.909 2.945 2.945 0 0 1-.206.164 3.653 3.653 0 0 1-1.146.55 4.225 4.225 0 0 1-.159.042q-.735.18-1.515.18h-.247a8.738 8.738 0 0 1-.268-.004 9.905 9.905 0 0 1-.093-.003Q1.68 6.735 1.5 6.72q-.166-.014-.242-.028a.663.663 0 0 1-.013-.002v3.99H0zm1.245-9.45v4.35a.35.35 0 0 0 .049.015q.072.017.191.023l.345.015a8.577 8.577 0 0 0 .262.007 7.51 7.51 0 0 0 .083 0h.24q.51 0 1.013-.097a2.677 2.677 0 0 0 .738-.256 2.478 2.478 0 0 0 .169-.097 1.811 1.811 0 0 0 .563-.566 2.216 2.216 0 0 0 .089-.154q.248-.465.248-1.185a2.692 2.692 0 0 0-.035-.45q-.043-.252-.138-.46a1.531 1.531 0 0 0-.06-.117q-.232-.413-.614-.66a2.552 2.552 0 0 0-.745-.325 2.945 2.945 0 0 0-.118-.028q-.48-.105-.96-.105a18.578 18.578 0 0 0-.568.008 16.485 16.485 0 0 0-.182.007 4.155 4.155 0 0 0-.21.014q-.216.02-.36.061zM31.68 8.565V7.32q-.21-.015-.427-.022-.218-.008-.428-.008-.465 0-.907.053a3.347 3.347 0 0 0-.411.073 2.487 2.487 0 0 0-.369.122 1.532 1.532 0 0 0-.313.174 1.243 1.243 0 0 0-.228.216.884.884 0 0 0-.186.42 1.211 1.211 0 0 0-.016.202 1.198 1.198 0 0 0 .082.451 1.105 1.105 0 0 0 .293.412 1.296 1.296 0 0 0 .681.316 1.784 1.784 0 0 0 .279.021 2.682 2.682 0 0 0 .396-.028 2.02 2.02 0 0 0 .354-.084 2.446 2.446 0 0 0 .325-.137 1.906 1.906 0 0 0 .245-.148 1.946 1.946 0 0 0 .266-.229 1.635 1.635 0 0 0 .132-.154q.146-.195.221-.377a1.246 1.246 0 0 0 .011-.028z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};g.defaultProps={width:"47.865",height:"10.86",viewBox:"0 0 47.865 10.86"};var v=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"PT Sans Narrow"),Object(o.createElement)("path",{d:"M48.705 10.845L44.85 4.02l-.645-1.65h-.045l.165 1.65v6.66h-1.08V.015h.675l3.885 6.81.615 1.575h.06l-.165-1.575V.18h1.08v10.665h-.69zm26.31-7.665h.795l1.335 4.38.27 1.44h.03l.225-1.47 1.02-4.35h1.02l-1.995 7.665H77.1l-1.515-4.92-.21-1.26h-.03l-.21 1.275-1.47 4.905h-.615L70.995 3.18h1.155l1.155 4.365.18 1.455h.03l.27-1.485 1.23-4.335zm-59.49 7.14l.39-1.035q.285.195.803.368.517.172 1.177.172.77 0 1.276-.347a1.719 1.719 0 0 0 .089-.065 1.297 1.297 0 0 0 .442-.668q.066-.221.08-.49a2.797 2.797 0 0 0 .003-.14 1.924 1.924 0 0 0-.08-.563 1.643 1.643 0 0 0-.22-.457 3.753 3.753 0 0 0-.534-.615 4.381 4.381 0 0 0-.216-.187 13.656 13.656 0 0 0-.807-.61 15.283 15.283 0 0 0-.16-.11q-.518-.353-.968-.78-.45-.428-.75-.983a2.412 2.412 0 0 1-.243-.696q-.056-.293-.057-.628a4.05 4.05 0 0 1 0-.011q0-.935.417-1.51a1.838 1.838 0 0 1 .341-.357 2.668 2.668 0 0 1 1.076-.512Q17.996 0 18.48 0a7.13 7.13 0 0 1 .667.03q.335.031.629.096a4.323 4.323 0 0 1 .039.009 4.821 4.821 0 0 1 .399.109q.189.061.346.133a2.256 2.256 0 0 1 .2.103l-.36.99a1.812 1.812 0 0 0-.208-.107q-.223-.1-.543-.187a6.006 6.006 0 0 0-.022-.006q-.47-.126-1.078-.134a6.306 6.306 0 0 0-.084-.001 2.621 2.621 0 0 0-.444.035q-.482.083-.756.363a1.348 1.348 0 0 0-.388.905 1.776 1.776 0 0 0-.002.092q0 .525.3.93a3.874 3.874 0 0 0 .458.512 4.768 4.768 0 0 0 .292.253q.45.36.968.728.517.367.967.817.45.45.75 1.02a2.546 2.546 0 0 1 .25.751 3.466 3.466 0 0 1 .05.599q0 1.32-.78 2.07a2.543 2.543 0 0 1-1.082.606q-.5.144-1.123.144a8.121 8.121 0 0 1-.581-.019q-.518-.038-.896-.146a5.59 5.59 0 0 1-.37-.119q-.182-.066-.334-.138a2.468 2.468 0 0 1-.219-.118zm17.73.36h-1.08V6.105a7.673 7.673 0 0 0-.019-.554q-.039-.539-.161-.881a1.505 1.505 0 0 0-.082-.192.888.888 0 0 0-.644-.475 1.472 1.472 0 0 0-.294-.028 1.641 1.641 0 0 0-.469.064 1.307 1.307 0 0 0-.521.296q-.39.36-.57.885v5.46h-1.08v-7.5h.78l.195.795h.045a2.275 2.275 0 0 1 .501-.51 2.843 2.843 0 0 1 .272-.18 2.046 2.046 0 0 1 .682-.245 2.756 2.756 0 0 1 .48-.04 2.904 2.904 0 0 1 .425.03 2.125 2.125 0 0 1 .422.105q.368.135.616.458a1.736 1.736 0 0 1 .193.323q.076.162.133.356a3.382 3.382 0 0 1 .048.183 4.153 4.153 0 0 1 .078.445q.028.228.04.49a9.237 9.237 0 0 1 .01.43v4.86zM12.12.18v1.035H9.54v9.465H8.415V1.215h-2.58V.18h6.285zM0 10.68V.285a5.298 5.298 0 0 1 .82-.16 6.039 6.039 0 0 1 .2-.02Q1.56.06 2.085.06q.6 0 1.185.135.585.135 1.058.495a2.376 2.376 0 0 1 .542.589 3.091 3.091 0 0 1 .223.401 2.855 2.855 0 0 1 .197.605q.095.444.095 1 0 .804-.201 1.402a2.944 2.944 0 0 1-.077.203q-.277.66-.734 1.073-.458.412-1.05.6-.593.187-1.223.187h-.195a5.44 5.44 0 0 1-.193-.004 6.376 6.376 0 0 1-.092-.003q-.15-.008-.292-.023-.108-.011-.168-.023a.594.594 0 0 1-.035-.007v3.99H0zm22.62-6.195l-.36-.855q.435-.27 1.058-.42a5.496 5.496 0 0 1 1.119-.147 6.22 6.22 0 0 1 .193-.003 3.451 3.451 0 0 1 .402.022q.199.023.365.072a1.527 1.527 0 0 1 .245.094 1.603 1.603 0 0 1 .397.27 1.413 1.413 0 0 1 .204.24 1.801 1.801 0 0 1 .27.655 2.103 2.103 0 0 1 .014.08 5.244 5.244 0 0 1 .066.722 5.885 5.885 0 0 1 .002.14q0 .9-.037 1.755a39.054 39.054 0 0 0-.034 1.133 32.967 32.967 0 0 0-.004.487 15.3 15.3 0 0 0 .012.615 12.148 12.148 0 0 0 .026.443 6.034 6.034 0 0 0 .094.701 5.296 5.296 0 0 0 .048.221h-.825l-.255-.885h-.06a1.88 1.88 0 0 1-.403.482 2.402 2.402 0 0 1-.257.193q-.435.285-1.17.285a1.9 1.9 0 0 1-.673-.115 1.688 1.688 0 0 1-.654-.447 1.868 1.868 0 0 1-.426-.794q-.092-.341-.092-.759a3.166 3.166 0 0 1 .033-.472q.037-.246.116-.453a1.727 1.727 0 0 1 .068-.155q.218-.435.616-.705a2.387 2.387 0 0 1 .57-.281 3.044 3.044 0 0 1 .374-.101 5.334 5.334 0 0 1 .618-.088 7.089 7.089 0 0 1 .605-.025h.3q.15 0 .315.015a10.758 10.758 0 0 0 .031-.387q.01-.177.013-.335a6.121 6.121 0 0 0 .001-.103 4.55 4.55 0 0 0-.016-.396q-.035-.394-.144-.639a.888.888 0 0 0-.095-.165.748.748 0 0 0-.324-.245q-.242-.1-.606-.1a3.21 3.21 0 0 0-.467.036 4.322 4.322 0 0 0-.448.092 4.128 4.128 0 0 0-.375.114q-.254.092-.45.208zm28.905 0l-.36-.855q.435-.27 1.058-.42a5.496 5.496 0 0 1 1.119-.147 6.22 6.22 0 0 1 .193-.003 3.451 3.451 0 0 1 .402.022q.199.023.365.072a1.527 1.527 0 0 1 .245.094 1.603 1.603 0 0 1 .397.27 1.413 1.413 0 0 1 .204.24 1.801 1.801 0 0 1 .27.655 2.103 2.103 0 0 1 .014.08 5.244 5.244 0 0 1 .066.722 5.885 5.885 0 0 1 .002.14q0 .9-.037 1.755a39.054 39.054 0 0 0-.034 1.133 32.967 32.967 0 0 0-.004.487 15.3 15.3 0 0 0 .012.615 12.148 12.148 0 0 0 .026.443 6.034 6.034 0 0 0 .094.701 5.296 5.296 0 0 0 .048.221h-.825l-.255-.885h-.06a1.88 1.88 0 0 1-.403.482 2.402 2.402 0 0 1-.257.193q-.435.285-1.17.285a1.9 1.9 0 0 1-.673-.115 1.688 1.688 0 0 1-.654-.447 1.868 1.868 0 0 1-.426-.794q-.092-.341-.092-.759a3.166 3.166 0 0 1 .033-.472q.037-.246.116-.453a1.727 1.727 0 0 1 .068-.155q.218-.435.616-.705a2.387 2.387 0 0 1 .57-.281 3.044 3.044 0 0 1 .374-.101 5.334 5.334 0 0 1 .618-.088 7.089 7.089 0 0 1 .605-.025h.3q.15 0 .315.015a10.758 10.758 0 0 0 .031-.387q.01-.177.013-.335a6.121 6.121 0 0 0 .001-.103 4.55 4.55 0 0 0-.016-.396q-.035-.394-.144-.639a.888.888 0 0 0-.095-.165.748.748 0 0 0-.324-.245q-.242-.1-.606-.1a3.21 3.21 0 0 0-.467.036 4.322 4.322 0 0 0-.448.092 4.128 4.128 0 0 0-.375.114q-.254.092-.45.208zm-17.055 5.91l.33-.945q.3.18.713.308.412.127.847.127.495 0 .84-.247.321-.231.343-.728a1.687 1.687 0 0 0 .002-.075 1.691 1.691 0 0 0-.031-.332q-.041-.205-.137-.367a1.015 1.015 0 0 0-.042-.066 2.293 2.293 0 0 0-.397-.432 2.685 2.685 0 0 0-.135-.108 5.68 5.68 0 0 0-.651-.417 6.221 6.221 0 0 0-.047-.025q-.375-.203-.697-.488-.323-.285-.533-.675-.179-.331-.205-.815a3.169 3.169 0 0 1-.005-.175 2.84 2.84 0 0 1 .051-.554q.064-.323.21-.571a1.452 1.452 0 0 1 .257-.322q.458-.433 1.253-.482A3.394 3.394 0 0 1 36.645 3q.526 0 .931.082a3.07 3.07 0 0 1 .134.031q.45.112.78.307l-.285.9a2.715 2.715 0 0 0-.339-.148 3.591 3.591 0 0 0-.321-.099q-.375-.098-.765-.098a2.055 2.055 0 0 0-.281.018q-.323.044-.5.201a.618.618 0 0 0-.007.006q-.247.225-.247.705a1.114 1.114 0 0 0 .046.327.926.926 0 0 0 .164.311 2.186 2.186 0 0 0 .306.31 2.743 2.743 0 0 0 .226.17 14.645 14.645 0 0 0 .424.274 17.443 17.443 0 0 0 .274.168q.375.225.698.533a2.543 2.543 0 0 1 .492.655 2.9 2.9 0 0 1 .04.08 1.892 1.892 0 0 1 .147.432q.063.287.063.64 0 .42-.135.795-.135.375-.412.653a1.916 1.916 0 0 1-.466.339 2.364 2.364 0 0 1-.224.103q-.413.165-.968.165a5.772 5.772 0 0 1-.507-.021q-.255-.023-.477-.069a3.115 3.115 0 0 1-.156-.037 3.543 3.543 0 0 1-.391-.128q-.233-.092-.419-.21zm22.77.285v-7.5h.765l.195.795h.045q.21-.435.548-.682.337-.248.817-.248a2.118 2.118 0 0 1 .331.028q.211.033.449.107l-.21 1.095a2.904 2.904 0 0 0-.28-.082q-.146-.035-.277-.047a1.472 1.472 0 0 0-.133-.006 1.356 1.356 0 0 0-.348.042 1.005 1.005 0 0 0-.432.236 1.235 1.235 0 0 0-.323.495 1.643 1.643 0 0 0-.067.247v5.52h-1.08zm4.11 0v-7.5h.765l.195.795h.045q.21-.435.548-.682.337-.248.817-.248a2.118 2.118 0 0 1 .331.028q.211.033.449.107l-.21 1.095a2.904 2.904 0 0 0-.28-.082q-.146-.035-.277-.047a1.472 1.472 0 0 0-.133-.006 1.356 1.356 0 0 0-.348.042 1.005 1.005 0 0 0-.432.236 1.235 1.235 0 0 0-.323.495 1.643 1.643 0 0 0-.067.247v5.52h-1.08zm3.78-3.75q0-2.025.698-2.977a2.247 2.247 0 0 1 1.636-.934A3.182 3.182 0 0 1 67.815 3a3.076 3.076 0 0 1 .809.1 2.083 2.083 0 0 1 1.224.875q.617.923.65 2.747a11.536 11.536 0 0 1 .002.208q0 1.849-.579 2.799a2.414 2.414 0 0 1-.126.186 2.268 2.268 0 0 1-1.661.929 3.164 3.164 0 0 1-.319.016 3.076 3.076 0 0 1-.809-.1 2.083 2.083 0 0 1-1.223-.875q-.618-.923-.651-2.747a11.536 11.536 0 0 1-.002-.208zm1.125 0q0 .66.083 1.2a4.003 4.003 0 0 0 .096.459q.062.225.148.417a2.397 2.397 0 0 0 .026.054 1.801 1.801 0 0 0 .208.337 1.412 1.412 0 0 0 .279.271 1.138 1.138 0 0 0 .536.206 1.479 1.479 0 0 0 .184.011 1.367 1.367 0 0 0 .55-.106q.314-.137.53-.447a1.726 1.726 0 0 0 .09-.144q.33-.59.381-1.796a10.948 10.948 0 0 0 .009-.462 8.871 8.871 0 0 0-.026-.695 7.051 7.051 0 0 0-.056-.497q-.076-.5-.238-.868a2.369 2.369 0 0 0-.033-.07 1.801 1.801 0 0 0-.208-.337 1.412 1.412 0 0 0-.279-.27 1.138 1.138 0 0 0-.536-.207 1.479 1.479 0 0 0-.184-.011 1.302 1.302 0 0 0-.59.13q-.27.135-.468.41a1.784 1.784 0 0 0-.104.165 2.382 2.382 0 0 0-.21.522q-.146.517-.179 1.274a10.574 10.574 0 0 0-.009.454zM1.125 1.185v4.47a.251.251 0 0 0 .043.016q.043.013.107.019a1.092 1.092 0 0 0 .038.003 80.343 80.343 0 0 0 .245.014 87.711 87.711 0 0 0 .017.001 4.761 4.761 0 0 0 .247.007 4.374 4.374 0 0 0 .016 0h.187q.42 0 .81-.105.39-.105.69-.382a1.737 1.737 0 0 0 .294-.362q.109-.174.194-.388a2.383 2.383 0 0 0 .121-.425q.066-.34.066-.768 0-.492-.105-.855a1.898 1.898 0 0 0-.067-.195 2.183 2.183 0 0 0-.185-.357 1.633 1.633 0 0 0-.266-.318q-.277-.255-.652-.36-.375-.105-.78-.105a7.302 7.302 0 0 0-.473.015 6.527 6.527 0 0 0-.105.008q-.277.022-.442.067zm24.39 7.665V7.26q-.15-.015-.3-.022-.15-.008-.3-.008-.36 0-.705.06a2.103 2.103 0 0 0-.383.103 1.747 1.747 0 0 0-.232.107q-.27.15-.427.405a.999.999 0 0 0-.121.299q-.03.128-.036.276a1.843 1.843 0 0 0-.001.07 1.979 1.979 0 0 0 .031.365q.065.343.262.565a.955.955 0 0 0 .698.329 1.265 1.265 0 0 0 .059.001q.63 0 .975-.3t.48-.66zm28.905 0V7.26q-.15-.015-.3-.022-.15-.008-.3-.008-.36 0-.705.06a2.103 2.103 0 0 0-.383.103 1.747 1.747 0 0 0-.232.107q-.27.15-.427.405a.999.999 0 0 0-.121.299q-.03.128-.036.276a1.843 1.843 0 0 0-.001.07 1.979 1.979 0 0 0 .031.365q.065.343.262.565a.955.955 0 0 0 .698.329 1.265 1.265 0 0 0 .059.001q.63 0 .975-.3t.48-.66z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};v.defaultProps={width:"79.71",height:"10.86",viewBox:"0 0 79.71 10.86"};var y=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"PT Serif"),Object(o.createElement)("path",{d:"M23.07 8.04l.615 2.205a1.338 1.338 0 0 0 .228.181 1.832 1.832 0 0 0 .237.127q.285.127.855.127a3.203 3.203 0 0 0 .659-.066 2.828 2.828 0 0 0 .241-.061 2.274 2.274 0 0 0 .481-.207 1.954 1.954 0 0 0 .247-.168q.307-.248.487-.6a1.645 1.645 0 0 0 .166-.558 2.062 2.062 0 0 0 .014-.245 1.615 1.615 0 0 0-.078-.512 1.369 1.369 0 0 0-.29-.493q-.367-.405-.914-.72a14.503 14.503 0 0 0-.723-.388 17.326 17.326 0 0 0-.47-.227q-.645-.3-1.192-.712-.548-.413-.915-.99a2.251 2.251 0 0 1-.293-.72q-.075-.334-.075-.728a3.017 3.017 0 0 1 .062-.623 2.41 2.41 0 0 1 .163-.502q.225-.495.638-.84a2.826 2.826 0 0 1 .707-.429 3.41 3.41 0 0 1 .275-.103 3.7 3.7 0 0 1 .745-.159A4.752 4.752 0 0 1 25.47.6a10.24 10.24 0 0 1 .928.04 7.91 7.91 0 0 1 .745.103 7.795 7.795 0 0 1 .441.095q.452.113.751.257 0 .205-.024.464a7.597 7.597 0 0 1-.014.129 20.345 20.345 0 0 1-.077.607 22.539 22.539 0 0 1-.013.09 22.839 22.839 0 0 1-.105.655 20.944 20.944 0 0 1-.007.043q-.052.29-.103.519a7.738 7.738 0 0 1-.017.073h-.39l-.6-2.055a1.927 1.927 0 0 0-.243-.088q-.122-.035-.263-.062a3.907 3.907 0 0 0-.176-.03 5.795 5.795 0 0 0-.593-.054 6.837 6.837 0 0 0-.285-.006 2.225 2.225 0 0 0-.532.06 1.564 1.564 0 0 0-.698.368 1.4 1.4 0 0 0-.424.768A2.087 2.087 0 0 0 23.73 3a1.701 1.701 0 0 0 .079.53 1.436 1.436 0 0 0 .288.505q.368.42.923.75a15.037 15.037 0 0 0 .879.482 17.257 17.257 0 0 0 .314.156q.637.307 1.192.712.555.405.923.96a2.143 2.143 0 0 1 .305.749q.062.293.062.631a3.191 3.191 0 0 1-.092.778 2.746 2.746 0 0 1-.156.452q-.247.555-.712.945-.465.39-1.14.6a4.532 4.532 0 0 1-.804.168 6.06 6.06 0 0 1-.726.042 6.815 6.815 0 0 1-.896-.056 5.124 5.124 0 0 1-.799-.169 6.518 6.518 0 0 1-.348-.114q-.481-.175-.717-.366.015-.255.053-.615a22.677 22.677 0 0 1 .077-.647 24.963 24.963 0 0 1 .013-.095 26.208 26.208 0 0 1 .108-.72 24.336 24.336 0 0 1 .004-.023q.046-.276.092-.49a6.526 6.526 0 0 1 .028-.125h.39zm-7.815 2.805v.435H11.04v-.435q.33-.12.668-.21a6.44 6.44 0 0 1 .442-.101 7.732 7.732 0 0 1 .285-.049V1.56H10.14l-.795 2.145H8.97q-.042-.28-.071-.632a13.49 13.49 0 0 1-.004-.05q-.03-.383-.052-.78-.023-.398-.038-.78a21.535 21.535 0 0 1-.01-.319Q8.791.997 8.79.866a12.719 12.719 0 0 1 0-.086h8.715a13.774 13.774 0 0 1 0 .005q0 .293-.015.658a24.422 24.422 0 0 1 0 .012q-.015.375-.037.773l-.045.78q-.023.382-.068.697h-.39l-.78-2.145h-2.295v8.925q.39.075.728.15.337.075.652.21zm37.68-8.955h-.375L51.9.6a3.557 3.557 0 0 0-.308.013q-.163.014-.303.044a1.846 1.846 0 0 0-.131.033q-.308.09-.51.345-.149.187-.241.495a2.754 2.754 0 0 0-.06.24q-.065.323-.087.78a10.261 10.261 0 0 0-.01.48v.75h1.725v.75H50.25v6.015a5.685 5.685 0 0 1 1.016.209 4.951 4.951 0 0 1 .424.151v.375h-3.78v-.375q.465-.27.99-.36V4.53h-1.14v-.39q.525-.33 1.14-.495V3.12a6.356 6.356 0 0 1 .029-.627q.031-.309.094-.572a2.984 2.984 0 0 1 .102-.338 2.751 2.751 0 0 1 .231-.483 2.037 2.037 0 0 1 .399-.477q.405-.353.953-.488a4.658 4.658 0 0 1 .791-.122A5.537 5.537 0 0 1 51.885 0q.103 0 .233.009a5.313 5.313 0 0 1 .082.006 11.526 11.526 0 0 1 .278.027 13.044 13.044 0 0 1 .097.011 4.25 4.25 0 0 1 .33.05 3.856 3.856 0 0 1 .045.01 3.503 3.503 0 0 1 .149.034q.09.023.166.048a10.065 10.065 0 0 1-.071.592 8.246 8.246 0 0 1-.057.331q-.082.427-.202.772zM2.67 7.17v3.315a5.235 5.235 0 0 1 .582.097 4.594 4.594 0 0 1 .183.046 7.452 7.452 0 0 1 .494.151 6.402 6.402 0 0 1 .181.066v.435H0v-.435q.3-.15.615-.225a17.379 17.379 0 0 1 .596-.131 15.789 15.789 0 0 1 .019-.004V1.59a4.918 4.918 0 0 1-.453-.1 4.208 4.208 0 0 1-.192-.057q-.3-.098-.585-.218V.78h1.35a13.87 13.87 0 0 0 .708-.019A17.746 17.746 0 0 0 2.655.72 16.503 16.503 0 0 1 3.679.664 14.359 14.359 0 0 1 4.005.66q.735 0 1.44.158a3.719 3.719 0 0 1 .895.319 3.32 3.32 0 0 1 .357.213 2.785 2.785 0 0 1 .842.92 3.264 3.264 0 0 1 .043.078 2.629 2.629 0 0 1 .252.693q.069.311.082.672a4.872 4.872 0 0 1 .004.187q0 .885-.345 1.515-.345.63-.922 1.035a3.914 3.914 0 0 1-1.132.542 4.5 4.5 0 0 1-.181.051q-.735.187-1.515.187h-.232a7.54 7.54 0 0 1-.206-.003 9.21 9.21 0 0 1-.132-.004 7.288 7.288 0 0 1-.262-.016A6.422 6.422 0 0 1 2.91 7.2q-.159-.014-.234-.029a.709.709 0 0 1-.006-.001zm33.285 2.82l.21.24a1.33 1.33 0 0 1-.184.285 1.787 1.787 0 0 1-.191.195 2.647 2.647 0 0 1-.464.326 3.029 3.029 0 0 1-.121.064q-.33.165-.72.263-.39.097-.795.097a4.802 4.802 0 0 1-.784-.061 3.566 3.566 0 0 1-.776-.216 3.016 3.016 0 0 1-.902-.566 2.841 2.841 0 0 1-.223-.229 3.381 3.381 0 0 1-.57-.933 4.036 4.036 0 0 1-.113-.305q-.232-.72-.232-1.62a6.668 6.668 0 0 1 .086-1.111q.191-1.123.799-1.814a2.881 2.881 0 0 1 1.63-.921 4.327 4.327 0 0 1 .875-.084q.525 0 1.035.143.51.142.908.472a2.22 2.22 0 0 1 .457.527 2.854 2.854 0 0 1 .187.351q.21.463.242 1.114a4.919 4.919 0 0 1 .006.243q0 .255-.022.518-.023.262-.083.562h-4.68a4.457 4.457 0 0 0 .073.818 3.856 3.856 0 0 0 .085.36 2.968 2.968 0 0 0 .258.628 2.555 2.555 0 0 0 .214.324q.315.405.795.638a2.272 2.272 0 0 0 .624.193 3.076 3.076 0 0 0 .501.039 3.928 3.928 0 0 0 .964-.123 4.41 4.41 0 0 0 .101-.027q.354-.098.591-.235a1.314 1.314 0 0 0 .219-.155zm6.72-5.085H40.68a.803.803 0 0 0-.099.065q-.103.079-.231.213a3.807 3.807 0 0 0-.083.09 1.65 1.65 0 0 0-.174.239q-.077.125-.148.281a3.969 3.969 0 0 0-.12.297v4.455q.3.03.6.113a2.671 2.671 0 0 1 .45.17 3.108 3.108 0 0 1 .15.077v.375h-3.54v-.375a3.213 3.213 0 0 1 .261-.13 2.357 2.357 0 0 1 .249-.095q.24-.075.48-.135V4.65l-.99-.12v-.39q.48-.21.99-.337.51-.128.975-.203h.375v1.59h.06a2.398 2.398 0 0 1 .187-.337 3.095 3.095 0 0 1 .196-.263q.247-.3.57-.54.322-.24.705-.367a1.815 1.815 0 0 1 .577-.095 1.898 1.898 0 0 1 .21.012q.105.195.188.428a9.079 9.079 0 0 1 .119.361 10.15 10.15 0 0 1 .038.126v.39zm4.05 6v.375h-3.33v-.375q.225-.12.465-.202a6.808 6.808 0 0 1 .301-.096 8.511 8.511 0 0 1 .224-.062V4.65l-.99-.12v-.39a7.084 7.084 0 0 1 .634-.226 8.411 8.411 0 0 1 .311-.089q.51-.135 1.02-.225h.375v6.945q.3.075.54.158.24.082.45.202zM2.67 1.515v4.86a.386.386 0 0 0 .053.017q.057.013.138.019a1.462 1.462 0 0 0 .027.002 6.811 6.811 0 0 1 .212.014 7.943 7.943 0 0 1 .088.008 3.244 3.244 0 0 0 .307.015h.24q.525 0 .99-.142.465-.143.818-.458a2.186 2.186 0 0 0 .463-.593 2.638 2.638 0 0 0 .099-.202 2.374 2.374 0 0 0 .157-.526q.045-.245.052-.524a4.195 4.195 0 0 0 .001-.105q0-.896-.37-1.466a1.84 1.84 0 0 0-.327-.379q-.629-.554-1.689-.609a4.615 4.615 0 0 0-.239-.006 14.952 14.952 0 0 0-.172.001q-.21.002-.364.011a4.65 4.65 0 0 0-.049.003q-.225.015-.435.06zM31.575 6.87h3.3q.015-.135.023-.262a4.267 4.267 0 0 0 .007-.218 3.885 3.885 0 0 0 0-.03q0-.693-.187-1.182a1.963 1.963 0 0 0-.173-.348 1.173 1.173 0 0 0-.852-.55 1.779 1.779 0 0 0-.273-.02 2.016 2.016 0 0 0-.54.068 1.429 1.429 0 0 0-.765.51 1.798 1.798 0 0 0-.243.439q-.235.587-.297 1.593zM44.138.944a1.01 1.01 0 0 0-.038.286 1.098 1.098 0 0 0 .012.163.763.763 0 0 0 .25.475q.263.232.698.232.17 0 .312-.035a.857.857 0 0 0 .378-.197.749.749 0 0 0 .221-.364 1.035 1.035 0 0 0 .034-.274 1.132 1.132 0 0 0-.012-.169.796.796 0 0 0-.243-.476.855.855 0 0 0-.401-.209 1.275 1.275 0 0 0-.289-.031q-.435 0-.697.24a.773.773 0 0 0-.225.359z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};y.defaultProps={width:"53.265",height:"11.46",viewBox:"0 0 53.265 11.46"};var O=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Raleway"),Object(o.createElement)("path",{d:"M35.895 10.515l3.21-7.35h.33L36.03 10.95h-.27l-1.905-4.365-1.905 4.365h-.27l-3.405-7.785h.33l3.21 7.35L33.69 6.21l-1.305-3.03h.315l1.155 2.64 1.155-2.64h.315L34.02 6.21l1.875 4.305zM.3 10.95H0V.3h4.335q.645 0 1.2.277.555.278.953.736.397.457.622 1.035.225.577.225 1.177 0 .615-.195 1.185a3.276 3.276 0 0 1-.511.957 3.121 3.121 0 0 1-.044.056q-.36.442-.862.72-.503.277-1.103.322l2.7 4.185h-.36l-2.7-4.185H.3v4.185zm48.9 3.345v-.3q.195 0 .351-.013a2.641 2.641 0 0 0 .092-.009.592.592 0 0 0 .098-.02q.053-.016.093-.041a.254.254 0 0 0 .071-.067.256.256 0 0 0 .025-.03q.024-.033.053-.087a1.492 1.492 0 0 0 .027-.056 7.26 7.26 0 0 0 .035-.075q.053-.115.139-.312a56.781 56.781 0 0 0 .021-.048l.375-.855.549-1.249a1517.411 1517.411 0 0 1 .081-.183l-3.615-7.785h.33l3.435 7.41 3.255-7.41h.33L50.31 13.74a1.181 1.181 0 0 1-.126.214q-.094.126-.213.198a.642.642 0 0 1-.156.068q-.3.075-.615.075zm-21.615-7.23v.165H20.46q.06.75.353 1.403a3.98 3.98 0 0 0 .589.946 3.676 3.676 0 0 0 .168.186q.465.48 1.073.757.607.278 1.282.278.45 0 .878-.12.427-.12.802-.337.375-.218.66-.518.285-.3.45-.66L27 9.24q-.165.405-.472.743-.308.337-.721.584a3.823 3.823 0 0 1-.884.386 4.228 4.228 0 0 1-.015.005q-.488.142-.998.142-.765 0-1.447-.322-.683-.323-1.193-.885a4.345 4.345 0 0 1-.805-1.294 4.913 4.913 0 0 1-.005-.012q-.3-.742-.3-1.582 0-.825.285-1.545t.787-1.26q.503-.54 1.171-.848.667-.307 1.432-.307.78 0 1.463.315.682.315 1.184.855a4.093 4.093 0 0 1 .725 1.094 4.712 4.712 0 0 1 .078.181q.3.735.3 1.575zm-13.14-.135v-.885q0-.6-.18-1.102a2.496 2.496 0 0 0-.304-.595 2.211 2.211 0 0 0-.213-.26q-.338-.353-.81-.548a2.595 2.595 0 0 0-.764-.183 3.133 3.133 0 0 0-.279-.012 2.997 2.997 0 0 0-.665.078 4.035 4.035 0 0 0-.55.17 5.484 5.484 0 0 0-.771.37 6.956 6.956 0 0 0-.534.342l-.18-.24a7.87 7.87 0 0 1 .908-.538q.484-.241.932-.361a3.309 3.309 0 0 1 .86-.121 3.439 3.439 0 0 1 .726.074 2.886 2.886 0 0 1 .452.136q.532.21.9.6a2.63 2.63 0 0 1 .48.726 3.142 3.142 0 0 1 .09.219 3.31 3.31 0 0 1 .174.746 4.227 4.227 0 0 1 .028.499v4.305q0 .273.199.298a.336.336 0 0 0 .041.002v.3a1.414 1.414 0 0 1-.066-.001q-.109-.006-.144-.029a.461.461 0 0 1-.203-.161.603.603 0 0 1-.037-.056.689.689 0 0 1-.089-.317.823.823 0 0 1-.001-.036v-.72a3.491 3.491 0 0 1-1.276 1.026 4.133 4.133 0 0 1-.134.062 4.59 4.59 0 0 1-1.699.379 5.331 5.331 0 0 1-.191.003q-.525 0-.99-.187a2.565 2.565 0 0 1-.637-.367 2.354 2.354 0 0 1-.166-.143q-.337-.323-.532-.758t-.195-.93a1.818 1.818 0 0 1 .125-.678 1.729 1.729 0 0 1 .108-.222 2.055 2.055 0 0 1 .482-.564 2.492 2.492 0 0 1 .177-.133 3.074 3.074 0 0 1 .564-.302 4.011 4.011 0 0 1 .457-.156 4.468 4.468 0 0 1 .784-.142 5.519 5.519 0 0 1 .513-.023q.675 0 1.365.112a7.208 7.208 0 0 1 .724.155 5.632 5.632 0 0 1 .521.168zm31.575 0v-.885q0-.6-.18-1.102a2.496 2.496 0 0 0-.304-.595 2.211 2.211 0 0 0-.213-.26q-.338-.353-.81-.548a2.595 2.595 0 0 0-.764-.183 3.133 3.133 0 0 0-.279-.012 2.997 2.997 0 0 0-.665.078 4.035 4.035 0 0 0-.55.17 5.484 5.484 0 0 0-.771.37 6.956 6.956 0 0 0-.534.342l-.18-.24a7.87 7.87 0 0 1 .908-.538q.484-.241.932-.361a3.309 3.309 0 0 1 .86-.121 3.439 3.439 0 0 1 .726.074 2.886 2.886 0 0 1 .452.136q.532.21.9.6a2.63 2.63 0 0 1 .48.726 3.142 3.142 0 0 1 .09.219 3.31 3.31 0 0 1 .174.746 4.227 4.227 0 0 1 .028.499v4.305q0 .273.199.298a.336.336 0 0 0 .041.002v.3a1.414 1.414 0 0 1-.066-.001q-.109-.006-.144-.029a.461.461 0 0 1-.203-.161.603.603 0 0 1-.037-.056.689.689 0 0 1-.089-.317.823.823 0 0 1-.001-.036v-.72a3.491 3.491 0 0 1-1.276 1.026 4.133 4.133 0 0 1-.134.062 4.59 4.59 0 0 1-1.699.379 5.331 5.331 0 0 1-.191.003q-.525 0-.99-.187a2.565 2.565 0 0 1-.637-.367 2.354 2.354 0 0 1-.166-.143q-.337-.323-.532-.758t-.195-.93a1.818 1.818 0 0 1 .125-.678 1.729 1.729 0 0 1 .108-.222 2.055 2.055 0 0 1 .482-.564 2.492 2.492 0 0 1 .177-.133 3.074 3.074 0 0 1 .564-.302 4.011 4.011 0 0 1 .457-.156 4.468 4.468 0 0 1 .784-.142 5.519 5.519 0 0 1 .513-.023q.675 0 1.365.112a7.208 7.208 0 0 1 .724.155 5.632 5.632 0 0 1 .521.168zM17.25 9.795V0h.3v9.795a1.13 1.13 0 0 0 .038.301.826.826 0 0 0 .232.389.911.911 0 0 0 .45.229 1.323 1.323 0 0 0 .27.026q.126 0 .29-.022a3.771 3.771 0 0 0 .107-.016q.233-.037.428-.097l.105.24q-.161.057-.379.102a4.537 4.537 0 0 1-.139.025 4.567 4.567 0 0 1-.208.031q-.174.022-.309.022a1.329 1.329 0 0 1-.405-.059 1.078 1.078 0 0 1-.45-.278 1.136 1.136 0 0 1-.307-.614 1.609 1.609 0 0 1-.023-.279zM.3.6v5.865h4.14a2.425 2.425 0 0 0 .668-.089 2.108 2.108 0 0 0 .412-.166 2.652 2.652 0 0 0 .818-.668q.337-.412.517-.937.18-.525.18-1.08 0-.57-.21-1.095t-.577-.93q-.368-.405-.863-.652Q4.89.6 4.335.6H.3zm20.16 6.33h6.81a4.369 4.369 0 0 0-.189-1.059 3.911 3.911 0 0 0-.141-.381q-.285-.66-.743-1.132-.457-.473-1.057-.743-.6-.27-1.29-.27-.69 0-1.29.27-.6.27-1.058.75a3.57 3.57 0 0 0-.666.998 4.118 4.118 0 0 0-.061.142 4.359 4.359 0 0 0-.3 1.235 4.979 4.979 0 0 0-.015.19zm-6.015 1.875V7.26a6.97 6.97 0 0 0-2.089-.449 8.212 8.212 0 0 0-.521-.016 5.588 5.588 0 0 0-.628.034 4.234 4.234 0 0 0-.564.101q-.533.135-.915.39-.383.255-.593.607a1.503 1.503 0 0 0-.21.758 1.784 1.784 0 0 0 0 .03q0 .435.172.817.173.383.473.668.3.285.705.443a2.354 2.354 0 0 0 .783.156 2.697 2.697 0 0 0 .087.001 4.687 4.687 0 0 0 1.189-.146 4.098 4.098 0 0 0 .648-.229 3.389 3.389 0 0 0 .626-.361 2.445 2.445 0 0 0 .612-.644 1.405 1.405 0 0 0 .137-.234q.088-.193.088-.381zm31.575 0V7.26a6.97 6.97 0 0 0-2.089-.449 8.212 8.212 0 0 0-.521-.016 5.588 5.588 0 0 0-.628.034 4.234 4.234 0 0 0-.564.101q-.533.135-.915.39-.383.255-.593.607a1.503 1.503 0 0 0-.21.758 1.784 1.784 0 0 0 0 .03q0 .435.173.817.172.383.472.668.3.285.705.443a2.354 2.354 0 0 0 .783.156 2.697 2.697 0 0 0 .087.001 4.687 4.687 0 0 0 1.189-.146 4.098 4.098 0 0 0 .648-.229 3.389 3.389 0 0 0 .626-.361 2.445 2.445 0 0 0 .612-.644 1.405 1.405 0 0 0 .137-.234q.088-.193.088-.381z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};O.defaultProps={width:"54.945",height:"14.295",viewBox:"0 0 54.945 14.295"};var q=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Roboto"),Object(o.createElement)("path",{d:"M6.929 11.25L4.094 6.687H.396v4.563H0V.586h3.398a5.034 5.034 0 0 1 1.063.106q.688.148 1.21.505a2.998 2.998 0 0 1 .28.217 2.719 2.719 0 0 1 .923 1.798 3.855 3.855 0 0 1 .025.45 2.898 2.898 0 0 1-.677 1.908q-.678.817-1.725 1.014l2.849 4.563v.103h-.417zm17.029-4.014v.125a6.975 6.975 0 0 1-.095 1.184q-.18 1.044-.704 1.76a2.638 2.638 0 0 1-.909.801q-.513.268-1.156.289a3.389 3.389 0 0 1-.11.001 3.697 3.697 0 0 1-.92-.11 3.1 3.1 0 0 1-.677-.259 2.792 2.792 0 0 1-1.106-1.029v1.252h-.395V0h.395v4.768a3.223 3.223 0 0 1 .519-.725 2.722 2.722 0 0 1 .584-.461 2.916 2.916 0 0 1 1.142-.377 3.694 3.694 0 0 1 .443-.026 2.912 2.912 0 0 1 1.033.176 2.557 2.557 0 0 1 1.157.889q.632.844.764 2.228a8.084 8.084 0 0 1 .035.764zm10.891-6.049h.402v2.138h1.802v.403h-1.802v5.625a4.122 4.122 0 0 0 .022.439q.049.45.204.727a1.067 1.067 0 0 0 .049.079q.255.374.83.401a1.941 1.941 0 0 0 .089.002 3.983 3.983 0 0 0 .262-.009q.142-.01.305-.029a8.473 8.473 0 0 0 .217-.028l.066.374q-.242.087-.828.087a2.454 2.454 0 0 1-.447-.037q-.249-.047-.44-.149a1.092 1.092 0 0 1-.351-.293 1.482 1.482 0 0 1-.221-.416q-.139-.392-.157-.967a5.475 5.475 0 0 1-.002-.13V3.728h-1.465v-.403h1.465V1.187zM9.045 7.485v-.351a5.08 5.08 0 0 1 .134-1.189 4.229 4.229 0 0 1 .302-.851 3.475 3.475 0 0 1 .737-1.025 3.246 3.246 0 0 1 .494-.385 3.252 3.252 0 0 1 1.673-.503 3.909 3.909 0 0 1 .125-.002 3.463 3.463 0 0 1 1.192.201 3.2 3.2 0 0 1 .595.289 3.268 3.268 0 0 1 1.146 1.223 3.967 3.967 0 0 1 .088.169 4.398 4.398 0 0 1 .419 1.478 5.418 5.418 0 0 1 .031.551v.351a5.179 5.179 0 0 1-.122 1.146 4.225 4.225 0 0 1-.31.898 3.434 3.434 0 0 1-.765 1.052 3.248 3.248 0 0 1-.461.354 3.252 3.252 0 0 1-1.674.504 3.909 3.909 0 0 1-.125.001 3.457 3.457 0 0 1-1.2-.204 3.197 3.197 0 0 1-.598-.294 3.309 3.309 0 0 1-1.177-1.284 3.962 3.962 0 0 1-.057-.111 4.393 4.393 0 0 1-.416-1.471 5.398 5.398 0 0 1-.031-.547zm16.465 0v-.351a5.08 5.08 0 0 1 .134-1.189 4.229 4.229 0 0 1 .302-.851 3.475 3.475 0 0 1 .737-1.025 3.246 3.246 0 0 1 .494-.385 3.252 3.252 0 0 1 1.673-.503 3.909 3.909 0 0 1 .125-.002 3.463 3.463 0 0 1 1.192.201 3.2 3.2 0 0 1 .595.289 3.268 3.268 0 0 1 1.146 1.223 3.967 3.967 0 0 1 .088.169 4.398 4.398 0 0 1 .419 1.478 5.418 5.418 0 0 1 .031.551v.351a5.179 5.179 0 0 1-.122 1.146 4.225 4.225 0 0 1-.31.898 3.434 3.434 0 0 1-.765 1.052 3.248 3.248 0 0 1-.462.354 3.252 3.252 0 0 1-1.673.504 3.909 3.909 0 0 1-.125.001 3.457 3.457 0 0 1-1.2-.204 3.197 3.197 0 0 1-.598-.294 3.309 3.309 0 0 1-1.178-1.284 3.962 3.962 0 0 1-.056-.111 4.393 4.393 0 0 1-.416-1.471 5.398 5.398 0 0 1-.031-.547zm12.854 0v-.351a5.08 5.08 0 0 1 .134-1.189 4.229 4.229 0 0 1 .302-.851 3.475 3.475 0 0 1 .737-1.025 3.246 3.246 0 0 1 .494-.385 3.252 3.252 0 0 1 1.673-.503 3.909 3.909 0 0 1 .125-.002 3.463 3.463 0 0 1 1.192.201 3.2 3.2 0 0 1 .595.289 3.268 3.268 0 0 1 1.146 1.223 3.967 3.967 0 0 1 .088.169 4.398 4.398 0 0 1 .419 1.478 5.418 5.418 0 0 1 .031.551v.351a5.179 5.179 0 0 1-.122 1.146 4.225 4.225 0 0 1-.31.898 3.434 3.434 0 0 1-.765 1.052 3.248 3.248 0 0 1-.462.354 3.252 3.252 0 0 1-1.673.504 3.909 3.909 0 0 1-.125.001 3.457 3.457 0 0 1-1.2-.204 3.197 3.197 0 0 1-.598-.294 3.309 3.309 0 0 1-1.178-1.284 3.962 3.962 0 0 1-.056-.111 4.393 4.393 0 0 1-.416-1.471 5.398 5.398 0 0 1-.031-.547zM9.441 7.207v.234a4.34 4.34 0 0 0 .181 1.268 3.919 3.919 0 0 0 .211.545q.392.824 1.091 1.286a2.802 2.802 0 0 0 1.433.457 3.412 3.412 0 0 0 .167.004 2.929 2.929 0 0 0 1.16-.224 2.788 2.788 0 0 0 1.049-.794 3.57 3.57 0 0 0 .757-1.611 5.064 5.064 0 0 0 .096-1.011v-.227q0-.974-.396-1.802a3.339 3.339 0 0 0-.572-.85 2.956 2.956 0 0 0-.523-.443 2.793 2.793 0 0 0-1.558-.465 3.359 3.359 0 0 0-.027 0 2.886 2.886 0 0 0-1.196.243 2.816 2.816 0 0 0-1.016.79 3.67 3.67 0 0 0-.793 1.783 5.02 5.02 0 0 0-.064.817zm16.465 0v.234a4.34 4.34 0 0 0 .181 1.268 3.919 3.919 0 0 0 .211.545q.391.824 1.091 1.286a2.802 2.802 0 0 0 1.433.457 3.412 3.412 0 0 0 .167.004 2.929 2.929 0 0 0 1.16-.224 2.788 2.788 0 0 0 1.049-.794 3.57 3.57 0 0 0 .756-1.611 5.064 5.064 0 0 0 .097-1.011v-.227q0-.974-.396-1.802a3.339 3.339 0 0 0-.572-.85 2.956 2.956 0 0 0-.523-.443 2.793 2.793 0 0 0-1.558-.465 3.359 3.359 0 0 0-.027 0 2.886 2.886 0 0 0-1.196.243 2.816 2.816 0 0 0-1.016.79 3.67 3.67 0 0 0-.793 1.783 5.02 5.02 0 0 0-.064.817zm12.854 0v.234a4.34 4.34 0 0 0 .181 1.268 3.919 3.919 0 0 0 .211.545q.391.824 1.091 1.286a2.802 2.802 0 0 0 1.433.457 3.412 3.412 0 0 0 .167.004 2.929 2.929 0 0 0 1.16-.224 2.788 2.788 0 0 0 1.049-.794 3.57 3.57 0 0 0 .756-1.611 5.064 5.064 0 0 0 .097-1.011v-.227q0-.974-.396-1.802a3.339 3.339 0 0 0-.572-.85 2.956 2.956 0 0 0-.523-.443 2.793 2.793 0 0 0-1.558-.465 3.359 3.359 0 0 0-.027 0 2.886 2.886 0 0 0-1.196.243 2.816 2.816 0 0 0-1.016.79 3.67 3.67 0 0 0-.793 1.783 5.02 5.02 0 0 0-.064.817zM18.281 5.61v3.633a2.792 2.792 0 0 0 .458.806 2.485 2.485 0 0 0 .549.494 2.688 2.688 0 0 0 .962.388 3.744 3.744 0 0 0 .741.07 2.443 2.443 0 0 0 .871-.149q.613-.232 1.019-.825a3.295 3.295 0 0 0 .419-.894q.131-.426.193-.943a8.326 8.326 0 0 0 .054-.983 7.006 7.006 0 0 0-.066-.994q-.145-1.013-.611-1.676-.678-.963-1.893-.963a3.216 3.216 0 0 0-.827.102 2.516 2.516 0 0 0-.862.411 2.561 2.561 0 0 0-.703.81 3.643 3.643 0 0 0-.304.713zM.396.981v5.311h3.361a3.3 3.3 0 0 0 .89-.114 2.494 2.494 0 0 0 1.099-.634 2.512 2.512 0 0 0 .756-1.776 3.321 3.321 0 0 0 .002-.106 2.979 2.979 0 0 0-.118-.86 2.292 2.292 0 0 0-.721-1.103 2.825 2.825 0 0 0-1.1-.57q-.417-.115-.912-.14a5.558 5.558 0 0 0-.284-.008H.396z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};q.defaultProps={width:"45.3",height:"11.397",viewBox:"0 0 45.3 11.397"};var j=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Roboto Condensed"),Object(o.createElement)("path",{d:"M50.757 7.925h.849a6.507 6.507 0 0 1-.134.981q-.113.51-.309.912a2.695 2.695 0 0 1-.523.74 2.8 2.8 0 0 1-1.317.721q-.442.11-.964.117a5.294 5.294 0 0 1-.07 0 3.281 3.281 0 0 1-1.148-.192 2.859 2.859 0 0 1-1.291-.976 4.064 4.064 0 0 1-.669-1.365q-.164-.574-.212-1.258a8.293 8.293 0 0 1-.02-.552V4.739a7.207 7.207 0 0 1 .098-1.228q.119-.687.382-1.237a3.594 3.594 0 0 1 .432-.692Q46.772.439 48.354.439a4.174 4.174 0 0 1 .943.101q.676.156 1.159.558a2.56 2.56 0 0 1 .213.198 2.904 2.904 0 0 1 .581.921q.17.415.263.93a6.973 6.973 0 0 1 .093.779h-.849a6.517 6.517 0 0 0-.1-.741q-.175-.882-.585-1.332a1.783 1.783 0 0 0-.795-.495q-.401-.128-.923-.128a2.593 2.593 0 0 0-.846.132 2.144 2.144 0 0 0-1.036.769q-.674.901-.674 2.615v2.285q0 1.699.652 2.644a2.153 2.153 0 0 0 .757.694q.411.22.931.247a2.855 2.855 0 0 0 .151.004 3.941 3.941 0 0 0 .645-.049q.343-.057.612-.18a1.623 1.623 0 0 0 .544-.393 2.013 2.013 0 0 0 .337-.54q.224-.513.307-1.286a7.75 7.75 0 0 0 .023-.247zM5.471 11.25L3.333 6.812H.842v4.438H0V.586h2.922q1.271 0 2.043.631a2.499 2.499 0 0 1 .217.2 2.74 2.74 0 0 1 .675 1.235q.127.487.127 1.076a3.624 3.624 0 0 1-.137 1.012 3.063 3.063 0 0 1-.361.801 2.587 2.587 0 0 1-1.34 1.08l2.219 4.534v.095h-.894zm55.408-7.925h.776l.022 1.26q.352-.645.897-1.025.546-.381 1.242-.381 2.073 0 2.124 2.761v5.31h-.806V6.028q-.007-1.062-.373-1.568-.366-.505-1.15-.505a1.59 1.59 0 0 0-1.017.367 2.106 2.106 0 0 0-.129.113 2.585 2.585 0 0 0-.484.631q-.158.285-.273.634a4.439 4.439 0 0 0-.016.05v5.5h-.813V3.325zm21.401 0h.777l.022 1.26q.351-.645.897-1.025.545-.381 1.241-.381 2.073 0 2.124 2.761v5.31h-.805V6.028q-.008-1.062-.374-1.568-.366-.505-1.15-.505a1.59 1.59 0 0 0-1.017.367 2.106 2.106 0 0 0-.129.113 2.585 2.585 0 0 0-.483.631q-.159.285-.274.634a4.439 4.439 0 0 0-.016.05v5.5h-.813V3.325zM94.241 5.5h-.813a1.614 1.614 0 0 0-.102-.581 1.461 1.461 0 0 0-.36-.535 1.566 1.566 0 0 0-.869-.419 2.177 2.177 0 0 0-.332-.025 2.279 2.279 0 0 0-.468.046q-.398.083-.671.321a1.188 1.188 0 0 0-.418.862 1.562 1.562 0 0 0-.003.09 1.144 1.144 0 0 0 .061.38.976.976 0 0 0 .261.396q.323.3 1.392.813a19.141 19.141 0 0 1 .51.231q.46.218.752.394a3.054 3.054 0 0 1 .261.173 2.6 2.6 0 0 1 .357.322 1.985 1.985 0 0 1 .273.378 1.668 1.668 0 0 1 .18.522 2.251 2.251 0 0 1 .033.39 2.285 2.285 0 0 1-.104.705 1.85 1.85 0 0 1-.577.855 2.353 2.353 0 0 1-1.006.494q-.351.082-.762.084a4.255 4.255 0 0 1-.027 0 3.524 3.524 0 0 1-.821-.09 2.483 2.483 0 0 1-1.087-.554q-.729-.645-.729-1.663h.821a2.027 2.027 0 0 0 .08.489 1.404 1.404 0 0 0 .414.658q.458.406 1.322.406a2.485 2.485 0 0 0 .499-.047q.315-.065.559-.217a1.46 1.46 0 0 0 .143-.102 1.172 1.172 0 0 0 .45-.853 1.535 1.535 0 0 0 .004-.121 1.137 1.137 0 0 0-.308-.78 1.585 1.585 0 0 0-.116-.117q-.425-.385-1.44-.843-1.014-.458-1.417-.761a2.495 2.495 0 0 1-.312-.277q-.174-.184-.281-.386a1.594 1.594 0 0 1-.159-.473 2.162 2.162 0 0 1-.032-.377 2.075 2.075 0 0 1 .16-.824 1.969 1.969 0 0 1 .5-.688q.659-.597 1.706-.597a3.239 3.239 0 0 1 .767.086 2.25 2.25 0 0 1 1.035.551 2.122 2.122 0 0 1 .654 1.337 2.954 2.954 0 0 1 .02.347zM20.859 6.782v.879a8.418 8.418 0 0 1-.056 1.01q-.062.509-.191.925a3.21 3.21 0 0 1-.393.848 2.069 2.069 0 0 1-1.51.927 2.999 2.999 0 0 1-.398.025 2.535 2.535 0 0 1-.921-.159q-.633-.245-1.04-.864a2.954 2.954 0 0 1-.112-.185l-.037 1.062h-.754V0h.805v4.431q.624-1.172 1.87-1.247a2.884 2.884 0 0 1 .174-.005 2.873 2.873 0 0 1 .771.097 2.003 2.003 0 0 1 1.141.807q.617.887.65 2.629a10.249 10.249 0 0 1 .001.07zm46.949.96v-.821q0-1.86.651-2.801.652-.941 1.934-.941 1.348 0 2.014 1.208V0h.813v11.25h-.762l-.036-1.018q-.597 1.043-1.757 1.152a2.979 2.979 0 0 1-.279.012 2.617 2.617 0 0 1-.823-.122 2.087 2.087 0 0 1-1.085-.83 3.313 3.313 0 0 1-.427-.905q-.235-.758-.243-1.797zm34.958 0v-.821q0-1.86.652-2.801.652-.941 1.934-.941 1.347 0 2.014 1.208V0h.813v11.25h-.762l-.037-1.018q-.596 1.043-1.757 1.152a2.979 2.979 0 0 1-.279.012 2.617 2.617 0 0 1-.823-.122 2.087 2.087 0 0 1-1.085-.83 3.313 3.313 0 0 1-.427-.905q-.234-.758-.243-1.797zm-27.729.132v-.967q0-1.743.761-2.736a2.442 2.442 0 0 1 1.771-.977 3.314 3.314 0 0 1 .324-.015 3.139 3.139 0 0 1 .81.098 2.157 2.157 0 0 1 1.157.744 2.664 2.664 0 0 1 .428.794q.254.724.264 1.776a8.788 8.788 0 0 1 0 .008v.762h-4.71v.447a5.145 5.145 0 0 0 .057.79q.066.425.21.768a2.324 2.324 0 0 0 .316.544 1.895 1.895 0 0 0 1.324.721 2.752 2.752 0 0 0 .32.018 2.602 2.602 0 0 0 .94-.164 2.345 2.345 0 0 0 .957-.693l.425.542a2.509 2.509 0 0 1-1.613.995 3.916 3.916 0 0 1-.746.067 3.43 3.43 0 0 1-.945-.123 2.528 2.528 0 0 1-1.245-.792q-.657-.761-.778-2.057a6.516 6.516 0 0 1-.027-.55zm20.778 0v-.967q0-1.743.762-2.736a2.442 2.442 0 0 1 1.771-.977 3.314 3.314 0 0 1 .324-.015 3.139 3.139 0 0 1 .81.098 2.157 2.157 0 0 1 1.156.744 2.664 2.664 0 0 1 .429.794q.254.724.263 1.776a8.788 8.788 0 0 1 .001.008v.762h-4.71v.447a5.145 5.145 0 0 0 .057.79q.066.425.209.768a2.324 2.324 0 0 0 .316.544 1.895 1.895 0 0 0 1.324.721 2.752 2.752 0 0 0 .321.018 2.602 2.602 0 0 0 .94-.164 2.345 2.345 0 0 0 .957-.693l.424.542a2.509 2.509 0 0 1-1.612.995 3.916 3.916 0 0 1-.746.067 3.43 3.43 0 0 1-.945-.123 2.528 2.528 0 0 1-1.245-.792q-.657-.761-.778-2.057a6.516 6.516 0 0 1-.028-.55zm-65.302-6.57h.813v2.021h1.355v.733h-1.355v5.266q0 .652.194.97a.637.637 0 0 0 .437.299 1.051 1.051 0 0 0 .211.02q.164 0 .461-.051a7.463 7.463 0 0 0 .125-.022l.022.732a1.165 1.165 0 0 1-.214.07q-.239.054-.584.054a1.456 1.456 0 0 1-.694-.155q-.594-.316-.731-1.276a4.333 4.333 0 0 1-.04-.531V4.058H29.29v-.733h1.223V1.304zM7.778 7.822v-.937q0-1.292.441-2.176a3.163 3.163 0 0 1 .336-.534 2.491 2.491 0 0 1 1.82-.984 3.366 3.366 0 0 1 .296-.012 2.971 2.971 0 0 1 .966.149 2.461 2.461 0 0 1 1.155.832 3.355 3.355 0 0 1 .569 1.124q.142.475.189 1.043a6.954 6.954 0 0 1 .022.536v.842q0 1.249-.401 2.103a3.047 3.047 0 0 1-.379.614 2.509 2.509 0 0 1-1.822.963 3.38 3.38 0 0 1-.284.011 2.973 2.973 0 0 1-.969-.151 2.479 2.479 0 0 1-1.133-.801q-.667-.818-.783-2.166a6.722 6.722 0 0 1-.023-.456zm14.656 0v-.937q0-1.292.441-2.176a3.163 3.163 0 0 1 .335-.534 2.491 2.491 0 0 1 1.821-.984 3.366 3.366 0 0 1 .296-.012 2.971 2.971 0 0 1 .965.149 2.461 2.461 0 0 1 1.156.832 3.355 3.355 0 0 1 .568 1.124q.143.475.189 1.043a6.954 6.954 0 0 1 .023.536v.842q0 1.249-.401 2.103a3.047 3.047 0 0 1-.379.614 2.509 2.509 0 0 1-1.823.963 3.38 3.38 0 0 1-.283.011 2.973 2.973 0 0 1-.969-.151 2.479 2.479 0 0 1-1.133-.801q-.667-.818-.783-2.166a6.722 6.722 0 0 1-.023-.456zm11.565 0v-.937q0-1.292.441-2.176a3.163 3.163 0 0 1 .335-.534 2.491 2.491 0 0 1 1.821-.984 3.366 3.366 0 0 1 .296-.012 2.971 2.971 0 0 1 .965.149 2.461 2.461 0 0 1 1.155.832 3.355 3.355 0 0 1 .569 1.124q.143.475.189 1.043a6.954 6.954 0 0 1 .022.536v.842q0 1.249-.4 2.103a3.047 3.047 0 0 1-.38.614 2.509 2.509 0 0 1-1.822.963 3.38 3.38 0 0 1-.283.011 2.973 2.973 0 0 1-.969-.151 2.479 2.479 0 0 1-1.133-.801q-.668-.818-.783-2.166a6.722 6.722 0 0 1-.023-.456zm19.211 0v-.937q0-1.292.441-2.176a3.163 3.163 0 0 1 .336-.534 2.491 2.491 0 0 1 1.82-.984 3.366 3.366 0 0 1 .297-.012 2.971 2.971 0 0 1 .965.149 2.461 2.461 0 0 1 1.155.832 3.355 3.355 0 0 1 .569 1.124q.142.475.189 1.043a6.954 6.954 0 0 1 .022.536v.842q0 1.249-.401 2.103a3.047 3.047 0 0 1-.379.614 2.509 2.509 0 0 1-1.822.963 3.38 3.38 0 0 1-.284.011 2.973 2.973 0 0 1-.969-.151 2.479 2.479 0 0 1-1.133-.801q-.667-.818-.783-2.166a6.722 6.722 0 0 1-.023-.456zM8.599 6.826v.879q0 1.37.553 2.153.52.739 1.421.781a2.368 2.368 0 0 0 .113.003q1.003 0 1.534-.754a2.577 2.577 0 0 0 .345-.721q.189-.605.194-1.44v-.842a5.469 5.469 0 0 0-.06-.836q-.069-.446-.218-.808a2.582 2.582 0 0 0-.279-.513 1.869 1.869 0 0 0-.59-.552q-.37-.213-.842-.234a2.334 2.334 0 0 0-.099-.002 1.86 1.86 0 0 0-.776.158q-.388.176-.677.547a2.294 2.294 0 0 0-.048.064 2.717 2.717 0 0 0-.393.816q-.17.564-.178 1.301zm14.655 0v.879q0 1.37.553 2.153.521.739 1.422.781a2.368 2.368 0 0 0 .113.003q1.003 0 1.534-.754a2.577 2.577 0 0 0 .345-.721q.189-.605.194-1.44v-.842a5.469 5.469 0 0 0-.06-.836q-.069-.446-.218-.808a2.582 2.582 0 0 0-.279-.513 1.869 1.869 0 0 0-.59-.552q-.37-.213-.842-.234a2.334 2.334 0 0 0-.099-.002 1.86 1.86 0 0 0-.776.158q-.388.176-.677.547a2.294 2.294 0 0 0-.048.064 2.717 2.717 0 0 0-.393.816q-.171.564-.179 1.301zm11.565 0v.879q0 1.37.553 2.153.521.739 1.422.781a2.368 2.368 0 0 0 .113.003q1.003 0 1.534-.754a2.577 2.577 0 0 0 .345-.721q.189-.605.193-1.44v-.842a5.469 5.469 0 0 0-.059-.836q-.069-.446-.218-.808a2.582 2.582 0 0 0-.279-.513 1.869 1.869 0 0 0-.59-.552q-.37-.213-.842-.234a2.334 2.334 0 0 0-.099-.002 1.86 1.86 0 0 0-.776.158q-.388.176-.677.547a2.294 2.294 0 0 0-.048.064 2.717 2.717 0 0 0-.394.816q-.17.564-.178 1.301zm19.212 0v.879q0 1.37.553 2.153.521.739 1.422.781a2.368 2.368 0 0 0 .112.003q1.004 0 1.535-.754a2.577 2.577 0 0 0 .345-.721q.189-.605.193-1.44v-.842a5.469 5.469 0 0 0-.06-.836q-.069-.446-.218-.808a2.582 2.582 0 0 0-.279-.513 1.869 1.869 0 0 0-.59-.552q-.37-.213-.842-.234a2.334 2.334 0 0 0-.098-.002 1.86 1.86 0 0 0-.777.158q-.388.176-.677.547a2.294 2.294 0 0 0-.048.064 2.717 2.717 0 0 0-.393.816q-.17.564-.178 1.301zm-33.985.886v-.791q0-1.508-.446-2.233A1.467 1.467 0 0 0 18.567 4a2.377 2.377 0 0 0-.432-.038 1.955 1.955 0 0 0-.88.191q-.668.331-1.003 1.238v3.925a2.348 2.348 0 0 0 .305.549 1.924 1.924 0 0 0 .428.415q.483.34 1.164.34a2.109 2.109 0 0 0 .578-.074 1.464 1.464 0 0 0 .854-.633 2.314 2.314 0 0 0 .257-.563q.204-.645.208-1.638zm48.589-.842v.791a8.066 8.066 0 0 0 .036.791q.079.794.329 1.286a1.927 1.927 0 0 0 .093.164 1.5 1.5 0 0 0 1.085.691 2.371 2.371 0 0 0 .369.027 2.079 2.079 0 0 0 .86-.171q.484-.217.809-.709a2.773 2.773 0 0 0 .191-.343V5.288a2.619 2.619 0 0 0-.38-.656q-.537-.659-1.444-.669a2.539 2.539 0 0 0-.029-.001q-.996 0-1.454.711-.457.71-.465 2.197zm34.959 0v.791a8.066 8.066 0 0 0 .036.791q.078.794.328 1.286a1.927 1.927 0 0 0 .094.164 1.5 1.5 0 0 0 1.085.691 2.371 2.371 0 0 0 .368.027 2.079 2.079 0 0 0 .861-.171q.483-.217.808-.709a2.773 2.773 0 0 0 .192-.343V5.288a2.619 2.619 0 0 0-.381-.656q-.537-.659-1.443-.669a2.539 2.539 0 0 0-.029-.001q-.996 0-1.454.711-.458.71-.465 2.197zM.842 1.377v4.658h2.227a2.226 2.226 0 0 0 .692-.103 1.808 1.808 0 0 0 .817-.545 2.26 2.26 0 0 0 .519-1.119 3.138 3.138 0 0 0 .045-.54 3.452 3.452 0 0 0-.063-.681q-.083-.411-.275-.728a1.877 1.877 0 0 0-.248-.327q-.586-.615-1.641-.615H.842zM75.85 6.599h3.889v-.212a4.939 4.939 0 0 0-.095-.892q-.317-1.511-1.673-1.553a2.529 2.529 0 0 0-.078-.002 2.165 2.165 0 0 0-.632.088 1.637 1.637 0 0 0-.844.59 2.36 2.36 0 0 0-.342.653q-.11.311-.167.692a5.791 5.791 0 0 0-.058.636zm20.778 0h3.89v-.212a4.939 4.939 0 0 0-.095-.892q-.318-1.511-1.673-1.553a2.529 2.529 0 0 0-.078-.002 2.165 2.165 0 0 0-.633.088 1.637 1.637 0 0 0-.843.59 2.36 2.36 0 0 0-.342.653q-.11.311-.167.692a5.791 5.791 0 0 0-.059.636z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};j.defaultProps={width:"108.179",height:"11.397",viewBox:"0 0 108.179 11.397"};var k=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Roboto Slab"),Object(o.createElement)("path",{d:"M59.414 2.263V3.94h-.395V2.446a2.978 2.978 0 0 0-1.257-1.076 3.791 3.791 0 0 0-.947-.291q-.429-.076-.917-.076a5.25 5.25 0 0 0-.925.077q-.815.146-1.371.572a2.501 2.501 0 0 0-.479.473 1.753 1.753 0 0 0-.367 1.083 1.891 1.891 0 0 0 .595 1.413 2.368 2.368 0 0 0 .105.096 2.89 2.89 0 0 0 .483.327q.731.405 2.047.742a12.906 12.906 0 0 1 1.023.313q.998.355 1.613.803a3.782 3.782 0 0 1 .041.03 2.194 2.194 0 0 1 .89 1.611 3.147 3.147 0 0 1 .015.312 2.484 2.484 0 0 1-.194.998q-.254.585-.839.998a3.872 3.872 0 0 1-1.452.617 5.489 5.489 0 0 1-1.133.112 5.42 5.42 0 0 1-2.055-.4 3.853 3.853 0 0 1-1.637-1.248V8.174h.396v1.589q.571.747 1.457 1.084a5.131 5.131 0 0 0 1.839.337 5.037 5.037 0 0 0 1.003-.094q.749-.153 1.307-.55a2.352 2.352 0 0 0 .543-.525 1.892 1.892 0 0 0 .362-1.145 2.204 2.204 0 0 0-.131-.774 1.928 1.928 0 0 0-.605-.83 3.323 3.323 0 0 0-.5-.33q-.747-.411-2.053-.769-1.604-.432-2.452-.969a3.618 3.618 0 0 1-.217-.148 2.034 2.034 0 0 1-.821-1.431 3.027 3.027 0 0 1-.025-.396 2.29 2.29 0 0 1 .234-1.043q.225-.449.668-.792a2.986 2.986 0 0 1 .094-.07q.996-.71 2.541-.71a5.892 5.892 0 0 1 1.043.088 4.345 4.345 0 0 1 1.056.326 3.24 3.24 0 0 1 1.417 1.241zM1.194.769h3.032a6.275 6.275 0 0 1 .977.071q.523.083.944.261a2.835 2.835 0 0 1 .672.397 2.356 2.356 0 0 1 .844 1.432 3.589 3.589 0 0 1 .064.695q0 .901-.575 1.637a2.588 2.588 0 0 1-1.343.898 3.327 3.327 0 0 1-.228.058q.775.134 1.254.47a1.801 1.801 0 0 1 .394.373A2.319 2.319 0 0 1 7.656 8a3.332 3.332 0 0 1 .071.708v1.077a2.946 2.946 0 0 0 .017.329q.04.353.172.567a.811.811 0 0 0 .027.042.702.702 0 0 0 .513.3 1.049 1.049 0 0 0 .128.007h.374v.396h-.374a1.63 1.63 0 0 1-.365-.038q-.422-.097-.616-.442a2.004 2.004 0 0 1-.212-.571q-.052-.244-.059-.524a3.477 3.477 0 0 1 0-.08V8.723a2.531 2.531 0 0 0-.103-.739 1.933 1.933 0 0 0-.641-.953 2.445 2.445 0 0 0-.82-.431q-.349-.11-.769-.152a5.425 5.425 0 0 0-.531-.025H1.589v4.615h1.194v.395H0v-.395h1.194V1.165H0V.769h1.194zm71.14 10.657h-1.296a31.858 31.858 0 0 1-.044-.244q-.037-.213-.061-.369a7.025 7.025 0 0 1-.024-.167 4.136 4.136 0 0 1-.028-.341 5.073 5.073 0 0 1-.005-.22v-.117a3.337 3.337 0 0 1-.971.979 4.081 4.081 0 0 1-.299.182 3.559 3.559 0 0 1-1.134.387 4.722 4.722 0 0 1-.789.064q-.971 0-1.578-.466a1.992 1.992 0 0 1-.154-.131 1.987 1.987 0 0 1-.621-1.299 2.729 2.729 0 0 1-.013-.265 1.966 1.966 0 0 1 .694-1.523 2.858 2.858 0 0 1 .281-.22 3.491 3.491 0 0 1 1.059-.484q.47-.131 1.029-.171a7.222 7.222 0 0 1 .526-.019h1.97V5.845a2.474 2.474 0 0 0-.081-.655 1.771 1.771 0 0 0-.552-.887 2.088 2.088 0 0 0-.784-.421q-.438-.132-1-.132a4.739 4.739 0 0 0-1.012.105 4.178 4.178 0 0 0-.397.107 3.845 3.845 0 0 0-.642.272 3.068 3.068 0 0 0-.475.314l-.008 1.267h-.395l.007-1.508q.564-.418 1.329-.685a4.796 4.796 0 0 1 1.593-.268q1.109 0 1.835.488a2.459 2.459 0 0 1 .209.157 2.087 2.087 0 0 1 .707 1.218 3.175 3.175 0 0 1 .062.642v3.97a7.144 7.144 0 0 0 .026.608 5.338 5.338 0 0 0 .084.593h.952v.396zm-47.197-3.97v.154q0 1.36-.437 2.3a3.448 3.448 0 0 1-.354.6q-.791 1.07-2.183 1.07a3.902 3.902 0 0 1-.817-.082 2.946 2.946 0 0 1-.82-.303 2.828 2.828 0 0 1-1.08-1.036l-.051 1.267h-.33V.396h-1.194V0h1.589v4.944a3.081 3.081 0 0 1 .827-.994 2.999 2.999 0 0 1 .243-.171 2.717 2.717 0 0 1 1.001-.374 3.652 3.652 0 0 1 .617-.051q1.399 0 2.194 1.11a3.922 3.922 0 0 1 .577 1.233q.15.532.196 1.164a8.065 8.065 0 0 1 .022.595zm54.917 0v.154q0 1.36-.437 2.3a3.448 3.448 0 0 1-.354.6q-.791 1.07-2.183 1.07a3.902 3.902 0 0 1-.817-.082 2.946 2.946 0 0 1-.82-.303 2.828 2.828 0 0 1-1.08-1.036l-.051 1.267h-.33V.396h-1.194V0h1.589v4.944a3.081 3.081 0 0 1 .827-.994 2.999 2.999 0 0 1 .243-.171 2.717 2.717 0 0 1 1.001-.374 3.652 3.652 0 0 1 .617-.051q1.399 0 2.194 1.11a3.922 3.922 0 0 1 .577 1.233q.15.532.196 1.164a8.065 8.065 0 0 1 .022.595zM36.299 1.362h.403v2.139h1.948v.403h-1.948v5.478a4.549 4.549 0 0 0 .023.478q.051.482.214.773a1.029 1.029 0 0 0 .092.137q.33.414.872.414.234 0 .417-.015a8.199 8.199 0 0 0 .101-.008l.261-.027a29.36 29.36 0 0 0 .144-.016l.073.359a2.761 2.761 0 0 1-.451.081q-.215.02-.485.021a7.656 7.656 0 0 1-.038.001 1.949 1.949 0 0 1-.493-.059 1.318 1.318 0 0 1-.719-.461q-.414-.52-.414-1.678V3.904h-1.465v-.403h1.465V1.362zM62.095.396h-1.194V0h1.589v11.03h1.194v.396h-2.783v-.396h1.194V.396zM10.232 7.617V7.31a5.17 5.17 0 0 1 .147-1.265 3.779 3.779 0 0 1 .816-1.585 3.124 3.124 0 0 1 2.264-1.099 4.099 4.099 0 0 1 .237-.007 3.509 3.509 0 0 1 1.241.212 3.117 3.117 0 0 1 1.268.894 3.846 3.846 0 0 1 .877 1.865 5.401 5.401 0 0 1 .086.985v.307a5.204 5.204 0 0 1-.147 1.269 3.778 3.778 0 0 1-.816 1.588 3.118 3.118 0 0 1-2.258 1.099 4.062 4.062 0 0 1-.236.007 3.505 3.505 0 0 1-1.262-.22 3.134 3.134 0 0 1-1.25-.886 3.837 3.837 0 0 1-.877-1.85 5.403 5.403 0 0 1-.09-1.007zm16.428 0V7.31a5.17 5.17 0 0 1 .147-1.265 3.779 3.779 0 0 1 .816-1.585 3.124 3.124 0 0 1 2.265-1.099 4.099 4.099 0 0 1 .237-.007 3.509 3.509 0 0 1 1.24.212 3.117 3.117 0 0 1 1.268.894 3.846 3.846 0 0 1 .877 1.865 5.401 5.401 0 0 1 .086.985v.307a5.204 5.204 0 0 1-.147 1.269 3.778 3.778 0 0 1-.816 1.588 3.118 3.118 0 0 1-2.258 1.099 4.062 4.062 0 0 1-.236.007 3.505 3.505 0 0 1-1.261-.22 3.134 3.134 0 0 1-1.251-.886 3.837 3.837 0 0 1-.877-1.85 5.403 5.403 0 0 1-.09-1.007zm13.579 0V7.31a5.17 5.17 0 0 1 .147-1.265 3.779 3.779 0 0 1 .816-1.585 3.124 3.124 0 0 1 2.265-1.099 4.099 4.099 0 0 1 .237-.007 3.509 3.509 0 0 1 1.24.212 3.117 3.117 0 0 1 1.268.894 3.846 3.846 0 0 1 .877 1.865 5.401 5.401 0 0 1 .086.985v.307a5.204 5.204 0 0 1-.147 1.269 3.778 3.778 0 0 1-.816 1.588 3.118 3.118 0 0 1-2.258 1.099 4.062 4.062 0 0 1-.236.007 3.505 3.505 0 0 1-1.261-.22 3.134 3.134 0 0 1-1.251-.886 3.837 3.837 0 0 1-.877-1.85 5.403 5.403 0 0 1-.09-1.007zM10.627 7.31v.307a4.437 4.437 0 0 0 .178 1.28 3.642 3.642 0 0 0 .657 1.251 2.69 2.69 0 0 0 1.968 1.025 3.63 3.63 0 0 0 .281.011 3.009 3.009 0 0 0 1.075-.185 2.685 2.685 0 0 0 1.151-.855 3.778 3.778 0 0 0 .811-2.029 4.916 4.916 0 0 0 .024-.498V7.31a4.217 4.217 0 0 0-.223-1.395 3.73 3.73 0 0 0-.619-1.114 2.685 2.685 0 0 0-1.957-1.04 3.477 3.477 0 0 0-.277-.011 3.004 3.004 0 0 0-1.08.187 2.684 2.684 0 0 0-1.154.864 3.838 3.838 0 0 0-.825 2.195 4.868 4.868 0 0 0-.01.314zm16.429 0v.307a4.437 4.437 0 0 0 .177 1.28 3.642 3.642 0 0 0 .658 1.251 2.69 2.69 0 0 0 1.967 1.025 3.63 3.63 0 0 0 .281.011 3.009 3.009 0 0 0 1.075-.185 2.685 2.685 0 0 0 1.152-.855 3.778 3.778 0 0 0 .81-2.029 4.916 4.916 0 0 0 .025-.498V7.31a4.217 4.217 0 0 0-.224-1.395 3.73 3.73 0 0 0-.619-1.114 2.685 2.685 0 0 0-1.956-1.04 3.477 3.477 0 0 0-.277-.011 3.004 3.004 0 0 0-1.08.187 2.684 2.684 0 0 0-1.154.864 3.838 3.838 0 0 0-.825 2.195 4.868 4.868 0 0 0-.01.314zm13.579 0v.307a4.437 4.437 0 0 0 .177 1.28 3.642 3.642 0 0 0 .658 1.251 2.69 2.69 0 0 0 1.967 1.025 3.63 3.63 0 0 0 .281.011 3.009 3.009 0 0 0 1.075-.185 2.685 2.685 0 0 0 1.152-.855 3.778 3.778 0 0 0 .81-2.029 4.916 4.916 0 0 0 .025-.498V7.31a4.217 4.217 0 0 0-.224-1.395 3.73 3.73 0 0 0-.619-1.114 2.685 2.685 0 0 0-1.956-1.04 3.477 3.477 0 0 0-.277-.011 3.004 3.004 0 0 0-1.08.187 2.684 2.684 0 0 0-1.154.864 3.838 3.838 0 0 0-.825 2.195 4.868 4.868 0 0 0-.01.314zm-15.908.3v-.154a6.745 6.745 0 0 0-.086-1.104q-.151-.914-.574-1.573a2.246 2.246 0 0 0-.683-.699q-.438-.278-1.011-.322a2.868 2.868 0 0 0-.217-.008 3.652 3.652 0 0 0-.703.063q-.414.082-.736.267a1.929 1.929 0 0 0-.352.26 3.296 3.296 0 0 0-.905 1.446v3.633q.286.806.971 1.285.685.48 1.739.48 1.253 0 1.905-.967a3.48 3.48 0 0 0 .457-1.014q.128-.457.172-1a7.355 7.355 0 0 0 .023-.593zm54.917 0v-.154a6.745 6.745 0 0 0-.086-1.104q-.151-.914-.574-1.573a2.246 2.246 0 0 0-.683-.699q-.438-.278-1.011-.322a2.868 2.868 0 0 0-.217-.008 3.652 3.652 0 0 0-.703.063q-.414.082-.736.267a1.929 1.929 0 0 0-.352.26 3.296 3.296 0 0 0-.905 1.446v3.633q.286.806.971 1.285.685.48 1.739.48 1.253 0 1.905-.967a3.48 3.48 0 0 0 .457-1.014q.128-.457.172-1a7.355 7.355 0 0 0 .023-.593zM1.589 1.165v4.863h2.564a6.149 6.149 0 0 0 .872-.058q.984-.141 1.534-.631a2.281 2.281 0 0 0 .603-.826 2.28 2.28 0 0 0 .17-.888 2.912 2.912 0 0 0-.093-.754 2.018 2.018 0 0 0-.687-1.073q-.781-.633-2.326-.633H1.589zm69.287 8.122V7.405h-1.948a6.104 6.104 0 0 0-.933.067q-.826.128-1.403.5a2.253 2.253 0 0 0-.48.407 1.576 1.576 0 0 0-.399 1.069 1.618 1.618 0 0 0 .492 1.194 1.966 1.966 0 0 0 .05.048 1.842 1.842 0 0 0 .908.452 2.634 2.634 0 0 0 .52.049 4.201 4.201 0 0 0 .986-.111 3.329 3.329 0 0 0 .962-.394q.828-.505 1.245-1.399z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};k.defaultProps={width:"80.054",height:"11.58",viewBox:"0 0 80.054 11.58"};var w=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Slabo 27px"),Object(o.createElement)("path",{d:"M.111 10.778V8.704h1v1.37q.469.174 1.151.222a7.861 7.861 0 0 0 .553.019 3.537 3.537 0 0 0 .62-.051q.342-.061.614-.195a1.747 1.747 0 0 0 .349-.226 1.544 1.544 0 0 0 .556-1.089 2.178 2.178 0 0 0 .009-.198 1.93 1.93 0 0 0-.029-.347q-.039-.212-.128-.385a1.782 1.782 0 0 0-.426-.537 2.512 2.512 0 0 0-.293-.216q-.173-.11-.383-.21a12.21 12.21 0 0 0-.435-.197 16.731 16.731 0 0 0-.491-.201q-.5-.185-.991-.398-.491-.213-.889-.528a2.399 2.399 0 0 1-.608-.722 2.779 2.779 0 0 1-.04-.074 2.152 2.152 0 0 1-.202-.601A2.984 2.984 0 0 1 0 3.593a2.633 2.633 0 0 1 .167-.955 2.358 2.358 0 0 1 .722-.981 3.034 3.034 0 0 1 1.141-.576Q2.597.926 3.296.926a5.563 5.563 0 0 1 1.784.281 5.13 5.13 0 0 1 .661.274v2.038h-1V2.185a3.529 3.529 0 0 0-.839-.228 4.725 4.725 0 0 0-.698-.05 3.435 3.435 0 0 0-.581.046q-.308.053-.553.167a1.553 1.553 0 0 0-.403.269 1.671 1.671 0 0 0-.364.474 1.482 1.482 0 0 0-.155.674 1.761 1.761 0 0 0 .028.322q.036.194.119.352a1.099 1.099 0 0 0 .011.02 1.586 1.586 0 0 0 .324.408 1.91 1.91 0 0 0 .12.102 2.481 2.481 0 0 0 .32.208q.165.091.358.17a3.988 3.988 0 0 0 .026.011 139.341 139.341 0 0 0 .438.174l.497.196a16.549 16.549 0 0 1 1.009.435 4.007 4.007 0 0 1 .674.399 3.567 3.567 0 0 1 .197.157 2.45 2.45 0 0 1 .609.792 2.779 2.779 0 0 1 .002.004 2.073 2.073 0 0 1 .158.461q.073.327.073.733a2.879 2.879 0 0 1-.157.971 2.466 2.466 0 0 1-.759 1.076 3.13 3.13 0 0 1-1.229.62q-.455.12-.992.143a5.987 5.987 0 0 1-.252.005 6.707 6.707 0 0 1-1.996-.291 6.169 6.169 0 0 1-.615-.227zm59.982-4.111l1.278-1.815v-.037h-.63v-.926h2.5v.926h-.87l-1.834 2.537 1.926 2.833h.871v.926h-2.778v-.926h.648v-.037l-1.333-1.963-1.371 1.963v.037h.759v.926h-2.592v-.926h.833l1.926-2.704-1.815-2.666h-.852v-.926h2.686v.926h-.593v.037l1.241 1.815zM40.704 9.074h.963v2.037h-5.556v-.833a21.952 21.952 0 0 0 1.598-1.419 16.655 16.655 0 0 0 1.31-1.442q1.166-1.454 1.166-2.454 0-.667-.314-1.056-.3-.37-1.087-.388a3.566 3.566 0 0 0-.08 0 3.506 3.506 0 0 0-1.208.22 4.142 4.142 0 0 0-.237.094v1.352h-.963V3.296a5.931 5.931 0 0 1 1.264-.525 4.714 4.714 0 0 1 1.274-.178 3.972 3.972 0 0 1 .724.061q.402.075.718.24a1.954 1.954 0 0 1 .428.3 1.981 1.981 0 0 1 .6 1.115 2.905 2.905 0 0 1 .048.543 2.992 2.992 0 0 1-.19 1.013q-.283.787-.986 1.672a16.422 16.422 0 0 1-2.583 2.611v.037h3.111V9.074zm8.648-5.185h1.982l.055.592h.037a3.019 3.019 0 0 1 .794-.543 2.54 2.54 0 0 1 1.076-.234 2.321 2.321 0 0 1 1.07.243q.443.226.787.662a3.017 3.017 0 0 1 .051.067q.653.879.716 2.266a6.645 6.645 0 0 1 .006.299 6.111 6.111 0 0 1-.118 1.239q-.163.786-.55 1.396a3.639 3.639 0 0 1-.212.3 3.074 3.074 0 0 1-.792.725 2.672 2.672 0 0 1-1.439.395 3.092 3.092 0 0 1-1.217-.255 3.657 3.657 0 0 1-.172-.078l-.037.018v2.538H52.5v.925h-3.148v-.925h.926V4.815h-.926v-.926zm-3.833 8.889h-1.26a11.177 11.177 0 0 1 .268-1.933 12.691 12.691 0 0 1 .112-.456 21.776 21.776 0 0 1 .787-2.398 25.088 25.088 0 0 1 1.019-2.26 41.902 41.902 0 0 1 .551-1.039 33.776 33.776 0 0 1 .541-.951l-.018-.037h-3.778v1.24h-.963V2.778h5.926v.796a30.887 30.887 0 0 0-1.213 2.167q-.565 1.111-1 2.259a16.439 16.439 0 0 0-.695 2.343q-.259 1.194-.277 2.435zM11.667 5.926v-1.5q1.278-.722 2.611-.722a4.011 4.011 0 0 1 .681.054q.666.115 1.087.473a1.626 1.626 0 0 1 .482.73q.093.271.124.605a3.749 3.749 0 0 1 .015.341v4.278h.926v.926h-1.926l-.056-.833-.037-.019a3.07 3.07 0 0 1-.855.709 2.726 2.726 0 0 1-1.33.328 2.651 2.651 0 0 1-.653-.076 1.856 1.856 0 0 1-.875-.489 1.908 1.908 0 0 1-.559-1.268 2.551 2.551 0 0 1-.006-.167 2.114 2.114 0 0 1 .141-.788q.236-.593.869-.952a3.657 3.657 0 0 1 .833-.336q.806-.223 1.946-.238a12.551 12.551 0 0 1 .156-.001h.315V5.889q0-.397-.109-.66a.834.834 0 0 0-.215-.312q-.3-.266-.971-.286a3.762 3.762 0 0 0-.113-.001 4.629 4.629 0 0 0-.639.041q-.342.048-.629.15a2.484 2.484 0 0 0-.25.105v1h-.963zM20.278 0v4.352l.037.018a2.727 2.727 0 0 1 1.833-.666q1.204 0 1.936 1.018a3.734 3.734 0 0 1 .591 1.328q.123.513.138 1.111a6.734 6.734 0 0 1 .002.172 5.911 5.911 0 0 1-.11 1.179q-.145.708-.477 1.256a3.268 3.268 0 0 1-.348.473 3.072 3.072 0 0 1-1.908 1.008 4.421 4.421 0 0 1-.657.047q-1.056 0-2.148-.352V.926h-.926V0h2.037zM7.222 11.111v-.926h.926V.926h-.926V0h2.037v10.185h.926v.926H7.222zM26.31 6.389a5.823 5.823 0 0 0-.106 1.148 6.941 6.941 0 0 0 .008.342q.073 1.467.779 2.39.455.594 1.093.844a2.786 2.786 0 0 0 1.027.183q1.352 0 2.185-1.074a3.453 3.453 0 0 0 .274-.41q.56-.984.56-2.442 0-.901-.211-1.593a3.208 3.208 0 0 0-.576-1.11 2.526 2.526 0 0 0-1.089-.793 2.893 2.893 0 0 0-1.013-.17 2.734 2.734 0 0 0-1.286.301 2.91 2.91 0 0 0-.89.736 3.272 3.272 0 0 0-.293.414q-.322.54-.462 1.234zm-6.032-1.148v5.018a5.565 5.565 0 0 0 1.084.111 5.179 5.179 0 0 0 .009 0 2.883 2.883 0 0 0 .672-.073 1.877 1.877 0 0 0 1.022-.612 2.052 2.052 0 0 0 .355-.628q.228-.619.228-1.557a6.346 6.346 0 0 0-.049-.814q-.053-.41-.164-.748a2.741 2.741 0 0 0-.24-.54 1.573 1.573 0 0 0-.466-.511q-.378-.257-.914-.257-.815 0-1.537.611zm31.111.185v4.667q.556.277 1.296.277a2.138 2.138 0 0 0 .675-.101 1.736 1.736 0 0 0 .853-.621 2.271 2.271 0 0 0 .332-.649q.201-.594.214-1.456a7.988 7.988 0 0 0 0-.117 6.884 6.884 0 0 0-.038-.752q-.084-.767-.357-1.235a1.748 1.748 0 0 0-.086-.133q-.482-.676-1.296-.676a1.922 1.922 0 0 0-1.2.425 2.854 2.854 0 0 0-.393.371zM27.371 7.37q0 1.463.472 2.232.472.768 1.361.768a1.546 1.546 0 0 0 .653-.134q.327-.15.567-.47a1.958 1.958 0 0 0 .076-.109 2.344 2.344 0 0 0 .264-.578q.179-.574.197-1.409a8.789 8.789 0 0 0 .002-.189 6.707 6.707 0 0 0-.064-.969q-.276-1.882-1.751-1.882a1.827 1.827 0 0 0-.571.085 1.444 1.444 0 0 0-.753.572q-.411.596-.45 1.825a8.309 8.309 0 0 0-.003.258zm-11.815.408h-.445q-1.199 0-1.876.285a2.209 2.209 0 0 0-.087.039 1.208 1.208 0 0 0-.429.326q-.256.315-.256.813 0 .39.145.64a.788.788 0 0 0 .188.221 1.186 1.186 0 0 0 .517.236 1.68 1.68 0 0 0 .335.032 2.412 2.412 0 0 0 1.769-.758 3.322 3.322 0 0 0 .139-.149V7.778z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};w.defaultProps={width:"63.334",height:"14.444",viewBox:"0 0 63.334 14.444"};var E=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Source Sans Pro"),Object(o.createElement)("path",{d:"M0 8.76l.33-.33q.54.63 1.305 1.005.765.375 1.665.375a3.933 3.933 0 0 0 .587-.042 3.03 3.03 0 0 0 .493-.115 2.785 2.785 0 0 0 .47-.202 2.235 2.235 0 0 0 .347-.233q.338-.278.526-.668.187-.39.187-.87 0-.495-.15-.832a1.928 1.928 0 0 0-.375-.562 1.846 1.846 0 0 0-.022-.023 2.475 2.475 0 0 0-.497-.382 2.806 2.806 0 0 0-.081-.046 8.968 8.968 0 0 0-.52-.262 10.205 10.205 0 0 0-.185-.083L2.55 4.8a6.698 6.698 0 0 1-.366-.171 8.531 8.531 0 0 1-.301-.159q-.353-.195-.653-.472a2.224 2.224 0 0 1-.431-.554 2.582 2.582 0 0 1-.064-.121 1.83 1.83 0 0 1-.152-.467Q.54 2.63.54 2.37a2.282 2.282 0 0 1 .09-.65 2.046 2.046 0 0 1 .12-.31q.21-.435.585-.75a2.628 2.628 0 0 1 .683-.411A3.11 3.11 0 0 1 2.22.173Q2.73 0 3.33 0a3.902 3.902 0 0 1 .821.083 3.045 3.045 0 0 1 .762.27 4.721 4.721 0 0 1 .611.374 3.545 3.545 0 0 1 .506.443l-.3.33q-.435-.48-1.035-.765Q4.095.45 3.33.45a3.372 3.372 0 0 0-.713.071q-.559.121-.959.447a1.657 1.657 0 0 0-.632 1.208 2.168 2.168 0 0 0-.006.164 2.089 2.089 0 0 0 .028.354q.042.242.145.434.172.322.435.555.262.232.562.39.3.157.57.277l1.53.69q.405.18.788.398.382.217.675.517a2.234 2.234 0 0 1 .437.649 2.556 2.556 0 0 1 .027.064q.173.412.173.982 0 .57-.225 1.043-.225.472-.63.825a2.757 2.757 0 0 1-.684.432 3.354 3.354 0 0 1-.291.115 3.61 3.61 0 0 1-.8.172 4.477 4.477 0 0 1-.46.023 4.951 4.951 0 0 1-.914-.08 3.626 3.626 0 0 1-1.006-.34Q.57 9.42 0 8.76zm44.64 0l.33-.33q.54.63 1.305 1.005.765.375 1.665.375a3.933 3.933 0 0 0 .587-.042 3.03 3.03 0 0 0 .493-.115 2.785 2.785 0 0 0 .47-.202 2.235 2.235 0 0 0 .347-.233q.338-.278.526-.668.187-.39.187-.87 0-.495-.15-.832a1.928 1.928 0 0 0-.375-.562 1.846 1.846 0 0 0-.022-.023 2.475 2.475 0 0 0-.497-.382 2.806 2.806 0 0 0-.081-.046 8.968 8.968 0 0 0-.52-.262 10.205 10.205 0 0 0-.185-.083l-1.53-.69a6.698 6.698 0 0 1-.366-.171 8.531 8.531 0 0 1-.301-.159q-.353-.195-.653-.472a2.224 2.224 0 0 1-.431-.554 2.582 2.582 0 0 1-.064-.121 1.83 1.83 0 0 1-.152-.467q-.043-.226-.043-.486a2.282 2.282 0 0 1 .09-.65 2.046 2.046 0 0 1 .12-.31q.21-.435.585-.75a2.628 2.628 0 0 1 .683-.411 3.11 3.11 0 0 1 .202-.076Q47.37 0 47.97 0a3.902 3.902 0 0 1 .821.083 3.045 3.045 0 0 1 .762.27 4.721 4.721 0 0 1 .611.374 3.545 3.545 0 0 1 .506.443l-.3.33q-.435-.48-1.035-.765-.6-.285-1.365-.285a3.372 3.372 0 0 0-.713.071q-.559.121-.959.447a1.657 1.657 0 0 0-.632 1.208 2.168 2.168 0 0 0-.006.164 2.089 2.089 0 0 0 .028.354q.042.242.145.434.172.322.435.555.262.232.562.39.3.157.57.277l1.53.69q.405.18.788.398.382.217.675.517a2.234 2.234 0 0 1 .437.649 2.556 2.556 0 0 1 .027.064q.173.412.173.982 0 .57-.225 1.043-.225.472-.63.825a2.757 2.757 0 0 1-.684.432 3.354 3.354 0 0 1-.291.115 3.61 3.61 0 0 1-.8.172 4.477 4.477 0 0 1-.46.023 4.951 4.951 0 0 1-.914-.08 3.626 3.626 0 0 1-1.006-.34q-.81-.42-1.38-1.08zM16.32 7.53V2.91h.45v4.56a5.7 5.7 0 0 0 .032.626q.082.739.373 1.159.405.585 1.335.585.675 0 1.23-.375.555-.375 1.23-1.185V2.91h.45v7.17h-.39l-.06-1.23h-.03a6.264 6.264 0 0 1-.586.602 4.878 4.878 0 0 1-.539.418q-.585.39-1.335.39a2.951 2.951 0 0 1-.622-.061q-.384-.083-.668-.277a1.575 1.575 0 0 1-.345-.322 2.025 2.025 0 0 1-.319-.597q-.193-.551-.205-1.36a7.333 7.333 0 0 1-.001-.113zm44.52 2.55h-.45V2.91h.39l.06 1.14h.03a7.673 7.673 0 0 1 .646-.579 6.139 6.139 0 0 1 .509-.366 2.385 2.385 0 0 1 1.19-.371 2.907 2.907 0 0 1 .145-.004 2.951 2.951 0 0 1 .622.061q.384.083.668.278a1.575 1.575 0 0 1 .345.321 2.025 2.025 0 0 1 .319.597q.193.551.205 1.36a7.333 7.333 0 0 1 .001.113v4.62h-.45V5.52a5.7 5.7 0 0 0-.032-.626q-.082-.738-.373-1.159-.405-.585-1.335-.585-.675 0-1.237.36-.409.262-.885.713a10.94 10.94 0 0 0-.368.367v5.49zm6.51-.81l.3-.36q.45.39.99.66a2.379 2.379 0 0 0 .566.194q.264.057.572.071a4.546 4.546 0 0 0 .212.005 2.705 2.705 0 0 0 .399-.028 1.985 1.985 0 0 0 .396-.099 1.94 1.94 0 0 0 .306-.143 1.474 1.474 0 0 0 .264-.195q.225-.21.345-.487.12-.278.12-.578a1.32 1.32 0 0 0-.036-.316 1.037 1.037 0 0 0-.129-.306q-.165-.263-.42-.465a2.399 2.399 0 0 0-.498-.303 2.715 2.715 0 0 0-.08-.035q-.322-.135-.637-.255-.42-.15-.832-.315a4.228 4.228 0 0 1-.566-.275 3.705 3.705 0 0 1-.184-.115 1.908 1.908 0 0 1-.531-.522 1.848 1.848 0 0 1-.017-.025q-.21-.323-.21-.788 0-.375.143-.712.142-.338.427-.593a1.93 1.93 0 0 1 .409-.278 2.466 2.466 0 0 1 .296-.127 2.476 2.476 0 0 1 .477-.116q.234-.034.498-.034.54 0 1.065.203a3.614 3.614 0 0 1 .604.297 3.052 3.052 0 0 1 .311.22l-.27.36q-.36-.27-.765-.465T69.9 3.15a2.839 2.839 0 0 0-.368.023q-.225.029-.412.097a1.768 1.768 0 0 0-.283.131 1.326 1.326 0 0 0-.257.192 1.418 1.418 0 0 0-.239.299 1.274 1.274 0 0 0-.076.151q-.105.247-.105.517a1.211 1.211 0 0 0 .029.27.907.907 0 0 0 .121.293 1.421 1.421 0 0 0 .315.343 1.67 1.67 0 0 0 .082.062 3.113 3.113 0 0 0 .387.228 3.673 3.673 0 0 0 .168.079q.308.135.638.255.42.165.855.33t.773.398q.337.232.555.585.205.332.216.818a2.464 2.464 0 0 1 .001.059q0 .39-.157.75-.158.36-.45.63a1.986 1.986 0 0 1-.401.284 2.599 2.599 0 0 1-.335.151 2.588 2.588 0 0 1-.589.141 3.335 3.335 0 0 1-.408.024 3.878 3.878 0 0 1-.898-.1 3.276 3.276 0 0 1-.572-.192 5.169 5.169 0 0 1-.703-.376 4.197 4.197 0 0 1-.437-.322zM40.32 6.51h-5.28a4.478 4.478 0 0 0 .077.846 3.771 3.771 0 0 0 .126.482 3.483 3.483 0 0 0 .336.729 3.039 3.039 0 0 0 .234.328q.367.45.885.698a2.539 2.539 0 0 0 .843.231 3.128 3.128 0 0 0 .319.016 3.588 3.588 0 0 0 .577-.044 2.716 2.716 0 0 0 .518-.136q.48-.18.885-.48l.21.39a6.199 6.199 0 0 1-.544.304 7.593 7.593 0 0 1-.364.169q-.368.159-.902.202a5.172 5.172 0 0 1-.41.015q-.675 0-1.267-.255-.593-.255-1.043-.742a3.376 3.376 0 0 1-.579-.876 4.05 4.05 0 0 1-.126-.302q-.255-.69-.255-1.575a4.979 4.979 0 0 1 .079-.902 3.999 3.999 0 0 1 .183-.673q.263-.705.691-1.192a3.033 3.033 0 0 1 .879-.699 2.912 2.912 0 0 1 .103-.051q.555-.263 1.155-.263a2.944 2.944 0 0 1 .89.128 2.325 2.325 0 0 1 1.083.72 2.743 2.743 0 0 1 .521.958q.129.4.177.884a6.149 6.149 0 0 1 .029.61v.233q0 .111-.03.245a1.451 1.451 0 0 1 0 .002zm12.84-2.49l-.24-.36a5.177 5.177 0 0 1 .131-.092q.128-.087.297-.193a3.754 3.754 0 0 1 .319-.178 4.825 4.825 0 0 1 .281-.129 4.457 4.457 0 0 1 .448-.161 5.412 5.412 0 0 1 .294-.079q.405-.098.84-.098a3.03 3.03 0 0 1 .443.031q.237.035.435.11a1.638 1.638 0 0 1 .172.077q.42.217.675.592.255.375.36.863.105.487.105 1.027v4.65h-.39l-.06-.96h-.03q-.57.45-1.23.795-.66.345-1.38.345a2.806 2.806 0 0 1-.653-.074 2.564 2.564 0 0 1-.142-.038 1.923 1.923 0 0 1-.55-.262 1.801 1.801 0 0 1-.11-.083 1.569 1.569 0 0 1-.39-.478 1.882 1.882 0 0 1-.06-.122q-.155-.346-.164-.817a3.074 3.074 0 0 1-.001-.061q0-1.036.85-1.641a2.867 2.867 0 0 1 .29-.181q1.14-.623 3.57-.893a4.597 4.597 0 0 0 .003-.158 4.763 4.763 0 0 0-.055-.719 2.516 2.516 0 0 0-.135-.518 2.161 2.161 0 0 0-.128-.277q-.195-.353-.547-.57a1.362 1.362 0 0 0-.389-.16q-.233-.058-.519-.058a3.298 3.298 0 0 0-.515.039 2.873 2.873 0 0 0-.22.044 3.696 3.696 0 0 0-.531.168 3.319 3.319 0 0 0-.114.049 5.453 5.453 0 0 0-.354.175 4.497 4.497 0 0 0-.194.11 4.787 4.787 0 0 0-.174.11q-.135.091-.238.175zm-19.74-.39l-.3.33q-.36-.345-.795-.577a1.958 1.958 0 0 0-.662-.21 2.515 2.515 0 0 0-.343-.023q-.57 0-1.072.248-.503.247-.87.69a3.09 3.09 0 0 0-.427.684 3.836 3.836 0 0 0-.151.381 4.024 4.024 0 0 0-.193.953 4.834 4.834 0 0 0-.017.404 4.983 4.983 0 0 0 .055.757 3.902 3.902 0 0 0 .14.601q.195.607.555 1.05.36.442.863.682a2.478 2.478 0 0 0 .872.23 2.988 2.988 0 0 0 .245.01 2.569 2.569 0 0 0 .725-.1 2.282 2.282 0 0 0 .393-.155q.502-.255.892-.615l.27.33q-.45.405-1.012.683a2.699 2.699 0 0 1-.924.26 3.332 3.332 0 0 1-.344.017 3.268 3.268 0 0 1-.928-.129 2.963 2.963 0 0 1-.347-.126q-.585-.255-1.012-.735a3.265 3.265 0 0 1-.484-.724 4.103 4.103 0 0 1-.191-.453 4.211 4.211 0 0 1-.204-.87 5.553 5.553 0 0 1-.044-.713q0-.9.263-1.605a3.954 3.954 0 0 1 .329-.686 3.19 3.19 0 0 1 .376-.499q.442-.48 1.02-.735.577-.255 1.222-.255a3.356 3.356 0 0 1 .527.039q.293.047.535.149a1.838 1.838 0 0 1 .183.09q.495.277.855.622zm44.4 6.45h-.48V.18h2.37q.84 0 1.5.143a3.502 3.502 0 0 1 .568.171 2.574 2.574 0 0 1 .542.294q.45.322.69.84a2.451 2.451 0 0 1 .18.571q.051.265.059.568a4.349 4.349 0 0 1 .001.113q0 1.425-.9 2.123-.9.697-2.58.697h-1.95v4.38zm-66.81.18q-.645 0-1.222-.255-.578-.255-1.013-.735-.435-.48-.69-1.177a4.119 4.119 0 0 1-.212-.889 5.411 5.411 0 0 1-.043-.694 5.429 5.429 0 0 1 .063-.848 4.108 4.108 0 0 1 .192-.757 3.937 3.937 0 0 1 .322-.686 3.154 3.154 0 0 1 .368-.499q.435-.48 1.013-.735.577-.255 1.222-.255t1.223.255q.577.255 1.012.735.435.48.69 1.185.255.705.255 1.605 0 .885-.255 1.583a3.902 3.902 0 0 1-.338.706 3.179 3.179 0 0 1-.352.471q-.435.48-1.012.735-.578.255-1.223.255zm81.39 0q-.645 0-1.222-.255-.578-.255-1.013-.735-.435-.48-.69-1.177a4.119 4.119 0 0 1-.212-.889 5.411 5.411 0 0 1-.043-.694 5.429 5.429 0 0 1 .063-.848 4.108 4.108 0 0 1 .192-.757 3.937 3.937 0 0 1 .322-.686 3.154 3.154 0 0 1 .368-.499q.435-.48 1.013-.735.577-.255 1.222-.255t1.223.255q.577.255 1.012.735.435.48.69 1.185.255.705.255 1.605 0 .885-.255 1.583a3.902 3.902 0 0 1-.338.706 3.179 3.179 0 0 1-.352.471q-.435.48-1.012.735-.578.255-1.223.255zm-67.65-.18h-.45V2.91h.39l.06 1.35h.03a4.109 4.109 0 0 1 .494-.721 3.477 3.477 0 0 1 .376-.374q.51-.435 1.17-.435a1.958 1.958 0 0 1 .293.021 1.771 1.771 0 0 1 .052.009 1.147 1.147 0 0 1 .19.053 1.515 1.515 0 0 1 .155.067l-.12.42a2.483 2.483 0 0 0-.107-.042q-.11-.04-.192-.055a.741.741 0 0 0-.001 0 1.049 1.049 0 0 0-.084-.012q-.087-.009-.206-.011a3.68 3.68 0 0 0-.04 0q-.495 0-1.035.428-.54.427-.975 1.492v4.98zm61.11 0h-.45V2.91h.39l.06 1.35h.03a4.109 4.109 0 0 1 .494-.721 3.477 3.477 0 0 1 .376-.374q.51-.435 1.17-.435a1.958 1.958 0 0 1 .293.021 1.771 1.771 0 0 1 .052.009 1.147 1.147 0 0 1 .19.053 1.515 1.515 0 0 1 .155.067l-.12.42a2.483 2.483 0 0 0-.107-.042q-.11-.04-.192-.055a.741.741 0 0 0-.001 0 1.049 1.049 0 0 0-.084-.012q-.087-.009-.206-.011a3.68 3.68 0 0 0-.04 0q-.495 0-1.035.428-.54.427-.975 1.492v4.98zm-74.85-.24q.57 0 1.065-.24t.855-.682a3.24 3.24 0 0 0 .438-.717 3.943 3.943 0 0 0 .132-.333q.21-.608.21-1.358a4.509 4.509 0 0 0-.082-.875 3.829 3.829 0 0 0-.128-.482 3.736 3.736 0 0 0-.279-.636 3.022 3.022 0 0 0-.291-.429q-.36-.443-.855-.69-.495-.248-1.065-.248t-1.065.248q-.495.247-.855.69a3.143 3.143 0 0 0-.408.658 3.94 3.94 0 0 0-.162.407 4.024 4.024 0 0 0-.193.953 4.834 4.834 0 0 0-.017.404 4.634 4.634 0 0 0 .059.757 3.669 3.669 0 0 0 .151.601 3.684 3.684 0 0 0 .302.663 3.09 3.09 0 0 0 .268.387q.36.442.855.682.495.24 1.065.24zm81.39 0q.57 0 1.065-.24t.855-.682a3.24 3.24 0 0 0 .438-.717 3.943 3.943 0 0 0 .132-.333q.21-.608.21-1.358a4.509 4.509 0 0 0-.082-.875 3.829 3.829 0 0 0-.128-.482 3.736 3.736 0 0 0-.279-.636 3.022 3.022 0 0 0-.291-.429q-.36-.443-.855-.69-.495-.248-1.065-.248t-1.065.248q-.495.247-.855.69a3.143 3.143 0 0 0-.408.658 3.94 3.94 0 0 0-.162.407 4.024 4.024 0 0 0-.193.953 4.834 4.834 0 0 0-.017.404 4.634 4.634 0 0 0 .059.757 3.669 3.669 0 0 0 .151.601 3.684 3.684 0 0 0 .302.663 3.09 3.09 0 0 0 .268.387q.36.442.855.682.495.24 1.065.24zM77.82.6v4.68h1.77a7.422 7.422 0 0 0 .837-.044q.985-.112 1.541-.511.694-.499.764-1.59a3.951 3.951 0 0 0 .008-.255q0-.777-.282-1.264a1.477 1.477 0 0 0-.513-.528 2.691 2.691 0 0 0-.642-.277Q80.595.6 79.53.6h-1.71zM35.04 6.09h4.86a5.859 5.859 0 0 0-.049-.782q-.054-.403-.169-.728a2.22 2.22 0 0 0-.397-.71 2.011 2.011 0 0 0-1.474-.715 2.758 2.758 0 0 0-.161-.005q-.48 0-.93.203-.45.202-.802.585-.353.382-.585.922a3.588 3.588 0 0 0-.216.694 4.624 4.624 0 0 0-.077.536zm22.23 2.52V6q-1.185.135-1.995.338-.583.145-1.003.334a3.382 3.382 0 0 0-.302.153q-.495.285-.712.653a1.571 1.571 0 0 0-.214.71 1.91 1.91 0 0 0-.004.122 2.304 2.304 0 0 0 .021.319q.023.164.071.304a1.273 1.273 0 0 0 .035.09 1.302 1.302 0 0 0 .183.304 1.125 1.125 0 0 0 .17.168 1.445 1.445 0 0 0 .508.26 1.632 1.632 0 0 0 .01.003 2.229 2.229 0 0 0 .5.079 2.559 2.559 0 0 0 .122.003q.66 0 1.275-.307a5.084 5.084 0 0 0 .517-.301q.244-.161.503-.363a9.799 9.799 0 0 0 .315-.259z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};E.defaultProps={width:"95.58",height:"10.26",viewBox:"0 0 95.58 10.26"};var _=function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("title",null,"Ubuntu"),Object(o.createElement)("path",{d:"M0 7.785v-6.54h1.02V7.65a6.073 6.073 0 0 0 .036.68q.049.438.167.798.202.622.562 1.027.36.405.87.6a2.943 2.943 0 0 0 .721.172 3.703 3.703 0 0 0 .419.023 3.515 3.515 0 0 0 .653-.058 2.833 2.833 0 0 0 .487-.137q.51-.195.87-.6.36-.405.563-1.027a3.873 3.873 0 0 0 .145-.635q.043-.292.053-.62a6.838 6.838 0 0 0 .004-.223V1.245h1.02v6.54a6.379 6.379 0 0 1-.091 1.098 5.475 5.475 0 0 1-.111.499 3.605 3.605 0 0 1-.419.971 3.292 3.292 0 0 1-.234.327 2.927 2.927 0 0 1-.872.721 3.571 3.571 0 0 1-.305.149 3.602 3.602 0 0 1-.777.231q-.368.068-.789.081a6.515 6.515 0 0 1-.197.003 5.681 5.681 0 0 1-.79-.052q-.418-.059-.771-.184a3.187 3.187 0 0 1-.201-.079q-.728-.315-1.178-.87a3.436 3.436 0 0 1-.598-1.115 4.001 4.001 0 0 1-.054-.183 5.8 5.8 0 0 1-.189-1.151A6.86 6.86 0 0 1 0 7.785zm27.465 3.855V4.155a10.723 10.723 0 0 1 .301-.078q.364-.089.869-.192.561-.114 1.314-.142a13.521 13.521 0 0 1 .486-.008q.885 0 1.478.255a2.418 2.418 0 0 1 .618.379 2.134 2.134 0 0 1 .327.349 2.774 2.774 0 0 1 .385.728 3.49 3.49 0 0 1 .117.404 5.912 5.912 0 0 1 .121.785 7.544 7.544 0 0 1 .029.67v4.335h-.975V7.62a10.12 10.12 0 0 0-.016-.583q-.016-.285-.05-.531a4.843 4.843 0 0 0-.046-.281 2.991 2.991 0 0 0-.117-.428q-.103-.288-.258-.502-.263-.36-.69-.518a2.291 2.291 0 0 0-.384-.101q-.306-.056-.689-.056a10.854 10.854 0 0 0-.491.011q-.387.017-.701.064a10.947 10.947 0 0 0-.203.032q-.273.046-.401.086a.668.668 0 0 0-.049.017v6.81h-.975zm-2.58-7.755v7.485a10.723 10.723 0 0 1-.301.078q-.364.089-.869.192-.561.114-1.314.142a13.521 13.521 0 0 1-.486.008q-.87 0-1.455-.255a2.488 2.488 0 0 1-.643-.401 2.234 2.234 0 0 1-.302-.319 2.716 2.716 0 0 1-.392-.713 3.443 3.443 0 0 1-.125-.412 5.692 5.692 0 0 1-.132-.831 7.244 7.244 0 0 1-.026-.624v-4.35h.975V7.92q0 .825.12 1.395a2.944 2.944 0 0 0 .119.42q.109.29.271.502.27.353.698.51.359.133.852.154a4.466 4.466 0 0 0 .19.004 10.925 10.925 0 0 0 .492-.011q.243-.011.459-.033a5.923 5.923 0 0 0 .249-.031 10.822 10.822 0 0 0 .178-.028q.357-.058.467-.107v-6.81h.975zm22.875 0v7.485a10.723 10.723 0 0 1-.301.078q-.364.089-.869.192-.561.114-1.314.142a13.521 13.521 0 0 1-.486.008q-.87 0-1.455-.255a2.488 2.488 0 0 1-.643-.401 2.234 2.234 0 0 1-.302-.319 2.716 2.716 0 0 1-.392-.713 3.443 3.443 0 0 1-.125-.412 5.692 5.692 0 0 1-.132-.831 7.244 7.244 0 0 1-.026-.624v-4.35h.975V7.92q0 .825.12 1.395a2.944 2.944 0 0 0 .119.42q.109.29.271.502.27.353.698.51.359.133.852.154a4.466 4.466 0 0 0 .19.004 10.925 10.925 0 0 0 .492-.011q.243-.011.459-.033a5.923 5.923 0 0 0 .249-.031 10.822 10.822 0 0 0 .178-.028q.357-.058.467-.107v-6.81h.975zM11.16 0v4.35q.255-.195.818-.413.562-.217 1.327-.217a4.02 4.02 0 0 1 .793.075 3.157 3.157 0 0 1 .7.225q.652.3 1.102.84.45.54.683 1.282a5.089 5.089 0 0 1 .207 1.063 6.238 6.238 0 0 1 .025.565 5.521 5.521 0 0 1-.074.923 4.283 4.283 0 0 1-.203.772q-.278.75-.78 1.275-.503.525-1.2.802a3.916 3.916 0 0 1-1.034.251 4.849 4.849 0 0 1-.519.027 13.191 13.191 0 0 1-.669-.016q-.598-.03-1.041-.119a12.708 12.708 0 0 1-.454-.099q-.212-.051-.393-.103a5.576 5.576 0 0 1-.263-.083V.18L11.16 0zm25.755 1.425v2.46h3.09v.825h-3.09v4.125a6.345 6.345 0 0 0 .013.425q.026.377.1.647a2.096 2.096 0 0 0 .093.273q.094.221.229.365.21.225.51.3a2.488 2.488 0 0 0 .388.064 3.138 3.138 0 0 0 .272.011 4.34 4.34 0 0 0 .386-.016q.178-.016.329-.048a1.834 1.834 0 0 0 .275-.078 7.037 7.037 0 0 0 .218-.087q.208-.087.347-.165a1.959 1.959 0 0 0 .02-.011l.24.81q-.161.103-.505.228a7.925 7.925 0 0 1-.23.08q-.525.172-1.14.172-.72 0-1.207-.188a1.848 1.848 0 0 1-.516-.296 1.658 1.658 0 0 1-.264-.273 2.077 2.077 0 0 1-.284-.513 2.81 2.81 0 0 1-.129-.44 5.164 5.164 0 0 1-.082-.538q-.028-.28-.036-.597a9.576 9.576 0 0 1-.002-.215v-7.14l.975-.18zM11.16 5.295v5.43q.187.062.525.12a8.807 8.807 0 0 0 .143.022 4.81 4.81 0 0 0 .303.036q.352.031.827.032a15.134 15.134 0 0 0 .032 0 3.146 3.146 0 0 0 .925-.13 2.475 2.475 0 0 0 1.1-.687 2.645 2.645 0 0 0 .591-1.052q.125-.407.16-.899a5.575 5.575 0 0 0 .014-.397 5.529 5.529 0 0 0-.076-.93 4.906 4.906 0 0 0-.059-.293 3.132 3.132 0 0 0-.204-.602 2.591 2.591 0 0 0-.231-.403 2.174 2.174 0 0 0-.78-.678 2.527 2.527 0 0 0-.007-.004q-.44-.23-1.069-.253a3.877 3.877 0 0 0-.139-.002q-.345 0-.66.067a4.019 4.019 0 0 0-.412.111 3.431 3.431 0 0 0-.173.062 3.755 3.755 0 0 0-.253.109 2.748 2.748 0 0 0-.219.116q-.203.12-.338.225z",vectorEffect:"non-scaling-stroke",strokeLinecap:"round",fillRule:"evenodd",fontSize:"12",stroke:"#000",strokeWidth:".25mm",fill:"none"}))};_.defaultProps={width:"47.76",height:"11.865",viewBox:"0 0 47.76 11.865"};var S=328,P=553,x=40,C={default:30,"core/pullquote":180,"core/table":100,"core/code":45},I=["amp/amp-story-page","core/block","core/template"],B=["core/code","core/embed","core/image","core/list","core/preformatted","core/pullquote","core/quote","core/table","core/verse","core/video","amp/amp-story-text","amp/amp-story-post-author","amp/amp-story-post-date","amp/amp-story-post-title","core/html","core/block","core/template"],A=["amp/amp-story-text","amp/amp-story-post-author","amp/amp-story-post-date","amp/amp-story-post-title"],z=["amp/amp-story-text","amp/amp-story-post-author","amp/amp-story-post-date","amp/amp-story-post-title","amp/amp-story-cta"],D=["core/code","core/embed","core/image","core/list","core/pullquote","core/quote","core/table","core/video","amp/amp-story-text","amp/amp-story-post-author","amp/amp-story-post-date","amp/amp-story-post-title"],T=[].concat(B,["amp/amp-story-cta"]),N=[].concat(I,n()(T)),R="image",M="video",V=["video/mp4"],F=[R].concat(V),L=[R],H=["core/video","core/audio"],W="amp_story_page",U={drop:1600,"fade-in":500,"fly-in-bottom":500,"fly-in-left":500,"fly-in-right":500,"fly-in-top":500,pulse:500,"rotate-in-left":700,"rotate-in-right":700,"twirl-in":1e3,"whoosh-in-left":500,"whoosh-in-right":500,"pan-left":1e3,"pan-right":1e3,"pan-down":1e3,"pan-up":1e3,"zoom-in":1e3,"zoom-out":1e3},G=[{value:"",label:Object(i.__)("None","amp")},{value:"drop",label:Object(i.__)("Drop","amp")},{value:"fade-in",label:Object(i.__)("Fade In","amp")},{value:"fly-in-bottom",label:Object(i.__)("Fly In Bottom","amp")},{value:"fly-in-left",label:Object(i.__)("Fly In Left","amp")},{value:"fly-in-right",label:Object(i.__)("Fly In Right","amp")},{value:"fly-in-top",label:Object(i.__)("Fly In Top","amp")},{value:"pulse",label:Object(i.__)("Pulse","amp")},{value:"rotate-in-left",label:Object(i.__)("Rotate In Left","amp")},{value:"rotate-in-right",label:Object(i.__)("Rotate In Right","amp")},{value:"twirl-in",label:Object(i.__)("Twirl In","amp")},{value:"whoosh-in-left",label:Object(i.__)("Whoosh In Left","amp")},{value:"whoosh-in-right",label:Object(i.__)("Whoosh In Right","amp")},{value:"pan-left",label:Object(i.__)("Pan Left","amp")},{value:"pan-right",label:Object(i.__)("Pan Right","amp")},{value:"pan-down",label:Object(i.__)("Pan Down","amp")},{value:"pan-up",label:Object(i.__)("Pan Up","amp")},{value:"zoom-in",label:Object(i.__)("Zoom In","amp")},{value:"zoom-out",label:Object(i.__)("Zoom Out","amp")}],Q={Arimo:c,Lato:l,Lora:s,Merriweather:u,Montserrat:p,"Noto Sans":d,"Open Sans":m,"Open Sans Condensed":b,Oswald:f,"Playfair Display":h,"PT Sans":g,"PT Sans Narrow":v,"PT Serif":y,Raleway:O,Roboto:q,"Roboto Condensed":j,"Roboto Slab":k,"Slabo 27px":w,"Source Sans Pro":E,Ubuntu:_},$=["left","bottomLeft","topLeft"],J=["top","topRight","topLeft"],Y=7,K=[-180,-165,-150,-135,-120,-105,-90,-75,-60,-45,-30,-15,0,15,30,45,60,75,90,105,120,135,150,165,180],Z=10},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,r){"use strict";var a=r(28),n=r.n(a),o=r(29),i=r.n(o),c=r(33),l=r.n(c),s=r(22),u=r.n(s),p=r(7),d=r.n(p),m=r(0),b=r(40),f=r.n(b),h=r(19),g=r.n(h),v=r(9),y=r(41),O=r.n(y),q=r(42),j=r(1),k=r(5),w=r(11),E=r(4),_=r(32),S=(r(37),r(23)),P=r(3),x=r(21),C=r(18),I=(r(10),r(20));function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}var A=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{content:{type:"string",source:"text",selector:"code"}},{deprecated:{default:"1.2.0"}}),save:function(e){var t=e.attributes;return Object(m.createElement)("pre",null,Object(m.createElement)("code",null,t.content))},migrate:I.a}];function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}var D=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{align:{type:"string"},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"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"},rotationAngle:{type:"number",default:0},ampAnimationType:{source:"attribute",selector:".amp-story-block-wrapper",attribute:"animate-in"},ampAnimationDelay:{source:"attribute",selector:".amp-story-block-wrapper",attribute:"animate-in-delay",default:0},ampAnimationDuration:{source:"attribute",selector:".amp-story-block-wrapper",attribute:"animate-in-duration",default:0},ampAnimationAfter:{source:"attribute",selector:".amp-story-block-wrapper",attribute:"animate-in-after"},anchor:{type:"string",source:"attribute",attribute:"id",selector:"amp-story-grid-layer .amp-story-block-wrapper, amp-story-cta-layer"},positionTop:{default:0,type:"number"},positionLeft:{default:5,type:"number"},ampShowImageCaption:{type:"boolean",default:!1},sizeSlug:{type:"string"}},{deprecated:{default:"1.2.0"}}),save:function(e){var t,r=e.attributes,a=r.url,n=r.alt,o=r.caption,i=r.align,c=r.href,l=r.rel,s=r.linkClass,u=r.width,p=r.height,b=r.id,f=r.linkTarget,h=r.sizeSlug,v=g()((t={},d()(t,"align".concat(i),i),d()(t,"size-".concat(h),h),d()(t,"is-resized",u||p),t)),y=Object(m.createElement)("img",{src:a,alt:n,className:b?"wp-image-".concat(b):null,width:u,height:p}),O=Object(m.createElement)(m.Fragment,null,c?Object(m.createElement)("a",{className:s,href:c,target:f,rel:l},y):y,!E.RichText.isEmpty(o)&&Object(m.createElement)(E.RichText.Content,{tagName:"figcaption",value:o}));return"left"===i||"right"===i||"center"===i?Object(m.createElement)("div",null,Object(m.createElement)("figure",{className:v},O)):Object(m.createElement)("figure",{className:v},O)},migrate:I.a}];function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}var U={"core/code":A,"core/embed":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0}},{deprecated:{default:"1.2.0"}}),save:function(e){var t,r=e.attributes,a=r.url,n=r.caption,o=r.type,i=r.providerNameSlug;if(!a)return null;var c=g()("wp-block-embed",(t={},d()(t,"is-type-".concat(o),o),d()(t,"is-provider-".concat(i),i),t));return Object(m.createElement)("figure",{className:c},Object(m.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(a,"\n")),!E.RichText.isEmpty(n)&&Object(m.createElement)(E.RichText.Content,{tagName:"figcaption",value:n}))},migrate:I.a}],"core/html":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{content:{type:"string",source:"html"}},{deprecated:{default:"1.2.0"}}),save:function(e){var t=e.attributes;return Object(m.createElement)(m.RawHTML,null,t.content)},migrate:I.a}],"core/image":D,"core/list":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:""}},{deprecated:{default:"1.2.0"}}),supports:{className:!1},save:function(e){var t=e.attributes,r=t.ordered,a=t.values,n=r?"ol":"ul";return Object(m.createElement)(E.RichText.Content,{tagName:n,value:a,multiline:"li"})},migrate:I.a}],"core/preformatted":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{content:{type:"string",source:"html",selector:"pre",default:""}},{deprecated:{default:"1.2.0"}}),save:function(e){var t=e.attributes.content;return Object(m.createElement)(E.RichText.Content,{tagName:"pre",value:t})},migrate:I.a}],"core/pullquote":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},{deprecated:{default:"1.2.0"}}),save:function(e){var t,r,a=e.attributes,n=a.mainColor,o=a.customMainColor,i=a.textColor,c=a.customTextColor,l=a.value,s=a.citation,u=a.className;if(Object(v.includes)(u,"is-style-solid-color"))(t=Object(E.getColorClassName)("background-color",n))||(r={backgroundColor:o});else if(o)r={borderColor:o};else if(n){var p=Object(v.get)(Object(k.select)("core/block-editor").getSettings(),["colors"],[]);r={borderColor:Object(E.getColorObjectByAttributeValues)(p,n).color}}var b=Object(E.getColorClassName)("color",i),f=i||c?g()("has-text-color",d()({},b,b)):void 0,h=b?void 0:{color:c};return Object(m.createElement)("figure",{className:t,style:r},Object(m.createElement)("blockquote",{className:f,style:h},Object(m.createElement)(E.RichText.Content,{value:l,multiline:!0}),!E.RichText.isEmpty(s)&&Object(m.createElement)(E.RichText.Content,{tagName:"cite",value:s})))},migrate:I.a}],"core/quote":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},{deprecated:{default:"1.2.0"}}),save:function(e){var t=e.attributes,r=t.align,a=t.value,n=t.citation;return Object(m.createElement)("blockquote",{style:{textAlign:r||null}},Object(m.createElement)(E.RichText.Content,{multiline:!0,value:a}),!E.RichText.isEmpty(n)&&Object(m.createElement)(E.RichText.Content,{tagName:"cite",value:n}))},migrate:I.a}],"core/table":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},{deprecated:{default:"1.2.0"}}),save:function(e){var t=e.attributes,r=t.hasFixedLayout,a=t.head,n=t.body,o=t.foot,i=t.backgroundColor;if(!a.length&&!n.length&&!o.length)return null;var c=Object(E.getColorClassName)("background-color",i),l=g()(c,{"has-fixed-layout":r,"has-background":Boolean(c)}),s=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var a="t".concat(t);return Object(m.createElement)(a,null,r.map(function(e,t){var r=e.cells;return Object(m.createElement)("tr",{key:t},r.map(function(e,t){var r=e.content,a=e.tag,n=e.scope;return Object(m.createElement)(E.RichText.Content,{tagName:a,value:r,key:t,scope:"th"===a?n:void 0})}))}))};return Object(m.createElement)("figure",null,Object(m.createElement)("table",{className:l},Object(m.createElement)(s,{type:"head",rows:a}),Object(m.createElement)(s,{type:"body",rows:n}),Object(m.createElement)(s,{type:"foot",rows:o})))},migrate:I.a}],"core/verse":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?H(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},{deprecated:{default:"1.2.0"}}),save:function(e){var t=e.attributes,r=t.textAlign,a=t.content;return Object(m.createElement)(E.RichText.Content,{tagName:"pre",style:{textAlign:r},value:a})},migrate:I.a}],"core/video":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"}},{deprecated:{default:"1.2.0"}}),save:function(e){var t=e.attributes,r=t.autoplay,a=t.caption,n=t.controls,o=t.loop,i=t.muted,c=t.poster,l=t.preload,s=t.src,u=t.playsInline;return Object(m.createElement)("figure",null,s&&Object(m.createElement)("video",{autoPlay:r,controls:n,loop:o,muted:i,poster:c,preload:"metadata"!==l?l:void 0,src:s,playsInline:u}),!E.RichText.isEmpty(a)&&Object(m.createElement)(E.RichText.Content,{tagName:"figcaption",value:a}))},migrate:I.a}]};function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function Q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var $={"1.2.0":function(e,t,r){var a={},n=Q({},e);if(n.id=r.anchor||it(),r.rotationAngle){var o=n.style?n.style:{};o=Q({},o,{transform:"rotate(".concat(parseInt(r.rotationAngle),"deg)")}),a.style=o}return r.ampFontFamily&&(a["data-font-family"]=r.ampFontFamily),Q({},n,{},a)}},J=r(25),Y=r.n(J);function K(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?K(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var X={"1.2.0":function(e,t,r){var a=r.ampAnimationType,n=r.ampAnimationDelay,o=r.ampAnimationDuration,i=r.ampAnimationAfter,c=r.positionTop,l=r.positionLeft,s=r.width,u=r.height,p={};void 0!==c&&void 0!==l&&(p=Z({},p,{position:"absolute",top:"".concat(c||0,"%"),left:"".concat(l||0,"%")})),void 0!==s&&void 0!==u&&(p=Z({},p,{width:s?"".concat(Re("x",s),"%"):"0%",height:u?"".concat(Re("y",u),"%"):"0%"}));var d={};return a&&(d["animate-in"]=a,n&&(d["animate-in-delay"]=parseInt(n)+"ms"),o&&(d["animate-in-duration"]=parseInt(o)+"ms"),i&&(d["animate-in-after"]=i)),Object(m.createElement)("amp-story-grid-layer",{template:"vertical","data-block-name":t.name},Object(m.createElement)("div",Y()({className:"amp-story-block-wrapper",style:p},d),e))}};function ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var re={"1.2.0":function(e,t){var r="core/image"===t,a="core/video"===t,n=P.d.includes(t),o=P.l.includes(t),i=P.k.includes(t)&&!r,c={anchor:{type:"string",source:"attribute",attribute:"id",selector:"amp-story-grid-layer .amp-story-block-wrapper > *, amp-story-cta-layer"},ampAnimationType:{type:"string"},addedAttributes:{type:"number",default:0},ampAnimationAfter:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},ampFontFamily:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},opacity:{type:"number",default:100}};return o&&(c.autoFontSize={type:"number",default:36},c.ampFitText={type:"boolean",default:!0}),n&&(c.positionTop={default:0,type:"number"},c.positionLeft={default:5,type:"number"},i&&(c.height={type:"number",default:_e(t)},c.width={type:"number",default:250}),c.rotationAngle={type:"number",default:0},c.ampAnimationType={source:"attribute",selector:".amp-story-block-wrapper",attribute:"animate-in"},c.ampAnimationDelay={source:"attribute",selector:".amp-story-block-wrapper",attribute:"animate-in-delay",default:0},c.ampAnimationDuration={source:"attribute",selector:".amp-story-block-wrapper",attribute:"animate-in-duration",default:0},c.ampAnimationAfter={source:"attribute",selector:".amp-story-block-wrapper",attribute:"animate-in-after"}),r&&(c.ampShowImageCaption={type:"boolean",default:!1}),a&&(c.ampShowCaption={type:"boolean",default:!1},c.autoplay=te({},e.attributes.autoplay,{default:!0}),c.playsInline=te({},e.attributes.playsInline,{default:!1}),c.loop=te({},e.attributes.loop,{default:!0}),c.controls=te({},e.attributes.controls,{default:!1})),Object.keys(c).forEach(function(t){void 0===c[t].default&&void 0!==e.attributes[t]&&void 0!==e.attributes[t].default&&(c[t].default=e.attributes[t].default)}),te({},e,{attributes:te({},e.attributes,{},c),supports:te({},e.supports,{anchor:!1})})}};function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ae(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var oe=function(e){var t=e.tagName;return[{attributes:ne({},{align:{type:"string"}},{deprecated:{default:"1.2.0"}}),save:function(e){var r=e.attributes,a=r.ampFitText,n=We(r),o=Ue(r);if(!a)return Object(m.createElement)(E.RichText.Content,{tagName:t,style:o,className:n,value:"{content}"});var i=t;return Object(m.createElement)(i,{style:o,className:n},Object(m.createElement)("amp-fit-text",{layout:"flex-item",className:"amp-text-content"},"{content}"))},migrate:I.a}]};function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}r.d(t,"v",function(){return we}),r.d(t,"G",function(){return Ee}),r.d(t,"l",function(){return _e}),r.d(t,"a",function(){return Se}),r.d(t,"e",function(){return Pe}),r.d(t,"g",function(){return xe}),r.d(t,"b",function(){return Ce}),r.d(t,"f",function(){return Be}),r.d(t,"J",function(){return Ae}),r.d(t,"s",function(){return ze}),r.d(t,"F",function(){return De}),r.d(t,"o",function(){return Re}),r.d(t,"p",function(){return Me}),r.d(t,"n",function(){return Ve}),r.d(t,"c",function(){return Fe}),r.d(t,"d",function(){return He}),r.d(t,"k",function(){return We}),r.d(t,"r",function(){return Ue}),r.d(t,"m",function(){return Ge}),r.d(t,"y",function(){return Qe}),r.d(t,"z",function(){return $e}),r.d(t,"C",function(){return Je}),r.d(t,"E",function(){return Ke}),r.d(t,"D",function(){return Ze}),r.d(t,"x",function(){return Xe}),r.d(t,"A",function(){return et}),r.d(t,"B",function(){return tt}),r.d(t,"w",function(){return at}),r.d(t,"i",function(){return nt}),r.d(t,"j",function(){return ot}),r.d(t,"t",function(){return it}),r.d(t,"I",function(){return lt}),r.d(t,"q",function(){return st}),r.d(t,"u",function(){return ut}),r.d(t,"h",function(){return pt}),r.d(t,"H",function(){return dt});var le=window.ampStoriesFonts,se=Object(k.select)("core/block-editor"),ue=se.getBlocksByClientId,pe=se.getBlockRootClientId,de=se.getBlockOrder,me=se.getBlock,be=se.getClientIdsWithDescendants,fe=se.getSettings,he=Object(k.select)("amp/story").getAnimatedBlocks,ge=Object(k.dispatch)("amp/story"),ve=ge.addAnimation,ye=ge.changeAnimationType,Oe=ge.changeAnimationDuration,qe=ge.changeAnimationDelay,je=Object(k.dispatch)("core").saveMedia,ke=Object(k.dispatch)("core/block-editor").updateBlockAttributes,we=function(e){if(e&&void 0!==le){var t=le.find(function(t){return t.name===e});if(t){var r=t.handle,a=t.src;if(r&&a)if(!document.getElementById(r)){var n=document.createElement("link");n.id=r,n.href=a,n.rel="stylesheet",n.type="text/css",n.media="all",n.crossOrigin="anonymous",document.head.appendChild(n)}}}},Ee=function(e){var t=e.name;return P.e.includes(t)?"amp/amp-story-page"!==t?ce({},e,{parent:[""]}):e:ce({},e,{parent:["amp/amp-story-page"]})},_e=function(e){switch(e){case"core/quote":case"core/video":case"core/embed":return 200;case"core/pullquote":return 250;case"core/table":return 100;case"amp/amp-story-post-author":case"amp/amp-story-post-date":return 50;case"amp/amp-story-post-title":return 100;default:return 60}},Se=function(e,t){if(!P.c.includes(t)||"core/template"===t)return e;if(e.attributes.deprecated&&re[e.attributes.deprecated.default]){var r=re[e.attributes.deprecated.default];if("function"==typeof r)return r(e,t)}var a="core/image"===t,n="core/video"===t,o="amp/amp-story-cta"===t,i=P.d.includes(t),c=P.l.includes(t),l=P.k.includes(t)&&!a,s={addedAttributes:{type:"number",default:0},fontSize:{type:"string"},customFontSize:{type:"number"},ampFontFamily:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},opacity:{type:"number",default:100}};return c&&(s.autoFontSize={type:"number",default:36},s.ampFitText={type:"boolean",default:!0}),o&&(s.anchor={type:"string",source:"attribute",attribute:"id",selector:"amp-story-cta-layer"}),i&&(s.anchor={type:"string"},s.positionTop={default:0,type:"number"},s.positionLeft={default:5,type:"number"},l&&(s.height={type:"number",default:_e(t)},s.width={type:"number",default:250}),s.rotationAngle={type:"number",default:0},s.ampAnimationType={type:"string"},s.ampAnimationDelay={default:0},s.ampAnimationDuration={default:0},s.ampAnimationAfter={type:"string"}),a&&(s.ampShowImageCaption={type:"boolean",default:!1}),n&&(s.ampShowCaption={type:"boolean",default:!1},s.autoplay=ce({},e.attributes.autoplay,{default:!0}),s.playsInline=ce({},e.attributes.playsInline,{default:!1}),s.loop=ce({},e.attributes.loop,{default:!0}),s.controls=ce({},e.attributes.controls,{default:!1})),Object.keys(s).forEach(function(t){void 0===s[t].default&&void 0!==e.attributes[t]&&void 0!==e.attributes[t].default&&(s[t].default=e.attributes[t].default)}),ce({},e,{attributes:ce({},e.attributes,{},s),supports:ce({},e.supports,{anchor:!1})})},Pe=function(e,t){if(!P.d.includes(t))return e;var r=e.deprecated?e.deprecated:[],a=U[t]||void 0;return a?ce({},e,{deprecated:r=[].concat(u()(r),u()(a))}):e},xe=function(e,t){if(!P.d.includes(t))return e;var r={type:"raw",priority:20,selector:'amp-story-grid-layer[data-block-name="'.concat(t,'"]'),transform:function(e){var r=e.outerHTML,a=Object(w.getBlockAttributes)(t,r);return"amp/amp-story-text"===t&&(a.content||(a.content=e.textContent,a.tagName=e.nodeName,a.ampFitText=!1)),Object(w.createBlock)(t,a)}},a=e.transforms?ce({},e.transforms):{},n=a.from?u()(a.from):[];return"core/list"===t&&(n=n.filter(function(e){return"prefix"!==e.type})),n.push(r),ce({},e,{transforms:ce({},a,{from:n})})},Ce=function(e,t,r){var a={};if(!P.c.includes(t.name))return e;if(r.deprecated&&$[r.deprecated]){var n=$[r.deprecated];if("function"==typeof n)return n(e,t,r)}if(r.rotationAngle){var o=e.style?e.style:{};o=ce({},o,{transform:"rotate(".concat(parseInt(r.rotationAngle),"deg)")}),a.style=o}return r.ampFontFamily&&(a["data-font-family"]=r.ampFontFamily),ce({},e,{},a)},Ie=document.createElement("div"),Be=function(e,t,r){return!e.className&&r.includes("is-style-")&&0===r.indexOf("<amp-story-grid-layer")&&(Ie.innerHTML=r,Ie.children[0].children.length&&Ie.children[0].children[0].children.length&&Ie.children[0].children[0].children[0].className.includes("is-style-")&&(e.className=Ie.children[0].children[0].children[0].className)),e},Ae=function(e,t,r){if(!e||!P.d.includes(t.name))return e;if(r.deprecated&&X[r.deprecated]){var a=X[r.deprecated];if("function"==typeof a)return a(e,t,r)}return e},ze=function(e){return u()(new Set(e.map(function(e){return e.parent}))).map(function(t){return e.filter(function(e){var r=e.parent,a=e.animationType;return r===t&&a}).map(function(e){var t=e.duration,r=e.delay;return(r?parseInt(r):0)+(t?parseInt(t):0)}).reduce(function(e,t){return Math.max(e,t)},0)}).reduce(function(e,t){return e+t},0)},De=function(){var e=document.querySelector(".editor-block-list__layout"),t=document.querySelector(".editor-block-navigation");if(e&&!document.getElementById("amp-story-editor")){var r=document.createElement("div");r.id="amp-story-editor";var a=document.createElement("div");if(a.id="amp-story-block-navigation",e.parentNode.replaceChild(r,e),!document.getElementById("amp-story-controls")){var n=document.createElement("div");n.id="amp-story-controls",r.appendChild(n),Object(m.render)(Object(m.createElement)(S.r,null),n)}if(r.appendChild(e),r.appendChild(a),Object(m.render)(Object(m.createElement)(S.c,null),a),!document.getElementById("amp-story-editor-carousel")){var o=document.createElement("div");o.id="amp-story-editor-carousel",r.appendChild(o),Object(m.render)(Object(m.createElement)(S.h,null),o)}}if(t){if(!document.getElementById("amp-story-shortcuts")){var i=document.createElement("div");i.id="amp-story-shortcuts",t.parentNode.parentNode.insertBefore(i,t.parentNode.nextSibling),Object(m.render)(Object(m.createElement)(S.o,null),i)}var c=document.createElement("div");c.id="amp-story-inserter";var l=t.parentNode.parentNode.querySelector(".block-editor-inserter").parentNode;l.parentNode.replaceChild(c,l),Object(m.render)(Object(m.createElement)(S.j,{position:"bottom right"}),c)}var s=document.querySelector(".block-editor-writing-flow__click-redirect");s&&s.remove()},Te=Object(j._x)("words","Word count type. Do not translate!","amp"),Ne=function(e,t,r,a,n){if(!e.offsetHeight||!e.offsetWidth)return!1;for(e.classList.toggle("is-measuring"),a++;a-n>1;){var o=Math.floor((n+a)/2);e.style.fontSize=o+"px";var i=e.offsetHeight,c=e.offsetWidth;i>t||c>r?a=o:n=o}return e.style.fontSize=n+"px",e.classList.toggle("is-measuring"),n},Re=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!r)if("x"===e)r=P.x;else{if("y"!==e)return 0;r=P.w}return Number((t/r*100).toFixed(2))},Me=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return r||("x"===e?r=P.x:"y"===e&&(r=P.w)),Math.round(t/100*r)},Ve=function(){var e=Object(C.f)().width,t=Math.max(696,e);return{width:t,height:1/.75*t}},Fe=function(e,t){var r=t.filter(Boolean);if(!r)return e;if(1===r.length)e.backgroundColor=r[0].color;else{var a=r.map(function(e){return e.color||"transparent"}).join(", ");e.backgroundImage="linear-gradient(to bottom, ".concat(a,")")}return e},Le=function(e){var t={},r=["positionTop","positionLeft","btnPositionTop","btnPositionLeft","width","height","tagName","align","content","text","value","citation","autoFontSize","rotationAngle"];for(var a in e.attributes)e.attributes.hasOwnProperty(a)&&r.includes(a)&&(t[a]=e.attributes[a]);return t},He=function(e){var t=[],r=!0,a=!1,n=void 0;try{for(var o,i=e.innerBlocks[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){var c=o.value;t.push(Object(w.createBlock)(c.name,Le(c)))}}catch(e){a=!0,n=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw n}}return Object(w.createBlock)(e.name,Le(e),t)},We=function(e){var t,r=e.className,a=e.ampFitText,n=e.backgroundColor,o=e.textColor,i=e.customBackgroundColor,c=e.customTextColor,l=e.opacity,s=Object(E.getColorClassName)("color",o),u=Object(E.getColorClassName)("background-color",n),p=l&&l<100;return g()(r,(t={"amp-text-content":!a,"has-text-color":o||c,"has-background":n||i},d()(t,s,s),d()(t,u,p?void 0:u),t))},Ue=function(e){var t=e.align,r=e.fontSize,a=e.customFontSize,n=e.ampFitText,o=e.backgroundColor,i=e.textColor,c=e.customBackgroundColor,l=e.customTextColor,s=e.opacity,u=Object(E.getColorClassName)("color",i),p=Object(k.select)("core/block-editor").getSettings(),d=p.colors,m=p.fontSizes,b=r?Object(E.getFontSize)(m,r,a).size:a,f=b&&(b/P.x*100).toFixed(2)+"vw";return{backgroundColor:Object(C.d)(d,Object(E.getColorObjectByAttributeValues)(d,o,c),c,s),color:u?void 0:l,fontSize:n?void 0:f,textAlign:t||void 0}},Ge=function(e){var t=e.attribute,r=e.placeholder,a=e.tagName,n=void 0===a?"p":a,o=e.isEditable,i=void 0!==o&&o;return{supports:{anchor:!0,reusable:!0},attributes:{align:{type:"string"}},save:Object(S.E)({tagName:n}),edit:Object(S.D)({attribute:t,placeholder:r,tagName:n,isEditable:i}),deprecated:oe({tagName:n})}},Qe=function(e){var t=me(e);if(t){var r="core/image"===t.name,a="core/video"===t.name;if(r||a){var n=t.attributes;(!n.ampShowImageCaption&&r||!n.ampShowCaption&&a)&&n.caption&&0!==n.caption.length&&ke(e,{caption:""})}}},$e=function(e){var t=me(e);if(t&&P.c.includes(t.name)){var r=me(pe(e));if(0===t.attributes.positionTop&&r){var a=Object(w.createBlock)(t.name);if(Object(v.every)(a.attributes,function(e,r){return e===t.attributes[r]})){var n=r.innerBlocks.map(function(e){return e.attributes.positionTop}).reduce(function(e,t){return Math.max(e,t)},0);ke(e,{positionTop:n>75?0:n+10})}}}},Je=function(e){var t=me(e);if(t&&P.e.includes(t.name)&&"media"===t.attributes.autoAdvanceAfter){var r=ue(de(e));if(!(t.attributes.autoAdvanceAfterMedia&&r.find(function(e){return e.attributes.anchor===t.attributes.autoAdvanceAfterMedia}))){var a=r.find(function(e){var t=e.name;return P.q.includes(t)}),n=a?a.attributes.anchor:"";t.attributes.autoAdvanceAfterMedia!==n&&ke(e,{autoAdvanceAfterMedia:n})}}},Ye=function(e){var t=e.name,r=e.clientId;switch(t){case"amp/amp-story-text":return document.querySelector("#block-".concat(r," .block-editor-rich-text__editable"));case"amp/amp-story-post-title":case"amp/amp-story-post-author":case"amp/amp-story-post-date":var a=t.replace("/","-");return document.querySelector("#block-".concat(r," .wp-block-").concat(a));default:return null}},Ke=function(e){var t=e.name,r=e.clientId,a=e.attributes,n=a.width,o=a.height,i=a.ampFitText,c=a.content,l=a.autoFontSize;if(i)switch(t){case"amp/amp-story-text":var s=Ye(e);if(s&&c.length){var u=Ne(s,o,n,x.c,x.f);u&&l!==u&&ke(r,{autoFontSize:u})}break;case"amp/amp-story-post-title":case"amp/amp-story-post-author":case"amp/amp-story-post-date":var p=Ye(e);if(p){var d=Ne(p,o,n,x.c,x.f);d&&l!==d&&ke(r,{autoFontSize:d})}}},Ze=function(e){var t=e.name,r=e.clientId,a=e.attributes,n=a.width,o=a.height,i=a.ampFitText,c=a.content;if(!i)switch(t){case"amp/amp-story-text":var l=Ye(e);l&&c.length&&(l.offsetHeight>o&&ke(r,{height:l.offsetHeight}),l.offsetWidth>n&&ke(r,{width:l.offsetWidth}));break;case"amp/amp-story-post-title":case"amp/amp-story-post-author":case"amp/amp-story-post-date":var s=Ye(e);s&&(s.classList.toggle("is-measuring"),s.offsetHeight>o&&ke(r,{height:s.offsetHeight}),s.offsetWidth>n&&ke(r,{width:s.offsetWidth}),s.classList.toggle("is-measuring"))}},Xe=function(e){if(e){var t=e.attributes;t.deprecated&&"migrated"===t.deprecated&&ke(e.clientId,{deprecated:null})}},et=function(e){var t=me(e);if(t){var r=t.name,a=t.attributes;if("core/image"===r){var n=a.width,o=a.height;if(!n&&!o&&a.id>0){var i=(0,Object(k.select)("core").getMedia)(a.id);if(i&&i.media_details){var c=i.media_details,l=c.height,s=c.width,u=1;(P.x<s||P.w<l)&&(u=Math.max(s/P.x,l/P.w)),ke(e,{width:Math.round(s/u),height:Math.round(l/u)})}}}}},tt=function(e){var t=me(e);if(t&&"amp/amp-story-text"===t.name){var r=!ue(de(e)).filter(function(t){return t.clientId!==e}).some(function(e){return"h1"===e.attributes.tagName}),a=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.fontSize,a=e.customFontSize,n=e.positionTop,o=e.type,i=e.content,c=void 0===i?"":i;if(o&&"auto"!==o)return o;if(n>80)return"p";if("huge"===r||a&&a>40)return t?"h1":"h2";if("large"===r||a&&a>24)return"h2";var l=Object(q.count)(c,Te,{});return 4>=l?t?"h1":"h2":10>=l?"h2":"p"}(t.attributes,r);t.attributes.tagName!==a&&ke(e,{tagName:a})}},rt=function e(t,r,a){var n,o=t.attributes.ampAnimationAfter;(o&&(n=a.find(function(e){return e.attributes.anchor===o})),n)&&((he()[r]||[]).find(function(e){return e.id===n.clientId})||e(n,r,a));ve(r,t.clientId,n?n.clientId:void 0)},at=function(){var e=he();if(Object(v.isEqual)({},e)){var t=ue(be()),r=!0,a=!1,n=void 0;try{for(var o,i=t[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){var c=o.value,l=pe(c.clientId);if(l){var s=c.attributes,u=s.ampAnimationType,p=s.ampAnimationDuration,d=s.ampAnimationDelay;rt(c,l,t),ye(l,c.clientId,u),Oe(l,c.clientId,p?parseInt(String(p).replace("ms","")):void 0),qe(l,c.clientId,d?parseInt(String(d).replace("ms","")):void 0)}}}catch(e){a=!0,n=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw n}}}},nt=function(e,t,r,a,n,o){return a&&n?Object(j.sprintf)(Object(j.__)("Block %s is the only block, and cannot be moved","amp"),e):o>0&&!n?Object(j.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
2
- Object(j.__)("Move %1$s block from position %2$d down to position %3$d","amp"),e,t,r):o>0&&n?Object(j.sprintf)(Object(j.__)("Block %s is at the end of the content and can’t be moved down","amp"),e):o<0&&!a?Object(j.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
3
- Object(j.__)("Move %1$s block from position %2$d up to position %3$d","amp"),e,t,r):o<0&&a?Object(j.sprintf)(Object(j.__)("Block %s is at the beginning of the content and can’t be moved up","amp"),e):void 0},ot=function(e){return ue(de(e)).find(function(e){return"amp/amp-story-cta"===e.name})},it=function(){return f()().replace(/^\d/,"a")},ct=function(e){var t=document.createElement("video");return t.muted=!0,t.crossOrigin="anonymous",t.preload="metadata",t.currentTime=.5,new Promise(function(r,a){t.addEventListener("error",a),t.addEventListener("canplay",function(){var e=document.createElement("canvas");e.width=t.videoWidth,e.height=t.videoHeight,e.getContext("2d").drawImage(t,0,0,e.width,e.height),e.toBlob(r,"image/jpeg")}),t.src=e})},lt=function(){var e=l()(n.a.mark(function e(t){var r,a,o,c,l;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,a=t.src,o=fe(),c=o.__experimentalMediaUpload,e.next=4,ct(a);case 4:return l=e.sent,e.abrupt("return",new Promise(function(e,t){c({filesList:[l],onFileChange:function(t){var a=i()(t,1)[0],n=a.id,o=a.url;r&&n&&(je({id:r,featured_media:n}),je({id:n,meta:{amp_is_poster:!0}})),Object(_.isBlobURL)(o)||e(a)},onError:t})}));case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),st=function(e){var t=e.url;return Object(v.has)(e,["media_details","sizes",P.p,"source_url"])?t=e.media_details.sizes[P.p].source_url:Object(v.has)(e,["media_details","sizes","large","source_url"])&&(t=e.media_details.sizes.large.source_url),t},ut=function(e){var t=me(e);t&&(t.attributes.anchor||ke(t.clientId,{anchor:it()}))},pt=O()(function(e,t,r){var a="function"==typeof t?t(e):t,n=a.reduce(function(t,r,n){return Math.abs(r-e)<Math.abs(a[t]-e)?n:t},0),o=Math.abs(a[n]-e);return 0===r||o<r?a[n]:e}),dt=function(e){var t=document.querySelector(e);if(t){var r=document.createRange();r.selectNodeContents(t),r.collapse(!1);var a=window.getSelection();a.removeAllRanges(),a.addRange(r)}}},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t,r){e.exports=r(48)()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}e.exports=function(e,t,a){return t&&r(e.prototype,t),a&&r(e,a),e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,r){var a=r(50),n=r(12);e.exports=function(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?n(e):t}},function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(t)}e.exports=r},function(e,t,r){var a=r(51);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}},function(e,t,r){"use strict";r.d(t,"i",function(){return m}),r.d(t,"f",function(){return b}),r.d(t,"l",function(){return f}),r.d(t,"d",function(){return g}),r.d(t,"c",function(){return v}),r.d(t,"g",function(){return y}),r.d(t,"b",function(){return O}),r.d(t,"a",function(){return q}),r.d(t,"k",function(){return j}),r.d(t,"h",function(){return k}),r.d(t,"j",function(){return w}),r.d(t,"e",function(){return _});var a=r(28),n=r.n(a),o=r(33),i=r.n(o),c=r(29),l=r.n(c),s=r(9),u=r(1),p=r(4),d=r(21),m=function(e,t){if(!e||!e.width||!e.height)return!1;var r=t.width,a=t.height;return e.width>=r&&e.height>=a},b=function(){var e=d.e;return{width:e,height:e*(9/16)}},f=function(e,t,r){if(!e)return r?[Object(u.__)("Selecting a featured image is required.","amp")]:[Object(u.__)("Selecting a featured image is recommended for an optimal user experience.","amp")];var a=[];if(["image/png","image/gif","image/jpeg"].includes(e.mime_type)||a.push(
4
  /* translators: 1: .jpg, 2: .png. 3: .gif */
5
- Object(u.sprintf)(Object(u.__)("The featured image must be in %1$s, %2$s, or %3$s format.","amp"),".jpg",".png",".gif")),!m(e.media_details,t)){var n=t.width,o=t.height;a.push(
6
  /* translators: 1: minimum width, 2: minimum height. */
7
- Object(u.sprintf)(Object(u.__)("The featured image should have a size of at least %1$s by %2$s pixels.","amp"),Math.ceil(n),Math.ceil(o)))}return 0===a.length?null:a},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;if(!e)return[];3===(e=e.replace("#","")).length&&(e="".concat(e.charAt(0)).concat(e.charAt(0)).concat(e.charAt(1)).concat(e.charAt(1)).concat(e.charAt(2)).concat(e.charAt(2)));var r=parseInt(e.substring(0,2),16),a=parseInt(e.substring(2,4),16),n=parseInt(e.substring(4,6),16);return[r,a,n,(t=Math.min(100,Math.max(0,t)))/100]},g=function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,n=t?Object(p.getColorObjectByColorValue)(e,t.color)||Object(p.getColorObjectByAttributeValues)(e,t.slug,t.color||r):{color:r};if(n&&n.color){var o=h(n.color,a),i=l()(o,4),c=i[0],s=i[1],u=i[2],d=i[3];return"rgba(".concat(c,", ").concat(s,", ").concat(u,", ").concat(d,")")}},v=function(e,t){return e&&t?e>t?"landscape":t>e?"portrait":"square":null},y=function(e){var t=Object(s.template)("<p>".concat(e,"</p>"),{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g});return function(e){return t(e)}},O=function(e,t){if(e){var r=Object(s.get)(this,["options","allowedTypes"],null),a=this.get("select");r&&e.get("type")&&!function(e,t){var r=e.get("type"),a=e.get("mime");return!(!Object(s.includes)(t,r)&&!Object(s.includes)(t,a)||"video"===r&&"video/mp4"!==a)}(e,r)?(this.secondary.set(d.b,new t({mimeType:e.get("mime")})),a&&a.model&&a.model.set("disabled",!0)):(this.secondary.unset(d.b),a&&a.model&&a.model.set("disabled",!1))}},q=function(e,t){e&&(("video"===Object(s.get)(e,["media_type"],null)||"video"===Object(s.get)(e,["attributes","type"],null))&&w(k(e))?this.secondary.set(d.a,new t({actualVideoMegabytesPerSecond:Math.round(k(e)/d.d),maxVideoMegabytesPerSecond:d.g})):this.secondary.unset(d.a))},j=function(){return Boolean(this.secondary.get(d.b))&&Boolean(this.secondary.get(d.a))},k=function(e){return Object(s.has)(e,["media_details","filesize"])&&Object(s.has)(e,["media_details","length"])?e.media_details.filesize/e.media_details.length:Object(s.has)(e,["attributes","filesizeInBytes"])&&Object(s.has)(e,["attributes","fileLength"])?e.attributes.filesizeInBytes/E(e.attributes.fileLength):null},w=function(e){return e>d.g*d.d},E=function(e){var t=e.split(":");return Object(s.reduce)(t,function(e,r,a){var n=isNaN(parseInt(r))?0:parseInt(r),o=t.length-1-a;return e+Math.pow(60,o)*n},0)},_=function(){var e=i()(n.a.mark(function e(t){var r,a,o;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=window,a=r.fetch,e.next=3,a(t,{method:"head"});case 3:return o=e.sent,e.abrupt("return",Number(o.headers.get("content-length")));case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()},function(e,t,r){var a;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var o=typeof a;if("string"===o||"number"===o)e.push(a);else if(Array.isArray(a)&&a.length){var i=n.apply(null,a);i&&e.push(i)}else if("object"===o)for(var c in a)r.call(a,c)&&a[c]&&e.push(c)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(a=function(){return n}.apply(t,[]))||(e.exports=a)}()},function(e,t,r){"use strict";r.d(t,"a",function(){return i});var a=r(7),n=r.n(a);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}var i=function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(r,!0).forEach(function(t){n()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e,{deprecated:"migrated"})}},function(e,t,r){"use strict";r.d(t,"f",function(){return a}),r.d(t,"c",function(){return n}),r.d(t,"e",function(){return o}),r.d(t,"d",function(){return i}),r.d(t,"g",function(){return c}),r.d(t,"b",function(){return l}),r.d(t,"a",function(){return s});var a=6,n=72,o=1200,i=1e6,c=1,l="select-file-type-error",s="select-file-size-error"},function(e,t,r){var a=r(52),n=r(53),o=r(54);e.exports=function(e){return a(e)||n(e)||o()}},function(e,t,r){"use strict";var a=r(0),n=(r(10),r(5)),o=r(2),i=r(1),c=r(3),l=Object(n.withSelect)(function(e){var t=(0,e("core/block-editor").getSelectedBlock)();return{selectedBlock:t?t.name:null}})(function(e){var t=e.animatedBlocks,r=e.onAnimationTypeChange,n=e.onAnimationDurationChange,l=e.onAnimationDelayChange,s=e.onAnimationAfterChange,u=e.animationType,d=e.animationDuration,m=e.animationDelay,b=e.animationAfter,f=e.selectedBlock,h=c.i[u]||0,g="core/image"===f,v=c.g.filter(function(e){return!(e.value.startsWith("pan-")&&!g)});return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(o.SelectControl,{label:Object(i.__)("Animation Type","amp"),value:u,options:v,onChange:function(e){r(e),n(c.i[e]||0),l(0)}}),u&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)(o.RangeControl,{label:Object(i.__)("Duration (ms)","amp"),value:d,onChange:n,min:"0",max:"5000",placeholder:h,initialPosition:h}),Object(a.createElement)(o.RangeControl,{label:Object(i.__)("Delay (ms)","amp"),value:m||0,onChange:l,min:"0",max:"5000"}),Object(a.createElement)(p,{value:b,options:t(),onChange:s})))}),s=r(25),u=r.n(s);var p=function(e){var t=e.value,r=void 0===t?"":t,n=e.options,o=e.onChange,c={value:"",label:Object(i.__)("Immediately","amp")};return Object(a.createElement)(Se,{value:r,options:n,defaultOption:c,onChange:function(e){var t=e.value,r=e.block;return o(""===t?void 0:r.clientId)},label:Object(i.__)("Begin after","amp"),id:"amp-stories-animation-order-picker",ariaLabel:function(e){var t=e.value,r=e.blockType;return t?Object(i.sprintf)(Object(i.__)("Begin after: %s","amp"),r.title):Object(i.__)("Begin immediately","amp")},renderToggle:function(e){return Object(a.createElement)(N,u()({},e,{displayIcon:!1,alignIcon:"right"}))},renderOption:function(e){return Object(a.createElement)("span",{className:"components-preview-picker__dropdown-label"},Object(a.createElement)(N,u()({},e,{alignIcon:"right"})))}})},d=r(8),m=r(14),b=r.n(m),f=r(13),h=r.n(f),g=r(15),v=r.n(g),y=r(16),O=r.n(y),q=r(12),j=r.n(q),k=r(17),w=r.n(k),E=r(19),_=r.n(E),S=function(e){function t(){var e,r;b()(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return(r=v()(this,(e=O()(t)).call.apply(e,[this].concat(n)))).state={isDragging:!1},r.onDrop=r.onDrop.bind(j()(r)),r}return w()(t,e),h()(t,[{key:"getInsertIndex",value:function(e){var t=this.props,r=t.block.clientId,a=t.getBlockIndex;if(void 0!==r){var n=a(r);return"top"===e.y?n:n+1}}},{key:"onDrop",value:function(e,t){var r=this.props,a=r.block.clientId,n=r.moveBlockToPosition,o=r.getBlockIndex,i=function(e){var t={srcClientId:null,srcIndex:null,type:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("text")))}catch(e){return t}return t}(e),c=i.srcClientId,l=i.srcIndex,s=i.type;if("block"===s&&c!==a){var u=o(a),p=this.getInsertIndex(t);n(c,l<u?p-1:p)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.block,n=t.getBlockIndex,c=t.isSelected,l=t.onClick,s="amp/amp-story-cta"===r.name,u=r.clientId,p="block-navigation-item-".concat(u);if(s)return Object(a.createElement)("div",{className:"editor-block-navigation__item block-editor-block-navigation__item"},Object(a.createElement)(o.Button,{className:_()("components-button editor-block-navigation__item-button block-editor-block-navigation__item-button",{"is-selected":c}),onClick:l,id:p},Object(a.createElement)(N,{block:r,accessibilityText:c&&Object(i.__)("(selected block)","amp")})));var d={type:"block",srcIndex:n(u),srcClientId:u};return Object(a.createElement)("div",{className:_()("editor-block-navigation__item block-editor-block-navigation__item",{"block-editor-block-navigation__item-is-dragging":this.state.isDragging})},Object(a.createElement)(o.Draggable,{elementId:p,transferData:d,onDragStart:function(){return e.setState({isDragging:!0})},onDragEnd:function(){return e.setState({isDragging:!1})}},function(t){var n=t.onDraggableStart,s=t.onDraggableEnd;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(o.DropZone,{className:e.state.isDragging?"is-dragging-block":void 0,onDrop:e.onDrop}),Object(a.createElement)("div",{className:"block-navigation__placeholder"}),Object(a.createElement)(o.Button,{className:_()("components-button editor-block-navigation__item-button block-editor-block-navigation__item-button",{"is-selected":c}),onClick:l,id:p,onDragStart:n,onDragEnd:s,draggable:!0},Object(a.createElement)(N,{block:r,accessibilityText:c&&Object(i.__)("(selected block)","amp")})))}))}}]),t}(a.Component),P=Object(n.withSelect)(function(e,t){var r=t.block.clientId,a=e("core/block-editor"),n=a.getBlockOrder,o=a.getBlockRootClientId,i=(0,a.getBlocksByClientId)(n(o(r))).map(function(e){return e.clientId}).reverse();return{getBlockIndex:function(e){return i.indexOf(e)}}}),x=Object(n.withDispatch)(function(e,t,r){var a=t.block.clientId,n=(0,r.select)("core/block-editor"),o=n.getBlockOrder,i=n.getBlockRootClientId,c=e("core/block-editor").moveBlockToPosition,l=i(a),s=o(l);return{moveBlockToPosition:function(e,t){var r=s.length-1-t;c(e,l,l,r)}}}),C=Object(d.compose)(P,x)(S);r(55);function I(e){var t=e.blocks,r=e.selectedBlockClientId,n=e.selectBlock,i=e.callToActionBlock;return Object(a.createElement)(a.Fragment,null,t.length>0&&Object(a.createElement)(o.DropZoneProvider,null,Object(a.createElement)("ul",{className:"editor-block-navigation__list block-editor-block-navigation__list",role:"list"},t.map(function(e){var t=e.clientId===r;return Object(a.createElement)("li",{key:e.clientId},Object(a.createElement)(C,{block:e,isSelected:t,onClick:function(){return n(e.clientId)}}))}))),i&&Object(a.createElement)("ul",{className:"editor-block-navigation__list block-editor-block-navigation__list editor-block-navigation__list__static",role:"list"},Object(a.createElement)("li",{key:i.clientId},Object(a.createElement)(C,{block:i,isSelected:i.clientId===r,onClick:function(){return n(i.clientId)}}))))}var B=Object(d.compose)(Object(n.withSelect)(function(e){var t=e("amp/story"),r=t.getCurrentPage,a=t.isReordering,n=e("core/block-editor"),o=n.getBlockOrder,i=n.getBlocksByClientId,l=n.getSelectedBlockClientId,s=r()?i(o(r())):[],u=s.find(function(e){return"amp/amp-story-cta"===e.name});return{blocks:s=s.filter(function(e){var t=e.name;return c.d.includes(t)}).reverse(),callToActionBlock:u,selectedBlockClientId:l(),isReordering:a()}}),Object(n.withDispatch)(function(e,t){var r=t.onSelect,a=void 0===r?function(){}:r;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),a(t)}}}),Object(d.ifCondition)(function(e){return!e.isReordering}))(function(e){var t=e.callToActionBlock,r=e.blocks,n=e.selectBlock,c=e.selectedBlockClientId,l=r.length>0||t;return Object(a.createElement)(o.NavigableMenu,{role:"presentation",className:"block-editor-block-navigation__container"},Object(a.createElement)("p",{className:"block-editor-block-navigation__label"},Object(i.__)("Elements","amp")),l&&Object(a.createElement)(I,{blocks:r,selectedBlockClientId:c,selectBlock:n,callToActionBlock:t}),!l&&Object(a.createElement)("p",{className:"block-editor-block-navigation__paragraph"},Object(i.__)("No elements added to this page yet.","amp")))}),A=r(11),z=r(4),D=function(e){var t=e.clientId,r=e.name,n=e.attributes,i=e.innerBlocks,c=void 0===i?[]:i,l=Object(A.createBlock)(r,n,c);return Object(a.createElement)(o.Disabled,{className:"block-editor-block-preview__content editor-styles-wrapper","aria-hidden":!0},Object(a.createElement)(z.BlockEdit,{name:r,focus:!1,clientId:t,isLocked:!0,insertBlocksAfter:!1,attributes:l.attributes,setAttributes:function(){}}))},T=r(35),N=Object(n.withSelect)(function(e,t){var r=t.block,a=t.label;if(!r)return{content:a,icon:null};var n=e("core/editor").getEditedPostAttribute,o=e("core"),c=o.getAuthors,l=o.getMedia,s=Object(A.getBlockType)(r.name);a=s.title;var u="";switch(r.name){case"core/image":if(r.attributes.url&&(u=r.attributes.url.slice(r.attributes.url.lastIndexOf("/")).slice(1,30)).length>0&&(a=u),r.attributes.id){var p=l(r.attributes.id);p&&(a=p.caption.raw||p.title.raw||a)}break;case"amp/amp-story-text":r.attributes.content.length>0&&(u=r.attributes.content.replace(/<br>/g," ").replace(/<[^<>]+>/g,"").slice(0,30)),a=u.length>0?u:s.title;break;case"amp/amp-story-post-author":var d=c().find(function(e){return e.id===n("author")});a=d?d.name:Object(i.__)("Post Author","amp");break;case"amp/amp-story-post-date":var m=n("date"),b=Object(T.__experimentalGetSettings)().formats.date,f=m||new Date;a=Object(T.dateI18n)(b,f);break;case"amp/amp-story-post-title":a=n("title")||s.title}return{content:a,icon:s.icon}})(function(e){var t=e.content,r=e.icon,n=e.displayIcon,o=void 0===n||n,i=e.alignIcon,c=void 0===i?"left":i,l=e.accessibilityText,s=void 0!==l&&l;return Object(a.createElement)(a.Fragment,null,o&&"left"===c&&Object(a.createElement)(z.BlockIcon,{icon:r}),t.length>20?"".concat(t.substr(0,20),"…"):t,s&&Object(a.createElement)("span",{className:"screen-reader-text"},s),o&&"right"===c&&Object(a.createElement)(z.BlockIcon,{icon:r}))}),R=r(26),M=function(e){var t=e.blockClass,r=e.blockElementId,n=e.clientId,o=e.hasOverlay,i=e.isDraggable,c=e.isSelected,l=e.name,s=e.toggleIsEditing,u=e.toggleOverlay,p=e.text,d=e.textStyle,m=e.textWrapperClass,b=e.placeholder;return Object(a.createElement)(ge,{clientId:n,blockName:l,blockElementId:r,isDraggable:i,isMovable:!0},Object(a.createElement)("div",{role:"textbox",tabIndex:"-1",className:_()("is-not-editing","editor-rich-text","block-editor-rich-text",t),onClick:function(){c&&s(!0)},onMouseDown:function(e){1<e.detail&&e.preventDefault()},onKeyDown:function(e){e.stopPropagation(),R.ENTER===e.keyCode&&c&&(u(!1),s(!0))}},o&&Object(a.createElement)("div",{role:"textbox",tabIndex:"-1",className:"amp-overlay",onClick:function(e){u(!1),e.stopPropagation()},onKeyDown:function(e){e.stopPropagation(),R.ENTER===e.keyCode&&c&&(u(!1),s(!0))}}),Object(a.createElement)("div",{role:"textbox",className:m,style:d},p&&p.length?Object(a.createElement)(a.RawHTML,null,p):Object(a.createElement)("span",{className:"amp-text-placeholder"},b))))},V=function(e){var t=e.pages,r=e.currentPage,n=e.onClick;
8
- /* translators: %s: Page number */return Object(a.createElement)("ul",{className:"amp-story-editor-carousel-item-list"},t.map(function(e,t){var c,l=e.clientId===r?"amp-story-editor-carousel-item amp-story-editor-carousel-item--active":"amp-story-editor-carousel-item";return Object(a.createElement)("li",{key:e.clientId,className:l},Object(a.createElement)(o.Tooltip,{text:(c=t+1,Object(i.sprintf)(Object(i.__)("Go to page %s","amp"),c))},Object(a.createElement)(o.Button,{onClick:function(t){t.preventDefault(),n(e.clientId)},disabled:e.clientId===r},Object(a.createElement)("span",{className:"screen-reader-text"},function(e){return Object(i.sprintf)(Object(i.__)("Page %s","amp"),e)}(t+1)))))}))},F=(r(56),function(e){function t(){var e,r;b()(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return(r=v()(this,(e=O()(t)).call.apply(e,[this].concat(n)))).translateWrapper.bind(j()(r)),r}return w()(t,e),h()(t,[{key:"translateWrapper",value:function(){var e=document.querySelector("#amp-story-controls + .block-editor-block-list__layout");if(e){var t=this.props.currentIndex;this.props.isReordering?e.style.display="none":(e.style.display="",e.style.transform="translateX(calc(50% - ".concat(1,"px - ").concat((c.x+50)/2,"px - ").concat(50*t,"px - ").concat(t*c.x,"px))"))}}},{key:"componentDidMount",value:function(){this.translateWrapper()}},{key:"componentDidUpdate",value:function(){this.translateWrapper()}},{key:"render",value:function(){var e=this.props,t=e.pages,r=e.currentPage,n=e.previousPage,c=e.nextPage,l=e.onChangePage,s=e.isReordering,u=function(e){l(e)};return s?Object(a.createElement)(Q,null):Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:"amp-story-editor-carousel-navigation"},Object(a.createElement)(o.IconButton,{icon:"arrow-left-alt2",label:Object(i.__)("Previous Page","amp"),onClick:function(e){e.preventDefault(),u(n)},disabled:null===n}),Object(a.createElement)(V,{pages:t,currentPage:r,onClick:u}),Object(a.createElement)(o.IconButton,{icon:"arrow-right-alt2",label:Object(i.__)("Next Page","amp"),onClick:function(e){e.preventDefault(),u(c)},disabled:null===c})))}}]),t}(a.Component)),L=Object(d.compose)(Object(n.withSelect)(function(e){var t=e("core/block-editor"),r=t.getBlockOrder,a=t.getBlocksByClientId,n=t.getAdjacentBlockClientId,o=e("amp/story"),i=o.getCurrentPage,c=o.isReordering,l=i(),s=a(r()),u=s.findIndex(function(e){return e.clientId===l});return{pages:s,currentPage:l,currentIndex:Math.max(0,u),previousPage:i()?n(l,-1):null,nextPage:i()?n(l,1):null,isReordering:c()}}),Object(n.withDispatch)(function(e){var t=e("amp/story").setCurrentPage,r=e("core/block-editor").selectBlock;return{onChangePage:function(e){t(e),r(e)}}}))(F),H=function(e){function t(){var e,r;b()(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return(r=v()(this,(e=O()(t)).call.apply(e,[this].concat(n)))).state={isDragging:!1},r.onDrop=r.onDrop.bind(j()(r)),r}return w()(t,e),h()(t,[{key:"getInsertIndex",value:function(e){var t=this.props.index;if(void 0!==t)return"right"===e.x?t+1:t}},{key:"onDrop",value:function(e,t){var r=this.props,a=r.page.clientId,n=r.movePageToPosition,o=r.index,i=function(e){var t={srcRootClientId:null,srcClientId:null,srcIndex:null,type:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("text")))}catch(e){return t}return t}(e),c=i.srcClientId,l=i.srcIndex,s=i.type;if("block"===s&&c!==a){var u=this.getInsertIndex(t);n(c,l<o?u-1:u)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.page,n=t.index,i=r.clientId,c="reorder-page-".concat(i),l={type:"block",srcIndex:n,srcClientId:i};return Object(a.createElement)("div",{className:"amp-story-reorderer-item"},Object(a.createElement)(o.Draggable,{elementId:c,transferData:l,onDragStart:function(){return e.setState({isDragging:!0})},onDragEnd:function(){return e.setState({isDragging:!1})}},function(t){var n=t.onDraggableStart,i=t.onDraggableEnd;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(o.DropZone,{className:e.state.isDragging?"is-dragging-page":void 0,onDrop:e.onDrop}),Object(a.createElement)("div",{className:"amp-story-reorderer-item-page",id:c},Object(a.createElement)("div",{className:"amp-story-page-preview",onDragStart:n,onDragEnd:i,draggable:!0},Object(a.createElement)(D,r))))}))}}]),t}(a.Component),W=Object(n.withSelect)(function(e,t){var r=t.page.clientId;return{index:(0,e("amp/story").getBlockIndex)(r)}}),U=Object(n.withDispatch)(function(e){return{movePageToPosition:e("amp/story").movePageToPosition}}),G=Object(d.compose)(W,U)(H),Q=(r(57),Object(n.withSelect)(function(e){return{pages:(0,e("core/block-editor").getBlocksByClientId)((0,e("amp/story").getBlockOrder)())}})(function(e){var t=e.pages;return Object(a.createElement)(o.DropZoneProvider,null,Object(a.createElement)("div",{className:"amp-story-reorderer"},t.map(function(e){return Object(a.createElement)(G,{key:"page-".concat(e.clientId),page:e})})))})),$=(r(31),r(58),function(e){return Object(a.createElement)("svg",e,Object(a.createElement)("path",{d:"M14 0h10v2H14V0zm0 7h10v2H14V7zm0 7h10v2H14v-2zm-2 1l-5 4v-3.069C3.06 15.436 0 12.072 0 8c0-4.411 3.589-8 8-8h3v2H8C4.691 2 2 4.691 2 8c0 2.967 2.167 5.431 5 5.91V11l5 4z",fill:"#555D66"}))});$.defaultProps={width:"24",height:"19",viewBox:"0 0 24 19",xmlns:"http://www.w3.org/2000/svg"};var J=Object(d.compose)(Object(n.withSelect)(function(e){var t=e("amp/story").isReordering,r=e("core/block-editor").getBlockOrder;return{isReordering:t(),blockOrder:r()}}),Object(n.withDispatch)(function(e,t){var r=t.blockOrder,a=e("core/block-editor").clearSelectedBlock,n=e("amp/story"),o=n.startReordering,i=n.saveOrder,c=n.resetOrder;return{startReordering:function(){a(),o(r)},saveOrder:i,resetOrder:function(){return c(r)}}}))(function(e){var t=e.isReordering,r=e.startReordering,n=e.saveOrder,c=e.resetOrder;return t?Object(a.createElement)(a.Fragment,null,Object(a.createElement)(o.IconButton,{className:"amp-story-controls-reorder-cancel",onClick:c,icon:"no-alt"},Object(i.__)("Cancel","amp")),Object(a.createElement)(o.Button,{className:"amp-story-controls-reorder-save",onClick:n,isLarge:!0,isPrimary:!0},Object(i.__)("Save Changes","amp"))):Object(a.createElement)(a.Fragment,null,Object(a.createElement)(ke,null),Object(a.createElement)(o.IconButton,{className:"amp-story-controls-reorder",icon:$({width:24,height:19}),label:Object(i.__)("Reorder Pages","amp"),onClick:r}))}),Y=Object(n.withSelect)(function(e){var t=e("amp/story").getCurrentPage,r=e("core/block-editor"),a=r.canInsertBlockType,n=r.getBlockListSettings;return{isReordering:(0,e("amp/story").isReordering)(),canInsertBlockType:function(e){var r=n(t());return a(e,t())&&r&&r.allowedBlocks.includes(e)},showInserter:"visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled}}),K=Object(n.withDispatch)(function(e,t,r){var a=r.select,n=a("amp/story").getCurrentPage,o=a("core/block-editor").getBlockOrder,i=e("core/block-editor").insertBlock;return{insertBlock:function(e){var t=n(),r=o(t).length,a=Object(A.createBlock)(e,{});i(a,r,t)}}}),Z=Object(d.compose)(Y,K,Object(d.ifCondition)(function(e){return!e.isReordering}))(function(e){var t=e.insertBlock,r=e.canInsertBlockType,n=e.showInserter;return["amp/amp-story-text","core/image","amp/amp-story-cta"].map(function(e){if(!r(e))return null;var i=Object(A.getBlockType)(e);return Object(a.createElement)(o.IconButton,{key:e,icon:Object(a.createElement)(z.BlockIcon,{icon:i.icon}),onClick:function(){return t(e)},label:i.title,labelPosition:"bottom",disabled:!n})})}),X=r(7),ee=r.n(X),te=r(6),re=function(e){function t(){var e,r;b()(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return(r=v()(this,(e=O()(t)).call.apply(e,[this].concat(n)))).onDrop=r.onDrop.bind(j()(r)),r}return w()(t,e),h()(t,[{key:"onDrop",value:function(e){var t,r,a,n,o=this.props,i=o.srcBlockName,l=o.updateBlockAttributes,s=o.srcClientId,u="amp/amp-story-cta"===i;if(u){r="amp-story-cta-button-".concat(s),a="clone-amp-story-cta-button-".concat(s);var p="#block-".concat(s," .editor-block-list__block-edit");n=document.querySelector(p)}else r="block-".concat(s),a="clone-block-".concat(s),n=document.querySelector('div[data-amp-selected="parent"] .editor-inner-blocks');var d=document.getElementById(r),m=document.getElementById(a);if(d&&m&&n){u||(m.parentNode.style.visibility="hidden",m.parentNode.style.transform="none");var b=m.getBoundingClientRect(),f=n.getBoundingClientRect(),h=u?"btnPositionLeft":"positionLeft",g=u?"btnPositionTop":"positionTop",v=c.w;u&&(v=c.w/5),l(s,(t={},ee()(t,h,Object(te.o)("x",b.left-f.left)),ee()(t,g,Object(te.o)("y",b.top-f.top,v)),t))}else e.preventDefault()}},{key:"render",value:function(){return Object(a.createElement)(o.DropZone,{className:"editor-block-drop-zone",onDrop:this.onDrop})}}]),t}(a.Component),ae=Object(n.withDispatch)(function(e){var t=e("core/block-editor").updateBlockAttributes;return{updateBlockAttributes:function(){t.apply(void 0,arguments)}}})(re),ne=r(22),oe=r.n(ne),ie=r(9),ce=window.Image,le=function(e){function t(){var e,r;b()(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return(r=v()(this,(e=O()(t)).call.apply(e,[this].concat(n)))).onDragStart=r.onDragStart.bind(j()(r)),r.onDragOver=r.onDragOver.bind(j()(r)),r.onDrop=r.onDrop.bind(j()(r)),r.onDragEnd=r.onDragEnd.bind(j()(r)),r.resetDragState=r.resetDragState.bind(j()(r)),r.isChromeAndHasIframes=!1,r}return w()(t,e),h()(t,[{key:"componentDidMount",value:function(){document.querySelectorAll('.block-editor-block-list__block[data-type="core/image"] img').forEach(function(e){e.setAttribute("draggable","false")})}},{key:"componentWillUnmount",value:function(){this.resetDragState()}},{key:"onDragEnd",value:function(e){var t=this.props.onDragEnd,r=void 0===t?ie.noop:t;e&&e.preventDefault(),this.resetDragState(),this.props.setTimeout(r)}},{key:"onDragOver",value:function(e){var t=parseInt(this.cloneWrapper.style.top)+e.clientY-this.cursorTop;"amp/amp-story-cta"===this.props.blockName?this.cloneWrapper.style.top=t>=0?"".concat(t,"px"):"0px":this.cloneWrapper.style.top="".concat(t,"px"),this.cloneWrapper.style.left="".concat(parseInt(this.cloneWrapper.style.left)+e.clientX-this.cursorLeft,"px"),this.cursorLeft=e.clientX,this.cursorTop=e.clientY}},{key:"onDrop",value:function(){this.onDragEnd(null)}},{key:"onDragStart",value:function(e){var t=this.props,r=t.blockName,a=t.elementId,n=t.transferData,o=t.onDragStart,i=void 0===o?ie.noop:o,l=document.getElementById(a),s="amp/amp-story-cta"===r,u=l.closest('div[data-type="amp/amp-story-page"]');if(l&&u){var p=new ce;p.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=",e.dataTransfer.setDragImage(p,0,0),e.dataTransfer.setData("text",JSON.stringify(n));var d=l.parentNode;this.cloneWrapper=document.createElement("div"),this.cloneWrapper.classList.add("components-draggable__clone"),this.cloneWrapper.style.width="".concat(l.clientWidth,"px"),this.cloneWrapper.style.height="".concat(l.clientHeight,"px");var m=l.cloneNode(!0);this.cloneWrapper.style.transform=m.style.transform;var b=s?c.w/5:c.w;this.cloneWrapper.style.top="".concat(Object(te.p)("y",parseInt(m.style.top),b),"px"),this.cloneWrapper.style.left="".concat(Object(te.p)("x",parseInt(m.style.left),c.x),"px"),m.id="clone-".concat(a),m.style.top=0,m.style.left=0,m.style.transform="none",oe()(m.querySelectorAll("iframe")).forEach(function(e){return e.parentNode.removeChild(e)}),this.cloneWrapper.appendChild(m),d.appendChild(this.cloneWrapper),this.cursorLeft=e.clientX,this.cursorTop=e.clientY,document.body.classList.add("is-dragging-components-draggable"),document.addEventListener("dragover",this.onDragOver),/Chrome/i.test(window.navigator.userAgent)&&oe()(document.getElementById("editor").querySelectorAll("iframe")).length>0&&(this.isChromeAndHasIframes=!0,document.addEventListener("drop",this.onDrop)),this.props.setTimeout(i)}else e.preventDefault()}},{key:"resetDragState",value:function(){document.removeEventListener("dragover",this.onDragOver),this.cloneWrapper&&this.cloneWrapper.parentNode&&(this.cloneWrapper.parentNode.removeChild(this.cloneWrapper),this.cloneWrapper=null),this.isChromeAndHasIframes&&(this.isChromeAndHasIframes=!1,document.removeEventListener("drop",this.onDrop)),document.body.classList.remove("is-dragging-components-draggable")}},{key:"render",value:function(){return(0,this.props.children)({onDraggableStart:this.onDragStart,onDraggableEnd:this.onDragEnd})}}]),t}(a.Component),se=Object(d.withSafeTimeout)(le),ue=Object(n.withSelect)(function(e,t){var r=t.clientId,a=e("core/block-editor"),n=a.getBlockIndex,o=(0,a.getBlockRootClientId)(r);return{index:n(r,o),rootClientId:o}})(function(e){var t=e.children,r=e.clientId,n=e.blockName,o=e.rootClientId,i=e.blockElementId,c=e.index,l=e.onDragStart,s=e.onDragEnd,u={type:"block",srcIndex:c,srcRootClientId:o,srcClientId:r};return Object(a.createElement)(se,{blockName:n,elementId:i,transferData:u,onDragStart:l,onDragEnd:s},function(e){var r=e.onDraggableStart,a=e.onDraggableEnd;return t({onDraggableStart:r,onDraggableEnd:a})})}),pe=function(e){var t=e.children,r=e.blockName,n=e.className,o=e.onDragStart,i=e.onDragEnd,c=e.blockElementId,l=e.clientId;return Object(a.createElement)(ue,{clientId:l,blockElementId:c,blockName:r,onDragStart:o,onDragEnd:i},function(e){var r=e.onDraggableStart,o=e.onDraggableEnd;return Object(a.createElement)("div",{className:n,"aria-hidden":"true",onDragStart:r,onDragEnd:o,draggable:!0},t)})},de=r(30),me=r.n(de),be=function(e){function t(){var e,r;b()(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return(r=v()(this,(e=O()(t)).call.apply(e,[this].concat(n)))).proxyEvent=r.proxyEvent.bind(j()(r)),r.eventMap={},r}return w()(t,e),h()(t,[{key:"proxyEvent",value:function(e){var t=Boolean(e.nativeEvent._blockHandled);e.nativeEvent._blockHandled=!0;var r=this.eventMap[e.type];t&&(r+="Handled"),this.props[r]&&this.props[r](e)}},{key:"render",value:function(){var e=this,t=this.props,r=t.childHandledEvents,n=void 0===r?[]:r,o=t.forwardedRef,i=me()(t,["childHandledEvents","forwardedRef"]),c=Object(ie.reduce)([].concat(oe()(n),oe()(Object.keys(i))),function(t,r){var a=r.match(/^on([A-Z][a-zA-Z]+?)(Handled)?$/);if(a){Boolean(a[2])&&delete i[r];var n="on"+a[1];t[n]=e.proxyEvent,e.eventMap[a[1].toLowerCase()]=n}return t},{});return Object(a.createElement)("div",u()({ref:o},i,c))}}]),t}(a.Component),fe=function(e,t){return Object(a.createElement)(be,u()({},e,{forwardedRef:t}))};fe.displayName="IgnoreNestedEvents";var he=Object(a.forwardRef)(fe),ge=(r(62),function(e){function t(){return b()(this,t),v()(this,O()(t).apply(this,arguments))}return w()(t,e),h()(t,[{key:"render",value:function(){var e=this.props,t=e.children,r=e.blockName,n=e.isDraggable,o=e.isMovable,i=e.onDragStart,c=e.clientId,l=e.blockElementId;return o&&n?Object(a.createElement)(he,{childHandledEvents:["onDragStart","onMouseDown"],className:"block-mover"},Object(a.createElement)("div",null,Object(a.createElement)(pe,{children:t,clientId:c,blockElementId:l,blockName:r,onDragStart:i}))):t}}]),t}(a.Component)),ve=function(e){function t(){var e,r;b()(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return(r=v()(this,(e=O()(t)).call.apply(e,[this].concat(n)))).state={shouldLoad:!1},r}return w()(t,e),h()(t,[{key:"componentDidMount",value:function(){var e=this;this.state.shouldLoad||this.props.setTimeout(function(){e.setState({shouldLoad:!0})},100)}},{key:"render",value:function(){if(!this.state.shouldLoad)return Object(a.createElement)(o.Spinner,null);var e=this.props.item;return Object(a.createElement)(D,{name:"core/block",attributes:{ref:e.id}})}}]),t}(a.Component),ye=Object(d.withSafeTimeout)(ve),Oe=(r(63),function(e){return Object(a.createElement)("svg",e,Object(a.createElement)("g",{clipPath:"url(#a)"},Object(a.createElement)("path",{d:"M71.115 91.034H1.654V1.655h52.923l16.538 16.552v72.828z",fill:"#fff"}),Object(a.createElement)("path",{d:"M54.577 1.655v16.552h16.538L54.577 1.655z",fill:"#A9A9A9"}),Object(a.createElement)("path",{d:"M71.115 19.862H54.577a1.66 1.66 0 0 1-1.654-1.655V1.655c0-.91.744-1.655 1.654-1.655.447 0 .86.182 1.174.48L72.29 17.032a1.65 1.65 0 0 1 0 2.334 1.652 1.652 0 0 1-1.175.496zm-14.884-3.31H67.13L56.23 5.644v10.908z",fill:"#686868"}),Object(a.createElement)("path",{d:"M38.038 92.69H1.654A1.66 1.66 0 0 1 0 91.034V1.655C0 .745.744 0 1.654 0h52.923c.447 0 .86.182 1.174.48L72.29 17.032c.297.314.48.728.48 1.175V48c0 .91-.745 1.655-1.655 1.655S69.462 48.91 69.462 48V18.886L53.898 3.31H3.308v86.07h34.73c.91 0 1.654.744 1.654 1.655a1.66 1.66 0 0 1-1.654 1.655z",fill:"#686868"}),Object(a.createElement)("path",{d:"M64.5 94.345c10.96 0 19.846-8.893 19.846-19.862 0-10.97-8.885-19.862-19.846-19.862-10.96 0-19.846 8.892-19.846 19.862 0 10.97 8.885 19.862 19.846 19.862z",fill:"#A9A9A9"}),Object(a.createElement)("path",{d:"M64.5 96C52.625 96 43 86.367 43 74.483s9.625-21.517 21.5-21.517S86 62.599 86 74.483c-.017 11.884-9.625 21.5-21.5 21.517zm0-39.724c-10.055 0-18.192 8.143-18.192 18.207 0 10.063 8.137 18.207 18.192 18.207s18.192-8.144 18.192-18.207c-.016-10.047-8.153-18.19-18.192-18.207z",fill:"#686868"}),Object(a.createElement)("path",{d:"M64.5 86.069a1.66 1.66 0 0 1-1.654-1.655V64.552c0-.91.744-1.655 1.654-1.655.91 0 1.654.744 1.654 1.655v19.862a1.66 1.66 0 0 1-1.654 1.655z",fill:"#fff"}),Object(a.createElement)("path",{d:"M74.423 76.138H54.577a1.66 1.66 0 0 1-1.654-1.655c0-.91.744-1.655 1.654-1.655h19.846c.91 0 1.654.745 1.654 1.655a1.66 1.66 0 0 1-1.654 1.655z",fill:"#fff"})),Object(a.createElement)("defs",null,Object(a.createElement)("clipPath",{id:"a"},Object(a.createElement)("path",{fill:"#fff",d:"M0 0h86v96H0z"}))))});Oe.defaultProps={width:"86",height:"96",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var qe=function(e){return Object(a.createElement)("svg",e,Object(a.createElement)("path",{d:"M9 7h7v2H9v7H7V9H0V7h7V0h2v7z",fill:"#FFF"}))};qe.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"};var je=function(e){function t(){var e,r;b()(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return(r=v()(this,(e=O()(t)).call.apply(e,[this].concat(n)))).onToggle=r.onToggle.bind(j()(r)),r.state={storyTemplates:[]},r}return w()(t,e),h()(t,[{key:"componentDidMount",value:function(){this.props.fetchStoryTemplates()}},{key:"componentDidUpdate",value:function(e){var t=this.props.getBlock;if(e.storyTemplates!==this.props.storyTemplates||e.allBlocks!==this.props.allBlocks){var r=!0,a=!1,n=void 0;try{for(var o,i=this.props.storyTemplates[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){var c=t(o.value.clientId);if(c){var l=!0,s=!1,u=void 0;try{for(var p,d=c.innerBlocks[Symbol.iterator]();!(l=(p=d.next()).done);l=!0){var m=p.value;m.attributes.ampFontFamily&&Object(te.v)(m.attributes.ampFontFamily)}}catch(e){s=!0,u=e}finally{try{l||null==d.return||d.return()}finally{if(s)throw u}}}}}catch(e){a=!0,n=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw n}}this.setState({storyTemplates:this.props.storyTemplates})}}},{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"render",value:function(){var e=this,t=this.props,r=t.insertBlock,n=t.getBlock;return Object(a.createElement)(o.Dropdown,{className:"editor-inserter block-editor-inserter",contentClassName:"amp-stories__template-inserter__popover is-from-top is-bottom editor-inserter__popover",onToggle:this.onToggle,expandOnMobile:!0,renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(a.createElement)(o.IconButton,{icon:qe({width:16,height:16}),label:Object(i.__)("Insert Template","amp"),onClick:t,className:"editor-inserter__amp-inserter","aria-haspopup":"true","aria-expanded":r})},renderContent:function(t){var c=t.onClose,l=function(e){var t=e?n(e.clientId):Object(A.createBlock)("amp/amp-story-page"),a=Object(te.d)(t);r(a),c()};return Object(a.createElement)("div",{className:"amp-stories__editor-inserter__menu"},Object(a.createElement)("div",{className:"amp-stories__editor-inserter__results",tabIndex:"0",role:"region","aria-label":Object(i.__)("Available templates","amp")},Object(a.createElement)("div",{role:"list",className:"editor-block-types-list block-editor-block-types-list"},Object(a.createElement)("div",{className:"editor-block-preview block-editor-block-preview"},Object(a.createElement)(o.IconButton,{icon:Oe({width:86,height:96}),label:Object(i.__)("Blank Page","amp"),onClick:function(){l(null)},className:"amp-stories__blank-page-inserter editor-block-preview__content block-editor-block-preview__content editor-styles-wrapper"})),e.state.storyTemplates.map(function(e){return Object(a.createElement)("a",{key:"template-preview-".concat(e.id),role:"button",tabIndex:"0",onClick:function(){l(e)},onKeyDown:function(t){Object(ie.includes)([R.ENTER,R.SPACE],t.keyCode)&&l(e)},className:"components-button block-editor-block-preview"},Object(a.createElement)(ye,{item:e}))}))))}})}}]),t}(a.Component),ke=Object(d.compose)(Object(n.withSelect)(function(e){var t=e("core/editor").__experimentalGetReusableBlocks,r=e("core/block-editor"),a=r.getBlock,n=r.getBlocks,o=t();return{storyTemplates:o.filter(function(e){return function(e){var t=a(e);return t&&"amp/amp-story-page"===t.name}(e.clientId)}),getBlock:a,allBlocks:n()}}),Object(n.withDispatch)(function(e){return{fetchStoryTemplates:e("core/editor").__experimentalFetchReusableBlocks,insertBlock:e("core/block-editor").insertBlock}}))(je);var we=function(e){var t=e.fonts,r=void 0===t?[]:t,n=e.onChange,o=void 0===n?function(){}:n,l=e.value,s=void 0===l?"":l,u={value:"",label:Object(i.__)("None","amp")},p=r.map(function(e){return{value:e.name,label:e.name}}),d=function(e){return c.h[e]?c.h[e]({height:13}):e};return Object(a.createElement)(Se,{value:s,options:p,defaultOption:u,onChange:function(e){var t=e.value;return o(""===t?void 0:t)},label:Object(i.__)("Font Family","amp"),id:"amp-stories-font-family-picker",ariaLabel:function(e){return Object(i.sprintf)(
9
- /* translators: %s: font name */
10
- Object(i.__)("Font Family: %s","amp"),e.label)},renderToggle:function(e){var t=e.label;return d(t)},renderOption:function(e){return Object(a.createElement)("span",{className:"components-preview-picker__dropdown-label","data-font-family":""===e.value?void 0:e.value},d(e.label))}})},Ee=(r(64),function(e){function t(e){var r;return b()(this,t),(r=v()(this,O()(t).call(this,e))).state={isRotating:!1,angle:e.angle},r.onRotateStart=r.onRotateStart.bind(j()(r)),r.onRotate=r.onRotate.bind(j()(r)),r.onRotateStop=r.onRotateStop.bind(j()(r)),r.onKeyUp=r.onKeyUp.bind(j()(r)),r}return w()(t,e),h()(t,[{key:"componentDidMount",value:function(){this.elementRef=document.getElementById(this.props.blockElementId)}},{key:"onKeyUp",value:function(e){var t=this;if(this.state.isRotating){e.preventDefault();var r=e.keyCode;if(R.ESCAPE===r)this.elementRef.classList.remove("is-rotating"),this.elementRef.style.transform="rotate(".concat(this.props.initialAngle,"deg)"),this.setState({isRotating:!1,angle:this.props.initialAngle},function(){return t.props.onRotateStop&&t.props.onRotateStop(e,t.props.initialAngle)});else if(R.LEFT===r||R.RIGHT===r){var a=R.LEFT===r?this.state.angle-30:this.state.angle+30;a>360?a-=360:a<=-360&&(a+=360),this.elementRef.style.transform="rotate(".concat(a,"deg)"),
 
11
  /* translators: %s: degrees */
12
- this.props.speak(Object(i.sprintf)(Object(i.__)("Rotating block by %s degrees","amp"),a)),this.setState({angle:a},function(){return t.props.onRotate&&t.props.onRotate(e,a)})}else R.ENTER===r&&(
13
  /* translators: %s: degrees */
14
- this.props.speak(Object(i.sprintf)(Object(i.__)("Saving block rotation of %s degrees","amp"),this.state.angle)),this.onRotateStop(e))}}},{key:"onRotateStart",value:function(e){var t=this;this.state.isRotating||(e.button&&2===e.button||(e.preventDefault(),this.elementRef.classList.add("is-rotating"),this.setState({isRotating:!0},function(){return t.props.onRotateStart&&t.props.onRotateStart(e)})))}},{key:"onRotate",value:function(e){var t=this;if(this.state.isRotating){e.preventDefault(),this.elementRef.classList.add("is-rotating");var r=this.elementRef.getBoundingClientRect(),a=r.top,n=r.left+r.width/2,o=a+r.height/2,i=e.clientX-n,c=e.clientY-o,l=180/Math.PI,s=Math.ceil(-l*Math.atan2(i,c));s=Object(te.h)(s,this.props.snap,this.props.snapGap),this.state.angle!==s&&(this.elementRef.style.transform="rotate(".concat(s,"deg)"),this.setState({angle:s},function(){return t.props.onRotate&&t.props.onRotate(e,s)}))}}},{key:"onRotateStop",value:function(e){var t=this;this.state.isRotating&&(e.preventDefault(),this.elementRef.classList.remove("is-rotating"),this.elementRef.style.transform="rotate(".concat(this.state.angle,"deg)"),this.setState({isRotating:!1},function(){return t.props.onRotateStop&&t.props.onRotateStop(e,t.state.angle)}))}},{key:"render",value:function(){var e=_()(this.props.className,{"is-rotating":this.state.isRotating});return Object(a.createElement)("div",{className:e},Object(a.createElement)("div",{className:"rotatable-box-wrap"},Object(a.createElement)(o.Button,{role:"switch","aria-checked":this.state.isRotating,onMouseDown:this.onRotateStart,className:"rotatable-box-wrap__handle"},Object(a.createElement)("span",{className:"screen-reader-text"},Object(i.__)("Rotate Block","amp")))),this.props.children)}}]),t}(a.Component));Ee.defaultProps={angle:0,initialAngle:0,snapGap:0};var _e=Object(d.compose)(o.withSpokenMessages,Object(d.withGlobalEvents)({mousemove:"onRotate",mouseup:"onRotateStop",keyup:"onKeyUp"}))(Ee);r(65);var Se=function(e){var t=e.value,r=e.options,n=e.defaultOption,i=e.onChange,c=e.label,l=e.id,s=e.renderToggle,u=e.renderOption,p=e.ariaLabel,d=r.find(function(e){return t&&e.value===t})||n;return Object(a.createElement)(o.BaseControl,{label:c,id:l},Object(a.createElement)("div",{className:"components-preview-picker__buttons"},Object(a.createElement)(o.Dropdown,{className:"components-preview-picker__dropdown",contentClassName:"components-preview-picker__dropdown-content",position:"bottom",renderToggle:function(e){var t=e.isOpen,r=e.onToggle;return Object(a.createElement)(o.Button,{className:"components-preview-picker__selector",isLarge:!0,onClick:r,"aria-expanded":t,"aria-label":p(d)},s(d))},renderContent:function(){return Object(a.createElement)(o.NavigableMenu,null,[n].concat(oe()(r)).map(function(e){var t=e.value===d.value;return Object(a.createElement)(o.Button,{key:e.value,onClick:function(){return i(e)},role:"menuitemradio","aria-checked":t},t&&Object(a.createElement)(o.Dashicon,{icon:"saved"}),u(e))}))}})))};function Pe(e){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function Ie(e,t){var r=e["page".concat(t?"Y":"X","Offset")],a="scroll".concat(t?"Top":"Left");if("number"!=typeof r){var n=e.document;"number"!=typeof(r=n.documentElement[a])&&(r=n.body[a])}return r}function Be(e){return Ie(e)}function Ae(e){return Ie(e,!0)}function ze(e){var t=function(e){var t,r,a,n=e.ownerDocument,o=n.body,i=n&&n.documentElement;return r=(t=e.getBoundingClientRect()).left,a=t.top,{left:r-=i.clientLeft||o.clientLeft||0,top:a-=i.clientTop||o.clientTop||0}}(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return t.left+=Be(a),t.top+=Ae(a),t}var De,Te=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),Ne=/^(top|right|bottom|left)$/,Re="currentStyle",Me="runtimeStyle",Ve="left",Fe="px";function Le(e,t){for(var r=0;r<e.length;r++)t(e[r])}function He(e){return"border-box"===De(e,"boxSizing")}"undefined"!=typeof window&&(De=window.getComputedStyle?function(e,t,r){var a="",n=e.ownerDocument,o=r||n.defaultView.getComputedStyle(e,null);return o&&(a=o.getPropertyValue(t)||o[t]),a}:function(e,t){var r=e[Re]&&e[Re][t];if(Te.test(r)&&!Ne.test(t)){var a=e.style,n=a[Ve],o=e[Me][Ve];e[Me][Ve]=e[Re][Ve],a[Ve]="fontSize"===t?"1em":r||0,r=a.pixelLeft+Fe,a[Ve]=n,e[Me][Ve]=o}return""===r?"auto":r});var We=["margin","border","padding"],Ue=-1,Ge=2,Qe=1;function $e(e,t,r){var a,n,o,i=0;for(n=0;n<t.length;n++)if(a=t[n])for(o=0;o<r.length;o++){var c=void 0;c="border"===a?"".concat(a+r[o],"Width"):a+r[o],i+=parseFloat(De(e,c))||0}return i}function Je(e){return null!=e&&e==e.window}var Ye={};function Ke(e,t,r){if(Je(e))return"width"===t?Ye.viewportWidth(e):Ye.viewportHeight(e);if(9===e.nodeType)return"width"===t?Ye.docWidth(e):Ye.docHeight(e);var a="width"===t?["Left","Right"]:["Top","Bottom"],n="width"===t?e.offsetWidth:e.offsetHeight,o=(De(e),He(e)),i=0;(null==n||n<=0)&&(n=void 0,(null==(i=De(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===r&&(r=o?Qe:Ue);var c=void 0!==n||o,l=n||i;if(r===Ue)return c?l-$e(e,["border","padding"],a):i;if(c){var s=r===Ge?-$e(e,["border"],a):$e(e,["margin"],a);return l+(r===Qe?0:s)}return i+$e(e,We.slice(r),a)}Le(["Width","Height"],function(e){Ye["doc".concat(e)]=function(t){var r=t.document;return Math.max(r.documentElement["scroll".concat(e)],r.body["scroll".concat(e)],Ye["viewport".concat(e)](r))},Ye["viewport".concat(e)]=function(t){var r="client".concat(e),a=t.document,n=a.body,o=a.documentElement[r];return"CSS1Compat"===a.compatMode&&o||n&&n[r]||o}});var Ze={position:"absolute",visibility:"hidden",display:"block"};function Xe(e){var t,r=arguments;return 0!==e.offsetWidth?t=Ke.apply(void 0,r):function(e,t,r){var a,n={},o=e.style;for(a in t)t.hasOwnProperty(a)&&(n[a]=o[a],o[a]=t[a]);for(a in r.call(e),t)t.hasOwnProperty(a)&&(o[a]=n[a])}(e,Ze,function(){t=Ke.apply(void 0,r)}),t}function et(e,t,r){var a=r;if("object"!==Pe(t))return void 0!==a?("number"==typeof a&&(a+="px"),void(e.style[t]=a)):De(e,t);for(var n in t)t.hasOwnProperty(n)&&et(e,n,t[n])}Le(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);Ye["outer".concat(t)]=function(t,r){return t&&Xe(t,e,r?0:Qe)};var r="width"===e?["Left","Right"]:["Top","Bottom"];Ye[e]=function(t,a){if(void 0===a)return t&&Xe(t,e,Ue);if(t){De(t);return He(t)&&(a+=$e(t,["padding","border"],r)),et(t,e,a)}}});var tt=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ce(r,!0).forEach(function(t){xe(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return ze(e);!function(e,t){"static"===et(e,"position")&&(e.style.position="relative");var r,a,n=ze(e),o={};for(a in t)t.hasOwnProperty(a)&&(r=parseFloat(et(e,a))||0,o[a]=r+t[a]-n[a]);et(e,o)}(e,t)},isWindow:Je,each:Le,css:et,clone:function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);if(e.overflow)for(var a in e)e.hasOwnProperty(a)&&(t.overflow[a]=e.overflow[a]);return t},scrollLeft:function(e,t){if(Je(e)){if(void 0===t)return Be(e);window.scrollTo(t,Ae(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(Je(e)){if(void 0===t)return Ae(e);window.scrollTo(Be(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},Ye);var rt=function(e,t,r){r=r||{},9===t.nodeType&&(t=tt.getWindow(t));var a=r.allowHorizontalScroll,n=r.onlyScrollIfNeeded,o=r.alignWithTop,i=r.alignWithLeft,c=r.offsetTop||0,l=r.offsetLeft||0,s=r.offsetBottom||0,u=r.offsetRight||0;a=void 0===a||a;var p,d,m,b,f,h,g,v,y,O,q=tt.isWindow(t),j=tt.offset(e),k=tt.outerHeight(e),w=tt.outerWidth(e);q?(g=t,O=tt.height(g),y=tt.width(g),v={left:tt.scrollLeft(g),top:tt.scrollTop(g)},f={left:j.left-v.left-l,top:j.top-v.top-c},h={left:j.left+w-(v.left+y)+u,top:j.top+k-(v.top+O)+s},b=v):(p=tt.offset(t),d=t.clientHeight,m=t.clientWidth,b={left:t.scrollLeft,top:t.scrollTop},f={left:j.left-(p.left+(parseFloat(tt.css(t,"borderLeftWidth"))||0))-l,top:j.top-(p.top+(parseFloat(tt.css(t,"borderTopWidth"))||0))-c},h={left:j.left+w-(p.left+m+(parseFloat(tt.css(t,"borderRightWidth"))||0))+u,top:j.top+k-(p.top+d+(parseFloat(tt.css(t,"borderBottomWidth"))||0))+s}),f.top<0||h.top>0?!0===o?tt.scrollTop(t,b.top+f.top):!1===o?tt.scrollTop(t,b.top+h.top):f.top<0?tt.scrollTop(t,b.top+f.top):tt.scrollTop(t,b.top+h.top):n||((o=void 0===o||!!o)?tt.scrollTop(t,b.top+f.top):tt.scrollTop(t,b.top+h.top)),a&&(f.left<0||h.left>0?!0===i?tt.scrollLeft(t,b.left+f.left):!1===i?tt.scrollLeft(t,b.left+h.left):f.left<0?tt.scrollLeft(t,b.left+f.left):tt.scrollLeft(t,b.left+h.left):n||((i=void 0===i||!!i)?tt.scrollLeft(t,b.left+f.left):tt.scrollLeft(t,b.left+h.left)))},at=r(43);var nt=function(e){var t=e.icon,r=e.hasChildBlocksWithInserterSupport,n=e.onClick,o=e.isDisabled,i=e.title,c=e.className,l=me()(e,["icon","hasChildBlocksWithInserterSupport","onClick","isDisabled","title","className"]),s=t?{backgroundColor:t.background,color:t.foreground}:{},p=t&&t.shadowColor?{backgroundColor:t.shadowColor}:{};return Object(a.createElement)("li",{className:"editor-block-types-list__list-item block-editor-block-types-list__list-item"},Object(a.createElement)("button",u()({className:_()("editor-block-types-list__item block-editor-block-types-list__item",c,{"editor-block-types-list__item-has-children block-editor-block-types-list__item-has-children":r}),onClick:function(e){e.preventDefault(),n()},disabled:o,"aria-label":i},l),Object(a.createElement)("span",{className:"editor-block-types-list__item-icon block-editor-block-types-list__item-icon",style:s},Object(a.createElement)(z.BlockIcon,{icon:t,showColors:!0}),r&&Object(a.createElement)("span",{className:"editor-block-types-list__item-icon-stack block-editor-block-types-list__item-icon-stack",style:p})),Object(a.createElement)("span",{className:"editor-block-types-list__item-title block-editor-block-types-list__item-title"},i)))};var ot,it,ct,lt,st,ut,pt,dt,mt,bt=function(e){var t=e.items,r=e.onSelect,n=e.onHover,o=void 0===n?function(){}:n,i=e.children;return Object(a.createElement)("ul",{role:"list",className:"editor-block-types-list block-editor-block-types-list"},t&&t.map(function(e){return Object(a.createElement)(nt,{key:e.id,className:Object(A.getBlockMenuDefaultClassName)(e.id),icon:e.icon,hasChildBlocksWithInserterSupport:e.hasChildBlocksWithInserterSupport,onClick:function(){r(e),o(null)},onFocus:function(){return o(e)},onMouseEnter:function(){return o(e)},onMouseLeave:function(){return o(null)},onBlur:function(){return o(null)},isDisabled:e.isDisabled,title:e.title})}),i)},ft=function(e){return e.stopPropagation()},ht=function(e,t){var r=gt(t),a=function(e){return-1!==gt(e).indexOf(r)},n=Object(A.getCategories)();return e.filter(function(e){var t=Object(ie.find)(n,{slug:e.category});return a(e.title)||Object(ie.some)(e.keywords,a)||t&&a(t.title)})},gt=function(e){return e=(e=(e=(e=Object(ie.deburr)(e)).replace(/^\//,"")).toLowerCase()).trim()},vt=function(e){function t(){var e,r;b()(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(r=v()(this,(e=O()(t)).call.apply(e,[this].concat(o)))).state={childItems:[],filterValue:"",hoveredItem:null,suggestedItems:[],reusableItems:[],itemsPerCategory:{},openPanels:["suggested"]},r.onChangeSearchInput=r.onChangeSearchInput.bind(j()(r)),r.onHover=r.onHover.bind(j()(r)),r.panels={},r.inserterResults=Object(a.createRef)(),r}return w()(t,e),h()(t,[{key:"componentDidMount",value:function(){this.filter()}},{key:"componentDidUpdate",value:function(e){e.items!==this.props.items&&this.filter(this.state.filterValue)}},{key:"onChangeSearchInput",value:function(e){this.filter(e.target.value)}},{key:"onHover",value:function(e){this.setState({hoveredItem:e});var t=this.props,r=t.showInsertionPoint,a=t.hideInsertionPoint;e?r():a()}},{key:"bindPanel",value:function(e){var t=this;return function(r){t.panels[e]=r}}},{key:"onTogglePanel",value:function(e){var t=this;return function(){-1!==t.state.openPanels.indexOf(e)?t.setState({openPanels:Object(ie.without)(t.state.openPanels,e)}):(t.setState({openPanels:[].concat(oe()(t.state.openPanels),[e])}),t.props.setTimeout(function(){rt(t.panels[e],t.inserterResults.current,{alignWithTop:!0})}))}}},{key:"filterOpenPanels",value:function(e,t,r,a){if(e===this.state.filterValue)return this.state.openPanels;if(!e)return["suggested"];var n=[];return a.length>0&&n.push("reusable"),r.length>0&&(n=n.concat(Object.keys(t))),n}},{key:"filter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,r=t.debouncedSpeak,a=t.items,n=t.rootChildBlocks,o=ht(a,e),c=Object(ie.filter)(o,function(e){var t=e.name;return Object(ie.includes)(n,t)}),l=[];if(!e){var s=this.props.maxSuggestedItems||9;l=Object(ie.filter)(a,function(e){return e.utility>0}).slice(0,s)}var u=Object(ie.filter)(o,{category:"reusable"}),p=function(e){return Object(ie.findIndex)(Object(A.getCategories)(),function(t){return t.slug===e.category})},d=Object(ie.flow)(function(e){return Object(ie.filter)(e,function(e){return"reusable"!==e.category})},function(e){return Object(ie.sortBy)(e,p)},function(e){return Object(ie.groupBy)(e,"category")})(o);this.setState({hoveredItem:null,childItems:c,filterValue:e,suggestedItems:l,reusableItems:u,itemsPerCategory:d,openPanels:this.filterOpenPanels(e,d,o,u)});var m=Object.keys(d).reduce(function(e,t){return e+d[t].length},0),b=Object(i.sprintf)(Object(i._n)("%d result found.","%d results found.",m,"amp"),m);r(b)}},{key:"onKeyDown",value:function(e){Object(ie.includes)([R.LEFT,R.DOWN,R.RIGHT,R.UP,R.BACKSPACE,R.ENTER],e.keyCode)&&e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,r=t.instanceId,n=t.onSelect,c=this.state,l=c.hoveredItem,s=c.itemsPerCategory,u=c.openPanels,p=c.reusableItems,d=c.suggestedItems,m=function(e){return-1!==u.indexOf(e)};return Object(a.createElement)("div",{className:"editor-inserter__menu block-editor-inserter__menu amp__block-editor-inserter__menu",onKeyPress:ft,onKeyDown:this.onKeyDown},Object(a.createElement)("label",{htmlFor:"block-editor-inserter__search-".concat(r),className:"screen-reader-text"},Object(i.__)("Search for an element","amp")),Object(a.createElement)("input",{id:"block-editor-inserter__search-".concat(r),type:"search",placeholder:Object(i.__)("Search for an element","amp"),className:"editor-inserter__search block-editor-inserter__search amp__block-editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),Object(a.createElement)("div",{className:"editor-inserter__results amp__block-editor-inserter__results block-editor-inserter__results",ref:this.inserterResults,tabIndex:"0",role:"region","aria-label":Object(i.__)("Available block types","amp")},Boolean(d.length)&&Object(a.createElement)(o.PanelBody,{title:Object(i._x)("Most Used","blocks","amp"),opened:m("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},Object(a.createElement)(bt,{items:d,onSelect:n,onHover:this.onHover})),Object(ie.map)(Object(A.getCategories)(),function(t){var r=s[t.slug];return r&&r.length?Object(a.createElement)(o.PanelBody,{key:t.slug,title:t.title,icon:t.icon,opened:m(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},Object(a.createElement)(bt,{items:r,onSelect:n,onHover:e.onHover})):null}),Boolean(p.length)&&Object(a.createElement)(o.PanelBody,{className:"editor-inserter__reusable-blocks-panel block-editor-inserter__reusable-blocks-panel",title:Object(i.__)("Reusable","amp"),opened:m("reusable"),onToggle:this.onTogglePanel("reusable"),icon:"controls-repeat",ref:this.bindPanel("reusable")},Object(a.createElement)(bt,{items:p,onSelect:n,onHover:this.onHover}),Object(a.createElement)("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:Object(at.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(i.__)("Manage All Reusable Blocks","amp"))),Object(ie.isEmpty)(d)&&Object(ie.isEmpty)(p)&&Object(ie.isEmpty)(s)&&Object(a.createElement)("p",{className:"editor-inserter__no-results block-editor-inserter__no-results"},Object(i.__)("No blocks found.","amp"))),l&&Object(A.isReusableBlock)(l)&&Object(a.createElement)(D,{name:l.name,attributes:l.initialAttributes}))}}]),t}(a.Component),yt=Object(d.compose)(Object(n.withSelect)(function(e,t){var r=t.clientId,a=t.isAppender,n=t.rootClientId,o=e("core/block-editor"),i=o.getInserterItems,l=o.getBlockName,s=o.getBlockRootClientId,u=o.getBlockSelectionEnd,p=o.canInsertBlockType,d=o.getBlockListSettings,m=e("core/blocks").getChildBlockNames,b=e("amp/story").getCurrentPage,f=n;if(!f&&!r&&!a){var h=u();h&&(f=s(h)||void 0)}f||(f=b());var g=l(f),v=[].concat(oe()(i()),oe()(i(f))).filter(function(e){var t=e.name;if(c.e.includes(t))return!0;var r=d(f);return p(t,b())&&r&&r.allowedBlocks.includes(t)});return{rootChildBlocks:m(g),items:oe()(new Set(v)),destinationRootClientId:f,currentPage:b()}}),Object(n.withDispatch)(function(e,t,r){var a=r.select;return{showInsertionPoint:function(){},hideInsertionPoint:function(){},onSelect:function(r){var n=e("core/block-editor"),o=n.replaceBlocks,i=n.insertBlock,l=a("core/block-editor").getSelectedBlock,s=t.isAppender,u=r.name,p=r.initialAttributes,d=l(),m=Object(A.createBlock)(u,p);if(!s&&d&&Object(A.isUnmodifiedDefaultBlock)(d))o(d.clientId,m);else{var b=c.e.includes(u)?void 0:t.destinationRootClientId;i(m,function(e){var r=a("core/block-editor"),n=r.getBlockIndex,o=r.getBlockSelectionEnd,i=r.getBlockOrder,l=t.clientId,s=t.destinationRootClientId,u=t.isAppender,p=t.currentPage;if(l)return n(l,s);if(c.e.includes(e))return i().indexOf(p)+1;var d=o();return!u&&d?n(d,s)+1:i(s).length}(u),b)}t.onSelect()}}}),o.withSpokenMessages,d.withInstanceId,d.withSafeTimeout)(vt),Ot=(r(66),function(e){var t=e.onToggle,r=e.disabled,n=e.isOpen;return Object(a.createElement)(o.IconButton,{icon:"insert",label:Object(i.__)("Add element","amp"),labelPosition:"bottom",onClick:t,className:"editor-inserter__toggle block-editor-inserter__toggle","aria-haspopup":"true","aria-expanded":n,disabled:r})}),qt=function(e){function t(){var e,r;b()(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return(r=v()(this,(e=O()(t)).call.apply(e,[this].concat(n)))).onToggle=r.onToggle.bind(j()(r)),r.renderToggle=r.renderToggle.bind(j()(r)),r.renderContent=r.renderContent.bind(j()(r)),r}return w()(t,e),h()(t,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,r=e.isOpen,a=this.props,n=a.disabled,o=a.renderToggle,i=void 0===o?Ot:o;return i({onToggle:t,isOpen:r,disabled:n})}},{key:"renderContent",value:function(e){var t=e.onClose,r=this.props,n=r.rootClientId,o=r.clientId,i=r.isAppender;return Object(a.createElement)(yt,{onSelect:t,rootClientId:n,clientId:o,isAppender:i})}},{key:"render",value:function(){var e=this.props.position;return Object(a.createElement)(o.Dropdown,{className:"editor-inserter block-editor-inserter",contentClassName:"editor-inserter__popover block-editor-inserter__popover",position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(i.__)("Add element","amp"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),t}(a.Component),jt=Object(n.withSelect)(function(e){var t=e("amp/story").isReordering,r="visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled;return{isReordering:t(),disabled:!r}}),kt=Object(d.compose)(jt,Object(d.ifCondition)(function(e){return!e.isReordering}))(qt),wt=(r(67),function(e){return e*Math.PI/180}),Et=function(e,t,r,a,n){var o=e.clientY-a,i=e.clientX-r,l=function(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))}(i,o),s=Math.atan2(o,i)-wt(t),u=n.toLowerCase().includes("left")||n.toLowerCase().includes("right"),p=n.toLowerCase().includes("top")||n.toLowerCase().includes("bottom"),d=u?l*Math.cos(s):0,m=p?l*Math.sin(s):0;return{deltaW:c.v.includes(n)?-d:d,deltaH:c.u.includes(n)?-m:m}},_t=function(e,t,r,a){var n,o,i=-e/2,c=t/2;return"topRight"===a||"bottomLeft"===a?(n=c*-Math.sin(r)+i*Math.cos(r),o=c*Math.cos(r)-i*-Math.sin(r)):(n=c*Math.sin(r)+i*Math.cos(r),o=c*Math.cos(r)-i*Math.sin(r)),{left:n-i,top:o-c}},St=0,Pt=0,xt=null,Ct=function(e){function t(){var e,r;b()(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return(r=v()(this,(e=O()(t)).call.apply(e,[this].concat(n)))).state={isResizing:!1},r}return w()(t,e),h()(t,[{key:"render",value:function(){var e=this,t=this.props,r=t.angle,n=t.blockName,i=t.ampFitText,l=t.minWidth,s=t.minHeight,p=t.onResizeStart,d=t.onResizeStop,m=t.children,b=me()(t,["angle","blockName","ampFitText","minWidth","minHeight","onResizeStart","onResizeStop","children"]),f=this.props,h=f.width,g=f.height,v=this.state.isResizing,y="core/image"===n,O="amp/amp-story-text"===n;return Object(a.createElement)(o.ResizableBox,u()({},b,{className:_()("amp-story-resize-container",{"is-resizing":v}),size:{height:g,width:h},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},onResizeStop:function(t,a){var n=Et(t,r,St,Pt,a),o=n.deltaW,i=n.deltaH,c=h+o,l=g+i;dt&&(dt.style.height="100%"),c=c<ot?ot:c,l=l<it?it:l;var s=parseFloat(xt.style.top),u=parseFloat(xt.style.left),p=Number(s.toFixed(2)),m=Number(u.toFixed(2));e.setState({isResizing:!1}),d({width:parseInt(c),height:parseInt(l),positionTop:p,positionLeft:m})},onResizeStart:function(t,r,a){St=t.clientX,Pt=t.clientY,ot=h,it=g,st=null,ut=null,xt=a.closest(".wp-block"),ct=xt.style.top,lt=xt.style.left,y&&(pt=xt.querySelector("figure .components-resizable-box__container")),mt=i?null:function(e,t){if(!c.l.includes(e)&&"core/code"!==e)return null;switch(e){case"amp/amp-story-text":return t.querySelector(".block-editor-rich-text__editable.editor-rich-text__editable");case"amp/amp-story-post-title":return t.querySelector(".wp-block-amp-amp-story-post-title");case"amp/amp-story-post-author":return t.querySelector(".wp-block-amp-amp-story-post-author");case"amp/amp-story-post-date":return t.querySelector(".wp-block-amp-amp-story-post-date");case"core/code":return t.querySelector(".wp-block-code");default:return null}}(n,xt),dt=i&&O?xt.querySelector(".with-line-height"):null,e.setState({isResizing:!0}),p()},onResize:function(e,t,a){var n=Et(e,r,St,Pt,t),o=n.deltaW,u=n.deltaH;!y||h||g||(h=xt.clientWidth,g=xt.clientHeight);var p=l<=h+o?h+o:l,d=s<=g+u?g+u:s;if(mt&&(0>o||0>u)){r&&(O?O&&!i&&(mt.style.width="initial"):(mt.style.width=p+"px",mt.style.height=d+"px"));var m=mt.scrollWidth,b=mt.scrollHeight;(p<=m||d<=b)&&(p=ot,d=it),r&&(O?O&&!i&&(mt.style.width="100%"):(mt.style.width="initial",mt.style.height="100%"))}if(s<d&&(ut=u),l<p&&(st=o),r){var f,v,q=wt(r);O?(f=_t(h-2*c.y,g-2*c.y,q,t),v=_t(p-2*c.y,d-2*c.y,q,t)):(f=_t(h,g,q,t),v=_t(p,d,q,t));var j={left:v.left-f.left,top:v.top-f.top},k=function(e,t,r){switch(e){case"topRight":return{left:t.left-r.left,top:t.top-r.top};case"bottomLeft":return{left:t.left+r.left,top:t.top+r.top};case"left":case"topLeft":case"top":return{left:t.left+r.left,top:t.top-r.top};default:return{left:t.left-r.left,top:t.top+r.top}}}(t,function(e,t,r,a,n){var o=Object(te.p)("x",parseFloat(t)),i=Object(te.p)("y",parseFloat(r));switch(e){case"topRight":return{left:o,top:i-n};case"bottomLeft":return{left:o-a,top:i};case"left":case"topLeft":case"top":return{left:o-a,top:i-n};default:return{left:o,top:i}}}(t,lt,ct,st,ut),j);xt.style.left=Object(te.o)("x",k.left)+"%",xt.style.top=Object(te.o)("y",k.top)+"%"}else{if(c.v.includes(t)){var w=Object(te.p)("x",parseFloat(lt));xt.style.left=Object(te.o)("x",w-st)+"%"}if(c.u.includes(t)){var E=Object(te.p)("y",parseFloat(ct));xt.style.top=Object(te.o)("y",E-ut)+"%"}}a.style.width=p+"px",a.style.height=d+"px",ot=p,it=d,dt&&(i&&(dt.style.lineHeight=d+"px"),dt.style.height=d+"px"),pt&&y&&(pt.style.width=p+"px",pt.style.height=d+"px")}}),m)}}]),t}(a.Component),It=r(18),Bt=function(e){function t(){return b()(this,t),v()(this,O()(t).apply(this,arguments))}return w()(t,e),h()(t,[{key:"componentDidMount",value:function(){this.props.isLoading||Object(te.E)(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.attributes,a=t.fontSize,n=t.blockContent,o=r.height,i=r.width,c=r.ampFitText,l=r.ampFontFamily;c&&(e.attributes.ampFitText!==c||e.attributes.ampFontFamily!==l||e.attributes.width!==i||e.attributes.height!==o||e.blockContent!==n)&&!this.props.isLoading&&Object(te.E)(this.props),!(c||Object(ie.isEqual)(e.fontSize,a)&&e.attributes.ampFitText===c&&e.attributes.ampFontFamily===l&&e.blockContent===n)&&Object(te.D)(this.props)}},{key:"render",value:function(){var e,t=this.props,r=t.blockContent,n=t.placeholder,o=t.attributes,i=t.setAttributes,c=t.className,l=t.fontSize,s=t.colors,u=t.backgroundColor,p=t.customBackgroundColor,d=t.textColor,m=t.tagName,b=o.align,f=o.opacity,h=o.ampFitText,g=o.autoFontSize,v=l&&l.size&&l.size+"px",y=Object(It.d)(s,u,p,f),O=m;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(z.BlockControls,null,Object(a.createElement)(z.AlignmentToolbar,{value:b,onChange:function(e){return i({align:e})}})),Object(a.createElement)(O,{style:{backgroundColor:y,color:d.color,fontSize:h?g+"px":v,textAlign:b},className:_()(c,(e={"has-text-color":d.color,"has-background":u.color},ee()(e,u.class,u.class),ee()(e,d.class,d.class),ee()(e,l.class,l.class),ee()(e,"is-empty",!r),ee()(e,"is-amp-fit-text",h),e))},r||n))}}]),t}(a.Component),At=function(e){var t=e.attribute,r=e.placeholder,o=e.tagName,c=e.isEditable;return Object(d.compose)(Object(n.withSelect)(function(e){var a,n=e("core/editor").getEditedPostAttribute,o=e("core").getAuthors,c=e("core/block-editor").getSettings,l=n(t),s=!1;switch(t){case"date":var u=Object(T.__experimentalGetSettings)().formats.date,p=l||new Date;a=Object(T.dateI18n)(u,p);break;case"author":var d=o().find(function(e){return e.id===l});a=d?d.name:Object(i.__)("Anonymous","amp"),s=!d;break;default:a=l}var m=c().colors;return{blockContent:a,placeholder:r,colors:m,isLoading:s}}),Object(n.withDispatch)(function(e){var r=e("core/editor").editPost;return{onChange:function(e){return r(ee()({},t,e))}}}))(function(e){return Object(a.createElement)(Bt,u()({tagName:o,isEditable:c},e))})},zt=function(e){var t=e.tagName;return function(e){var r=e.attributes,n=r.ampFitText,o=Object(te.k)(r),i=Object(te.r)(r);if(!n)return Object(a.createElement)(z.RichText.Content,{tagName:t,style:i,className:o,value:"{content}"});var c=t;return Object(a.createElement)(c,{style:i,className:o},Object(a.createElement)("amp-fit-text",{layout:"flex-item",className:"amp-text-content"},"{content}"))}},Dt=function(e){return Object(a.createElement)("svg",e,Object(a.createElement)("g",{transform:"translate(3 5)"},Object(a.createElement)("path",{d:"M11.2 4h.8a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-.8c0-.11.09-.2.2-.2H10a1 1 0 0 0 1-1V4.2c0-.11.09-.2.2-.2z",opacity:".3"}),Object(a.createElement)("rect",{width:"9",height:"9",rx:"1"})),Object(a.createElement)("path",{d:"M20.808 7.145c1.41 1.74 1.283 4.365-1.165 6.348.44-1.348.575-2.628-1.011-4.586L17 10.229l.517-4.923 4.923.517-1.632 1.322z"}))};Dt.defaultProps={width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"};var Tt=function(e){return Object(a.createElement)("svg",e,Object(a.createElement)("g",{transform:"translate(7.65 5)"},Object(a.createElement)("path",{d:"M11.2 4h.8a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-.8c0-.11.09-.2.2-.2H10a1 1 0 0 0 1-1V4.2c0-.11.09-.2.2-.2z",opacity:".3"}),Object(a.createElement)("rect",{width:"9",height:"9",rx:"1"})),Object(a.createElement)("path",{d:"M3.632 17.653c-1.41-1.74-1.283-4.365 1.165-6.348-.44 1.348-.575 2.628 1.011 4.586l1.632-1.322-.517 4.923L2 18.975l1.632-1.322z"}))};Tt.defaultProps={width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"};var Nt=function(e){return Object(a.createElement)("svg",e,Object(a.createElement)("g",{transform:"translate(5.65 5)"},Object(a.createElement)("path",{d:"M11.2 4h.8a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-.8c0-.11.09-.2.2-.2H10a1 1 0 0 0 1-1V4.2c0-.11.09-.2.2-.2z",opacity:".3"}),Object(a.createElement)("rect",{width:"9",height:"9",rx:"1"})))};Nt.defaultProps={width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"};var Rt=function(e){return Object(a.createElement)("svg",e,Object(a.createElement)("g",{transform:"translate(6 5)"},Object(a.createElement)("path",{d:"M11.2 4h.8a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-.8c0-.11.09-.2.2-.2H10a1 1 0 0 0 1-1V4.2c0-.11.09-.2.2-.2z"}),Object(a.createElement)("rect",{opacity:".3",width:"9",height:"9",rx:"1"})))};Rt.defaultProps={width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"};var Mt=window,Vt=Mt.getComputedStyle,Ft=Mt.ampStoriesFonts,Lt=Object(o.withFallbackStyles)(function(e,t){var r=t.textColor,a=t.backgroundColor,n=t.fontSize,o=t.customFontSize,i=e.querySelector('[contenteditable="true"]'),c=i?Vt(i):null;return{fallbackBackgroundColor:a||!c?void 0:c.backgroundColor,fallbackTextColor:r||!c?void 0:c.color,fallbackFontSize:n||o||!c?void 0:parseInt(c.fontSize)||void 0}}),Ht=Object(n.withSelect)(function(e,t){var r=e("core/block-editor"),a=r.getSelectedBlockClientId,n=r.getBlockRootClientId,o=r.getBlock,i=r.getBlockOrder,c=r.getBlockIndex,l=e("amp/story"),s=l.getAnimatedBlocks,u=l.isValidAnimationPredecessor,p=a(),d=n(p),m=(s()[d]||[]).find(function(e){return e.id===t.clientId}),b=n(t.clientId),f=i(b),h=c(t.clientId,b);return{currentBlockPosition:f.length-1-h+1,numberOfBlocks:f.length,isFirst:0===h,isLast:Object(te.j)(b)?h===f.length-2:h===f.length-1,parentBlock:o(b),rootClientId:b,animationAfter:m?m.parent:void 0,getAnimatedBlocks:function(){return(s()[d]||[]).filter(function(e){return e.id!==p}).filter(function(e){var t=e.id,r=o(t);return r&&r.attributes.ampAnimationType&&u(d,p,t)}).map(function(e){var t=e.id,r=o(t);return{value:t,label:r.name,block:r,blockType:Object(A.getBlockType)(r.name)}})}}}),Wt=Object(n.withDispatch)(function(e,t,r){var a=t.clientId,n=t.rootClientId,o=t.toggleSelection,i=(0,r.select)("core/block-editor"),c=i.getSelectedBlockClientId,l=i.getBlockRootClientId,s=i.getBlockOrder,u=e("core/block-editor"),p=u.moveBlocksDown,d=u.moveBlocksUp,m=u.moveBlockToPosition,b=u.selectBlock,f=c(),h=l(f),g=e("amp/story"),v=g.addAnimation,y=g.changeAnimationType,O=g.changeAnimationDuration,q=g.changeAnimationDelay;return{onAnimationTypeChange:function(e){y(h,f,e)},onAnimationOrderChange:function(e){v(h,f,e)},onAnimationDurationChange:function(e){O(h,f,e)},onAnimationDelayChange:function(e){q(h,f,e)},startBlockActions:function(){return o(!1)},stopBlockActions:function(){o(!0),b(a)},bringForward:function(){return p(a,n)},sendBackward:function(){return d(a,n)},moveFront:function(){var e=s(n).length-1;m(a,n,n,e)},moveBack:function(){m(a,n,n,0)}}}),Ut=Object(d.compose)(Object(z.withColors)("backgroundColor",{textColor:"color"}),Object(z.withFontSizes)("fontSize"),Lt,Ht,Wt),Gt=Object(d.createHigherOrderComponent)(function(e){return Ut(function(t){var r=t.clientId,n=t.name,s=t.attributes,u=t.isLast,p=t.isFirst,d=t.currentBlockPosition,m=t.numberOfBlocks,b=t.fontSize,f=t.setFontSize,h=t.setAttributes,g=t.backgroundColor,v=t.setBackgroundColor,y=t.textColor,O=t.setTextColor,q=t.fallbackBackgroundColor,j=t.fallbackTextColor,k=t.onAnimationTypeChange,w=t.onAnimationOrderChange,E=t.onAnimationDurationChange,_=t.onAnimationDelayChange,S=t.getAnimatedBlocks,P=t.animationAfter,x=t.startBlockActions,C=t.stopBlockActions,I=t.bringForward,B=t.sendBackward,D=t.moveFront,T=t.moveBack;if(!c.c.includes(n))return Object(a.createElement)(e,t);var N,R=Object(A.getBlockType)(n),M="core/image"===n,V="core/video"===n,F="amp/amp-story-text"===n,L=c.l.includes(n),H=c.j.includes(n),W=c.k.includes(n),U=c.d.includes(n),G=s.ampFontFamily,Q=s.ampFitText,$=s.height,J=s.width,Y=s.opacity,K=s.type,Z=s.ampAnimationType,X=s.ampAnimationDuration,re=s.ampAnimationDelay,ae=s.rotationAngle,ne=M&&(!s.url||!s.url.length);if("core/table"===n){var oe=s.body.length;s.foot&&s.foot.length&&oe++,s.head&&s.head.length&&oe++,N=45*oe}else N=c.r[n]||c.r.default;var ie=V?"ampShowCaption":"ampShowImageCaption";return Object(a.createElement)(a.Fragment,null,!U&&Object(a.createElement)(e,t),U&&!ne&&W&&Object(a.createElement)(Ct,{width:J,height:$,angle:ae,minHeight:N,minWidth:c.s,onResizeStop:function(e){h(e),C()},blockName:n,ampFitText:Q,onResizeStart:function(){x()}},Object(a.createElement)(_e,{blockElementId:"block-".concat(r),initialAngle:ae,className:"amp-story-editor__rotate-container",angle:ae,onRotateStart:function(){x()},onRotateStop:function(e,t){h({rotationAngle:t}),C()},snap:c.m,snapGap:c.n},F&&Object(a.createElement)(e,t),!F&&Object(a.createElement)(ge,{clientId:t.clientId,blockName:n,blockElementId:"block-".concat(t.clientId),isDraggable:!t.isPartOfMultiSelection,isMovable:U},Object(a.createElement)(e,t)))),U&&(!W||ne)&&Object(a.createElement)(_e,{blockElementId:"block-".concat(r),initialAngle:ae,className:"amp-story-editor__rotate-container",angle:ae,onRotateStart:function(){x()},onRotateStop:function(e,t){h({rotationAngle:t}),C()},snap:c.m,snapGap:c.n},Object(a.createElement)(ge,{clientId:t.clientId,blockName:n,blockElementId:"block-".concat(t.clientId),isDraggable:!t.isPartOfMultiSelection,isMovable:U},Object(a.createElement)(e,t))),!(u&&p)&&U&&Object(a.createElement)(z.InspectorControls,null,Object(a.createElement)(o.PanelBody,{className:"amp-story-order-controls",title:Object(i.__)("Block Position","amp")},Object(a.createElement)("div",{className:"amp-story-order-controls-wrap"},Object(a.createElement)(o.IconButton,{className:"amp-story-controls-bring-front",onClick:D,icon:Nt({width:24,height:24}),label:Object(i.__)("Send to front","amp"),"aria-describedby":"amp-story-controls-bring-front-description-".concat(r),"aria-disabled":u},Object(i.__)("Front","amp")),Object(a.createElement)(o.IconButton,{className:"amp-story-controls-bring-forward",onClick:I,icon:Dt({width:24,height:24}),label:Object(i.__)("Send Forward","amp"),"aria-describedby":"amp-story-controls-bring-forward-description-".concat(r),"aria-disabled":u},Object(i.__)("Forward","amp")),Object(a.createElement)(o.IconButton,{className:"amp-story-controls-send-backwards",onClick:B,icon:Tt({width:24,height:24}),label:Object(i.__)("Send Backward","amp"),"aria-describedby":"amp-story-controls-send-backward-description-".concat(r),"aria-disabled":p},Object(i.__)("Backward","amp")),Object(a.createElement)(o.IconButton,{className:"amp-story-controls-send-back",onClick:T,icon:Rt({width:24,height:24}),label:Object(i.__)("Send to back","amp"),"aria-describedby":"amp-story-controls-send-back-description-".concat(r),"aria-disabled":p},Object(i.__)("Back","amp"))),Object(a.createElement)("span",{className:"amp-story-controls-description",id:"amp-story-controls-bring-front-description-".concat(r)},Object(te.i)(R&&R.title,d,1,p,u,-1)),Object(a.createElement)("span",{className:"amp-story-controls-description",id:"amp-story-controls-bring-forward-description-".concat(r)},Object(te.i)(R&&R.title,d,d-1,p,u,-1)),Object(a.createElement)("span",{className:"amp-story-controls-description",id:"amp-story-controls-send-backward-description-".concat(r)},Object(te.i)(R&&R.title,d,d+1,p,u,1)),Object(a.createElement)("span",{className:"amp-story-controls-description",id:"amp-story-controls-send-back-description-".concat(r)},Object(te.i)(R&&R.title,d,m,p,u,1)))),L&&Object(a.createElement)(z.InspectorControls,null,Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Text Settings","amp")},Object(a.createElement)(we,{fonts:Ft,value:G,onChange:function(e){Object(te.v)(e),h({ampFontFamily:e})}}),Object(a.createElement)(o.ToggleControl,{label:Object(i.__)("Automatically fit text to container","amp"),checked:Q,onChange:function(){h({ampFitText:!Q})}}),!Q&&Object(a.createElement)(z.FontSizePicker,{value:b.size,onChange:f}),F&&Object(a.createElement)(o.SelectControl,{label:Object(i.__)("Select text type","amp"),value:K,onChange:function(e){return h({type:e})},options:[{value:"auto",label:Object(i.__)("Automatic","amp")},{value:"p",label:Object(i.__)("Paragraph","amp")},{value:"h1",label:Object(i.__)("Heading 1","amp")},{value:"h2",label:Object(i.__)("Heading 2","amp")}]}))),H&&Object(a.createElement)(z.InspectorControls,null,Object(a.createElement)(z.PanelColorSettings,{title:Object(i.__)("Color Settings","amp"),initialOpen:!1,colorSettings:[{value:g.color,onChange:v,label:Object(i.__)("Background Color","amp")},{value:y.color,onChange:O,label:Object(i.__)("Text Color","amp")}]},Object(a.createElement)(z.ContrastChecker,{textColor:y.color,backgroundColor:g.color,fallbackTextColor:j,fallbackBackgroundColor:q,fontSize:b.size}),Object(a.createElement)(o.RangeControl,{label:Object(i.__)("Opacity","amp"),value:Y,onChange:function(e){return h({opacity:e})},min:5,max:100,step:5}))),U&&Object(a.createElement)(z.InspectorControls,null,Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Animation","amp")},Object(a.createElement)(l,{animatedBlocks:S,animationType:Z,animationDuration:X?parseInt(X):"",animationDelay:re?parseInt(re):"",animationAfter:P,onAnimationTypeChange:k,onAnimationDurationChange:E,onAnimationDelayChange:_,onAnimationAfterChange:w}))),(M||V)&&Object(a.createElement)(z.InspectorControls,null,Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Story Settings","amp")},Object(a.createElement)(o.ToggleControl,{label:Object(i.__)("Display Caption","amp"),checked:s[ie],onChange:function(){t.setAttributes(ee()({},ie,!s[ie])),s[ie]||t.setAttributes({caption:""})},help:Object(i.__)("Note: If you turn this off, the current caption text will be removed.","amp")}))))})},"withAmpStorySettings"),Qt=Object(d.createHigherOrderComponent)(Object(n.withSelect)(function(e,t){var r,a=e("core/block-editor").getBlockAttributes;return t.block&&t.block.attributes?r=t.block.attributes:a&&(r=a(t.clientId)),{attributes:r}}),"withAttributes"),$t=Object(d.createHigherOrderComponent)(Object(n.withSelect)(function(e,t){return{blockName:(0,e("core/block-editor").getBlockName)(t.clientId)}}),"withBlockName"),Jt=Object(d.createHigherOrderComponent)(Object(n.withSelect)(function(e,t){return{hasSelectedInnerBlock:(0,e("core/block-editor").hasSelectedInnerBlock)(t.clientId,!0)}}),"withHasSelectedInnerBlock"),Yt=Object(n.withSelect)(function(e,t){var r=e("core/block-editor"),a=r.getBlockOrder,n=r.getBlockRootClientId,o=e("amp/story").isReordering;return""!==n(t.clientId)?{pageNumber:void 0}:{pageNumber:a().indexOf(t.clientId)+1,isReordering:o()}}),Kt=Object(d.compose)(Yt,$t),Zt=Object(d.createHigherOrderComponent)(function(e){return Kt(function(t){var r=t.blockName,n=t.pageNumber,o=t.isReordering;return c.e.includes(r)&&n?o?Object(a.createElement)(e,t):Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:"amp-story-page-number"},
15
  /* translators: %s: Page number */
16
- Object(i.sprintf)(Object(i.__)("Page %s","amp"),n)),Object(a.createElement)(e,t)):Object(a.createElement)(e,t)})},"withPageNumber"),Xt=Object(d.createHigherOrderComponent)(function(e){return function(t){var r=t.media,n=Object(It.l)(r,Object(te.n)(),!0);return n?Object(a.createElement)(a.Fragment,null,Object(a.createElement)(o.Notice,{status:"warning",isDismissible:!1},n.map(function(e,t){return Object(a.createElement)("p",{key:"error-".concat(t)},e)})),Object(a.createElement)(e,t)):Object(a.createElement)(e,t)}},"withStoryFeaturedImageNotice"),er=function(e){return Object(n.withSelect)(function(e,t){var r=e("core").getMedia,a=e("core/editor").getEditedPostAttribute,o=e("core/block-editor").getSelectedBlock,i=Object(n.dispatch)("core/editor").editPost,c=a("featured_media"),l="core/image"===t.name||"amp/amp-story-page"===t.name;if(!c&&l&&t.attributes){var s=t.attributes.mediaId||t.attributes.id,u=o();if(s&&u&&u.attributes){var p=u.attributes.mediaId||u.attributes.id;if(p&&p===s){var d=r(s);d&&d.media_details&&Object(It.i)(d.media_details,Object(It.f)())&&Object(It.i)(d.media_details,Object(te.n)())&&i({featured_media:s})}}}})(e)},tr=function(e){return function(t){return"core/video"===t.name?Object(a.createElement)(lr,t):Object(a.createElement)(e,t)}},rr=r(29),ar=r.n(rr),nr=r(32),or=r(21),ir=Object(a.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(a.createElement)(o.Path,{d:"M4 6.47L5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z"})),cr=function(e){function t(){var e,r;b()(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(r=v()(this,(e=O()(t)).call.apply(e,[this].concat(o)))).state={editing:!r.props.attributes.src,extractingPoster:!1},r.videoPlayer=Object(a.createRef)(),r.toggleAttribute=r.toggleAttribute.bind(j()(r)),r.onSelectURL=r.onSelectURL.bind(j()(r)),r.onUploadError=r.onUploadError.bind(j()(r)),r.onLoadedMetadata=r.onLoadedMetadata.bind(j()(r)),r}return w()(t,e),h()(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,r=t.attributes,a=t.mediaUpload,n=t.noticeOperations,o=t.setAttributes,i=r.id,l=r.src,s=void 0===l?"":l;if(!i&&Object(nr.isBlobURL)(s)){var u=Object(nr.getBlobByURL)(s);u&&a({filesList:[u],onFileChange:function(t){var r=ar()(t,1)[0],a=r.id,n=r.url;e.setState({duration:null,videoSize:null}),o({id:a,src:n})},onError:function(t){e.setState({editing:!0}),n.createErrorNotice(t)},allowedTypes:c.f})}s&&!Object(nr.isBlobURL)(s)&&Object(It.e)(s).then(function(t){e.setState({videoSize:t})})}},{key:"componentDidUpdate",value:function(e){var t=this,r=this.props,a=r.attributes,n=r.setAttributes,o=r.videoFeaturedImage,i=r.media,c=a.poster,l=a.src,s=a.id;c!==e.attributes.poster&&this.videoPlayer.current&&this.videoPlayer.current.load(),l===e.attributes.src||Object(nr.isBlobURL)(l)||Object(It.e)(l).then(function(e){t.setState({videoSize:e})}),c||(o?n({poster:o.source_url}):!i||i===e.media||i.featured_media||this.state.extractingPoster||(this.setState({extractingPoster:!0}),Object(te.I)({id:s,src:l}).then(function(e){n({poster:Object(te.q)(e)}),t.setState({extractingPoster:!1})}).catch(function(){return t.setState({extractingPoster:!1})})))}},{key:"toggleAttribute",value:function(e){var t=this;return function(r){t.props.setAttributes(ee()({},e,r))}}},{key:"onSelectURL",value:function(e){var t=this,r=this.props,a=r.attributes,n=r.setAttributes;e!==a.src&&(n({src:e,id:void 0,poster:void 0}),this.setState({extractingPoster:!0}),Object(te.I)({src:e}).then(function(e){n({poster:Object(te.q)(e)}),t.setState({extractingPoster:!1})}).catch(function(){return t.setState({extractingPoster:!1})})),this.setState({editing:!1,duration:null,videoSize:null})}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"onLoadedMetadata",value:function(e){var t=Math.round(e.currentTarget.duration);this.setState({duration:t})}},{key:"render",value:function(){var e=this,t=this.props,r=t.className,n=t.instanceId,l=t.isSelected,s=t.noticeUI,u=t.attributes,p=t.setAttributes,d=u.caption,m=u.loop,b=u.poster,f=u.src,h=u.width,g=u.height,v=this.state.editing,y=function(){e.setState({editing:!0})};if(v)return Object(a.createElement)(z.MediaPlaceholder,{icon:Object(a.createElement)(z.BlockIcon,{icon:ir}),className:r,onSelect:function(t){if(!t||!t.url)return p({src:void 0,id:void 0,poster:void 0}),void y();p({src:t.url,id:t.id,poster:void 0}),e.setState({src:t.url,editing:!1,duration:null,videoSize:null})},onSelectURL:this.onSelectURL,accept:"video/mp4",allowedTypes:c.f,value:this.props.attributes,notices:s,onError:this.onUploadError});var O=this.state.duration&&this.state.videoSize?this.state.videoSize/this.state.duration:0,q="video-block__poster-image-".concat(n),j=O?Object(It.j)(O):null;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(z.BlockControls,null,Object(a.createElement)(o.Toolbar,null,Object(a.createElement)(o.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(i.__)("Edit video","amp"),onClick:y,icon:"edit"}))),Object(a.createElement)(z.InspectorControls,null,Object(a.createElement)(o.PanelBody,{title:Object(i.__)("Video Settings","amp")},Object(a.createElement)(o.ToggleControl,{label:Object(i.__)("Loop","amp"),onChange:this.toggleAttribute("loop"),checked:m}),(!this.state.extractingPoster||b)&&Object(a.createElement)(z.MediaUploadCheck,null,Object(a.createElement)(o.BaseControl,{id:q,label:Object(i.__)("Poster Image","amp"),className:"editor-video-poster-control"},!b&&Object(a.createElement)(o.Notice,{status:"error",isDismissible:!1},Object(i.__)("A poster image must be set.","amp")),Object(a.createElement)(z.MediaUpload,{title:Object(i.__)("Select Poster Image","amp"),onSelect:function(e){p({poster:e.url})},allowedTypes:c.t,render:function(e){var t=e.open;return Object(a.createElement)(o.Button,{id:q,className:_()("video-block__poster-image",{"editor-post-featured-image__toggle":!b,"editor-post-featured-image__preview":b}),onClick:t,"aria-label":b?Object(i.__)("Replace Poster Image","amp"):null},b&&Object(a.createElement)(o.ResponsiveWrapper,{naturalWidth:h,naturalHeight:g},Object(a.createElement)("img",{src:b,alt:""})),!b&&Object(i.__)("Set Poster Image","amp"))}}))),j&&Object(a.createElement)(o.Notice,{status:"warning",isDismissible:!1},Object(i.sprintf)(
17
  /* translators: %d: the number of recommended megabytes per second */
18
- Object(i.__)("A video size of less than %d MB per second is recommended.","amp"),or.g)," ",Object(i.sprintf)(
19
  /* translators: %d: the number of actual megabytes per second */
20
- Object(i.__)("The selected video is %d MB per second.","amp"),Math.round(O/or.d))))),Object(a.createElement)("figure",{className:"wp-block-video"},Object(a.createElement)("video",{autoPlay:!0,muted:!0,loop:m,controls:!m,poster:b,ref:this.videoPlayer,src:f,onLoadedMetadata:this.onLoadedMetadata}),(!z.RichText.isEmpty(d)||l)&&Object(a.createElement)(z.RichText,{tagName:"figcaption",placeholder:Object(i.__)("Write caption…","amp"),value:d,onChange:function(e){return p({caption:e})},inlineToolbar:!0})))}}]),t}(a.Component),lr=Object(d.compose)([Object(n.withSelect)(function(e,t){var r,a=t.attributes,n=e("core").getMedia,o=a.id,i=a.poster,c=o?n(o):void 0;return c&&c.featured_media&&!i&&(r=n(c.featured_media)),{media:c,videoFeaturedImage:r}}),o.withNotices,d.withInstanceId])(cr),sr=Object(d.createHigherOrderComponent)(Object(n.withSelect)(function(e){return{isReordering:(0,e("amp/story").isReordering)()}}),"withIsReordering"),ur=Object(d.createHigherOrderComponent)(Object(n.withSelect)(function(e){return{selectedBlock:(0,e("core/block-editor").getSelectedBlock)()}}),"withSelectedBlock");function pr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function dr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pr(r,!0).forEach(function(t){ee()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pr(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var mr=Object(d.compose)(Qt,$t,Jt),br=function(e){return mr(function(t){var r,n=t.blockName,o=t.hasSelectedInnerBlock,i=t.attributes;if(-1===c.b.indexOf(n))return Object(a.createElement)(e,t);if(o&&"amp/amp-story-page"===n)return r=dr({},t.wrapperProps,{"data-amp-selected":"parent"}),Object(a.createElement)(e,u()({},t,{wrapperProps:r}));var l="core/image"===n&&!i.ampShowImageCaption||"core/video"===n&&!i.ampShowCaption;if(r=dr({},t.wrapperProps,{"data-amp-caption":l?"noCaption":void 0,"data-font-family":i.ampFontFamily||void 0}),c.c.includes(n)){var s={top:"".concat(i.positionTop,"%"),left:"".concat(i.positionLeft,"%")};s.transform="scale(var(--preview-scale)) translateX(var(--preview-translateX)) translateY(var(--preview-translateY)) rotate(".concat(i.rotationAngle||0,"deg)"),"amp/amp-story-cta"===n&&(s.transform="scale(var(--preview-scale))"),t.wrapperProps&&t.wrapperProps.style&&(s=dr({},s,{},t.wrapperProps.style)),r=dr({},r,{style:s})}return Object(a.createElement)(e,u()({},t,{wrapperProps:r,enableAnimation:!1}))})};function fr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function hr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fr(r,!0).forEach(function(t){ee()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fr(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var gr=function(e){return Object(n.withSelect)(function(e,t){var r=t.clientId,a=e("core/block-editor").getBlockRootClientId;return{isActivePage:(0,e("amp/story").getCurrentPage)()===r,isTopLevelBlock:""===a(r)}})(function(t){var r=t.isTopLevelBlock,o=t.isActivePage;if(!r)return Object(a.createElement)(e,t);var i=hr({},t,{className:hr({},t.className,{"amp-page-active":r&&o,"amp-page-inactive":r&&!o}),isLocked:!o}),c=Object(n.dispatch)("amp/story").setCurrentPage,l=Object(n.dispatch)("core/block-editor").selectBlock;return o?Object(a.createElement)(e,i):Object(a.createElement)(e,u()({},i,{onSelect:function(){c(t.clientId),l(t.clientId)}}))})},vr=Object(d.compose)($t,Jt,ur,sr),yr=function(){return vr(function(e){var t=e.blockName,r=e.hasSelectedInnerBlock,n=e.isReordering,o=e.selectedBlock;return n?null:"amp/amp-story-page"===t&&r&&o?Object(a.createElement)(ae,{srcClientId:o.clientId,srcBlockName:o.name}):null})},Or=Object(d.compose)(Object(n.withSelect)(function(e,t){var r=e("core/block-editor"),a=r.getBlockRootClientId,n=r.getBlock,o=r.getBlockOrder,i=r.getBlocksByClientId;if("amp/amp-story-cta"!==t.name)return{};var c=n(a(t.clientId));if(!c)return{};var l=0===o().indexOf(c.clientId),s=i(o(c.clientId)).find(function(e){return e.name===t.name}),u=s&&s.clientId!==t.clientId;return{isInvalid:l||u,originalBlockClientId:u&&s.clientId}}),Object(n.withDispatch)(function(e,t){var r=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(r)}}})),qr=Object(d.createHigherOrderComponent)(function(e){return Or(function(t){var r=t.isInvalid,n=t.originalBlockClientId,c=t.selectFirst,l=me()(t,["isInvalid","originalBlockClientId","selectFirst"]);if(!r||"amp/amp-story-cta"!==l.name)return Object(a.createElement)(e,l);var s=Object(A.getBlockType)(l.name),u=[Object(a.createElement)(o.Button,{key:"remove",isLarge:!0,onClick:function(){return l.onReplace([])}},Object(i.__)("Remove","amp"))];return n&&u.unshift(Object(a.createElement)(o.Button,{key:"find-original",isLarge:!0,onClick:c},Object(i.__)("Find original","amp"))),Object(a.createElement)(z.Warning,{actions:u},Object(a.createElement)("strong",null,s.title,": "),n?Object(i.__)("This block can only be used once per page.","amp"):Object(i.__)("This block can not be used on the first page.","amp"))})},"withCallToActionValidation");function jr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function kr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jr(r,!0).forEach(function(t){ee()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jr(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var wr=function(e){return function(t){var r=t.accept,n=t.className,o=kr({},t);return"wp-block-video"===n&&"video/*"===r&&(o=kr({},t,{accept:"video/mp4"})),Object(a.createElement)(e,o)}};r.d(t,"a",function(){return l}),r.d(t,"b",function(){return p}),r.d(t,"c",function(){return B}),r.d(t,"d",function(){return D}),r.d(t,"e",function(){return N}),r.d(t,"g",function(){return M}),r.d(t,"h",function(){return L}),r.d(t,"l",function(){return Q}),r.d(t,"r",function(){return J}),r.d(t,"o",function(){return Z}),r.d(t,"p",function(){return ae}),r.d(t,"q",function(){return ge}),r.d(t,"s",function(){return ke}),r.d(t,"i",function(){return we}),r.d(t,"n",function(){return _e}),r.d(t,"k",function(){return Se}),r.d(t,"j",function(){return kt}),r.d(t,"m",function(){return Ct}),r.d(t,"D",function(){return At}),r.d(t,"E",function(){return zt}),r.d(t,"u",function(){return Gt}),r.d(t,"v",function(){return Qt}),r.d(t,"w",function(){return $t}),r.d(t,"B",function(){return Jt}),r.d(t,"F",function(){return Zt}),r.d(t,"I",function(){return Xt}),r.d(t,"z",function(){return er}),r.d(t,"y",function(){return tr}),r.d(t,"f",function(){return lr}),r.d(t,"C",function(){return sr}),r.d(t,"G",function(){return ur}),r.d(t,"J",function(){return br}),r.d(t,"t",function(){return gr}),r.d(t,"H",function(){return yr}),r.d(t,"x",function(){return qr}),r.d(t,"A",function(){return wr})},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){function r(){return e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},r.apply(this,arguments)}e.exports=r},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t){!function(){e.exports=this.wp.richText}()},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t,r){var a=r(45),n=r(46),o=r(47);e.exports=function(e,t){return a(e)||n(e,t)||o()}},function(e,t,r){var a=r(61);e.exports=function(e,t){if(null==e)return{};var r,n,o=a(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wp.blob}()},function(e,t){function r(e,t,r,a,n,o,i){try{var c=e[o](i),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(a,n)}e.exports=function(e){return function(){var t=this,a=arguments;return new Promise(function(n,o){var i=e.apply(t,a);function c(e){r(i,n,o,c,l,"next",e)}function l(e){r(i,n,o,c,l,"throw",e)}c(void 0)})}}},function(e,t){!function(){e.exports=this.wp.editPost}()},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t,r){"use strict";var a=r(0),n=(r(10),r(2)),o=r(34),i=r(5),c=r(1),l=r(18),s=Object(i.withSelect)(function(e){var t=e("core/editor").getCurrentPost(),r=e("core/editor").getEditedPostAttribute("featured_media"),a=t.featured_media||r;return{featuredMedia:a?e("core").getMedia(a):null}})(function(e){var t=e.featuredMedia,r=e.dimensions,i=e.required,s=Object(l.l)(t,r,i);return s?Object(a.createElement)(a.Fragment,null,Object(a.createElement)(o.PluginPrePublishPanel,{title:Object(c.__)("Featured Image","amp"),initialOpen:"true"},Object(a.createElement)(n.Notice,{status:i?"warning":"notice",isDismissible:!1},s.map(function(e,t){return Object(a.createElement)("p",{key:"error-".concat(t)},e)})))):null}),u=r(8),p=(Object(u.createHigherOrderComponent)(function(e){return function(t){var r=t.media,o=Object(l.l)(r,Object(l.f)(),!1);return o?Object(a.createElement)(a.Fragment,null,Object(a.createElement)(n.Notice,{status:"notice",isDismissible:!1},o.map(function(e,t){return Object(a.createElement)("p",{key:"error-".concat(t)},e)})),Object(a.createElement)(e,t)):Object(a.createElement)(e,t)}},"withFeaturedImageNotice"),r(14)),d=r.n(p),m=r(13),b=r.n(m),f=r(15),h=r.n(f),g=r(16),v=r.n(g),y=r(12),O=r.n(y),q=r(17),j=r.n(q),k=r(9),w=r(7),E=r.n(w);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}var S,P=window.wp,x=P.media.View.extend({className:"notice notice-warning notice-alt inline",template:(S=Object(c.sprintf)(
21
  /* translators: 1: image width in pixels. 2: image height in pixels. 3: required minimum width in pixels. 4: required minimum height in pixels. */
22
- Object(c.__)("The selected image is too small (%1$s by %2$s pixels). It should have a size of at least %3$s by %4$s pixels.","amp"),"{{width}}","{{height}}","{{minWidth}}","{{minHeight}}"),Object(l.g)(S))}),C=P.media.View.extend({className:"notice notice-warning notice-alt inline",template:function(){var e=Object(c.sprintf)(
23
  /* translators: 1: the selected file type. */
24
- Object(c.__)("The selected file mime type, %1$s, is not allowed.","amp"),"{{mimeType}}");return Object(l.g)(e)}()}),I=P.media.View.extend({className:"notice notice-warning notice-alt inline",template:function(){var e=Object(c.sprintf)(
25
  /* translators: 1: the recommended max MB per second for videos. 2: the actual MB per second of the video. */
26
- Object(c.__)("A video size of less than %1$s MB per second is recommended. The selected video is %2$s MB per second.","amp"),"{{maxVideoMegabytesPerSecond}}","{{actualVideoMegabytesPerSecond}}");return Object(l.g)(e)}()}),B=P.media.view.Toolbar.Select.extend({refresh:function(){P.media.view.Toolbar.Select.prototype.refresh.call(this);var e=this.controller.state(),t=e.get("selection").models[0],r=e.collection.get("library").get("suggestedWidth"),a=e.collection.get("library").get("suggestedHeight");!t||"image"!==t.get("type")||!t.get("width")||t.get("width")>=r&&t.get("height")>=a?this.secondary.unset("select-error"):this.secondary.set("select-error",new x({minWidth:r,minHeight:a,width:t.get("width"),height:t.get("height")})),l.b.call(this,t,C)}}),A=P.media.view.Toolbar.Select.extend({refresh:function(){P.media.view.Toolbar.Select.prototype.refresh.call(this);var e=this.controller.state().get("selection").models[0];l.b.call(this,e,C),l.a.call(this,e,I);var t=this.$el.parents(".media-frame");t&&t.toggleClass("has-two-notices",l.k.call(this))}}),z=function(e){return P.media.view.MediaFrame.Select.extend({createSelectToolbar:function(t,r){(r=r||this.options.button||{}).controller=this,r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(r,!0).forEach(function(t){E()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},r,{allowedTypes:Object(k.get)(this,["options","allowedTypes"],null)}),t.view=new e(r)}})},D=window.wp,T=function(e){return function(e){function t(){var e,r;d()(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return("story-background-media"===(r=h()(this,(e=v()(t)).call.apply(e,[this].concat(n)))).props.id||Object(k.isEqual)(["video/mp4"],r.props.allowedTypes))&&(r.initFileTypeMedia=r.initFileTypeMedia.bind(O()(r)),r.initFileTypeMedia()),r}return j()(t,e),b()(t,[{key:"initFileTypeMedia",value:function(){var e=this,t=z(A),r=this.onSelect,a=Object(k.isEqual)(["video"],this.props.allowedTypes)?"video/mp4":this.props.allowedTypes;this.frame=new t({allowedTypes:this.props.allowedTypes,button:{text:Object(c.__)("Select","amp"),close:!1},states:[new D.media.controller.Library({title:Object(c.__)("Select or Upload Media","amp"),library:D.media.query({type:a}),multiple:!1,date:!1,priority:20})]}),D.media.frame=this.frame,this.frame.on("close",function(){e.initFileTypeMedia()},this),this.frame.on("select",function(){r&&r(),e.frame.close()},this)}}]),t}(e)},N=window.wp,R=N.media.controller.Cropper.extend({doCrop:function(e){var t=e.get("cropDetails"),r=this.imgSelect.getOptions();return Math.abs(t.width-r.minWidth)<10&&(t.width=r.minWidth),Math.abs(t.height-r.minHeight)<10&&(t.height=r.minHeight),t.dst_width=t.width,t.dst_height=t.height,N.ajax.post("crop-image",{nonce:e.get("nonces").edit,id:e.get("id"),context:"featured-image",cropDetails:t})}}),M=window.wp,V=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=t.width,n=t.height,o=r.width,s=r.height;return function(e){function t(){var e,r;d()(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return"editor-post-featured-image__media-modal"===(r=h()(this,(e=v()(t)).call.apply(e,[this].concat(n)))).props.modalClass&&(r.initFeaturedImage=r.initFeaturedImage.bind(O()(r)),r.initFeaturedImage()),r}return j()(t,e),b()(t,[{key:"initFeaturedImage",value:function(){var e=this,t=z(B);this.frame=new t({allowedTypes:this.props.allowedTypes,button:{text:Object(c.__)("Select","amp"),close:!1},states:[new M.media.controller.Library({title:Object(c.__)("Choose image","amp"),library:M.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:a,suggestedHeight:n}),new R({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),M.media.frame=this.frame,this.frame.on("select",this.onSelectImage,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this),this.frame.on("close",function(){e.initFeaturedImage()},this)}},{key:"calculateImageSelectOptions",value:function(e,t){var r=e.get("width"),i=e.get("height"),c=o&&r>=o&&i>=s&&Object(l.c)(r,i)===Object(l.c)(o,s),u=c?parseInt(o):parseInt(a),p=c?parseInt(s):parseInt(n),d=u/p,m=u,b=p;t.set("canSkipCrop",!0),r/i>d?u=(p=i)*d:p=(u=r)/d;var f=(r-u)/2,h=(i-p)/2;return{aspectRatio:u+":"+p,handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:r,imageHeight:i,minWidth:m>u?u:m,minHeight:b>p?p:b,x1:f,y1:h,x2:u+f,y2:p+h}}},{key:"onSelectImage",value:function(){var e=this.frame.state().get("selection").first().toJSON();a===e.width&&n===e.height||o&&o===e.width&&s===e.height?(this.setImageFromURL(e.url,e.id,e.width,e.height),this.frame.close()):this.frame.setState("cropper")}},{key:"doAllowCrop",value:function(e){return e.width&&e.height&&e.width>=a&&e.height>=n}},{key:"mustBeCropped",value:function(e,t,r,a){return!(e===r&&t===a||r<=e)}},{key:"onCropped",value:function(e){var t=e.url,r=e.id,a=e.width,n=e.height;this.setImageFromURL(t,r,a,n)}},{key:"onSkippedCrop",value:function(e){var t=e.get("url"),r=e.get("width"),a=e.get("height");this.setImageFromURL(t,e.id,r,a)}},{key:"setImageFromURL",value:function(e,t,r,a){var n={},o=this.props.onSelect;n.url=e,n.thumbnail_url=e,n.timestamp=Object(k.now)(),t&&(n.attachment_id=t),r&&(n.width=r),a&&(n.height=a),o(n),Object(i.dispatch)("core/editor").editPost({featured_media:t})}}]),t}(e)};r.d(t,"a",function(){return s}),r.d(t,"c",function(){return T}),r.d(t,"b",function(){return V})},function(e,t,r){"use strict";var a={};r.r(a),r.d(a,"getAnimatedBlocks",function(){return u}),r.d(a,"isValidAnimationPredecessor",function(){return p}),r.d(a,"getCurrentPage",function(){return d}),r.d(a,"getBlockOrder",function(){return m}),r.d(a,"getBlockIndex",function(){return b}),r.d(a,"isReordering",function(){return f});var n={};r.r(n),r.d(n,"addAnimation",function(){return y}),r.d(n,"changeAnimationType",function(){return O}),r.d(n,"changeAnimationDuration",function(){return q}),r.d(n,"changeAnimationDelay",function(){return j}),r.d(n,"setCurrentPage",function(){return k}),r.d(n,"startReordering",function(){return w}),r.d(n,"movePageToPosition",function(){return E}),r.d(n,"saveOrder",function(){return _}),r.d(n,"resetOrder",function(){return S});var o=r(5),i=r(22),c=r.n(i),l=r(7),s=r.n(l);function u(e){return e.animations||{}}function p(e,t,r,a){if(void 0===a||!e.animations)return!0;var n=e.animations[t]||[],o=function(e){return n.find(function(t){return t.id===e})};if(!o(a))return!1;return!function(e,t){for(var r=t;void 0!==r;){if(r===e)return!0;var a=o(r);r=a?a.parent:void 0}return!1}(r,a)}function d(e){return e.currentPage}function m(e){return e.blocks.order||[]}function b(e,t){return e.blocks.order?e.blocks.order.indexOf(t):null}function f(e){return e.blocks.isReordering||!1}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(r,!0).forEach(function(t){s()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var v=Object(o.combineReducers)({animations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=g({},e),a=t.page,n=t.item,o=t.predecessor,i=t.animationType,c=t.duration,l=t.delay,u=r[a]||[],d=function(e){return u.findIndex(function(t){return t.id===e})};switch(t.type){case"ADD_ANIMATION":var m=p({animations:e},a,n,o)?o:void 0;return-1!==d(n)?u[d(n)].parent=m:u.push({id:n,parent:m}),g({},r,s()({},a,u));case"CHANGE_ANIMATION_TYPE":if(-1!==d(n)){if(u[d(n)].animationType=i,!i){var b=u[d(n)].parent,f=u.filter(function(e){return e.parent===n});for(var h in f)-1!==d(h)&&(u[d(h)].parent=b.parent)}}else u.push({id:n,animationType:i});return g({},r,s()({},a,u));case"CHANGE_ANIMATION_DURATION":return-1!==d(n)&&(u[d(n)].duration=c),g({},r,s()({},a,u));case"CHANGE_ANIMATION_DELAY":return-1!==d(n)&&(u[d(n)].delay=l),g({},r,s()({},a,u));default:return e}},currentPage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0,r=t.page;switch(t.type){case"SET_CURRENT_PAGE":return r;default:return e}},blocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.order;switch(t.type){case"START_REORDERING":return g({},e,{order:r,isReordering:!0});case"STOP_REORDERING":return g({},e,{isReordering:!1});case"MOVE_PAGE":var a=t.page,n=t.index,o=e.order.indexOf(a),i=c()(e.order);return i.splice.apply(i,[n,0].concat(c()(i.splice(o,1)))),g({},e,{order:i});case"RESET_ORDER":return g({},e,{order:r,isReordering:!1});default:return e}}});function y(e,t,r){return{type:"ADD_ANIMATION",page:e,item:t,predecessor:r}}function O(e,t,r){return{type:"CHANGE_ANIMATION_TYPE",page:e,item:t,animationType:r}}function q(e,t,r){return{type:"CHANGE_ANIMATION_DURATION",page:e,item:t,duration:r}}function j(e,t,r){return{type:"CHANGE_ANIMATION_DELAY",page:e,item:t,delay:r}}function k(e){return{type:"SET_CURRENT_PAGE",page:e}}function w(e){return{type:"START_REORDERING",order:e}}function E(e,t){return{type:"MOVE_PAGE",page:e,index:t}}function _(){return{type:"STOP_REORDERING"}}function S(e){return{type:"RESET_ORDER",order:e}}t.a=Object(o.registerStore)("amp/story",{reducer:v,selectors:a,actions:n,initialState:{animations:{},blocks:{order:[],isReordering:!1}}})},function(e,t){!function(){e.exports=this.wp.domReady}()},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t,r){var a=r(59),n=r(60);e.exports=function(e,t,r){var o=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var c=0;c<16;++c)t[o+c]=i[c];return t||n(i)}},function(e,t,r){e.exports=function(e,t){var r,a,n,o=0;function i(){var t,i,c=a,l=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(i=0;i<l;i++)if(c.args[i]!==arguments[i]){c=c.next;continue e}return c!==a&&(c===n&&(n=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=a,c.prev=null,a.prev=c,a=c),c.val}c=c.next}for(t=new Array(l),i=0;i<l;i++)t[i]=arguments[i];return c={args:t,val:e.apply(null,t)},a?(a.prev=c,c.next=a):n=c,o===r?(n=n.prev).next=null:o++,a=c,c.val}return t&&t.maxSize&&(r=t.maxSize),i.clear=function(){a=null,n=null,o=0},i}},function(e,t){!function(){e.exports=this.wp.wordcount}()},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t,r){"use strict";r.r(t);var a=r(29),n=r.n(a),o=r(28),i=r.n(o),c=r(33),l=r.n(c),s=r(9),u=r(24),p=r(1),d=r(38),m=r.n(d),b=r(5),f=r(39),h=r(27),g=r(11),v=r(36),y=r(23),O=r(6),q=r(3),j=r(37),k=Object(b.select)("core/block-editor"),w=k.getSelectedBlock,E=k.getBlocksByClientId,_=k.getClientIdsWithDescendants,S=k.getBlockRootClientId,P=k.getBlockOrder,x=k.getBlock,C=k.getBlocks,I=k.getBlockAttributes,B=Object(b.dispatch)("core/block-editor"),A=B.moveBlockToPosition,z=B.updateBlockAttributes,D=Object(b.select)("core/edit-post"),T=D.getEditorMode,N=D.isFeatureActive,R=Object(b.dispatch)("core/edit-post").toggleFeature,M=Object(b.select)("amp/story"),V=M.isReordering,F=M.getBlockOrder,L=M.getCurrentPage,H=M.getAnimatedBlocks,W=Object(b.dispatch)("amp/story").setCurrentPage;m()(function(){Object(g.setDefaultBlockName)("amp/amp-story-page");var e=Object(g.getBlockTypes)().filter(function(e){var t=e.name;return!q.b.includes(t)}),t=!0,r=!1,a=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var i=n.value;Object(g.unregisterBlockType)(i.name)}}catch(e){r=!0,a=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw a}}var c=E(_()),l=c.find(function(e){return"amp/amp-story-page"===e.name});W(l?l.clientId:void 0);var s=!0,u=!1,d=void 0;try{for(var m,b=c[Symbol.iterator]();!(s=(m=b.next()).done);s=!0){var f=m.value;f.attributes.ampFontFamily&&Object(O.v)(f.attributes.ampFontFamily),Object(O.x)(f)}}catch(e){u=!0,d=e}finally{try{s||null==b.return||b.return()}finally{if(u)throw d}}N("fixedToolbar")||R("fixedToolbar"),Object(O.F)();for(var h=0,v=["amp/amp-story-text","amp/amp-story-post-author","amp/amp-story-post-date","amp/amp-story-post-title"];h<v.length;h++){var y=v[h];Object(g.registerBlockStyle)(y,{name:"rounded",label:Object(p.__)("Rounded","amp")})}Object(g.registerBlockStyle)("amp/amp-story-text",{name:"half-rounded",label:Object(p.__)("Half Rounded","amp")}),Object(g.registerBlockStyle)("core/image",{name:"rounded",label:Object(p.__)("Rounded","amp")}),Object(g.registerBlockStyle)("core/quote",{name:"white",label:Object(p.__)("White","amp")}),Object(g.unregisterBlockStyle)("core/quote","large")});var U,G=P(),Q=_(),$=T();Object(b.subscribe)(l()(i.a.mark(function e(){var t,r,a,n,o,c,l,s,u,p,d,m,b;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(Object(O.w)(),t=Object(g.getDefaultBlockName)(),(r=w())?"amp/amp-story-page"===r.name&&"amp/amp-story-page"!==t?Object(g.setDefaultBlockName)("amp/amp-story-page"):"amp/amp-story-page"!==r.name&&"amp/amp-story-text"!==t&&Object(g.setDefaultBlockName)("amp/amp-story-text"):"amp/amp-story-page"!==t&&Object(g.setDefaultBlockName)("amp/amp-story-page"),U!==r&&(a=document.querySelector(".edit-post-layout"))&&a.setAttribute("data-block-name",r?r.name:""),U=r,n=P(),o=n.find(function(e){return!G.includes(e)}),G.filter(function(e){return!n.includes(e)}).includes(L())&&(c=Math.max(0,G.indexOf(L())-1),W((G=n)[c])),G=n,o&&W(o),l=!0,s=!1,u=void 0,e.prev=15,p=Q[Symbol.iterator]();!(l=(d=p.next()).done);l=!0)m=d.value,Object(O.z)(m),Object(O.y)(m),Object(O.C)(m),Object(O.B)(m),Object(O.A)(m);e.next=23;break;case 19:e.prev=19,e.t0=e.catch(15),s=!0,u=e.t0;case 23:e.prev=23,e.prev=24,l||null==p.return||p.return();case 26:if(e.prev=26,!s){e.next=29;break}throw u;case 29:return e.finish(26);case 30:return e.finish(23);case 31:if(Q=_(),"visual"!==(b=T())||b===$){e.next=40;break}case 34:if(document.querySelector(".editor-block-list__layout")){e.next=39;break}return e.next=37,new Promise(function(e){return setTimeout(e,200)});case 37:e.next=34;break;case 39:Object(O.F)();case 40:$=b;case 41:case"end":return e.stop()}},e,null,[[15,19,23,31],[24,,26,30]])}))),j.a.subscribe(function(){var e=P(),t=F();if(!V()&&t.length>0&&e!==t){var r=!0,a=!1,o=void 0;try{for(var i,c=t.entries()[Symbol.iterator]();!(r=(i=c.next()).done);r=!0){var l=n()(i.value,2),u=l[0],p=l[1];A(p,"","",u)}}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}}var d=H(),m=function(e){if(!d.hasOwnProperty(e)||!x(e))return"continue";var t=I(e),r=d[e].filter(function(t){var r=t.id;return e===S(r)}),a=Object(O.s)(r),n=Math.ceil(a/1e3);"time"===t.autoAdvanceAfter?n>t.autoAdvanceAfterDuration&&z(e,{autoAdvanceAfterDuration:n}):z(e,{autoAdvanceAfterDuration:n});var o=!0,i=!1,c=void 0;try{for(var l,s=r[Symbol.iterator]();!(o=(l=s.next()).done);o=!0){var u=l.value,p=u.id,m=u.parent,b=u.animationType,f=u.duration,h=u.delay;Object(O.u)(m);var g=m?x(m):void 0;z(p,{ampAnimationAfter:g?g.attributes.anchor:void 0,ampAnimationType:b,ampAnimationDuration:f,ampAnimationDelay:h})}}catch(e){i=!0,c=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw c}}};for(var p in d)m(p);var b,f=C(),h=!0,g=!1,v=void 0;try{for(var y,q=f[Symbol.iterator]();!(h=(y=q.next()).done);h=!0){var j=y.value;b=j,Object(s.has)(b,["attributes","anchor"])&&b.attributes.anchor!==b.clientId&&z(b.clientId,{anchor:b.clientId})}}catch(e){g=!0,v=e}finally{try{h||null==q.return||q.return()}finally{if(g)throw v}}});var J=r(68);J.keys().forEach(function(e){var t=J(e),r=t.name,a=t.render,n=t.isActive;(void 0===n||n)&&Object(f.registerPlugin)(r,{render:a})}),Object(u.addFilter)("blocks.registerBlockType","ampStoryEditorBlocks/setBlockParent",O.G),Object(u.addFilter)("blocks.registerBlockType","ampStoryEditorBlocks/addAttributes",O.a),Object(u.addFilter)("blocks.registerBlockType","ampStoryEditorBlocks/filterBlockTransforms",O.g),Object(u.addFilter)("blocks.registerBlockType","ampStoryEditorBlocks/deprecateCoreBlocks",O.e),Object(u.addFilter)("editor.BlockEdit","ampStoryEditorBlocks/addStorySettings",y.u),Object(u.addFilter)("editor.BlockEdit","ampStoryEditorBlocks/addPageNumber",y.F),Object(u.addFilter)("editor.BlockEdit","ampStoryEditorBlocks/addEditFeaturedImage",y.z),Object(u.addFilter)("editor.BlockEdit","ampEditorBlocks/addVideoBlockPreview",y.y,9),Object(u.addFilter)("editor.PostFeaturedImage","ampStoryEditorBlocks/addFeaturedImageNotice",y.I),Object(u.addFilter)("editor.BlockListBlock","ampStoryEditorBlocks/withActivePageState",y.t),Object(u.addFilter)("editor.BlockListBlock","ampStoryEditorBlocks/addWrapperProps",y.J),Object(u.addFilter)("editor.MediaUpload","ampStoryEditorBlocks/addEnforcedFileType",function(e){return Object(v.c)(e)}),Object(u.addFilter)("editor.MediaUpload","ampStoryEditorBlocks/addCroppedFeaturedImage",function(e){return Object(v.b)(e,Object(O.n)())}),Object(u.addFilter)("editor.MediaPlaceholder","ampStoryEditorBlocks/addEnforcedVideoUploadType",y.A),Object(u.addFilter)("blocks.getSaveContent.extraProps","ampStoryEditorBlocks/addExtraAttributes",O.b),Object(u.addFilter)("blocks.getSaveElement","ampStoryEditorBlocks/wrapBlocksInGridLayer",O.J),Object(u.addFilter)("editor.BlockDropZone","ampStoryEditorBlocks/withStoryBlockDropZone",y.H),Object(u.addFilter)("editor.BlockEdit","ampStoryEditorBlocks/withCallToActionValidation",y.x),Object(u.addFilter)("blocks.getBlockAttributes","ampStoryEditorBlocks/filterBlockAttributes",O.f);var Y=r(72);Y.keys().forEach(function(e){var t=Y(e),r=t.name,a=t.settings;Object(g.registerBlockType)(r,a)});var K=r(82);K.keys().sort(function(e,t){return e.priority>t.priority?1:-1}).forEach(function(e){var t=K(e),r=t.name,a=t.settings;Object(h.registerFormatType)(r,a)})},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var r=[],a=!0,n=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(a=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);a=!0);}catch(e){n=!0,o=e}finally{try{a||null==c.return||c.return()}finally{if(n)throw o}}return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,r){"use strict";var a=r(49);function n(){}function o(){}o.resetWarningCache=n,e.exports=function(){function e(e,t,r,n,o,i){if(i!==a){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:n};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(t){return"function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?e.exports=a=function(e){return r(e)}:e.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},a(t)}e.exports=a},function(e,t){function r(t,a){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(t,a)}e.exports=r},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var a=new Uint8Array(16);e.exports=function(){return r(a),a}}else{var n=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},function(e,t){for(var r=[],a=0;a<256;++a)r[a]=(a+256).toString(16).substr(1);e.exports=function(e,t){var a=t||0,n=r;return[n[e[a++]],n[e[a++]],n[e[a++]],n[e[a++]],"-",n[e[a++]],n[e[a++]],"-",n[e[a++]],n[e[a++]],"-",n[e[a++]],n[e[a++]],"-",n[e[a++]],n[e[a++]],n[e[a++]],n[e[a++]],n[e[a++]],n[e[a++]]].join("")}},function(e,t){e.exports=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){var a={"./export.js":69,"./pre-publish-panel.js":70,"./template-menu-item.js":71};function n(e){var t=o(e);return r(t)}function o(e){if(!r.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}n.keys=function(){return Object.keys(a)},n.resolve=o,e.exports=n,n.id=68},function(e,t,r){"use strict";r.r(t),r.d(t,"name",function(){return b}),r.d(t,"render",function(){return f});var a=r(0),n=(r(10),r(9)),o=r(34),i=r(8),c=r(5),l=r(1),s=window,u=s.ampStoriesExport,p=s.fetch,d=s.FormData,m=s.URL,b="amp-story-export",f=Object(i.compose)([Object(c.withSelect)(function(e){var t=e("core/editor"),r=t.getCurrentPost,a=t.getCurrentPostId;return{hasPublishAction:Object(n.get)(r(),["_links","wp:action-publish"],!1),postId:a()}}),Object(c.withDispatch)(function(e){var t=e("core/notices");return{createErrorNotice:t.createErrorNotice,createSuccessNotice:t.createSuccessNotice,removeNotice:t.removeNotice}}),Object(i.ifCondition)(function(e){return e.hasPublishAction})])(function(e){var t=e.postId,r=e.createErrorNotice,n=e.createSuccessNotice,i=e.removeNotice;return Object(a.createElement)(o.PluginMoreMenuItem,{icon:"media-archive",onClick:function(){!function(e){var t=e.postId,r=e.createErrorNotice,a=e.createSuccessNotice,n=e.removeNotice,o=new d,i=Object(l.__)("Could not generate story archive.","amp");o.append("action",u.action),o.append("_wpnonce",u.nonce),o.append("post_ID",t);var c="amp-story-export__success-snackbar",s="amp-story-export__error-notice";n(s),a(Object(l.__)("Generating story archive…","amp"),{id:c,type:"snackbar"});var b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;n(c),r(e?e.message:i,{id:s})};p(u.ajaxUrl,{method:"POST",body:o}).then(function(e){e.ok?e.blob().then(function(t){var r=(e.headers.get("Content-Disposition")||"").match(/"(.*?)"/);if(r){n(c);var a=document.createElement("a"),o=m.createObjectURL(t);a.addEventListener("click",function e(){setTimeout(function(){m.revokeObjectURL(o),a.removeEventListener("click",e)},150)},!1),a.href=o,a.download=r[1],a.click()}else b()}).catch(b):e.json().then(function(e){b(e.data&&e.data.errorMessage?new Error(e.data.errorMessage):null)}).catch(b)}).catch(b)}({postId:t,createErrorNotice:r,createSuccessNotice:n,removeNotice:i})}},Object(l.__)("Export Story","amp"))})},function(e,t,r){"use strict";r.r(t),r.d(t,"name",function(){return i}),r.d(t,"render",function(){return c});var a=r(0),n=r(36),o=r(6),i="amp-story-pre-publish-panel",c=function(){return Object(a.createElement)(n.a,{dimensions:Object(o.n)(),required:!0})}},function(e,t,r){"use strict";r.r(t),r.d(t,"isActive",function(){return u}),r.d(t,"name",function(){return p}),r.d(t,"render",function(){return d});var a=r(0),n=r(34),o=r(1),i=r(5),c=r(11),l=r(9),s=function(){var e=Object(i.select)("core/block-editor"),t=e.getSelectedBlockClientId,r=e.getBlock,a=Object(i.dispatch)("core/block-editor"),n=a.__experimentalReceiveReusableBlocks,s=a.__experimentalSaveReusableBlock,u=r(t());if("amp/amp-story-page"===u.name){var p=Object(c.cloneBlock)(u),d={id:Object(l.uniqueId)("reusable"),clientId:p.clientId,title:Object(o.__)("Template","amp")};n([{reusableBlock:d,parsedBlock:p}]),s(d.id)}},u=!1,p="amp-story",d=function(){return Object(a.createElement)(n.PluginBlockSettingsMenuItem,{allowedBlocks:["amp/amp-story-page"],icon:"welcome-add-page",label:Object(o.__)("Save as Template","amp"),role:"menuitem",onClick:s})}},function(e,t,r){var a={"./amp-story-cta/index.js":85,"./amp-story-page/index.js":86,"./amp-story-post-author/index.js":75,"./amp-story-post-date/index.js":77,"./amp-story-post-title/index.js":79,"./amp-story-text/index.js":87};function n(e){var t=o(e);return r(t)}function o(e){if(!r.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}n.keys=function(){return Object.keys(a)},n.resolve=o,e.exports=n,n.id=72},function(e,t,r){},function(e,t,r){},function(e,t,r){"use strict";r.r(t),r.d(t,"name",function(){return l}),r.d(t,"settings",function(){return s});var a=r(7),n=r.n(a),o=r(1),i=r(6);r(76);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}var l="amp/amp-story-post-author",s=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(r,!0).forEach(function(t){n()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({title:Object(o.__)("Story Author","amp"),description:Object(o.__)("Display the name of the story’s author. Modify by changing the author in the document settings.","amp"),category:"common",icon:"admin-users",keywords:[Object(o.__)("post","amp"),Object(o.__)("author","amp"),Object(o.__)("name","amp"),Object(o.__)("byline","amp")]},Object(i.m)({tagName:"div",attribute:"author",isEditable:!1}))},function(e,t,r){},function(e,t,r){"use strict";r.r(t),r.d(t,"name",function(){return l}),r.d(t,"settings",function(){return s});var a=r(7),n=r.n(a),o=r(1),i=r(6);r(78);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}var l="amp/amp-story-post-date",s=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(r,!0).forEach(function(t){n()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({title:Object(o.__)("Story Date","amp"),description:Object(o.__)("Display the publish date of the story. Modify by changing the date in the document settings.","amp"),category:"common",icon:"clock",keywords:[Object(o.__)("publish date","amp")]},Object(i.m)({tagName:"div",attribute:"date",isEditable:!1}))},function(e,t,r){},function(e,t,r){"use strict";r.r(t),r.d(t,"name",function(){return s}),r.d(t,"settings",function(){return u});var a=r(7),n=r.n(a),o=r(0),i=r(1),c=r(6);r(80);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}var s="amp/amp-story-post-title",u=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(r,!0).forEach(function(t){n()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({title:Object(i.__)("Story Title","amp"),description:Object(i.__)("Display the story title. Modify by changing the overall title of the document.","amp"),category:"common",icon:Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)("path",{d:"M5 4v3h5.5v12h3V7H19V4z"}),Object(o.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"})),keywords:[Object(i.__)("post","amp"),Object(i.__)("title","amp")]},Object(c.m)({tagName:"h1",attribute:"title",placeholder:Object(i.__)("Add story title…","amp"),isEditable:!0}))},function(e,t,r){},function(e,t,r){},function(e,t,r){var a={"./background-color/index.js":88,"./text-color/index.js":89};function n(e){var t=o(e);return r(t)}function o(e){if(!r.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}n.keys=function(){return Object.keys(a)},n.resolve=o,e.exports=n,n.id=82},function(e,t,r){},function(e,t,r){},function(e,t,r){"use strict";r.r(t);var a=r(0),n=(r(31),r(1)),o=r(11),i=r(7),c=r.n(i),l=r(14),s=r.n(l),u=r(13),p=r.n(u),d=r(15),m=r.n(d),b=r(16),f=r.n(b),h=r(12),g=r.n(h),v=r(17),y=r.n(v),O=r(19),q=r.n(O),j=(r(10),r(2)),k=r(4),w=(r(73),r(5)),E=r(6),_=r(18),S=r(23),P=function(e){function t(e){var r;return s()(this,t),r=m()(this,f()(t).call(this,e)),e.attributes.anchor||r.props.setAttributes({anchor:Object(E.t)()}),r.state={isEditing:!1,hasOverlay:!0},r.toggleIsEditing=r.toggleIsEditing.bind(g()(r)),r.toggleOverlay=r.toggleOverlay.bind(g()(r)),r.nodeRef=null,r.bindRef=r.bindRef.bind(g()(r)),r}return y()(t,e),p()(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"toggleIsEditing",value:function(e){e!==this.state.isEditing&&this.setState({isEditing:!this.state.isEditing})}},{key:"toggleOverlay",value:function(e){e!==this.state.hasOverlay&&this.setState({hasOverlay:!this.state.hasOverlay})}},{key:"componentDidUpdate",value:function(e,t){!this.props.isSelected&&e.isSelected&&(this.toggleIsEditing(!1),this.toggleOverlay(!0)),this.state.isEditing&&!t.isEditing&&Object(E.H)(".is-selected .amp-block-story-cta__link")}},{key:"render",value:function(){var e=this.props,t=e.attributes,r=e.backgroundColor,o=e.className,i=e.clientId,l=e.fontSize,s=e.isSelected,u=e.name,p=e.setAttributes,d=e.textColor,m=t.text,b=t.url,f=t.customBackgroundColor,h=t.opacity,g=t.btnPositionTop,v=t.btnPositionLeft,y=this.state,O=y.isEditing,E=y.hasOverlay,P=Object(w.select)("core/block-editor").getSettings().colors,x=Object(_.d)(P,r,f,h),C=Object(n.__)("Add text…","amp"),I=q()("amp-block-story-cta__link",c()({"has-background":r.color,"has-text-color":d.color},d.class,d.class)),B={color:d.color,fontSize:l.size?l.size+"px":void 0};return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:"amp-story-cta-button",id:"amp-story-cta-button-".concat(i),style:{top:"".concat(g,"%"),left:"".concat(v,"%")}},Object(a.createElement)("div",{className:o,ref:this.bindRef,style:{backgroundColor:x}},O&&Object(a.createElement)(k.RichText,{placeholder:C,value:m,onChange:function(e){return p({text:e})},className:I,style:B}),!O&&Object(a.createElement)(S.g,{blockElementId:"amp-story-cta-button-".concat(i),clientId:i,name:u,isDraggable:!0,isEditing:O,isSelected:s,hasOverlay:E,toggleIsEditing:this.toggleIsEditing,toggleOverlay:this.toggleOverlay,text:m,textStyle:B,textWrapperClass:I,placeholder:C})),s&&O&&Object(a.createElement)("form",{className:"amp-block-story-cta__inline-link",onSubmit:function(e){return e.preventDefault()}},Object(a.createElement)(j.Dashicon,{icon:"admin-links"}),Object(a.createElement)(k.URLInput,{value:b,onChange:function(e){return p({url:e})},autoFocus:!1}),Object(a.createElement)(j.IconButton,{icon:"editor-break",label:Object(n.__)("Apply","amp"),type:"submit"}))))}}]),t}(a.Component);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}var C=function(e){var t=e.attributes,r=t.anchor,n=t.btnPositionLeft,o=t.btnPositionTop,i=t.text,l=t.url,s=Object(E.k)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(r,!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t,{className:"amp-block-story-cta__link"})),u=Object(E.r)(t);return u.top=o?"".concat(o,"%"):void 0,u.left=n?"".concat(n,"%"):void 0,Object(a.createElement)("amp-story-cta-layer",{id:r||Object(E.t)()},Object(a.createElement)(k.RichText.Content,{tagName:"a",className:s,href:l,style:u,value:i}))},I=r(9);function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(r,!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var z=[{attributes:A({align:{type:"string",default:"center"}},{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},text:{type:"string",source:"html",selector:"a"},customTextColor:{type:"string",default:"#ffffff"},customBackgroundColor:{type:"string",default:"#32373c"}}),supports:{align:!0,alignWide:!1},save:function(e){var t=e.attributes,r=t.anchor,n=t.url,o=t.text,i=Object(E.k)(A({},t,{className:"amp-block-story-cta__link"})),c=Object(E.r)(t);return Object(a.createElement)("amp-story-cta-layer",{id:r},Object(a.createElement)(k.RichText.Content,{tagName:"a",className:i,href:n,style:c,value:o}))},migrate:function(e){return A({},Object(I.omit)(e,"align"),{btnPositionTop:0,btnPositionLeft:30})}}];r.d(t,"name",function(){return T}),r.d(t,"settings",function(){return N});var D=function(e){return Object(a.createElement)("svg",e,Object(a.createElement)("path",{d:"M7 14v2H5a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v5a3.001 3.001 0 0 1-2 2.83V8a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h2z"}),Object(a.createElement)("path",{d:"M18.31 15.442a.563.563 0 0 0-.202-.636l-6.631-4.808a.562.562 0 0 0-.891.415l-.58 8.17a.564.564 0 0 0 .359.565c.236.1.49.018.644-.175l1.646-2.074 1.632 3.5a.561.561 0 0 0 .748.273L16.477 20a.562.562 0 0 0 .272-.748l-1.633-3.5 2.647.072a.563.563 0 0 0 .548-.382z"}))};D.defaultProps={width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"};var T="amp/amp-story-cta",N={title:Object(n.__)("Call to Action","amp"),description:Object(n.__)("Prompt visitors to take action with a button-style link.","amp"),icon:D,category:"layout",keywords:[Object(n.__)("cta","amp"),Object(n.__)("button","amp")],attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},text:{type:"string",source:"html",selector:"a"},customTextColor:{type:"string",default:"#ffffff"},customBackgroundColor:{type:"string",default:"#32373c"},btnPositionTop:{type:"number",default:0},btnPositionLeft:{type:"number",default:30}},edit:P,save:C,deprecated:z,transforms:{from:[{type:"raw",priority:20,selector:"amp-story-cta-layer",transform:function(e){var t=e.outerHTML,r=Object(o.getBlockAttributes)(T,t);return Object(o.createBlock)(T,r)}}]}}},function(e,t,r){"use strict";r.r(t);var a=r(0),n=(r(31),r(1)),o=r(11),i=r(7),c=r.n(i),l=(r(10),r(4)),s=r(6),u=r(3);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}var d=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(r,!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{anchor:{source:"attribute",selector:"amp-story-page",attribute:"id"},mediaAlt:{type:"string"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:'amp-story-grid-layer[template="fill"] > amp-img, amp-story-grid-layer[template="fill"] > amp-video',attribute:"src"},mediaType:{type:"string"},poster:{type:"string"},focalPoint:{type:"object"},autoAdvanceAfter:{type:"string"},autoAdvanceAfterDuration:{type:"number"},autoAdvanceAfterMedia:{type:"string"},backgroundColors:{default:"[]"},overlayOpacity:{default:100}},{deprecated:{default:"1.2.0"}}),save:function(e){var t,r=e.attributes,n=r.anchor,o=r.focalPoint,i=r.overlayOpacity,c=r.mediaUrl,p=r.mediaType,d=r.poster,m=r.autoAdvanceAfter,b=r.autoAdvanceAfterDuration,f=r.autoAdvanceAfterMedia,h=JSON.parse(r.backgroundColors);["auto","time"].includes(m)&&b?t=parseInt(b)+"s":"media"===m&&(t=f);var g={};0<h.length&&((g=Object(s.c)(g,h)).opacity=i/100);var v={objectPosition:u.o===p&&o?"".concat(100*o.x,"% ").concat(100*o.y,"%"):"initial"};return Object(a.createElement)("amp-story-page",{style:{backgroundColor:"#ffffff"},id:n,"auto-advance-after":t},c&&Object(a.createElement)("amp-story-grid-layer",{template:"fill"},u.o===p&&Object(a.createElement)("amp-img",{layout:"fill",src:c,style:v}),u.z===p&&Object(a.createElement)("amp-video",{layout:"fill",src:c,poster:d,muted:!0,autoplay:!0,loop:!0})),Object(a.createElement)("amp-story-grid-layer",{template:"fill",style:g}),Object(a.createElement)(l.InnerBlocks.Content,null))}}],m=r(14),b=r.n(m),f=r(15),h=r.n(f),g=r(16),v=r.n(g),y=r(12),O=r.n(y),q=r(13),j=r.n(q),k=r(17),w=r.n(k),E=r(19),_=r.n(E),S=r(9),P=r(2),x=r(5),C=r(8),I=r(18),B=r(21),A=(r(74),function(e){function t(e){var r;return b()(this,t),r=h()(this,v()(t).call(this,e)),e.attributes.anchor||r.props.setAttributes({anchor:Object(s.t)()}),r.state={extractingPoster:!1},r.videoPlayer=Object(a.createRef)(),r.onSelectMedia=r.onSelectMedia.bind(O()(r)),r}return w()(t,e),j()(t,[{key:"shouldComponentUpdate",value:function(){return this.ensureCTABeingLast(),!0}}]),j()(t,[{key:"onSelectMedia",value:function(e){var t=this.props.setAttributes;if(e&&e.url){var r;if(e.media_type)r=e.media_type===u.z?u.z:u.o;else{if(e.type!==u.o&&e.type!==u.z)return;r=e.type}var a=e.alt||e.title,n=e.url,o=u.z===r&&e.image&&e.image.src!==e.icon?e.image.src:void 0;this.props.setAttributes({mediaUrl:n,mediaId:e.id,mediaType:r,mediaAlt:a,poster:o})}else t({mediaUrl:void 0,mediaId:void 0,mediaType:void 0,mediaAlt:void 0,poster:void 0})}},{key:"componentDidUpdate",value:function(e){var t=this,r=this.props,a=r.attributes,n=r.setAttributes,o=r.videoFeaturedImage,i=r.media,c=a.mediaType,l=a.mediaUrl,p=a.mediaId,d=a.poster;u.z===c&&(e.attributes.mediaUrl!==l&&this.videoPlayer.current&&this.videoPlayer.current.load(),d||(o?n({poster:o.source_url}):!i||i===e.media||i.featured_media||this.state.extractingPoster||(this.setState({extractingPoster:!0}),Object(s.I)({id:p,src:l}).then(function(e){n({poster:Object(s.q)(e)}),t.setState({extractingPoster:!1})}).catch(function(){return t.setState({extractingPoster:!1})}))))}},{key:"removeBackgroundColor",value:function(e){var t=this.props,r=t.attributes,a=t.setAttributes,n=JSON.parse(r.backgroundColors);n.splice(e,1),a({backgroundColors:JSON.stringify(n)})}},{key:"setBackgroundColors",value:function(e,t){var r=this.props,a=r.attributes,n=r.setAttributes,o=JSON.parse(a.backgroundColors);o[t]={color:e},n({backgroundColors:JSON.stringify(o)})}},{key:"getOverlayColorSettings",value:function(){var e=this,t=this.props.attributes,r=JSON.parse(t.backgroundColors);if(!r.length)return[{value:void 0,onChange:function(t){e.setBackgroundColors(t,0)},label:Object(n.__)("Color","amp")}];var a=[],o=r.length>1;return r.forEach(function(t,r){a[r]={value:t?t.color:void 0,onChange:function(t){e.setBackgroundColors(t,r)},
27
  /* translators: %s: color number */
28
- label:o?Object(n.sprintf)(Object(n.__)("Color %s","amp"),r+1):Object(n.__)("Color","amp")}}),a}},{key:"ensureCTABeingLast",value:function(){var e=this.props,t=e.getBlockOrder,r=e.moveBlockToPosition,a=e.clientId,n=t(a);if(!(1>=n.length)){var o=Object(s.j)(a);o&&n[n.length-1]!==o.clientId&&r(o.clientId,a,a,n.length-1)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.attributes,o=t.media,i=t.setAttributes,c=t.totalAnimationDuration,p=t.allowedBlocks,d=r.mediaId,m=r.mediaType,b=r.mediaUrl,f=r.focalPoint,h=void 0===f?{x:.5,y:.5}:f,g=r.overlayOpacity,v=r.poster,y=r.autoAdvanceAfter,O=r.autoAdvanceAfterDuration,q=Object(a.createElement)("p",null,Object(n.__)("To edit the background image or video, you need permission to upload media.","amp")),j={backgroundImage:u.o===m&&b?"url(".concat(b,")"):void 0,backgroundPosition:u.o===m?"".concat(100*h.x,"% ").concat(100*h.y,"%"):void 0,backgroundRepeat:"no-repeat",backgroundSize:"cover"};u.z===m&&v&&(j.backgroundImage="url(".concat(v,")"));var k,w=[{value:"",label:Object(n.__)("Manual","amp")},{value:"auto",label:Object(n.__)("Automatic","amp")},{value:"time",label:Object(n.__)("After a certain time","amp")},{value:"media",label:Object(n.__)("After media has played","amp")}];"media"===y?k=Object(n.__)("Based on the first media block encountered on the page","amp"):"auto"===y&&(k=Object(n.__)("Based on the duration of all animated blocks on the page","amp"));var E={width:"100%",height:"100%",position:"absolute"},x=JSON.parse(r.backgroundColors);(E=Object(s.c)(E,x)).opacity=g/100;var C=this.getOverlayColorSettings(),A=u.z===m&&Object(I.j)(Object(I.h)(o)),z=u.z===m?Object(I.h)(o):null;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(l.PanelColorSettings,{title:Object(n.__)("Background Color","amp"),initialOpen:!1,colorSettings:C},Object(a.createElement)("p",null,x.length<2&&Object(a.createElement)(P.Button,{onClick:function(){return e.setBackgroundColors(null,1)},isSmall:!0},Object(n.__)("Add Gradient","amp")),x.length>1&&Object(a.createElement)(P.Button,{onClick:function(){return e.removeBackgroundColor(x.length-1)},isLink:!0,isDestructive:!0},Object(n.__)("Remove Gradient","amp"))),Object(a.createElement)(P.RangeControl,{label:Object(n.__)("Opacity","amp"),value:g,onChange:function(e){return i({overlayOpacity:e})},min:0,max:100,step:5,required:!0})),Object(a.createElement)(P.PanelBody,{title:Object(n.__)("Background Media","amp")},Object(a.createElement)(a.Fragment,null,A&&Object(a.createElement)(P.Notice,{status:"warning",isDismissible:!1},Object(n.sprintf)(
29
  /* translators: %d: the number of recommended megabytes per second */
30
- Object(n.__)("A video size of less than %d MB per second is recommended.","amp"),B.g),z&&" "+Object(n.sprintf)(
31
  /* translators: %d: the number of actual megabytes per second */
32
- Object(n.__)("The selected video is %d MB per second.","amp"),Math.round(z/B.d))),Object(a.createElement)(P.BaseControl,null,Object(a.createElement)(l.MediaUploadCheck,{fallback:q},Object(a.createElement)(l.MediaUpload,{onSelect:this.onSelectMedia,allowedTypes:u.a,value:d,render:function(e){var t=e.open;return Object(a.createElement)(P.Button,{isDefault:!0,isLarge:!0,onClick:t,className:"editor-amp-story-page-background"},b?Object(n.__)("Change Media","amp"):Object(n.__)("Select Media","amp"))},id:"story-background-media"}),b&&Object(a.createElement)(P.Button,{onClick:function(){return i({mediaUrl:void 0,mediaId:void 0,mediaType:void 0})},isLink:!0,isDestructive:!0},Object(n._x)("Remove","background media","amp")))),u.z===m&&(!this.state.extractingPoster||v)&&Object(a.createElement)(l.MediaUploadCheck,null,Object(a.createElement)(P.BaseControl,{id:"editor-amp-story-page-poster",label:Object(n.__)("Poster Image","amp"),help:Object(n.sprintf)(
33
  /* translators: 1: 720p. 2: 720w. 3: 1280h */
34
- Object(n.__)("The recommended dimensions for a poster image are: %1$s (%2$s x %3$s)","amp"),"720p","720w","1080h")},!v&&Object(a.createElement)(P.Notice,{status:"error",isDismissible:!1},Object(n.__)("A poster image must be set.","amp")),Object(a.createElement)(l.MediaUpload,{title:Object(n.__)("Select Poster Image","amp"),onSelect:function(e){var t=Object(S.has)(e,["sizes",u.p,"url"])?e.sizes[u.p].url:e.url;i({poster:t})},allowedTypes:u.t,modalClass:"editor-amp-story-background-video-poster__media-modal",render:function(e){var t=e.open;return Object(a.createElement)(P.Button,{id:"editor-amp-story-page-poster",className:_()("editor-amp-story-page-background",{"editor-post-featured-image__toggle":!v,"editor-post-featured-image__preview":v}),onClick:t,"aria-label":v?Object(n.__)("Replace Poster Image","amp"):null},v&&Object(a.createElement)(P.ResponsiveWrapper,{naturalWidth:960,naturalHeight:1280},Object(a.createElement)("img",{src:v,alt:""})),!v&&Object(n.__)("Set Poster Image","amp"))}}))),u.o===m&&b&&P.FocalPointPicker&&Object(a.createElement)(P.FocalPointPicker,{label:Object(n.__)("Focal Point Picker","amp"),url:b,value:h,onChange:function(e){return i({focalPoint:e})}}))),Object(a.createElement)(P.PanelBody,{title:Object(n.__)("Page Settings","amp")},Object(a.createElement)(P.SelectControl,{label:Object(n.__)("Advance to next page","amp"),help:k,value:y,options:w,onChange:function(e){i({autoAdvanceAfter:e}),i({autoAdvanceAfterDuration:c})}}),"time"===y&&Object(a.createElement)(P.RangeControl,{label:Object(n.__)("Time in seconds","amp"),value:O?parseInt(O):0,onChange:function(e){return i({autoAdvanceAfterDuration:e})},min:Math.max(c,1),initialPosition:c,help:c>1?Object(n.__)("A minimum time is enforced because there are animated blocks on this page.","amp"):void 0}))),Object(a.createElement)("div",{style:j},u.z===m&&o&&Object(a.createElement)("div",{className:"editor-amp-story-page-video-wrap"},Object(a.createElement)("video",{autoPlay:!0,muted:!0,loop:!0,className:"editor-amp-story-page-video",poster:v,ref:this.videoPlayer},Object(a.createElement)("source",{src:b,type:o.mime_type}))),x.length>0&&Object(a.createElement)("div",{style:E}),Object(a.createElement)(l.InnerBlocks,{allowedBlocks:p})))}}]),t}(a.Component)),z=Object(C.compose)(Object(x.withDispatch)(function(){return{moveBlockToPosition:Object(x.dispatch)("core/block-editor").moveBlockToPosition}}),Object(x.withSelect)(function(e,t){var r,a=t.clientId,n=t.attributes,o=e("core").getMedia,i=e("core/block-editor"),c=i.getBlockOrder,l=i.getBlockRootClientId,p=e("amp/story").getAnimatedBlocks,d=!(0===c().indexOf(a))&&!Object(s.j)(a),m=n.mediaType,b=n.mediaId,f=n.poster,h=b?o(b):void 0;u.z===m&&h&&h.featured_media&&!f&&(r=o(h.featured_media));var g=(p()[a]||[]).filter(function(e){var t=e.id;return a===l(t)}),v=Object(s.s)(g),y=Math.ceil(v/1e3);return{media:h,videoFeaturedImage:r,allowedBlocks:d?u.c:u.d,totalAnimationDuration:y,getBlockOrder:c}}))(A),D=function(e){var t,r=e.attributes,n=r.anchor,o=r.focalPoint,i=r.overlayOpacity,c=r.mediaId,p=r.mediaUrl,d=r.mediaType,m=r.mediaAlt,b=r.poster,f=r.autoAdvanceAfter,h=r.autoAdvanceAfterDuration,g=r.autoAdvanceAfterMedia,v=JSON.parse(r.backgroundColors);["auto","time"].includes(f)&&h?t=parseInt(h)+"s":"media"===f&&(t=g);var y={};0<v.length&&((y=Object(s.c)(y,v)).opacity=i/100);var O=u.o===d&&o?"".concat(100*o.x,"% ").concat(100*o.y,"%"):"initial";return Object(a.createElement)("amp-story-page",{style:{backgroundColor:"#ffffff"},id:n,"auto-advance-after":t},p&&Object(a.createElement)("amp-story-grid-layer",{template:"fill"},u.o===d&&Object(a.createElement)("img",{layout:"fill",src:p,alt:m,className:c?"wp-image-".concat(c):null,"object-position":O}),u.z===d&&Object(a.createElement)("amp-video",{layout:"fill","aria-label":m,src:p,poster:b,muted:!0,autoplay:!0,loop:!0})),Object(a.createElement)("amp-story-grid-layer",{template:"fill",style:y}),Object(a.createElement)(l.InnerBlocks.Content,null))};r.d(t,"name",function(){return N}),r.d(t,"settings",function(){return R});var T=function(e){return Object(a.createElement)("svg",e,Object(a.createElement)("g",{fill:"#181D21"},Object(a.createElement)("path",{d:"M18.4 21H5.6V3h7.8l5 4.9V21zM7.1 19.5h9.8V8.6l-4-4.1H7.1v15z"}),Object(a.createElement)("path",{d:"M11.5 5.4v4.3h4.4"})))};T.defaultProps={viewBox:"0 0 24 24"};var N="amp/amp-story-page",R={title:Object(n.__)("Page","amp"),category:"layout",icon:T({width:24,height:24}),attributes:{anchor:{source:"attribute",selector:"amp-story-page",attribute:"id"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:'amp-story-grid-layer[template="fill"] > img, amp-story-grid-layer[template="fill"] > amp-img, amp-story-grid-layer[template="fill"] > amp-video',attribute:"src"},mediaType:{type:"string"},mediaAlt:{type:"string"},poster:{type:"string"},focalPoint:{type:"object"},autoAdvanceAfter:{type:"string"},autoAdvanceAfterDuration:{type:"number"},autoAdvanceAfterMedia:{type:"string"},backgroundColors:{default:"[]"},overlayOpacity:{default:100}},supports:{reusable:!0},edit:z,save:D,deprecated:d,transforms:{from:[{type:"raw",priority:20,selector:"amp-story-page",transform:function(e){var t=e.outerHTML,r=Object(o.getBlockAttributes)(N,t);return Object(o.createBlock)(N,r)}}]}}},function(e,t,r){"use strict";r.r(t);var a=r(0),n=r(1),o=r(11),i=r(7),c=r.n(i),l=r(14),s=r.n(l),u=r(13),p=r.n(u),d=r(15),m=r.n(d),b=r(16),f=r.n(b),h=r(12),g=r.n(h),v=r(17),y=r.n(v),O=r(19),q=r.n(O),j=(r(10),r(9)),k=r(4),w=r(5),E=r(6),_=r(18),S=(r(81),r(23));function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(r,!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var C=function(e){function t(){var e,r;s()(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return(r=m()(this,(e=f()(t)).call.apply(e,[this].concat(n)))).state={isEditing:!1,hasOverlay:!0},r.onReplace=r.onReplace.bind(g()(r)),r.toggleIsEditing=r.toggleIsEditing.bind(g()(r)),r.toggleOverlay=r.toggleOverlay.bind(g()(r)),r}return y()(t,e),p()(t,[{key:"componentDidMount",value:function(){Object(E.E)(this.props)}},{key:"componentDidUpdate",value:function(e,t){var r=this.props,a=r.attributes,n=r.fontSize,o=r.isSelected,i=a.height,c=a.width,l=a.content,s=a.ampFitText,u=a.ampFontFamily;!o&&e.isSelected&&(this.toggleIsEditing(!1),this.toggleOverlay(!0)),s&&(e.attributes.ampFitText!==s||e.attributes.ampFontFamily!==u||e.attributes.width!==c||e.attributes.height!==i||e.attributes.content!==l)&&Object(E.E)(this.props),!(s||Object(j.isEqual)(e.fontSize,n)&&e.attributes.ampFitText===s&&e.attributes.ampFontFamily===u&&e.attributes.content===l)&&Object(E.D)(this.props),this.state.isEditing&&!t.isEditing&&Object(E.H)(".is-selected .wp-block-amp-amp-story-text")}},{key:"onReplace",value:function(e){var t=this.props,r=t.attributes,a=t.onReplace,n=t.name;(e=e.filter(function(e){return void 0!==e})).length&&a(e.map(function(e,t){return 0===t&&e.name===n?x({},e,{attributes:x({},r,{},e.attributes)}):e}))}},{key:"toggleIsEditing",value:function(e){e!==this.state.isEditing&&this.setState({isEditing:!this.state.isEditing})}},{key:"toggleOverlay",value:function(e){e!==this.state.hasOverlay&&this.setState({hasOverlay:!this.state.hasOverlay})}},{key:"render",value:function(){var e,t=this.state,r=t.isEditing,o=t.hasOverlay,i=this.props,l=i.attributes,s=i.setAttributes,u=i.className,p=i.clientId,d=i.fontSize,m=i.isPartOfMultiSelection,b=i.isSelected,f=i.backgroundColor,h=i.customBackgroundColor,g=i.textColor,v=i.name,y=l.placeholder,O=l.content,j=l.align,E=l.ampFitText,P=l.autoFontSize,x=l.height,C=l.opacity,I=d&&d.size?d.size+"px":void 0,B=Object(w.select)("core/block-editor").getSettings().colors,A={backgroundColor:Object(_.d)(B,f,h,C)};E&&O.length&&(A.lineHeight=x+"px");var z=[],D="wp-block-amp-story-text-wrapper";l.className&&l.className.length&&l.className.split(" ").forEach(function(e){e.includes("is-style")&&z.push(e)});z.length&&(D+=" "+z.join(" "));var T=(e={"has-text-color":g.color},c()(e,g.class,g.class),c()(e,d.class,E?void 0:d.class),c()(e,"is-amp-fit-text",E),e),N={color:g.color,fontSize:E?P+"px":I,textAlign:j,position:E&&O.length?"static":void 0};return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(k.BlockControls,null,Object(a.createElement)(k.AlignmentToolbar,{value:j,onChange:function(e){return s({align:e})}})),Object(a.createElement)("div",{className:q()(D,{"with-line-height":E,"is-empty-draggable-text":!r&&!O.length}),style:A},r&&Object(a.createElement)(k.RichText,{wrapperClassName:"wp-block-amp-story-text",tagName:"p",value:O,onChange:function(e){return s({content:e})},onReplace:this.onReplace,onSplit:function(){},style:N,className:q()(u,T),placeholder:y||Object(n.__)("Write text…","amp")}),!r&&Object(a.createElement)(S.g,{blockClass:"wp-block-amp-story-text",blockElementId:"block-".concat(p),clientId:p,name:v,isEditing:r,isDraggable:!m,isSelected:b,hasOverlay:o,toggleIsEditing:this.toggleIsEditing,toggleOverlay:this.toggleOverlay,text:O,textStyle:N,textWrapperClass:q()(u+" block-editor-rich-text__editable editor-rich-text__editable",T),placeholder:y||Object(n.__)("Write text…","amp")})))}}]),t}(a.Component),I=function(e){var t=e.attributes,r=t.content,n=t.ampFitText,o=t.tagName,i=Object(E.k)(t),c=Object(E.r)(t);if(!n)return Object(a.createElement)(k.RichText.Content,{tagName:o,style:c,className:i,value:r,format:"string"});var l=o;return c.display="flex",Object(a.createElement)(l,{style:c,className:i},Object(a.createElement)("amp-fit-text",{layout:"flex-item",className:"amp-text-content"},Object(a.createElement)(a.RawHTML,null,r)))},B=r(20);function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}var z=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(r,!0).forEach(function(t){c()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{placeholder:{type:"string"},content:{type:"string",source:"html",selector:".amp-text-content",default:""},type:{type:"string",default:"auto"},tagName:{type:"string",default:"p"},align:{type:"string"}},{deprecated:{default:"1.2.0"}}),save:function(e){var t=e.attributes,r=t.content,n=t.ampFitText,o=t.tagName,i=Object(E.k)(t),c=Object(E.r)(t);if(!n)return Object(a.createElement)(k.RichText.Content,{tagName:o,style:c,className:i,value:r,format:"string"});var l=o;return c.display="flex",Object(a.createElement)(l,{style:c,className:i},Object(a.createElement)("amp-fit-text",{layout:"flex-item",className:"amp-text-content"},Object(a.createElement)(a.RawHTML,null,r)))},migrate:B.a}];r.d(t,"name",function(){return D}),r.d(t,"settings",function(){return T});var D="amp/amp-story-text",T={title:Object(n.__)("Text","amp"),description:Object(n.__)("Add free-form text to your story.","amp"),icon:Object(a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)("path",{d:"M11 5v7H9.5C7.6 12 6 10.4 6 8.5S7.6 5 9.5 5H11m8-2H9.5C6.5 3 4 5.5 4 8.5S6.5 14 9.5 14H11v7h2V5h2v16h2V5h2V3z"})),category:"common",keywords:[Object(n.__)("title","amp"),Object(n.__)("heading","amp"),Object(n.__)("paragraph","amp")],supports:{anchor:!0,reusable:!0,className:!0},attributes:{placeholder:{type:"string"},content:{type:"string",source:"html",selector:".amp-text-content",default:""},type:{type:"string",default:"auto"},tagName:{type:"string",default:"p"},align:{type:"string"}},edit:C,save:I,deprecated:z,transforms:{from:[{type:"raw",priority:20,selector:"p,h1,h2",transform:function(e){var t=e.outerHTML,r=Object(o.getBlockAttributes)(D,t);return r.content||(r.content=e.textContent,r.tagName=e.nodeName,r.ampFitText=!1),Object(o.createBlock)(D,r)}}]}}},function(e,t,r){"use strict";r.r(t);var a=r(1),n=r(0),o=(r(31),r(10),r(4)),i=r(2),c=r(27),l=(r(83),function(e){return Object(n.createElement)("svg",e,Object(n.createElement)("path",{d:"M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"}))});l.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};var s=function(e){var t,r=e.isActive,s=e.value,u=e.onChange;if(r){var d=Object(c.getActiveFormat)(s,p).attributes.style;t=d.replace(new RegExp("^background-color:\\s*"),"")}return Object(n.createElement)(o.BlockControls,null,Object(n.createElement)(i.Toolbar,null,Object(n.createElement)(i.Dropdown,{position:"bottom right",renderToggle:function(e){var r=e.isOpen,o=e.onToggle;return Object(n.createElement)(i.IconButton,{icon:l({width:16,height:16,viewBox:"0 0 24 24"}),tooltip:Object(a.__)("Highlight Color","amp"),onClick:o,"aria-expanded":r},Object(n.createElement)("span",{className:"components-background-color-indicator",style:{backgroundColor:t}}))},renderContent:function(){return Object(n.createElement)("div",{className:"components-background-color-popover-content"},Object(n.createElement)(o.ColorPalette,{value:t,onChange:function(e){u(e?Object(c.applyFormat)(s,{type:p,attributes:{style:"background-color:".concat(e)}}):Object(c.removeFormat)(s,p))}}))}})))};r.d(t,"priority",function(){return u}),r.d(t,"name",function(){return p}),r.d(t,"settings",function(){return d});var u=20,p="amp/background-color",d={title:Object(a.__)("Inline Background Color","amp"),tagName:"span",className:"amp-background-color",attributes:{style:"style"},edit:s}},function(e,t,r){"use strict";r.r(t);var a=r(1),n=r(0),o=(r(10),r(4)),i=r(2),c=r(27),l=(r(84),function(e){var t,r=e.isActive,l=e.value,s=e.onChange;if(r){var p=Object(c.getActiveFormat)(l,u).attributes.style;t=p.replace(new RegExp("^color:\\s*"),"")}return Object(n.createElement)(o.BlockControls,null,Object(n.createElement)(i.Toolbar,null,Object(n.createElement)(i.Dropdown,{position:"bottom right",renderToggle:function(e){var r=e.isOpen,o=e.onToggle;return Object(n.createElement)(i.IconButton,{icon:"editor-textcolor",tooltip:Object(a.__)("Text Color","amp"),onClick:o,"aria-expanded":r},Object(n.createElement)("span",{className:"components-text-color-indicator",style:{backgroundColor:t}}))},renderContent:function(){return Object(n.createElement)("div",{className:"components-text-color-popover-content"},Object(n.createElement)(o.ColorPalette,{value:t,onChange:function(e){s(e?Object(c.applyFormat)(l,{type:u,attributes:{style:"color:".concat(e)}}):Object(c.removeFormat)(l,u))}}))}})))});r.d(t,"priority",function(){return s}),r.d(t,"name",function(){return u}),r.d(t,"settings",function(){return p});var s=10,u="amp/text-color",p={title:Object(a.__)("Inline Text Color","amp"),tagName:"span",className:"amp-text-color",attributes:{style:"style"},edit:l}}]);
1
+ this.AMP=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=55)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t,n){"use strict";var r=n(46),o=n.n(r),a=n(30),i=n.n(a),c=n(28),l=n.n(c),s=n(34),u=n.n(s),p=n(20),d=n.n(p),m=n(4),f=n.n(m),b=n(0),g=n(47),h=n.n(g),y=n(18),v=n.n(y),O=n(10),j=n(48),k=n.n(j),w=(n(27),n(66),n(49)),_=n(1),E=n(5),S=n(11),x=n(7),C=n(33),P=(n(40),n(22)),I=n(6),A=n(24),B=n(13),T=(n(9),n(23));function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var D=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(n,!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{content:{type:"string",source:"text",selector:"code"}},{deprecated:{default:"1.2.0"}}),save:function(e){var t=e.attributes;return Object(b.createElement)("pre",null,Object(b.createElement)("code",null,t.content))},migrate:T.a}];function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var M=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(n,!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{align:{type:"string"},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"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"},rotationAngle:{type:"number",default:0},ampAnimationType:{source:"attribute",selector:".amp-story-block-wrapper",attribute:"animate-in"},ampAnimationDelay:{source:"attribute",selector:".amp-story-block-wrapper",attribute:"animate-in-delay",default:0},ampAnimationDuration:{source:"attribute",selector:".amp-story-block-wrapper",attribute:"animate-in-duration",default:0},ampAnimationAfter:{source:"attribute",selector:".amp-story-block-wrapper",attribute:"animate-in-after"},anchor:{type:"string",source:"attribute",attribute:"id",selector:"amp-story-grid-layer .amp-story-block-wrapper, amp-story-cta-layer"},positionTop:{default:0,type:"number"},positionLeft:{default:5,type:"number"},ampShowImageCaption:{type:"boolean",default:!1},sizeSlug:{type:"string"}},{deprecated:{default:"1.2.0"}}),save:function(e){var t,n=e.attributes,r=n.url,o=n.alt,a=n.caption,i=n.align,c=n.href,l=n.rel,s=n.linkClass,u=n.width,p=n.height,d=n.id,m=n.linkTarget,g=n.sizeSlug,h=v()((t={},f()(t,"align".concat(i),i),f()(t,"size-".concat(g),g),f()(t,"is-resized",u||p),t)),y=Object(b.createElement)("img",{src:r,alt:o,className:d?"wp-image-".concat(d):null,width:u,height:p}),O=Object(b.createElement)(b.Fragment,null,c?Object(b.createElement)("a",{className:s,href:c,target:m,rel:l},y):y,!x.RichText.isEmpty(a)&&Object(b.createElement)(x.RichText.Content,{tagName:"figcaption",value:a}));return"left"===i||"right"===i||"center"===i?Object(b.createElement)("div",null,Object(b.createElement)("figure",{className:h},O)):Object(b.createElement)("figure",{className:h},O)},migrate:T.a}];function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var G={"core/code":D,"core/embed":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(n,!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0}},{deprecated:{default:"1.2.0"}}),save:function(e){var t,n=e.attributes,r=n.url,o=n.caption,a=n.type,i=n.providerNameSlug;if(!r)return null;var c=v()("wp-block-embed",(t={},f()(t,"is-type-".concat(a),a),f()(t,"is-provider-".concat(i),i),t));return Object(b.createElement)("figure",{className:c},Object(b.createElement)("div",{className:"wp-block-embed__wrapper"},"\n".concat(r,"\n")),!x.RichText.isEmpty(o)&&Object(b.createElement)(x.RichText.Content,{tagName:"figcaption",value:o}))},migrate:T.a}],"core/html":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(n,!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{content:{type:"string",source:"html"}},{deprecated:{default:"1.2.0"}}),save:function(e){var t=e.attributes;return Object(b.createElement)(b.RawHTML,null,t.content)},migrate:T.a}],"core/image":M,"core/list":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(n,!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{ordered:{type:"boolean",default:!1},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:""}},{deprecated:{default:"1.2.0"}}),supports:{className:!1},save:function(e){var t=e.attributes,n=t.ordered,r=t.values,o=n?"ol":"ul";return Object(b.createElement)(x.RichText.Content,{tagName:o,value:r,multiline:"li"})},migrate:T.a}],"core/preformatted":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(n,!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{content:{type:"string",source:"html",selector:"pre",default:""}},{deprecated:{default:"1.2.0"}}),save:function(e){var t=e.attributes.content;return Object(b.createElement)(x.RichText.Content,{tagName:"pre",value:t})},migrate:T.a}],"core/pullquote":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(n,!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},{deprecated:{default:"1.2.0"}}),save:function(e){var t,n,r=e.attributes,o=r.mainColor,a=r.customMainColor,i=r.textColor,c=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(O.includes)(u,"is-style-solid-color"))(t=Object(x.getColorClassName)("background-color",o))||(n={backgroundColor:a});else if(a)n={borderColor:a};else if(o){var p=Object(O.get)(Object(E.select)("core/block-editor").getSettings(),["colors"],[]);n={borderColor:Object(x.getColorObjectByAttributeValues)(p,o).color}}var d=Object(x.getColorClassName)("color",i),m=i||c?v()("has-text-color",f()({},d,d)):void 0,g=d?void 0:{color:c};return Object(b.createElement)("figure",{className:t,style:n},Object(b.createElement)("blockquote",{className:m,style:g},Object(b.createElement)(x.RichText.Content,{value:l,multiline:!0}),!x.RichText.isEmpty(s)&&Object(b.createElement)(x.RichText.Content,{tagName:"cite",value:s})))},migrate:T.a}],"core/quote":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(n,!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},{deprecated:{default:"1.2.0"}}),save:function(e){var t=e.attributes,n=t.align,r=t.value,o=t.citation;return Object(b.createElement)("blockquote",{style:{textAlign:n||null}},Object(b.createElement)(x.RichText.Content,{multiline:!0,value:r}),!x.RichText.isEmpty(o)&&Object(b.createElement)(x.RichText.Content,{tagName:"cite",value:o}))},migrate:T.a}],"core/table":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(n,!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},{deprecated:{default:"1.2.0"}}),save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,o=t.body,a=t.foot,i=t.backgroundColor;if(!r.length&&!o.length&&!a.length)return null;var c=Object(x.getColorClassName)("background-color",i),l=v()(c,{"has-fixed-layout":n,"has-background":Boolean(c)}),s=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object(b.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(b.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,o=e.scope;return Object(b.createElement)(x.RichText.Content,{tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object(b.createElement)("figure",null,Object(b.createElement)("table",{className:l},Object(b.createElement)(s,{type:"head",rows:r}),Object(b.createElement)(s,{type:"body",rows:o}),Object(b.createElement)(s,{type:"foot",rows:a})))},migrate:T.a}],"core/verse":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(n,!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},{deprecated:{default:"1.2.0"}}),save:function(e){var t=e.attributes,n=t.textAlign,r=t.content;return Object(b.createElement)(x.RichText.Content,{tagName:"pre",style:{textAlign:n},value:r})},migrate:T.a}],"core/video":[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(n,!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"}},{deprecated:{default:"1.2.0"}}),save:function(e){var t=e.attributes,n=t.autoplay,r=t.caption,o=t.controls,a=t.loop,i=t.muted,c=t.poster,l=t.preload,s=t.src,u=t.playsInline;return Object(b.createElement)("figure",null,s&&Object(b.createElement)("video",{autoPlay:n,controls:o,loop:a,muted:i,poster:c,preload:"metadata"!==l?l:void 0,src:s,playsInline:u}),!x.RichText.isEmpty(r)&&Object(b.createElement)(x.RichText.Content,{tagName:"figcaption",value:r}))},migrate:T.a}]};function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(n,!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Q={"1.2.0":function(e,t,n){var r={},o=Y({},e);if(o.id=n.anchor||st(),n.rotationAngle){var a=o.style?o.style:{};a=Y({},a,{transform:"rotate(".concat(parseInt(n.rotationAngle),"deg)")}),r.style=a}return n.ampFontFamily&&(r["data-font-family"]=n.ampFontFamily),Y({},o,{},r)}},X=n(26),J=n.n(X);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(n,!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var te={"1.2.0":function(e,t,n){var r=n.ampAnimationType,o=n.ampAnimationDelay,a=n.ampAnimationDuration,i=n.ampAnimationAfter,c=n.positionTop,l=n.positionLeft,s=n.width,u=n.height,p={};void 0!==c&&void 0!==l&&(p=ee({},p,{position:"absolute",top:"".concat(c||0,"%"),left:"".concat(l||0,"%")})),void 0!==s&&void 0!==u&&(p=ee({},p,{width:s?"".concat(ze("x",s),"%"):"0%",height:u?"".concat(ze("y",u),"%"):"0%"}));var d={};return r&&(d["animate-in"]=r,o&&(d["animate-in-delay"]=parseInt(o)+"ms"),a&&(d["animate-in-duration"]=parseInt(a)+"ms"),i&&(d["animate-in-after"]=i)),Object(b.createElement)("amp-story-grid-layer",{template:"vertical","data-block-name":t.name},Object(b.createElement)("div",J()({className:"amp-story-block-wrapper",style:p},d),e))}};function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(n,!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oe={"1.2.0":function(e,t){var n="core/image"===t,r="core/video"===t,o=I.i.includes(t),a=I.h.includes(t)&&!n,i={anchor:{type:"string",source:"attribute",attribute:"id",selector:"amp-story-grid-layer .amp-story-block-wrapper > *, amp-story-cta-layer"},ampAnimationType:{type:"string"},addedAttributes:{type:"number",default:0},ampAnimationAfter:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},ampFontFamily:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},opacity:{type:"number",default:100}};return o&&(i.autoFontSize={type:"number",default:36},i.ampFitText={type:"boolean",default:!0}),Se(t)&&(i.positionTop={default:0,type:"number"},i.positionLeft={default:5,type:"number"},a&&(i.height={type:"number",default:Pe(t)},i.width={type:"number",default:250}),i.rotationAngle={type:"number",default:0},i.ampAnimationType={source:"attribute",selector:".amp-story-block-wrapper",attribute:"animate-in"},i.ampAnimationDelay={source:"attribute",selector:".amp-story-block-wrapper",attribute:"animate-in-delay",default:0},i.ampAnimationDuration={source:"attribute",selector:".amp-story-block-wrapper",attribute:"animate-in-duration",default:0},i.ampAnimationAfter={source:"attribute",selector:".amp-story-block-wrapper",attribute:"animate-in-after"}),n&&(i.ampShowImageCaption={type:"boolean",default:!1}),r&&(i.ampShowCaption={type:"boolean",default:!1},i.autoplay=re({},e.attributes.autoplay,{default:!0}),i.playsInline=re({},e.attributes.playsInline,{default:!1}),i.loop=re({},e.attributes.loop,{default:!0}),i.controls=re({},e.attributes.controls,{default:!1})),Object.keys(i).forEach((function(t){void 0===i[t].default&&void 0!==e.attributes[t]&&void 0!==e.attributes[t].default&&(i[t].default=e.attributes[t].default)})),re({},e,{attributes:re({},e.attributes,{},i),supports:re({},e.supports,{anchor:!1})})}};function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(n,!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ce=function(e){var t=e.tagName;return[{attributes:ie({},{align:{type:"string"}},{deprecated:{default:"1.2.0"}}),save:function(e){var n=e.attributes,r=n.ampFitText,o=Ve(n),a=Ke(n);if(!r)return Object(b.createElement)(x.RichText.Content,{tagName:t,style:a,className:o,value:"{content}"});var i=t;return Object(b.createElement)(i,{style:a,className:o},Object(b.createElement)("amp-fit-text",{layout:"flex-item",className:"amp-text-content"},"{content}"))},migrate:T.a}]};function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(n,!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.d(t,"y",(function(){return Se})),n.d(t,"B",(function(){return xe})),n.d(t,"Q",(function(){return Ce})),n.d(t,"o",(function(){return Pe})),n.d(t,"a",(function(){return Ie})),n.d(t,"f",(function(){return Ae})),n.d(t,"i",(function(){return Be})),n.d(t,"b",(function(){return Te})),n.d(t,"h",(function(){return De})),n.d(t,"U",(function(){return Re})),n.d(t,"w",(function(){return Me})),n.d(t,"N",(function(){return Fe})),n.d(t,"s",(function(){return ze})),n.d(t,"t",(function(){return Ue})),n.d(t,"q",(function(){return qe})),n.d(t,"c",(function(){return We})),n.d(t,"n",(function(){return Ve})),n.d(t,"v",(function(){return Ke})),n.d(t,"p",(function(){return Ge})),n.d(t,"E",(function(){return $e})),n.d(t,"F",(function(){return Ye})),n.d(t,"I",(function(){return Qe})),n.d(t,"K",(function(){return Je})),n.d(t,"J",(function(){return Ze})),n.d(t,"D",(function(){return et})),n.d(t,"G",(function(){return tt})),n.d(t,"H",(function(){return nt})),n.d(t,"C",(function(){return ot})),n.d(t,"l",(function(){return at})),n.d(t,"m",(function(){return ct})),n.d(t,"r",(function(){return lt})),n.d(t,"x",(function(){return st})),n.d(t,"T",(function(){return pt})),n.d(t,"u",(function(){return dt})),n.d(t,"A",(function(){return mt})),n.d(t,"j",(function(){return ft})),n.d(t,"R",(function(){return bt})),n.d(t,"M",(function(){return gt})),n.d(t,"L",(function(){return ht})),n.d(t,"d",(function(){return yt})),n.d(t,"e",(function(){return vt})),n.d(t,"g",(function(){return Ot})),n.d(t,"k",(function(){return jt})),n.d(t,"P",(function(){return Et})),n.d(t,"O",(function(){return St})),n.d(t,"S",(function(){return xt})),n.d(t,"z",(function(){return Ct}));var ue=window.ampStoriesFonts,pe=Object(E.select)("core/block-editor"),de=pe.getBlocksByClientId,me=pe.getBlockRootClientId,fe=pe.getBlockOrder,be=pe.getBlock,ge=pe.getClientIdsWithDescendants,he=pe.getSettings,ye=Object(E.select)("amp/story").getAnimatedBlocks,ve=Object(E.dispatch)("amp/story"),Oe=ve.addAnimation,je=ve.changeAnimationType,ke=ve.changeAnimationDuration,we=ve.changeAnimationDelay,_e=Object(E.dispatch)("core").saveMedia,Ee=Object(E.dispatch)("core/block-editor").updateBlockAttributes,Se=function(e){return I.c.includes(e)},xe=function(e){if(e&&void 0!==ue){var t=ue.find((function(t){return t.name===e}));if(t){var n=t.handle,r=t.src;if(n&&r)if(!document.getElementById(n)){var o=document.createElement("link");o.id=n,o.href=r,o.rel="stylesheet",o.type="text/css",o.media="all",o.crossOrigin="anonymous",document.head.appendChild(o)}}}},Ce=function(e){var t=e.name;return I.d.includes(t)?"amp/amp-story-page"!==t?se({},e,{parent:[""]}):e:se({},e,{parent:["amp/amp-story-page"]})},Pe=function(e){switch(e){case"core/quote":case"core/video":case"core/embed":return 200;case"core/pullquote":return 250;case"core/table":return 100;case"amp/amp-story-post-author":case"amp/amp-story-post-date":return 50;case"amp/amp-story-post-title":return 100;default:return 60}},Ie=function(e,t){if(!I.b.includes(t)||"core/template"===t)return e;if(e.attributes.deprecated&&oe[e.attributes.deprecated.default]){var n=oe[e.attributes.deprecated.default];if("function"==typeof n)return n(e,t)}var r="core/image"===t,o="core/video"===t,a="amp/amp-story-cta"===t,i=I.i.includes(t),c=I.h.includes(t)&&!r,l={addedAttributes:{type:"number",default:0},fontSize:{type:"string"},customFontSize:{type:"number"},ampFontFamily:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},opacity:{type:"number",default:100}};return i&&(l.autoFontSize={type:"number",default:36},l.ampFitText={type:"boolean",default:!0}),a&&(l.anchor={type:"string",source:"attribute",attribute:"id",selector:"amp-story-cta-layer"}),Se(t)&&(l.anchor={type:"string"},l.positionTop={default:0,type:"number"},l.positionLeft={default:5,type:"number"},c&&(l.height={type:"number",default:Pe(t)},l.width={type:"number",default:250}),l.rotationAngle={type:"number",default:0},l.ampAnimationType={type:"string"},l.ampAnimationDelay={default:0},l.ampAnimationDuration={default:0},l.ampAnimationAfter={type:"string"}),r&&(l.ampShowImageCaption={type:"boolean",default:!1}),o&&(l.ampShowCaption={type:"boolean",default:!1},l.ampAriaLabel={type:"string",default:""},l.autoplay=se({},e.attributes.autoplay,{default:!0}),l.playsInline=se({},e.attributes.playsInline,{default:!1}),l.loop=se({},e.attributes.loop,{default:!0}),l.controls=se({},e.attributes.controls,{default:!1})),Object.keys(l).forEach((function(t){void 0===l[t].default&&void 0!==e.attributes[t]&&void 0!==e.attributes[t].default&&(l[t].default=e.attributes[t].default)})),se({},e,{attributes:se({},e.attributes,{},l),supports:se({},e.supports,{anchor:!1})})},Ae=function(e,t){if(!Se(t))return e;var n=e.deprecated?e.deprecated:[],r=G[t]||void 0;return r?se({},e,{deprecated:n=[].concat(d()(n),d()(r))}):e},Be=function(e,t){if(!Se(t))return e;var n={type:"raw",priority:20,selector:'amp-story-grid-layer[data-block-name="'.concat(t,'"]'),transform:function(e){var n=e.outerHTML,r=Object(S.getBlockAttributes)(t,n);return"amp/amp-story-text"===t&&(r.content||(r.content=e.textContent,r.tagName=e.nodeName,r.ampFitText=!1)),Object(S.createBlock)(t,r)}},r=e.transforms?se({},e.transforms):{},o=r.from?d()(r.from):[];return"core/list"===t&&(o=o.filter((function(e){return"prefix"!==e.type}))),o.push(n),se({},e,{transforms:se({},r,{from:o})})},Te=function(e,t,n){var r={};if(!I.b.includes(t.name))return e;if(n.deprecated&&Q[n.deprecated]){var o=Q[n.deprecated];if("function"==typeof o)return o(e,t,n)}if(n.rotationAngle){var a=e.style?e.style:{};a=se({},a,{transform:"rotate(".concat(parseInt(n.rotationAngle),"deg)")}),r.style=a}return n.ampFontFamily&&(r["data-font-family"]=n.ampFontFamily),se({},e,{},r)},Ne=document.createElement("div"),De=function(e,t,n){return!e.className&&n.includes("is-style-")&&0===n.indexOf("<amp-story-grid-layer")&&(Ne.innerHTML=n,Ne.children[0].children.length&&Ne.children[0].children[0].children.length&&Ne.children[0].children[0].children[0].className.includes("is-style-")&&(e.className=Ne.children[0].children[0].children[0].className)),e},Re=function(e,t,n){if(!e||!Se(t.name))return e;if(n.deprecated&&te[n.deprecated]){var r=te[n.deprecated];if("function"==typeof r)return r(e,t,n)}return e},Me=function(e){return d()(new Set(e.map((function(e){return e.parent})))).map((function(t){return e.filter((function(e){var n=e.parent,r=e.animationType;return n===t&&r})).map((function(e){var t=e.duration,n=e.delay;return(n?parseInt(n):0)+(t?parseInt(t):0)})).reduce((function(e,t){return Math.max(e,t)}),0)})).reduce((function(e,t){return e+t}),0)},Fe=function(){var e=document.querySelector(".editor-block-list__layout"),t=document.querySelector(".editor-block-navigation");if(e&&!document.getElementById("amp-story-editor")){var n=document.createElement("div");n.id="amp-story-editor";var r=document.createElement("div");if(r.id="amp-story-block-navigation",e.parentNode.replaceChild(n,e),!document.getElementById("amp-story-controls")){var o=document.createElement("div");o.id="amp-story-controls",n.appendChild(o),Object(b.render)(Object(b.createElement)(P.v,null),o)}if(n.appendChild(e),n.appendChild(r),Object(b.render)(Object(b.createElement)(P.c,null),r),!document.getElementById("amp-story-editor-carousel")){var a=document.createElement("div");a.id="amp-story-editor-carousel",n.appendChild(a),Object(b.render)(Object(b.createElement)(P.h,null),a)}}if(t){if(!document.getElementById("amp-story-shortcuts")){var i=document.createElement("div");i.id="amp-story-shortcuts",t.parentNode.parentNode.insertBefore(i,t.parentNode.nextSibling),Object(b.render)(Object(b.createElement)(P.s,null),i)}if(!document.getElementById("amp-story-media-inserter")){var c=document.createElement("div");c.id="amp-story-media-inserter",t.parentNode.parentNode.insertBefore(c,t.parentNode.nextSibling),Object(b.render)(Object(b.createElement)(P.k,null),c)}var l=document.createElement("div");l.id="amp-story-inserter";var s=t.parentNode.parentNode.querySelector(".block-editor-inserter").parentNode;s.parentNode.replaceChild(l,s),Object(b.render)(Object(b.createElement)(P.j,{position:"bottom right"}),l)}var u=document.querySelector(".block-editor-writing-flow__click-redirect");u&&u.remove()},Le=Object(_._x)("words","Word count type. Do not translate!","amp"),He=function(e,t,n,r,o){if(!e.offsetHeight||!e.offsetWidth)return!1;for(e.classList.toggle("is-measuring"),r++;r-o>1;){var a=Math.floor((o+r)/2);e.style.fontSize=a+"px";var i=e.offsetHeight,c=e.offsetWidth;i>t||c>n?r=a:o=a}return e.style.fontSize=o+"px",e.classList.toggle("is-measuring"),o},ze=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!n)if("x"===e)n=I.v;else{if("y"!==e)return 0;n=I.u}return Number((t/n*100).toFixed(2))},Ue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return n||("x"===e?n=I.v:"y"===e&&(n=I.u)),Math.round(t/100*n)},qe=function(){var e=Object(B.f)().width,t=Math.max(696,e);return{width:t,height:1/.75*t}},We=function(e,t){var n=t.filter(Boolean);if(!n)return e;if(1===n.length)e.backgroundColor=n[0].color;else{var r=n.map((function(e){return e.color||"transparent"})).join(", ");e.backgroundImage="linear-gradient(to bottom, ".concat(r,")")}return e},Ve=function(e){var t,n=e.className,r=e.ampFitText,o=e.backgroundColor,a=e.textColor,i=e.customBackgroundColor,c=e.customTextColor,l=e.opacity,s=Object(x.getColorClassName)("color",a),u=Object(x.getColorClassName)("background-color",o),p=l&&l<100;return v()(n,(t={"amp-text-content":!r,"has-text-color":a||c,"has-background":o||i},f()(t,s,s),f()(t,u,p?void 0:u),t))},Ke=function(e){var t=e.align,n=e.fontSize,r=e.customFontSize,o=e.ampFitText,a=e.backgroundColor,i=e.textColor,c=e.customBackgroundColor,l=e.customTextColor,s=e.opacity,u=Object(x.getColorClassName)("color",i),p=Object(E.select)("core/block-editor").getSettings(),d=p.colors,m=p.fontSizes,f=n?Object(x.getFontSize)(m,n,r).size:r,b=f&&(f/I.v*100).toFixed(2)+"vw";return{backgroundColor:Object(B.d)(d,Object(x.getColorObjectByAttributeValues)(d,a,c),c,s),color:u?void 0:l,fontSize:o?void 0:b,textAlign:t||void 0}},Ge=function(e){var t=e.attribute,n=e.placeholder,r=e.tagName,o=void 0===r?"p":r,a=e.isEditable,i=void 0!==a&&a;return{supports:{anchor:!0,reusable:!0},attributes:{align:{type:"string"}},save:Object(P.H)({tagName:o}),edit:Object(P.G)({attribute:t,placeholder:n,tagName:o,isEditable:i}),deprecated:ce({tagName:o})}},$e=function(e){var t=be(e);if(t){var n="core/image"===t.name,r="core/video"===t.name;if(n||r){var o=t.attributes;(!o.ampShowImageCaption&&n||!o.ampShowCaption&&r)&&o.caption&&0!==o.caption.length&&Ee(e,{caption:""})}}},Ye=function(e){var t=be(e);if(t&&I.b.includes(t.name)){var n=be(me(e));if(0===t.attributes.positionTop&&n){var r=Object(S.createBlock)(t.name);if(Object(O.every)(r.attributes,(function(e,n){return e===t.attributes[n]}))){var o=n.innerBlocks.map((function(e){return e.attributes.positionTop})).reduce((function(e,t){return Math.max(e,t)}),0);Ee(e,{positionTop:o>75?0:o+10})}}}},Qe=function(e){var t=be(e);if(t&&I.d.includes(t.name)&&"media"===t.attributes.autoAdvanceAfter){var n=de(fe(e));if(!(t.attributes.autoAdvanceAfterMedia&&n.find((function(e){return e.attributes.anchor===t.attributes.autoAdvanceAfterMedia})))){var r=n.find((function(e){var t=e.name;return I.o.includes(t)})),o=r?r.attributes.anchor:"";t.attributes.autoAdvanceAfterMedia!==o&&Ee(e,{autoAdvanceAfterMedia:o})}}},Xe=function(e){var t=e.name,n=e.clientId;switch(t){case"amp/amp-story-text":return document.querySelector("#block-".concat(n," .block-editor-rich-text__editable"));case"amp/amp-story-post-title":case"amp/amp-story-post-author":case"amp/amp-story-post-date":var r=t.replace("/","-");return document.querySelector("#block-".concat(n," .wp-block-").concat(r));default:return null}},Je=function(e){var t=e.name,n=e.clientId,r=e.attributes,o=r.width,a=r.height,i=r.ampFitText,c=r.content,l=r.autoFontSize;if(i)switch(t){case"amp/amp-story-text":var s=Xe(e);if(s&&c.length){var u=He(s,a,o,A.c,A.f);u&&l!==u&&Ee(n,{autoFontSize:u})}break;case"amp/amp-story-post-title":case"amp/amp-story-post-author":case"amp/amp-story-post-date":var p=Xe(e);if(p){var d=He(p,a,o,A.c,A.f);d&&l!==d&&Ee(n,{autoFontSize:d})}}},Ze=function(e){var t=e.name,n=e.clientId,r=e.attributes,o=r.width,a=r.height,i=r.ampFitText,c=r.content;if(!i)switch(t){case"amp/amp-story-text":var l=Xe(e);l&&c.length&&(l.offsetHeight>a&&Ee(n,{height:l.offsetHeight}),l.offsetWidth>o&&Ee(n,{width:l.offsetWidth}));break;case"amp/amp-story-post-title":case"amp/amp-story-post-author":case"amp/amp-story-post-date":var s=Xe(e);s&&(s.classList.toggle("is-measuring"),s.offsetHeight>a&&Ee(n,{height:s.offsetHeight}),s.offsetWidth>o&&Ee(n,{width:s.offsetWidth}),s.classList.toggle("is-measuring"))}},et=function(e){if(e){var t=e.attributes;t.deprecated&&"migrated"===t.deprecated&&Ee(e.clientId,{deprecated:null})}},tt=function(e){var t=be(e);if(t){var n=t.name,r=t.attributes;if("core/image"===n){var o=r.width,a=r.height;if(!o&&!a&&r.id>0){var i=(0,Object(E.select)("core").getMedia)(r.id);if(i&&i.media_details){var c=i.media_details,l=c.height,s=c.width,u=1;(I.v<s||I.u<l)&&(u=Math.max(s/I.v,l/I.u)),Ee(e,{width:Math.round(s/u),height:Math.round(l/u)})}}}}},nt=function(e){var t=be(e);if(t&&"amp/amp-story-text"===t.name){var n=!de(fe(e)).filter((function(t){return t.clientId!==e})).some((function(e){return"h1"===e.attributes.tagName})),r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.fontSize,r=e.customFontSize,o=e.positionTop,a=e.type,i=e.content,c=void 0===i?"":i;if(a&&"auto"!==a)return a;if(o>80)return"p";if("huge"===n||r&&r>40)return t?"h1":"h2";if("large"===n||r&&r>24)return"h2";var l=Object(w.count)(c,Le,{});return 4>=l?t?"h1":"h2":10>=l?"h2":"p"}(t.attributes,n);t.attributes.tagName!==r&&Ee(e,{tagName:r})}},rt=function e(t,n,r){var o,a=t.attributes.ampAnimationAfter;(a&&(o=r.find((function(e){return e.attributes.anchor===a}))),o)&&((ye()[n]||[]).find((function(e){return e.id===o.clientId}))||e(o,n,r));Oe(n,t.clientId,o?o.clientId:void 0)},ot=function(){var e=ye();if(Object(O.isEqual)({},e)){var t=de(ge()),n=!0,r=!1,o=void 0;try{for(var a,i=t[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var c=a.value,l=me(c.clientId);if(l){var s=c.attributes,u=s.ampAnimationType,p=s.ampAnimationDuration,d=s.ampAnimationDelay;rt(c,l,t),je(l,c.clientId,u),ke(l,c.clientId,p?parseInt(String(p).replace("ms","")):void 0),we(l,c.clientId,d?parseInt(String(d).replace("ms","")):void 0)}}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}},at=function(e,t,n,r,o,a){return r&&o?Object(_.sprintf)(Object(_.__)("Block %s is the only block, and cannot be moved","amp"),e):a>0&&!o?Object(_.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
2
+ Object(_.__)("Move %1$s block from position %2$d down to position %3$d","amp"),e,t,n):a>0&&o?Object(_.sprintf)(Object(_.__)("Block %s is at the end of the content and can’t be moved down","amp"),e):a<0&&!r?Object(_.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
3
+ Object(_.__)("Move %1$s block from position %2$d up to position %3$d","amp"),e,t,n):a<0&&r?Object(_.sprintf)(Object(_.__)("Block %s is at the beginning of the content and can’t be moved up","amp"),e):void 0},it=function(e,t){return de(fe(e)).find((function(e){return e.name===t}))},ct=function(e){return it(e,"amp/amp-story-cta")},lt=function(e){return it(e,"amp/amp-story-page-attachment")},st=function(){return h()().replace(/^\d/,"a")},ut=function(e){var t=document.createElement("video");return t.muted=!0,t.crossOrigin="anonymous",t.preload="metadata",t.currentTime=.5,new Promise((function(n,r){t.addEventListener("error",r),t.addEventListener("canplay",(function(){var e=document.createElement("canvas");e.width=t.videoWidth,e.height=t.videoHeight,e.getContext("2d").drawImage(t,0,0,e.width,e.height),e.toBlob(n,"image/jpeg")})),t.src=e}))},pt=function(){var e=u()(i.a.mark((function e(t){var n,r,o,a,c;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r=t.src,o=he(),a=o.__experimentalMediaUpload,e.next=4,ut(r);case 4:return c=e.sent,e.abrupt("return",new Promise((function(e,t){a({filesList:[c],onFileChange:function(t){var r=l()(t,1)[0],o=r.id,a=r.url;n&&o&&(_e({id:n,featured_media:o}),_e({id:o,meta:{amp_is_poster:!0}})),Object(C.isBlobURL)(a)||e(r)},onError:t})})));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),dt=function(e){var t=e.url;return Object(O.has)(e,["media_details","sizes",I.n,"source_url"])?t=e.media_details.sizes[I.n].source_url:Object(O.has)(e,["media_details","sizes","large","source_url"])&&(t=e.media_details.sizes.large.source_url),t},mt=function(e){var t=be(e);t&&(t.attributes.anchor||Ee(t.clientId,{anchor:st()}))},ft=k()((function(e,t,n){var r="function"==typeof t?t(e):t,o=r.reduce((function(t,n,o){return Math.abs(n-e)<Math.abs(r[t]-e)?o:t}),0),a=Math.abs(r[o]-e);return 0===n||a<n?r[o]:e})),bt=function(e){var t=document.querySelector(e);if(t){var n=document.createRange();n.selectNodeContents(t),n.collapse(!1);var r=window.getSelection();r.removeAllRanges(),r.addRange(n)}},gt=function(e){if(!e||!e.url)return{mediaUrl:void 0,mediaId:void 0,mediaType:void 0,mediaAlt:void 0,poster:void 0};var t;if(e.media_type)t=e.media_type===I.x?I.x:I.m;else{if(e.type!==I.m&&e.type!==I.x)return{mediaUrl:void 0,mediaId:void 0,mediaType:void 0,mediaAlt:void 0,poster:void 0};t=e.type}var n=e.alt||e.title,r=e.url,o=I.x===t&&e.image&&e.image.src!==e.icon?e.image.src:void 0;return{mediaUrl:r,mediaId:e.id,mediaType:t,mediaAlt:n,poster:o}},ht=function(e){return{autoAdvanceAfter:e.amp_story_auto_advance_after,autoAdvanceAfterDuration:e.amp_story_auto_advance_after_duration}},yt=function(e,t,n){if("core/video"!==t.name||!e.props.children||!n.ampAriaLabel)return e;var r="figure"===e.type,a=Array.isArray(e.props.children)?e.props.children:[e.props.children],i=["amp-video","video"].includes(a[0].type);if(!r||!i)return e;var c=e,l=o()(a),s=l[0],u=l.slice(1),p=Object(b.cloneElement)(s,{"aria-label":n.ampAriaLabel},s.props.children);return b.cloneElement.apply(void 0,[c,{},p].concat(d()(u)))},vt=function(e){var t=document.createElement("textarea");t.setAttribute("readonly",""),t.style={position:"absolute",left:"-9999px"},t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)},Ot=function(e,t,n){var r=[];return e.forEach((function(e){switch(e.name){case"amp/amp-story-page":return;case"amp/amp-story-page-attachment":case"amp/amp-story-cta":if(it(t,e.name)||n&&"amp/amp-story-cta"===e.name)return;r.push(e);break;default:I.b.includes(e.name)&&r.push(e)}})),r},jt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return t.querySelector('[data-block="'.concat(e,'"]'))},kt=function(e){if(!e)return null;var t=e.name,n=e.clientId;return Se(t)?document.querySelector('.amp-page-child-block[data-block="'.concat(n,'"]')):null},wt=function(e,t){if(e<=I.v||t<=I.u){var n=I.v>e?I.v/e:1,r=I.u>t?I.u/t:1;return 1.25*Math.max(n,r)}return 1},_t=function(e,t){var n,r,o,a=kt(e),i=function(e){var t=e.name,n=e.clientId,r="amp/amp-story-cta"===t;return"amp/amp-story-page"===t?document.querySelector('[data-block="'.concat(n,'"]')):r?document.querySelector("amp-story-cta-button-".concat(n)):document.querySelector("#block-".concat(n))}(e),c=me(e.clientId),l=document.querySelector('[data-block="'.concat(c,'"]')),s=i.offsetWidth,u=i.offsetHeight,p=function(e,t){var n=t.getBoundingClientRect(),r=n.left,o=n.top,a=e.getBoundingClientRect();return{top:a.top-o,left:a.left-r}}(a,l),d=p.top,m=p.left;switch(t){case"fly-in-left":case"rotate-in-left":case"whoosh-in-left":n=-(m+s);break;case"fly-in-right":case"rotate-in-right":case"whoosh-in-right":n=I.v+m+s;break;case"fly-in-top":r=-(d+u);break;case"fly-in-bottom":r=I.u+d+u;break;case"drop":r=Math.max(160,d+u);break;case"pan-left":case"pan-right":o=wt(s,u),n=I.v-s*o,r=(I.u-u*o)/2;break;case"pan-down":case"pan-up":n=-s*(o=wt(s,u))/2,r=I.u-u*o;break;default:n=0}return{offsetX:n,offsetY:r,scalingFactor:o}},Et=function(e,t){var n=kt(e);if(n&&t){St(e,t);var r=_t(e,t),o=r.offsetX,a=r.offsetY,i=r.scalingFactor;o&&n.style.setProperty("--animation-offset-x","".concat(o,"px")),a&&n.style.setProperty("--animation-offset-y","".concat(a,"px")),i&&(n.style.setProperty("--animation-scale-start",i),n.style.setProperty("--animation-scale-end",i)),n.classList.add("story-animation-init-".concat(t))}},St=function(e,t){var n=kt(e);n&&t&&(n.classList.remove("story-animation-init-".concat(t)),n.classList.remove("story-animation-".concat(t)),n.style.removeProperty("--animation-offset-x"),n.style.removeProperty("--animation-offset-y"),n.style.removeProperty("--animation-scale-start"),n.style.removeProperty("--animation-scale-end"),n.style.removeProperty("--animation-duration"),n.style.removeProperty("--animation-delay"))},xt=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},a=kt(e);if(a&&t){var i=I.f[t]||0;a.classList.remove("story-animation-init-".concat(t)),a.style.setProperty("--animation-duration","".concat(n||i,"ms")),a.style.setProperty("--animation-delay","".concat(r||0,"ms")),a.classList.add("story-animation-".concat(t)),a.addEventListener("animationend",o,{once:!0})}else o()},Ct=function(e){var t=be(e);return t&&"amp/amp-story-page"===t.name}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";n.d(t,"v",(function(){return i})),n.d(t,"u",(function(){return c})),n.d(t,"q",(function(){return l})),n.d(t,"p",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return p})),n.d(t,"i",(function(){return d})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return f})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return g})),n.d(t,"l",(function(){return h})),n.d(t,"m",(function(){return y})),n.d(t,"x",(function(){return v})),n.d(t,"r",(function(){return O})),n.d(t,"o",(function(){return j})),n.d(t,"n",(function(){return k})),n.d(t,"f",(function(){return w})),n.d(t,"e",(function(){return _})),n.d(t,"t",(function(){return E})),n.d(t,"s",(function(){return S})),n.d(t,"w",(function(){return x})),n.d(t,"j",(function(){return C})),n.d(t,"k",(function(){return P}));var r=n(20),o=n.n(r),a=n(1),i=328,c=553,l=40,s={default:30,"core/pullquote":180,"core/table":100,"core/code":45},u=["amp/amp-story-page","core/block","core/template"],p=["core/code","core/embed","core/image","core/list","core/preformatted","core/pullquote","core/quote","core/table","core/verse","core/video","amp/amp-story-text","amp/amp-story-post-author","amp/amp-story-post-date","amp/amp-story-post-title","core/html","core/block","core/template"],d=["amp/amp-story-text","amp/amp-story-post-author","amp/amp-story-post-date","amp/amp-story-post-title"],m=["amp/amp-story-text","amp/amp-story-post-author","amp/amp-story-post-date","amp/amp-story-post-title","amp/amp-story-cta","amp/amp-story-page-attachment"],f=["core/code","core/embed","core/image","core/list","core/pullquote","core/quote","core/table","core/video","amp/amp-story-text","amp/amp-story-post-author","amp/amp-story-post-date","amp/amp-story-post-title"],b=[].concat(p,["amp/amp-story-cta","amp/amp-story-page-attachment"]),g=[].concat(u,o()(b)),h=["amp/amp-story-cta","amp/amp-story-page-attachment"],y="image",v="video",O=[y],j=["core/video","core/audio"],k="amp_story_page",w={drop:1600,"fade-in":400,"fly-in-bottom":400,"fly-in-left":400,"fly-in-right":400,"fly-in-top":400,pulse:400,"rotate-in-left":600,"rotate-in-right":600,"twirl-in":1e3,"whoosh-in-left":400,"whoosh-in-right":400,"pan-left":1e3,"pan-right":1e3,"pan-down":1e3,"pan-up":1e3,"zoom-in":1e3,"zoom-out":1e3},_=[{value:"",label:Object(a.__)("None","amp")},{value:"drop",label:Object(a.__)("Drop","amp")},{value:"fade-in",label:Object(a.__)("Fade In","amp")},{value:"fly-in-bottom",label:Object(a.__)("Fly In Bottom","amp")},{value:"fly-in-left",label:Object(a.__)("Fly In Left","amp")},{value:"fly-in-right",label:Object(a.__)("Fly In Right","amp")},{value:"fly-in-top",label:Object(a.__)("Fly In Top","amp")},{value:"pulse",label:Object(a.__)("Pulse","amp")},{value:"rotate-in-left",label:Object(a.__)("Rotate In Left","amp")},{value:"rotate-in-right",label:Object(a.__)("Rotate In Right","amp")},{value:"twirl-in",label:Object(a.__)("Twirl In","amp")},{value:"whoosh-in-left",label:Object(a.__)("Whoosh In Left","amp")},{value:"whoosh-in-right",label:Object(a.__)("Whoosh In Right","amp")},{value:"pan-left",label:Object(a.__)("Pan Left","amp")},{value:"pan-right",label:Object(a.__)("Pan Right","amp")},{value:"pan-down",label:Object(a.__)("Pan Down","amp")},{value:"pan-up",label:Object(a.__)("Pan Up","amp")},{value:"zoom-in",label:Object(a.__)("Zoom In","amp")},{value:"zoom-out",label:Object(a.__)("Zoom Out","amp")}],E=["left","bottomLeft","topLeft"],S=["top","topRight","topLeft"],x=7,C=[-180,-165,-150,-135,-120,-105,-90,-75,-60,-45,-30,-15,0,15,30,45,60,75,90,105,120,135,150,165,180],P=10},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){e.exports=n(58)()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";n.d(t,"i",(function(){return g})),n.d(t,"f",(function(){return h})),n.d(t,"m",(function(){return y})),n.d(t,"d",(function(){return O})),n.d(t,"c",(function(){return j})),n.d(t,"g",(function(){return k})),n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return _})),n.d(t,"k",(function(){return E})),n.d(t,"h",(function(){return S})),n.d(t,"j",(function(){return x})),n.d(t,"e",(function(){return P})),n.d(t,"l",(function(){return I}));var r=n(30),o=n.n(r),a=n(34),i=n.n(a),c=n(28),l=n.n(c),s=n(10),u=n(1),p=n(7),d=n(24),m=window.ampStoriesEditorSettings,f=(void 0===m?{}:m).allowedVideoMimeTypes,b=void 0===f?["video/mp4"]:f,g=function(e,t){if(!e||!e.width||!e.height)return!1;var n=t.width,r=t.height;return e.width>=n&&e.height>=r},h=function(){var e=d.e;return{width:e,height:e*(9/16)}},y=function(e,t,n){if(!e)return n?[Object(u.__)("Selecting a featured image is required.","amp")]:[Object(u.__)("Selecting a featured image is recommended for an optimal user experience.","amp")];var r=[];if(["image/png","image/gif","image/jpeg"].includes(e.mime_type)||r.push(
4
  /* translators: 1: .jpg, 2: .png. 3: .gif */
5
+ Object(u.sprintf)(Object(u.__)("The featured image must be in %1$s, %2$s, or %3$s format.","amp"),".jpg",".png",".gif")),!g(e.media_details,t)){var o=t.width,a=t.height;r.push(
6
  /* translators: 1: minimum width, 2: minimum height. */
7
+ Object(u.sprintf)(Object(u.__)("The featured image should have a size of at least %1$s by %2$s pixels.","amp"),Math.ceil(o),Math.ceil(a)))}return 0===r.length?null:r},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;if(!e)return[];3===(e=e.replace("#","")).length&&(e="".concat(e.charAt(0)).concat(e.charAt(0)).concat(e.charAt(1)).concat(e.charAt(1)).concat(e.charAt(2)).concat(e.charAt(2)));var n=parseInt(e.substring(0,2),16),r=parseInt(e.substring(2,4),16),o=parseInt(e.substring(4,6),16);return[n,r,o,(t=Math.min(100,Math.max(0,t)))/100]},O=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=t?Object(p.getColorObjectByColorValue)(e,t.color)||Object(p.getColorObjectByAttributeValues)(e,t.slug,t.color||n):{color:n};if(o&&o.color){var a=v(o.color,r),i=l()(a,4),c=i[0],s=i[1],u=i[2],d=i[3];return"rgba(".concat(c,", ").concat(s,", ").concat(u,", ").concat(d,")")}},j=function(e,t){return e&&t?e>t?"landscape":t>e?"portrait":"square":null},k=function(e){var t=Object(s.template)("<p>".concat(e,"</p>"),{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g});return function(e){return t(e)}},w=function(e,t){if(e){var n=Object(s.get)(this,["options","allowedTypes"],null),r=this.get("select");n&&e.get("type")&&!function(e,t){var n=e.get("type"),r=e.get("mime");return!(!t.includes(n)&&!t.includes(r))&&!("video"===n&&!b.includes(r))}(e,n)?(this.secondary.set(d.b,new t({mimeType:e.get("mime")})),r&&r.model&&r.model.set("disabled",!0)):(this.secondary.unset(d.b),r&&r.model&&r.model.set("disabled",!1))}},_=function(e,t){e&&(("video"===Object(s.get)(e,["media_type"],null)||"video"===Object(s.get)(e,["attributes","type"],null))&&x(S(e))?this.secondary.set(d.a,new t({actualVideoMegabytesPerSecond:Math.round(S(e)/d.d),maxVideoMegabytesPerSecond:d.g})):this.secondary.unset(d.a))},E=function(){return Boolean(this.secondary.get(d.b))&&Boolean(this.secondary.get(d.a))},S=function(e){return Object(s.has)(e,["media_details","filesize"])&&Object(s.has)(e,["media_details","length"])?e.media_details.filesize/e.media_details.length:Object(s.has)(e,["attributes","filesizeInBytes"])&&Object(s.has)(e,["attributes","fileLength"])?e.attributes.filesizeInBytes/C(e.attributes.fileLength):null},x=function(e){return e>d.g*d.d},C=function(e){var t=e.split(":");return Object(s.reduce)(t,(function(e,n,r){var o=isNaN(parseInt(n))?0:parseInt(n),a=t.length-1-r;return e+Math.pow(60,a)*o}),0)},P=function(){var e=i()(o.a.mark((function e(t){var n,r,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=window,r=n.fetch,e.next=3,r(t,{method:"head"});case 3:return a=e.sent,e.abrupt("return",Number(a.headers.get("content-length")));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I=function(e){var t=e.url,n=e.id,r=e.width,o=e.height,a=e.onSelect,i=e.dispatchImage,c={};c.url=t,c.thumbnail_url=t,c.timestamp=Object(s.now)(),n&&(c.attachment_id=n),r&&(c.width=r),o&&(c.height=o),a(c),i(n)}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(60),o=n(12);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(61);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(62),o=n(43),a=n(63);e.exports=function(e){return r(e)||o(e)||a()}},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,n){"use strict";var r=n(0),o=(n(27),n(9),n(2)),a=n(8),i=n(5),c=n(1),l=n(26),s=n.n(l);var u=function(e){var t=e.value,n=void 0===t?"":t,o=e.options,a=e.onChange,i={value:"",label:Object(c.__)("Immediately","amp")};return Object(r.createElement)(It,{value:n,options:o,defaultOption:i,onChange:function(e){var t=e.value,n=e.block;return a(""===t?void 0:n.clientId)},label:Object(c.__)("Begin after","amp"),id:"amp-stories-animation-order-picker",ariaLabel:function(e){var t=e.value,n=e.blockType;return t?Object(c.sprintf)(Object(c.__)("Begin after: %s","amp"),n.title):Object(c.__)("Begin immediately","amp")},renderToggle:function(e){return Object(r.createElement)(W,s()({},e,{displayIcon:!1,alignIcon:"right"}))},renderOption:function(e){return Object(r.createElement)("span",{className:"components-preview-picker__dropdown-label"},Object(r.createElement)(W,s()({},e,{alignIcon:"right"})))}})},p=n(6),d=function(e){return Object(r.createElement)("svg",e,Object(r.createElement)("path",{d:"M15 15H5V5h10v10z"}))};d.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20"};var m=Object(i.withSelect)((function(e,t){var n=t.clientId,r=t.page,o=e("core/block-editor").getBlock,a=e("amp/story").isPlayingAnimation,i=o(n);return{isImageBlock:i&&"core/image"===i.name,isPlayingAnimation:a(r,n)}})),f=Object(i.withDispatch)((function(e,t){var n=t.clientId,r=t.page,o=e("amp/story"),a=o.playAnimation,i=o.stopAnimation;return{onAnimationStart:function(){return a(r,n)},onAnimationStop:function(){return i(r,n)}}})),b=Object(a.compose)(m,f)((function(e){var t=e.animatedBlocks,n=e.onAnimationTypeChange,a=e.onAnimationDurationChange,i=e.onAnimationDelayChange,l=e.onAnimationAfterChange,s=e.animationType,m=e.animationDuration,f=e.animationDelay,b=e.animationAfter,g=e.onAnimationStart,h=e.onAnimationStop,y=e.isPlayingAnimation,v=e.isImageBlock,O=p.f[s]||0,j=p.e.filter((function(e){return!(e.value.startsWith("pan-")&&!v)}));return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(o.SelectControl,{label:Object(c.__)("Animation Type","amp"),value:s,options:j,onChange:function(e){n(e),a(p.f[e]||0),i(0)}}),s&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(o.RangeControl,{label:Object(c.__)("Duration (ms)","amp"),value:m,onChange:a,min:"0",max:"5000",placeholder:O,initialPosition:O}),Object(r.createElement)(o.RangeControl,{label:Object(c.__)("Delay (ms)","amp"),value:f||0,onChange:i,min:"0",max:"5000"}),Object(r.createElement)(u,{value:b,options:t(),onChange:l}),Object(r.createElement)(o.IconButton,{icon:y?d({width:20,height:20}):"controls-play",className:"is-button is-default",onClick:y?h:g},y?Object(c.__)("Stop Animation","amp"):Object(c.__)("Play Animation","amp"))))})),g=n(3),h=n(14),y=n.n(h),v=n(19),O=n.n(v),j=n(15),k=n.n(j),w=n(16),_=n.n(w),E=n(12),S=n.n(E),x=n(17),C=n.n(x),P=n(4),I=n.n(P),A=n(18),B=n.n(A),T=function(e){var t={srcClientId:null,srcIndex:null,type:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("text")))}catch(e){return t}return t},N=function(e){function t(){var e,n;y()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=k()(this,(e=_()(t)).call.apply(e,[this].concat(o))),I()(S()(n),"onDrop",(function(e,t){var r=n.props,o=r.block.clientId,a=r.moveBlockToPosition,i=r.getBlockIndex,c=T(e),l=c.srcClientId,s=c.srcIndex,u=c.type;if("block"===u&&l!==o){var p=i(o),d=n.getInsertIndex(t);a(l,s<p?d-1:d)}})),n.state={isDragging:!1},n}return C()(t,e),O()(t,[{key:"getInsertIndex",value:function(e){var t=this.props,n=t.block.clientId,r=t.getBlockIndex;if(void 0!==n){var o=r(n);return"top"===e.y?o:o+1}}},{key:"render",value:function(){var e=this,t=this.props,n=t.block,a=t.getBlockIndex,i=t.isSelected,l=t.onClick,s=t.unMovableBlock,u=n.clientId,p="block-navigation-item-".concat(u);if(s)return Object(r.createElement)("div",{className:"editor-block-navigation__item block-editor-block-navigation__item"},Object(r.createElement)(o.Button,{className:B()("components-button editor-block-navigation__item-button block-editor-block-navigation__item-button",{"is-selected":i}),onClick:l,id:p},Object(r.createElement)(W,{block:n,accessibilityText:i&&Object(c.__)("(selected block)","amp")})));var d={type:"block",srcIndex:a(u),srcClientId:u};return Object(r.createElement)("div",{className:B()("editor-block-navigation__item block-editor-block-navigation__item",{"block-editor-block-navigation__item-is-dragging":this.state.isDragging})},Object(r.createElement)(o.Draggable,{elementId:p,transferData:d,onDragStart:function(){return e.setState({isDragging:!0})},onDragEnd:function(){return e.setState({isDragging:!1})}},(function(t){var a=t.onDraggableStart,s=t.onDraggableEnd;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(o.DropZone,{className:e.state.isDragging?"is-dragging-block":void 0,onDrop:e.onDrop}),Object(r.createElement)("div",{className:"block-navigation__placeholder"}),Object(r.createElement)(o.Button,{className:B()("components-button editor-block-navigation__item-button block-editor-block-navigation__item-button",{"is-selected":i}),onClick:l,id:p,onDragStart:a,onDragEnd:s,draggable:!0},Object(r.createElement)(W,{block:n,accessibilityText:i&&Object(c.__)("(selected block)","amp")})))})))}}]),t}(r.Component),D=Object(i.withSelect)((function(e,t){var n=t.block.clientId,r=e("core/block-editor"),o=r.getBlockOrder,a=r.getBlockRootClientId,i=(0,r.getBlocksByClientId)(o(a(n))).map((function(e){return e.clientId})).reverse();return{getBlockIndex:function(e){return i.indexOf(e)}}})),R=Object(i.withDispatch)((function(e,t,n){var r=t.block.clientId,o=(0,n.select)("core/block-editor"),a=o.getBlockOrder,i=o.getBlockRootClientId,c=e("core/block-editor").moveBlockToPosition,l=i(r),s=a(l);return{moveBlockToPosition:function(e,t){var n=s.length-1-t;c(e,l,l,n)}}})),M=Object(a.compose)(D,R)(N);n(67);function F(e){var t=e.blocks,n=e.selectedBlockClientId,a=e.selectBlock,i=e.unMovableBlock;return Object(r.createElement)(r.Fragment,null,t.length>0&&Object(r.createElement)(o.DropZoneProvider,null,Object(r.createElement)("ul",{className:"editor-block-navigation__list block-editor-block-navigation__list",role:"list"},t.map((function(e){var t=e.clientId===n;return Object(r.createElement)("li",{key:e.clientId},Object(r.createElement)(M,{block:e,isSelected:t,onClick:function(){return a(e.clientId)}}))})))),i&&Object(r.createElement)("ul",{className:"editor-block-navigation__list block-editor-block-navigation__list editor-block-navigation__list__static",role:"list"},Object(r.createElement)("li",{key:i.clientId},Object(r.createElement)(M,{block:i,isSelected:i.clientId===n,onClick:function(){return a(i.clientId)}}))))}var L=Object(a.compose)(Object(i.withSelect)((function(e){var t=e("amp/story"),n=t.getCurrentPage,r=t.isReordering,o=e("core/block-editor"),a=o.getBlockOrder,i=o.getBlocksByClientId,c=o.getSelectedBlockClientId,l=n()?i(a(n())):[],s=l.find((function(e){var t=e.name;return!Object(g.y)(t)}));return{blocks:l=l.filter((function(e){var t=e.name;return Object(g.y)(t)})).reverse(),unMovableBlock:s,selectedBlockClientId:c(),isReordering:r()}})),Object(i.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?function(){}:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),r(t)}}})),Object(a.ifCondition)((function(e){return!e.isReordering})))((function(e){var t=e.unMovableBlock,n=e.blocks,a=e.selectBlock,i=e.selectedBlockClientId,l=n.length>0||t;return Object(r.createElement)(o.NavigableMenu,{role:"presentation",className:"block-editor-block-navigation__container"},Object(r.createElement)("p",{className:"block-editor-block-navigation__label"},Object(c.__)("Elements","amp")),l&&Object(r.createElement)(F,{blocks:n,selectedBlockClientId:i,selectBlock:a,unMovableBlock:t}),!l&&Object(r.createElement)("p",{className:"block-editor-block-navigation__paragraph"},Object(c.__)("No elements added to this page yet.","amp")))})),H=n(11),z=n(7),U=function(e){var t=e.clientId,n=e.name,a=e.attributes,i=e.innerBlocks,c=void 0===i?[]:i,l=Object(H.createBlock)(n,a,c);return Object(r.createElement)(o.Disabled,{className:"block-editor-block-preview__content editor-styles-wrapper","aria-hidden":!0},Object(r.createElement)(z.BlockEdit,{name:n,focus:!1,clientId:t,isLocked:!0,insertBlocksAfter:!1,attributes:l.attributes,setAttributes:function(){}}))},q=n(36),W=Object(i.withSelect)((function(e,t){var n=t.block,r=t.label;if(!n)return{content:r,icon:null};var o=e("core/editor").getEditedPostAttribute,a=e("core"),i=a.getAuthors,l=a.getMedia,s=Object(H.getBlockType)(n.name);r=s.title;var u="";switch(n.name){case"core/image":if(n.attributes.url&&(u=n.attributes.url.slice(n.attributes.url.lastIndexOf("/")).slice(1,30)).length>0&&(r=u),n.attributes.id){var p=l(n.attributes.id);p&&(r=p.caption.raw||p.title.raw||r)}break;case"amp/amp-story-text":n.attributes.content.length>0&&(u=n.attributes.content.replace(/<br>/g," ").replace(/<[^<>]+>/g,"").slice(0,30)),r=u.length>0?u:s.title;break;case"amp/amp-story-post-author":var d=i().find((function(e){return e.id===o("author")}));r=d?d.name:Object(c.__)("Post Author","amp");break;case"amp/amp-story-post-date":var m=o("date"),f=Object(q.__experimentalGetSettings)().formats.date,b=m||new Date;r=Object(q.dateI18n)(f,b);break;case"amp/amp-story-post-title":r=o("title")||s.title}return{content:r,icon:s.icon}}))((function(e){var t=e.content,n=e.icon,o=e.displayIcon,a=void 0===o||o,i=e.alignIcon,c=void 0===i?"left":i,l=e.accessibilityText,s=void 0!==l&&l;return Object(r.createElement)(r.Fragment,null,a&&"left"===c&&Object(r.createElement)(z.BlockIcon,{icon:n}),t.length>20?"".concat(t.substr(0,20),"…"):t,s&&Object(r.createElement)("span",{className:"screen-reader-text"},s),a&&"right"===c&&Object(r.createElement)(z.BlockIcon,{icon:n}))})),V=n(21),K=function(e){var t=e.blockClass,n=e.blockElementId,o=e.clientId,a=e.hasOverlay,i=e.isDraggable,c=e.isSelected,l=e.name,s=e.toggleIsEditing,u=e.toggleOverlay,p=e.text,d=e.textStyle,m=e.textWrapperClass,f=e.placeholder;return Object(r.createElement)(dt,{clientId:o,blockName:l,blockElementId:n,isDraggable:i,isMovable:!0},Object(r.createElement)("div",{role:"textbox",tabIndex:"-1",className:B()("is-not-editing","editor-rich-text","block-editor-rich-text",t),onClick:function(){c&&s(!0)},onMouseDown:function(e){1<e.detail&&e.preventDefault()},onKeyDown:function(e){e.stopPropagation(),V.ENTER===e.keyCode&&c&&(u(!1),s(!0))}},a&&Object(r.createElement)("div",{role:"textbox",tabIndex:"-1",className:"amp-overlay",onClick:function(e){u(!1),e.stopPropagation()},onKeyDown:function(e){e.stopPropagation(),V.ENTER===e.keyCode&&c&&(u(!1),s(!0))}}),Object(r.createElement)("div",{role:"textbox",className:m,style:d},p&&p.length?Object(r.createElement)(r.RawHTML,null,p):Object(r.createElement)("span",{className:"amp-text-placeholder"},f))))},G=function(e){var t=e.pages,n=e.currentPage,a=e.onClick;
8
+ /* translators: %s: Page number */return Object(r.createElement)("ul",{className:"amp-story-editor-carousel-item-list"},t.map((function(e,t){var i,l=e.clientId===n?"amp-story-editor-carousel-item amp-story-editor-carousel-item--active":"amp-story-editor-carousel-item";return Object(r.createElement)("li",{key:e.clientId,className:l},Object(r.createElement)(o.Tooltip,{text:(i=t+1,Object(c.sprintf)(Object(c.__)("Go to page %s","amp"),i))},Object(r.createElement)(o.Button,{onClick:function(t){t.preventDefault(),a(e.clientId)},disabled:e.clientId===n},Object(r.createElement)("span",{className:"screen-reader-text"},function(e){return Object(c.sprintf)(Object(c.__)("Page %s","amp"),e)}(t+1)))))})))},$=(n(68),50),Y=1,Q=function(e){function t(){var e,n;y()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=k()(this,(e=_()(t)).call.apply(e,[this].concat(o))),I()(S()(n),"translateWrapper",(function(){var e=document.querySelector("#amp-story-controls + .block-editor-block-list__layout");if(e){var t=n.props.currentIndex;n.props.isReordering?e.style.display="none":(e.style.display="",e.style.transform="translateX(calc(50% - ".concat(Y,"px - ").concat((p.v+$)/2,"px - ").concat(t*$,"px - ").concat(t*p.v,"px))"))}})),n}return C()(t,e),O()(t,[{key:"componentDidMount",value:function(){this.translateWrapper()}},{key:"componentDidUpdate",value:function(){this.translateWrapper()}},{key:"render",value:function(){var e=this.props,t=e.pages,n=e.currentPage,a=e.previousPage,i=e.nextPage,l=e.onChangePage,s=e.isReordering,u=function(e){l(e)};return s?Object(r.createElement)(He,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"amp-story-editor-carousel-navigation"},Object(r.createElement)(o.IconButton,{icon:"arrow-left-alt2",label:Object(c.__)("Previous Page","amp"),onClick:function(e){e.preventDefault(),u(a)},disabled:null===a}),Object(r.createElement)(G,{pages:t,currentPage:n,onClick:u}),Object(r.createElement)(o.IconButton,{icon:"arrow-right-alt2",label:Object(c.__)("Next Page","amp"),onClick:function(e){e.preventDefault(),u(i)},disabled:null===i})))}}]),t}(r.Component),X=Object(a.compose)(Object(i.withSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockOrder,r=t.getBlocksByClientId,o=t.getAdjacentBlockClientId,a=e("amp/story"),i=a.getCurrentPage,c=a.isReordering,l=i(),s=r(n()),u=s.findIndex((function(e){return e.clientId===l}));return{pages:s,currentPage:l,currentIndex:Math.max(0,u),previousPage:i()?o(l,-1):null,nextPage:i()?o(l,1):null,isReordering:c()}})),Object(i.withDispatch)((function(e){var t=e("amp/story").setCurrentPage,n=e("core/block-editor").selectBlock;return{onChangePage:function(e){t(e),n(e)}}})))(Q),J=n(10);function Z(e){return(Z="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 ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ne(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function re(e){return ne(e)}function oe(e){return ne(e,!0)}function ae(e){var t=function(e){var t,n,r,o=e.ownerDocument,a=o.body,i=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=i.clientLeft||a.clientLeft||0,top:r-=i.clientTop||a.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=re(r),t.top+=oe(r),t}var ie,ce=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),le=/^(top|right|bottom|left)$/,se="currentStyle",ue="runtimeStyle",pe="left",de="px";function me(e,t){for(var n=0;n<e.length;n++)t(e[n])}function fe(e){return"border-box"===ie(e,"boxSizing")}"undefined"!=typeof window&&(ie=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,a=n||o.defaultView.getComputedStyle(e,null);return a&&(r=a.getPropertyValue(t)||a[t]),r}:function(e,t){var n=e[se]&&e[se][t];if(ce.test(n)&&!le.test(t)){var r=e.style,o=r[pe],a=e[ue][pe];e[ue][pe]=e[se][pe],r[pe]="fontSize"===t?"1em":n||0,n=r.pixelLeft+de,r[pe]=o,e[ue][pe]=a}return""===n?"auto":n});var be=["margin","border","padding"],ge=-1,he=2,ye=1;function ve(e,t,n){var r,o,a,i=0;for(o=0;o<t.length;o++)if(r=t[o])for(a=0;a<n.length;a++){var c=void 0;c="border"===r?"".concat(r+n[a],"Width"):r+n[a],i+=parseFloat(ie(e,c))||0}return i}function Oe(e){return null!=e&&e==e.window}var je={};function ke(e,t,n){if(Oe(e))return"width"===t?je.viewportWidth(e):je.viewportHeight(e);if(9===e.nodeType)return"width"===t?je.docWidth(e):je.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,a=(ie(e),fe(e)),i=0;(null==o||o<=0)&&(o=void 0,(null==(i=ie(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===n&&(n=a?ye:ge);var c=void 0!==o||a,l=o||i;if(n===ge)return c?l-ve(e,["border","padding"],r):i;if(c){var s=n===he?-ve(e,["border"],r):ve(e,["margin"],r);return l+(n===ye?0:s)}return i+ve(e,be.slice(n),r)}me(["Width","Height"],(function(e){je["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],je["viewport".concat(e)](n))},je["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,a=r.documentElement[n];return"CSS1Compat"===r.compatMode&&a||o&&o[n]||a}}));var we={position:"absolute",visibility:"hidden",display:"block"};function _e(e){var t,n=arguments;return 0!==e.offsetWidth?t=ke.apply(void 0,n):function(e,t,n){var r,o={},a=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=a[r],a[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(a[r]=o[r])}(e,we,(function(){t=ke.apply(void 0,n)})),t}function Ee(e,t,n){var r=n;if("object"!==Z(t))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):ie(e,t);for(var o in t)t.hasOwnProperty(o)&&Ee(e,o,t[o])}me(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);je["outer".concat(t)]=function(t,n){return t&&_e(t,e,n?0:ye)};var n="width"===e?["Left","Right"]:["Top","Bottom"];je[e]=function(t,r){if(void 0===r)return t&&_e(t,e,ge);if(t){ie(t);return fe(t)&&(r+=ve(t,["padding","border"],n)),Ee(t,e,r)}}}));var Se=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(n,!0).forEach((function(t){ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return ae(e);!function(e,t){"static"===Ee(e,"position")&&(e.style.position="relative");var n,r,o=ae(e),a={};for(r in t)t.hasOwnProperty(r)&&(n=parseFloat(Ee(e,r))||0,a[r]=n+t[r]-o[r]);Ee(e,a)}(e,t)},isWindow:Oe,each:me,css:Ee,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var r in e)e.hasOwnProperty(r)&&(t.overflow[r]=e.overflow[r]);return t},scrollLeft:function(e,t){if(Oe(e)){if(void 0===t)return re(e);window.scrollTo(t,oe(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(Oe(e)){if(void 0===t)return oe(e);window.scrollTo(re(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},je);var xe=function(e,t,n){n=n||{},9===t.nodeType&&(t=Se.getWindow(t));var r=n.allowHorizontalScroll,o=n.onlyScrollIfNeeded,a=n.alignWithTop,i=n.alignWithLeft,c=n.offsetTop||0,l=n.offsetLeft||0,s=n.offsetBottom||0,u=n.offsetRight||0;r=void 0===r||r;var p,d,m,f,b,g,h,y,v,O,j=Se.isWindow(t),k=Se.offset(e),w=Se.outerHeight(e),_=Se.outerWidth(e);j?(h=t,O=Se.height(h),v=Se.width(h),y={left:Se.scrollLeft(h),top:Se.scrollTop(h)},b={left:k.left-y.left-l,top:k.top-y.top-c},g={left:k.left+_-(y.left+v)+u,top:k.top+w-(y.top+O)+s},f=y):(p=Se.offset(t),d=t.clientHeight,m=t.clientWidth,f={left:t.scrollLeft,top:t.scrollTop},b={left:k.left-(p.left+(parseFloat(Se.css(t,"borderLeftWidth"))||0))-l,top:k.top-(p.top+(parseFloat(Se.css(t,"borderTopWidth"))||0))-c},g={left:k.left+_-(p.left+m+(parseFloat(Se.css(t,"borderRightWidth"))||0))+u,top:k.top+w-(p.top+d+(parseFloat(Se.css(t,"borderBottomWidth"))||0))+s}),b.top<0||g.top>0?!0===a?Se.scrollTop(t,f.top+b.top):!1===a?Se.scrollTop(t,f.top+g.top):b.top<0?Se.scrollTop(t,f.top+b.top):Se.scrollTop(t,f.top+g.top):o||((a=void 0===a||!!a)?Se.scrollTop(t,f.top+b.top):Se.scrollTop(t,f.top+g.top)),r&&(b.left<0||g.left>0?!0===i?Se.scrollLeft(t,f.left+b.left):!1===i?Se.scrollLeft(t,f.left+g.left):b.left<0?Se.scrollLeft(t,f.left+b.left):Se.scrollLeft(t,f.left+g.left):o||((i=void 0===i||!!i)?Se.scrollLeft(t,f.left+b.left):Se.scrollLeft(t,f.left+g.left)))},Ce=n(37),Pe=n.n(Ce),Ie=n(38),Ae=n(52),Be=(n(69),function(e){return e.stopPropagation()}),Te=function(e){function t(e){var n;y()(this,t),n=k()(this,_()(t).call(this,e));var o=e.autocompleteRef;return n.onChange=n.onChange.bind(S()(n)),n.onKeyDown=n.onKeyDown.bind(S()(n)),n.autocompleteRef=o||Object(r.createRef)(),n.inputRef=Object(r.createRef)(),n.updateSuggestions=Object(J.throttle)(n.updateSuggestions.bind(S()(n)),200),n.suggestionNodes=[],n.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null},n}return C()(t,e),O()(t,[{key:"componentDidUpdate",value:function(){var e=this,t=this.state,n=t.showSuggestions,r=t.selectedSuggestion;n&&null!==r&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,xe(this.suggestionNodes[r],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){e.scrollingIntoView=!1}),100))}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest,this.isStillMounted=!1}},{key:"componentDidMount",value:function(){this.isStillMounted=!0}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"fetchPostSuggestions",value:function(e){var t=this,n=this.props.searchablePostTypes||["post"],r=this.suggestionsRequest=Pe()({path:Object(Ie.addQueryArgs)("/wp/v2/search",{search:e,per_page:20,subtype:n.join(",")})}).then((function(e){t.isStillMounted&&t.suggestionsRequest===r&&(t.setState({suggestions:Object(J.map)(e,(function(e){return{id:e.id,title:Object(Ae.decodeEntities)(e.title)||Object(c.__)("(no title)","amp"),postType:e.subtype}})),loading:!1}),Boolean(e.length)?t.props.debouncedSpeak(Object(c.sprintf)(Object(c._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length,"amp"),e.length),"assertive"):t.props.debouncedSpeak(Object(c.__)("No results.","amp"),"assertive"))})).catch((function(){t.isStillMounted&&t.suggestionsRequest===r&&t.setState({loading:!1})}))}},{key:"updateSuggestions",value:function(e){e.length<2?this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1}):(this.setState({showSuggestions:!0,selectedSuggestion:null,loading:!0}),this.fetchPostSuggestions(e))}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.updateSuggestions(t)}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,a=t.loading;if(n&&o.length&&!a){var i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case V.UP:e.stopPropagation(),e.preventDefault();var l=r?r-1:o.length-1;this.setState({selectedSuggestion:l});break;case V.DOWN:e.stopPropagation(),e.preventDefault();var s=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:s});break;case V.TAB:null!==this.state.selectedSuggestion&&(this.selectPost(i),this.props.speak(Object(c.__)("Post selected.","amp")));break;case V.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectPost(i));break;case V.ESCAPE:e.stopPropagation(),e.preventDefault(),this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}else switch(e.keyCode){case V.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case V.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectPost",value:function(e){this.props.onSelect(e.id,e.postType),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectPost(e),this.inputRef.current.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.autoFocus,a=void 0===n||n,i=t.value,l=void 0===i?"":i,s=t.instanceId,u=t.className,p=t.id,d=void 0===p?"post-selector":p,m=t.placeholder,f=t.labelText,b=this.state,g=b.showSuggestions,h=b.suggestions,y=b.selectedSuggestion,v=b.loading,O="block-editor-post-input-suggestions-".concat(s),j="block-editor-post-input-suggestion-".concat(s);return Object(r.createElement)("div",{className:B()("editor-post-input block-editor-post-input",u)},f&&Object(r.createElement)("label",{htmlFor:d},f),Object(r.createElement)("input",{id:d,type:"text","aria-label":Object(c.__)("Post search","amp"),required:!0,value:l,onChange:this.onChange,onInput:Be,onClick:Be,placeholder:m||Object(c.__)("Type to search","amp"),onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":g,"aria-autocomplete":"list","aria-owns":O,"aria-activedescendant":null!==y?"".concat(j,"-").concat(y):void 0,ref:this.inputRef,autoFocus:a}),v&&Object(r.createElement)(o.Spinner,null),g&&Boolean(h.length)&&Object(r.createElement)(o.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(r.createElement)("div",{className:B()("editor-post-input__suggestions","block-editor-post-input__suggestions","".concat(u,"__suggestions")),id:O,ref:this.autocompleteRef,role:"listbox"},h.map((function(t,n){return Object(r.createElement)("button",{key:t.id,role:"option",tabIndex:"-1",id:"".concat(j,"-").concat(n),ref:e.bindSuggestionNode(n),className:B()("editor-post-input__suggestion block-editor-post-input__suggestion",{"is-selected":n===y}),onClick:function(){return e.handleOnClick(t)},"aria-selected":n===y},t.title)})))))}}]),t}(r.Component),Ne=Object(a.compose)(a.withSafeTimeout,o.withSpokenMessages,a.withInstanceId)(Te),De=function(e){var t={srcRootClientId:null,srcClientId:null,srcIndex:null,type:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("text")))}catch(e){return t}return t},Re=function(e){function t(){var e,n;y()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=k()(this,(e=_()(t)).call.apply(e,[this].concat(o))),I()(S()(n),"onDrop",(function(e,t){var r=n.props,o=r.page.clientId,a=r.movePageToPosition,i=r.index,c=De(e),l=c.srcClientId,s=c.srcIndex,u=c.type;if("block"===u&&l!==o){var p=n.getInsertIndex(t);a(l,s<i?p-1:p)}})),n.state={isDragging:!1},n}return C()(t,e),O()(t,[{key:"getInsertIndex",value:function(e){var t=this.props.index;if(void 0!==t)return"right"===e.x?t+1:t}},{key:"render",value:function(){var e=this,t=this.props,n=t.page,a=t.index,i=n.clientId,c="reorder-page-".concat(i),l={type:"block",srcIndex:a,srcClientId:i};return Object(r.createElement)("div",{className:"amp-story-reorderer-item"},Object(r.createElement)(o.Draggable,{elementId:c,transferData:l,onDragStart:function(){return e.setState({isDragging:!0})},onDragEnd:function(){return e.setState({isDragging:!1})}},(function(t){var a=t.onDraggableStart,i=t.onDraggableEnd;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(o.DropZone,{className:e.state.isDragging?"is-dragging-page":void 0,onDrop:e.onDrop}),Object(r.createElement)("div",{className:"amp-story-reorderer-item-page",id:c},Object(r.createElement)("div",{className:"amp-story-page-preview",onDragStart:a,onDragEnd:i,draggable:!0},Object(r.createElement)(U,n))))})))}}]),t}(r.Component),Me=Object(i.withSelect)((function(e,t){var n=t.page.clientId;return{index:(0,e("amp/story").getBlockIndex)(n)}})),Fe=Object(i.withDispatch)((function(e){return{movePageToPosition:e("amp/story").movePageToPosition}})),Le=Object(a.compose)(Me,Fe)(Re),He=(n(70),Object(i.withSelect)((function(e){return{pages:(0,e("core/block-editor").getBlocksByClientId)((0,e("amp/story").getBlockOrder)())}}))((function(e){var t=e.pages;return Object(r.createElement)(o.DropZoneProvider,null,Object(r.createElement)("div",{className:"amp-story-reorderer"},t.map((function(e){return Object(r.createElement)(Le,{key:"page-".concat(e.clientId),page:e})}))))}))),ze=(n(71),function(e){return Object(r.createElement)("svg",e,Object(r.createElement)("path",{d:"M14 0h10v2H14V0zm0 7h10v2H14V7zm0 7h10v2H14v-2zm-2 1l-5 4v-3.069C3.06 15.436 0 12.072 0 8c0-4.411 3.589-8 8-8h3v2H8C4.691 2 2 4.691 2 8c0 2.967 2.167 5.431 5 5.91V11l5 4z",fill:"#555D66"}))});ze.defaultProps={width:"24",height:"19",viewBox:"0 0 24 19",xmlns:"http://www.w3.org/2000/svg"};var Ue=Object(a.compose)(Object(i.withSelect)((function(e){var t=e("amp/story").isReordering,n=e("core/block-editor").getBlockOrder;return{isReordering:t(),blockOrder:n()}})),Object(i.withDispatch)((function(e,t){var n=t.blockOrder,r=e("core/block-editor").clearSelectedBlock,o=e("amp/story"),a=o.startReordering,i=o.saveOrder,c=o.resetOrder;return{startReordering:function(){r(),a(n)},saveOrder:i,resetOrder:function(){return c(n)}}})))((function(e){var t=e.isReordering,n=e.startReordering,a=e.saveOrder,i=e.resetOrder;return t?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(o.IconButton,{className:"amp-story-controls-reorder-cancel",onClick:i,icon:"no-alt"},Object(c.__)("Cancel","amp")),Object(r.createElement)(o.Button,{className:"amp-story-controls-reorder-save",onClick:a,isLarge:!0,isPrimary:!0},Object(c.__)("Save Changes","amp"))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(ft,null),Object(r.createElement)(o.IconButton,{className:"amp-story-controls-reorder",icon:ze({width:24,height:19}),label:Object(c.__)("Reorder Pages","amp"),onClick:n}))})),qe=Object(i.withSelect)((function(e){var t=e("amp/story").getCurrentPage,n=e("core/block-editor"),r=n.canInsertBlockType,o=n.getBlockListSettings;return{isReordering:(0,e("amp/story").isReordering)(),canInsertBlockType:function(e){var n=o(t());return r(e,t())&&n&&n.allowedBlocks.includes(e)},showInserter:"visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled}})),We=Object(i.withDispatch)((function(e,t,n){var r=n.select,o=r("amp/story").getCurrentPage,a=r("core/block-editor").getBlockOrder,i=e("core/block-editor").insertBlock;return{insertBlock:function(e){var t=o(),n=a(t).length,r=Object(H.createBlock)(e,{});i(r,n,t)}}})),Ve=Object(a.compose)(qe,We,Object(a.ifCondition)((function(e){return!e.isReordering})))((function(e){var t=e.insertBlock,n=e.canInsertBlockType,a=e.showInserter;return["amp/amp-story-text","amp/amp-story-cta"].map((function(e){if(!n(e))return null;var i=Object(H.getBlockType)(e);return Object(r.createElement)(o.IconButton,{key:e,icon:Object(r.createElement)(z.BlockIcon,{icon:i.icon}),onClick:function(){return t(e)},label:i.title,labelPosition:"bottom",disabled:!a})}))})),Ke='div[data-amp-selected="parent"] .editor-inner-blocks',Ge=function(e){function t(){var e,n;y()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=k()(this,(e=_()(t)).call.apply(e,[this].concat(o))),I()(S()(n),"onDrop",(function(e){var t,r,o,a,i=n.props,c=i.srcBlockName,l=i.updateBlockAttributes,s=i.srcClientId,u="amp/amp-story-cta"===c;if(u){r="amp-story-cta-button-".concat(s),o="clone-amp-story-cta-button-".concat(s);var d="#block-".concat(s," .editor-block-list__block-edit");a=document.querySelector(d)}else r="block-".concat(s),o="clone-block-".concat(s),a=document.querySelector(Ke);var m=document.getElementById(r),f=document.getElementById(o);if(m&&f&&a){u||(f.parentNode.style.visibility="hidden",f.parentNode.style.transform="none");var b=f.getBoundingClientRect(),h=a.getBoundingClientRect(),y=u?"btnPositionLeft":"positionLeft",v=u?"btnPositionTop":"positionTop",O=p.u;u&&(O=p.u/5),l(s,(t={},I()(t,y,Object(g.s)("x",b.left-h.left)),I()(t,v,Object(g.s)("y",b.top-h.top,O)),t))}else e.preventDefault()})),n}return C()(t,e),O()(t,[{key:"render",value:function(){return Object(r.createElement)(o.DropZone,{className:"editor-block-drop-zone",onDrop:this.onDrop})}}]),t}(r.Component),$e=Object(i.withDispatch)((function(e){var t=e("core/block-editor").updateBlockAttributes;return{updateBlockAttributes:function(){t.apply(void 0,arguments)}}}))(Ge),Ye=n(20),Qe=n.n(Ye),Xe=window,Je=Xe.Image,Ze=Xe.navigator,et="components-draggable__clone",tt=function(){return/Chrome/i.test(Ze.userAgent)},nt=function(){return Qe()(document.getElementById("editor").querySelectorAll("iframe")).length>0},rt=function(e){function t(){var e,n;y()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=k()(this,(e=_()(t)).call.apply(e,[this].concat(o))),I()(S()(n),"onDragEnd",(function(e){var t=n.props.onDragEnd,r=void 0===t?J.noop:t;e&&e.preventDefault(),n.resetDragState(),n.props.setTimeout(r)})),I()(S()(n),"onDragOver",(function(e){var t=parseInt(n.cloneWrapper.style.top)+e.clientY-n.cursorTop;"amp/amp-story-cta"===n.props.blockName?n.cloneWrapper.style.top=t>=0?"".concat(t,"px"):"0px":n.cloneWrapper.style.top="".concat(t,"px"),n.cloneWrapper.style.left="".concat(parseInt(n.cloneWrapper.style.left)+e.clientX-n.cursorLeft,"px"),n.cursorLeft=e.clientX,n.cursorTop=e.clientY})),I()(S()(n),"onDrop",(function(){n.onDragEnd(null)})),I()(S()(n),"onDragStart",(function(e){var t=n.props,r=t.blockName,o=t.elementId,a=t.transferData,i=t.onDragStart,c=void 0===i?J.noop:i,l="amp/amp-story-cta"===r,s=l?document.getElementById(o):document.getElementById(o).parentNode;if(s)if(s.closest('div[data-type="amp/amp-story-page"]')){var u=new Je;u.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=",e.dataTransfer.setDragImage(u,0,0),e.dataTransfer.setData("text",JSON.stringify(a));var d=s.parentNode;n.cloneWrapper=document.createElement("div"),n.cloneWrapper.classList.add(et),n.cloneWrapper.style.width="".concat(s.clientWidth,"px"),n.cloneWrapper.style.height="".concat(s.clientHeight,"px");var m=s.cloneNode(!0);n.cloneWrapper.style.transform=m.style.transform;var f=l?p.u/5:p.u;n.cloneWrapper.style.top="".concat(Object(g.t)("y",parseInt(m.style.top),f),"px"),n.cloneWrapper.style.left="".concat(Object(g.t)("x",parseInt(m.style.left),p.v),"px"),m.id="clone-".concat(o),m.style.top=0,m.style.left=0,m.style.transform="none",Qe()(m.querySelectorAll("iframe")).forEach((function(e){return e.parentNode.removeChild(e)})),n.cloneWrapper.appendChild(m),d.appendChild(n.cloneWrapper),n.cursorLeft=e.clientX,n.cursorTop=e.clientY,document.body.classList.add("is-dragging-components-draggable"),document.addEventListener("dragover",n.onDragOver),tt()&&nt()&&(n.isChromeAndHasIframes=!0,document.addEventListener("drop",n.onDrop)),n.props.setTimeout(c)}else e.preventDefault();else e.preventDefault()})),I()(S()(n),"resetDragState",(function(){document.removeEventListener("dragover",n.onDragOver),n.cloneWrapper&&n.cloneWrapper.parentNode&&(n.cloneWrapper.parentNode.removeChild(n.cloneWrapper),n.cloneWrapper=null),n.isChromeAndHasIframes&&(n.isChromeAndHasIframes=!1,document.removeEventListener("drop",n.onDrop)),document.body.classList.remove("is-dragging-components-draggable")})),n.isChromeAndHasIframes=!1,n}return C()(t,e),O()(t,[{key:"componentDidMount",value:function(){document.querySelectorAll('.block-editor-block-list__block[data-type="core/image"] img').forEach((function(e){e.setAttribute("draggable","false")}))}},{key:"componentWillUnmount",value:function(){this.resetDragState()}},{key:"render",value:function(){return(0,this.props.children)({onDraggableStart:this.onDragStart,onDraggableEnd:this.onDragEnd})}}]),t}(r.Component),ot=Object(a.withSafeTimeout)(rt),at=Object(i.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlockIndex,a=(0,r.getBlockRootClientId)(n);return{index:o(n,a),rootClientId:a}}))((function(e){var t=e.children,n=e.clientId,o=e.blockName,a=e.rootClientId,i=e.blockElementId,c=e.index,l=e.onDragStart,s=e.onDragEnd,u={type:"block",srcIndex:c,srcRootClientId:a,srcClientId:n};return Object(r.createElement)(ot,{blockName:o,elementId:i,transferData:u,onDragStart:l,onDragEnd:s},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return t({onDraggableStart:n,onDraggableEnd:r})}))})),it=function(e){var t=e.children,n=e.blockName,o=e.className,a=e.onDragStart,i=e.onDragEnd,c=e.blockElementId,l=e.clientId;return Object(r.createElement)(at,{clientId:l,blockElementId:c,blockName:n,onDragStart:a,onDragEnd:i},(function(e){var n=e.onDraggableStart,a=e.onDraggableEnd;return Object(r.createElement)("div",{className:o,"aria-hidden":"true",onDragStart:n,onDragEnd:a,draggable:!0},t)}))},ct=n(32),lt=n.n(ct),st=function(e){function t(){var e,n;y()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=k()(this,(e=_()(t)).call.apply(e,[this].concat(o))),I()(S()(n),"proxyEvent",(function(e){var t=Boolean(e.nativeEvent._blockHandled);e.nativeEvent._blockHandled=!0;var r=n.eventMap[e.type];t&&(r+="Handled"),n.props[r]&&n.props[r](e)})),n.eventMap={},n}return C()(t,e),O()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.childHandledEvents,o=void 0===n?[]:n,a=t.forwardedRef,i=lt()(t,["childHandledEvents","forwardedRef"]),c=Object(J.reduce)([].concat(Qe()(o),Qe()(Object.keys(i))),(function(t,n){var r=n.match(/^on([A-Z][a-zA-Z]+?)(Handled)?$/);if(r){Boolean(r[2])&&delete i[n];var o="on"+r[1];t[o]=e.proxyEvent,e.eventMap[r[1].toLowerCase()]=o}return t}),{});return Object(r.createElement)("div",s()({ref:a},i,c))}}]),t}(r.Component),ut=function(e,t){return Object(r.createElement)(st,s()({},e,{forwardedRef:t}))};ut.displayName="IgnoreNestedEvents";var pt=Object(r.forwardRef)(ut),dt=(n(73),function(e){function t(){return y()(this,t),k()(this,_()(t).apply(this,arguments))}return C()(t,e),O()(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.blockName,o=e.isDraggable,a=e.isMovable,i=e.onDragStart,c=e.clientId,l=e.blockElementId;return a&&o?Object(r.createElement)(pt,{childHandledEvents:["onDragStart","onMouseDown"],className:"block-mover"},Object(r.createElement)("div",null,Object(r.createElement)(it,{children:t,clientId:c,blockElementId:l,blockName:n,onDragStart:i}))):t}}]),t}(r.Component)),mt=(n(74),function(e){return Object(r.createElement)("svg",e,Object(r.createElement)("path",{d:"M9 7h7v2H9v7H7V9H0V7h7V0h2v7z",fill:"#FFF"}))});mt.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"};var ft=function(){var e=Object(i.useDispatch)("core/block-editor").insertBlock;return Object(r.createElement)("div",{className:"block-editor-inserter"},Object(r.createElement)(o.IconButton,{icon:mt({width:16,height:16}),label:Object(c.__)("Insert Blank Page","amp"),onClick:function(){e(Object(H.createBlock)("amp/amp-story-page"))},className:"editor-inserter__amp-inserter"}))},bt=n(53),gt=n.n(bt),ht=function(e){var t=e.length,n=e.queryLength,o=e.minQueryLength,a=e.selectedOption,i=e.selectedOptionIndex,c=e.tQueryTooShort,l=e.tNoResults,s=e.tSelectedOption,u=e.tResults,p=n<o,d=0===t,m=a?s(a,t,i):"",f=null;return f=p?c(o):d?l():u(t,m),Object(r.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},f,p&&",".repeat(n))},yt=(n(76),n(77),function(e){function t(){return y()(this,t),k()(this,_()(t).apply(this,arguments))}return C()(t,e),O()(t,[{key:"handleInputBlur",value:function(){}},{key:"handleClearClick",value:function(){this.state.query="",this.forceUpdate(),this.props.onConfirm(null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.cssNamespace,a=t.displayMenu,i=t.id,l=t.minLength,s=t.name,u=t.placeholder,p=t.required,d=t.tNoResults,m=t.tStatusQueryTooShort,f=t.tStatusSelectedOption,b=t.tStatusResults,g=t.ariaLabelBy,h=this.state,y=h.focused,v=h.hovered,O=h.menuOpen,j=h.options,k=h.query,w=h.selected,_=this.hasAutoselect(),E=-1===y,S=0===j.length,x=k?k.length:0,C=0!==x,P=x>=l,I=this.props.showNoOptionsFound&&E&&S&&C&&P,A="".concat(n,"__wrapper"),B="".concat(n,"__input"),T=null!==y?" ".concat(B,"--focused"):"",N=this.props.showAllValues?" ".concat(B,"--show-all-values"):" ".concat(B,"--default"),D=-1!==y&&null!==y,R="".concat(n,"__menu"),M="".concat(R,"--").concat(a),F=O||I,L="".concat(R,"--").concat(F?"visible":"hidden"),H="".concat(n,"__option"),z="".concat(n,"__hint"),U=this.templateInputValue(j[w]),q=U&&0===U.toLowerCase().indexOf(k.toLowerCase())&&_?k+U.substr(x):"";return Object(r.createElement)("div",{className:A,onKeyDown:this.handleKeyDown,role:"combobox",tabIndex:"-1","aria-expanded":O?"true":"false"},Object(r.createElement)(ht,{length:j.length,queryLength:x,minQueryLength:l,selectedOption:this.templateInputValue(j[w]),selectedOptionIndex:w,tQueryTooShort:m,tNoResults:d,tSelectedOption:f,tResults:b}),q&&Object(r.createElement)("span",null,Object(r.createElement)("input",{className:z,readOnly:!0,tabIndex:"-1",value:q})),Object(r.createElement)("input",{"aria-activedescendant":D?"".concat(i,"__option--").concat(y):"","aria-owns":"".concat(i,"__listbox"),autoComplete:"off",className:"".concat(B).concat(T).concat(N),id:i,onClick:function(t){return e.handleInputClick(t)},onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,name:s,placeholder:u,ref:function(t){e.elementReferences[-1]=t},type:"text",required:p,value:k}),k&&!O&&P&&Object(r.createElement)(o.IconButton,{icon:"no",label:Object(c.__)("Clear Font","amp"),onClick:function(t){return e.handleClearClick(t)},className:"autocomplete__icon"}),Object(r.createElement)("ul",{className:"".concat(R," ").concat(M," ").concat(L),onMouseLeave:function(t){return e.handleListMouseLeave(t)},id:"".concat(i,"__listbox"),"aria-labelledby":g,role:"listbox"},j.map((function(t,n){var o=(-1===y?w===n:y===n)&&null===v?" ".concat(H,"--focused"):"",a=n%2?" ".concat(H,"--odd"):"";return Object(r.createElement)("li",{"aria-selected":y===n,className:"".concat(H).concat(o).concat(a),dangerouslySetInnerHTML:{__html:e.templateSuggestion(t)},id:"".concat(i,"__option--").concat(n),key:n,onBlur:function(t){return e.handleOptionBlur(t,n)},onClick:function(t){return e.handleOptionClick(t,n)},onKeyDown:function(t){return e.handleOptionClick(t,n)},onMouseEnter:function(t){return e.handleOptionMouseEnter(t,n)},ref:function(t){e.elementReferences[n]=t},role:"option",tabIndex:"-1"})})),I&&Object(r.createElement)("li",{className:"".concat(H," ").concat(H,"--no-results"),role:"option",tabIndex:"-1"},d())))}}]),t}(gt.a));var vt=Object(a.withInstanceId)((function(e){var t=e.fonts,n=void 0===t?[]:t,a=e.onChange,i=void 0===a?function(){}:a,l=e.value,s=void 0===l?"":l,u=e.instanceId,p=n,d="amp-stories-font-family-picker-".concat(u);return Object(r.createElement)(o.BaseControl,{label:Object(c.__)("Font Family","amp"),id:d,help:Object(c.__)("Type to search for fonts","amp")},Object(r.createElement)(yt,{id:d,name:d,source:function(e,t){t(e?p.filter((function(t){return-1!==t.name.toLowerCase().indexOf(e.toLowerCase())})):[])},templates:{suggestion:function(e){Object(g.B)(e.name);var t=e.fallbacks?", "+e.fallbacks.join(", "):"";return e&&"<span style='font-family: ".concat(e.name).concat(t,"'>").concat(e.name,"</span>")},inputValue:function(e){return e&&e.name}},ariaLabelBy:"".concat(d,"__help"),minLength:2,onConfirm:i,showAllValues:!1,confirmOnBlur:!1,defaultValue:s||"",dropdownArrow:function(){return""},preserveNullOptions:!0,placeholder:Object(c.__)("None","amp"),displayMenu:"overlay",tNoResults:function(){return Object(c.__)("No font found","amp")},tStatusQueryTooShort:function(e){// translators: %d: the number characters required to initiate a font search.
9
+ return Object(c.sprintf)(Object(c.__)("Type in %s or more characters for results","amp"),e)},tStatusSelectedOption:function(e,t){// translators: 1: the index of the selected result. 2: The total number of results.
10
+ return Object(c.sprintf)(Object(c.__)("%s (1 of %s) is selected","amp"),e,t)},tStatusResults:function(e,t){return Object(c.sprintf)(// translators: %d: The total number of results.
11
+ Object(c._n)("%d font is available. %s","%d fonts are available. %s",e,"amp"),e,t)}}))})),Ot=(n(78),function(e){function t(e){var n;return y()(this,t),n=k()(this,_()(t).call(this,e)),I()(S()(n),"onKeyUp",(function(e){if(n.state.isRotating){e.preventDefault();var t=e.keyCode;if(V.ESCAPE===t)n.elementRef.classList.remove("is-rotating"),n.elementRef.style.transform="rotate(".concat(n.props.initialAngle,"deg)"),n.setState({isRotating:!1,angle:n.props.initialAngle},(function(){return n.props.onRotateStop&&n.props.onRotateStop(e,n.props.initialAngle)}));else if(V.LEFT===t||V.RIGHT===t){var r=V.LEFT===t?n.state.angle-30:n.state.angle+30;r>360?r-=360:r<=-360&&(r+=360),n.elementRef.style.transform="rotate(".concat(r,"deg)"),
12
  /* translators: %s: degrees */
13
+ n.props.speak(Object(c.sprintf)(Object(c.__)("Rotating block by %s degrees","amp"),r)),n.setState({angle:r},(function(){return n.props.onRotate&&n.props.onRotate(e,r)}))}else V.ENTER===t&&(
14
  /* translators: %s: degrees */
15
+ n.props.speak(Object(c.sprintf)(Object(c.__)("Saving block rotation of %s degrees","amp"),n.state.angle)),n.onRotateStop(e))}})),I()(S()(n),"onRotateStart",(function(e){n.state.isRotating||(e.button&&2===e.button||(e.preventDefault(),n.elementRef.classList.add("is-rotating"),n.setState({isRotating:!0},(function(){return n.props.onRotateStart&&n.props.onRotateStart(e)}))))})),I()(S()(n),"onRotate",(function(e){if(n.state.isRotating){e.preventDefault(),n.elementRef.classList.add("is-rotating");var t=n.elementRef.getBoundingClientRect(),r=t.top,o=t.left+t.width/2,a=r+t.height/2,i=e.clientX-o,c=e.clientY-a,l=180/Math.PI,s=Math.ceil(-l*Math.atan2(i,c));s=Object(g.j)(s,n.props.snap,n.props.snapGap),n.state.angle!==s&&(n.elementRef.style.transform="rotate(".concat(s,"deg)"),n.setState({angle:s},(function(){return n.props.onRotate&&n.props.onRotate(e,s)})))}})),I()(S()(n),"onRotateStop",(function(e){n.state.isRotating&&(e.preventDefault(),n.elementRef.classList.remove("is-rotating"),n.elementRef.style.transform="rotate(".concat(n.state.angle,"deg)"),n.setState({isRotating:!1},(function(){return n.props.onRotateStop&&n.props.onRotateStop(e,n.state.angle)})))})),n.state={isRotating:!1,angle:e.angle},n}return C()(t,e),O()(t,[{key:"componentDidMount",value:function(){this.elementRef=document.getElementById(this.props.blockElementId)}},{key:"render",value:function(){var e=B()(this.props.className,{"is-rotating":this.state.isRotating});return Object(r.createElement)("div",{className:e},Object(r.createElement)("div",{className:"rotatable-box-wrap"},Object(r.createElement)(o.Button,{role:"switch","aria-checked":this.state.isRotating,onMouseDown:this.onRotateStart,className:"rotatable-box-wrap__handle"},Object(r.createElement)("span",{className:"screen-reader-text"},Object(c.__)("Rotate Block","amp")))),this.props.children)}}]),t}(r.Component));Ot.defaultProps={angle:0,initialAngle:0,snapGap:0};var jt=Object(a.compose)(o.withSpokenMessages,Object(a.withGlobalEvents)({mousemove:"onRotate",mouseup:"onRotateStop",keyup:"onKeyUp"}))(Ot),kt=n(28),wt=n.n(kt),_t=(n(79),function(e,t){function n(n){e.current&&!e.current.contains(n.target)&&t()}Object(r.useEffect)((function(){return e.current&&e.current.innerHTML&&document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}}))}),Et="amp-story-right-click-menu__popover block-editor-block-settings-menu__popover editor-block-settings-menu__popover",St="bottom left",xt=Object(i.withSelect)((function(e){var t=e("core/block-editor");return{getBlock:t.getBlock,getBlockOrder:t.getBlockOrder,getBlockRootClientId:t.getBlockRootClientId,getSettings:t.getSettings,getCopiedMarkup:e("amp/story").getCopiedMarkup}})),Ct=Object(i.withDispatch)((function(e,t){var n=t.getBlock,r=t.getBlockOrder,o=t.getBlockRootClientId,a=t.getCopiedMarkup,i=t.getSettings,c=e("core/block-editor"),l=c.removeBlock,s=c.insertBlock,u=c.insertBlocks,d=c.updateBlockAttributes,m=e("amp/story").setCopiedMarkup,f=i().__experimentalCanUserUseUnfilteredHTML,b=function(e){var t=n(e),r=Object(H.serialize)(t);m(r),Object(g.e)(r)},h=function(e,t,a,i){var c,l=Object(H.pasteHandler)({HTML:"",plainText:e,mode:"BLOCKS",tagName:null,canUserUseUnfilteredHTML:f}),s=n(t);if((c="amp/amp-story-page"===s.name?s.clientId:o(t))&&l.length){var m=0===r().indexOf(c);u(Object(g.g)(l,c,m),null,c).then((function(e){var t=e.blocks,n=!0,r=!1,o=void 0;try{for(var c,l=t[Symbol.iterator]();!(n=(c=l.next()).done);n=!0){var s=c.value;p.c.includes(s.name)&&d(s.clientId,{positionTop:a,positionLeft:i})}}catch(e){r=!0,o=e}finally{try{n||null==l.return||l.return()}finally{if(r)throw o}}})).catch((function(){}))}};return{removeBlock:l,duplicateBlock:function(e){var t=n(e);if(!p.l.includes(t.name)){var r=o(e),a=Object(H.cloneBlock)(t);s(a,null,r)}},copyBlock:b,cutBlock:function(e){b(e),l(e)},pasteBlock:function(e,t,n){var r=window.navigator;if(r.clipboard&&r.clipboard.readText)r.clipboard.readText().then((function(r){h(r,e,t,n)})).catch((function(){var r=a();h(r,e,t,n)}));else{var o=a();h(o,e,t,n)}}}})),Pt=Object(a.compose)(xt,Ct)((function(e){var t=e.clientIds,n=e.clientX,a=e.clientY,i=e.insidePercentageX,l=e.insidePercentageY,s=e.copyBlock,u=e.cutBlock,d=e.getBlock,m=e.getCopiedMarkup,f=e.removeBlock,b=e.duplicateBlock,h=e.pasteBlock,y=Object(r.useState)(!0),v=wt()(y,2),O=v[0],j=v[1];Object(r.useEffect)((function(){j(!0)}),[t,n,a]);var k=Object(J.castArray)(t)[0],w=d(k),_=function(){j(!1)},E=Object(r.useRef)(null);_t(E,_);var S={top:a,left:n},x=[];return Object(g.z)(k)||(x=[{name:Object(c.__)("Copy Block","amp"),blockAction:s,icon:"admin-page",className:"right-click-copy"},{name:Object(c.__)("Cut Block","amp"),blockAction:u,icon:"clipboard",className:"right-click-cut"}],w&&!p.l.includes(w.name)&&x.push({name:Object(c.__)("Duplicate Block","amp"),blockAction:b,icon:"admin-page",className:"right-click-duplicate"}),x.push({name:Object(c.__)("Remove Block","amp"),blockAction:f,icon:"trash",className:"right-click-remove"})),!m().length&&Object(g.z)(k)?"":(m().length&&x.push({name:Object(c.__)("Paste","amp"),blockAction:h,icon:"pressthis",className:"right-click-paste"}),Object(r.createElement)("div",{ref:E,className:"amp-right-click-menu__container",style:S},O&&Object(r.createElement)(o.Popover,{className:Et,position:St,onClose:_,focusOnMount:"firstElement"},Object(r.createElement)(o.NavigableMenu,{role:"menu"},x.map((function(e){return Object(r.createElement)(o.MenuGroup,{key:"action-".concat(e.name)},Object(r.createElement)(o.MenuItem,{className:B()(e.className,"editor-block-settings-menu__control block-editor-block-settings-menu__control"),onClick:function(){_(),e.blockAction(k,l,i)},icon:e.icon},e.name))}))))))}));n(80);var It=function(e){var t=e.value,n=e.options,a=e.defaultOption,i=e.onChange,c=e.label,l=e.id,s=e.renderToggle,u=e.renderOption,p=e.ariaLabel,d=n.find((function(e){return t&&e.value===t}))||a;return Object(r.createElement)(o.BaseControl,{label:c,id:l},Object(r.createElement)("div",{className:"components-preview-picker__buttons"},Object(r.createElement)(o.Dropdown,{className:"components-preview-picker__dropdown",contentClassName:"components-preview-picker__dropdown-content",position:"bottom",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(r.createElement)(o.Button,{className:"components-preview-picker__selector",isLarge:!0,onClick:n,"aria-expanded":t,"aria-label":p(d),id:l},s(d))},renderContent:function(){return Object(r.createElement)(o.NavigableMenu,null,[a].concat(Qe()(n)).map((function(e){var t=e.value===d.value;return Object(r.createElement)(o.Button,{key:e.value,onClick:function(){return i(e)},role:"menuitemradio","aria-checked":t},t&&Object(r.createElement)(o.Dashicon,{icon:"saved"}),u(e))})))}})))};var At=function(e){var t=e.icon,n=e.hasChildBlocksWithInserterSupport,o=e.onClick,a=e.isDisabled,i=e.title,c=e.className,l=lt()(e,["icon","hasChildBlocksWithInserterSupport","onClick","isDisabled","title","className"]),u=t?{backgroundColor:t.background,color:t.foreground}:{},p=t&&t.shadowColor?{backgroundColor:t.shadowColor}:{};return Object(r.createElement)("li",{className:"editor-block-types-list__list-item block-editor-block-types-list__list-item"},Object(r.createElement)("button",s()({className:B()("editor-block-types-list__item block-editor-block-types-list__item",c,{"editor-block-types-list__item-has-children block-editor-block-types-list__item-has-children":n}),onClick:function(e){e.preventDefault(),o()},disabled:a,"aria-label":i},l),Object(r.createElement)("span",{className:"editor-block-types-list__item-icon block-editor-block-types-list__item-icon",style:u},Object(r.createElement)(z.BlockIcon,{icon:t,showColors:!0}),n&&Object(r.createElement)("span",{className:"editor-block-types-list__item-icon-stack block-editor-block-types-list__item-icon-stack",style:p})),Object(r.createElement)("span",{className:"editor-block-types-list__item-title block-editor-block-types-list__item-title"},i)))};var Bt,Tt,Nt,Dt,Rt,Mt,Ft,Lt,Ht,zt=function(e){var t=e.items,n=e.onSelect,o=e.onHover,a=void 0===o?function(){}:o,i=e.children;return Object(r.createElement)("ul",{role:"list",className:"editor-block-types-list block-editor-block-types-list"},t&&t.map((function(e){return Object(r.createElement)(At,{key:e.id,className:Object(H.getBlockMenuDefaultClassName)(e.id),icon:e.icon,hasChildBlocksWithInserterSupport:e.hasChildBlocksWithInserterSupport,onClick:function(){n(e),a(null)},onFocus:function(){return a(e)},onMouseEnter:function(){return a(e)},onMouseLeave:function(){return a(null)},onBlur:function(){return a(null)},isDisabled:e.isDisabled,title:e.title})})),i)},Ut=function(e){return e.stopPropagation()},qt=function(e,t){var n=Wt(t),r=function(e){return-1!==Wt(e).indexOf(n)},o=Object(H.getCategories)();return e.filter((function(e){var t=Object(J.find)(o,{slug:e.category});return r(e.title)||Object(J.some)(e.keywords,r)||t&&r(t.title)}))},Wt=function(e){return e=(e=(e=(e=Object(J.deburr)(e)).replace(/^\//,"")).toLowerCase()).trim()},Vt=function(e){function t(){var e,n;y()(this,t);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=k()(this,(e=_()(t)).call.apply(e,[this].concat(a))),I()(S()(n),"onChangeSearchInput",(function(e){n.filter(e.target.value)})),I()(S()(n),"onHover",(function(e){n.setState({hoveredItem:e});var t=n.props,r=t.showInsertionPoint,o=t.hideInsertionPoint;e?r():o()})),n.state={childItems:[],filterValue:"",hoveredItem:null,suggestedItems:[],reusableItems:[],itemsPerCategory:{},openPanels:["suggested"]},n.panels={},n.inserterResults=Object(r.createRef)(),n}return C()(t,e),O()(t,[{key:"componentDidMount",value:function(){this.filter()}},{key:"componentDidUpdate",value:function(e){e.items!==this.props.items&&this.filter(this.state.filterValue)}},{key:"bindPanel",value:function(e){var t=this;return function(n){t.panels[e]=n}}},{key:"onTogglePanel",value:function(e){var t=this;return function(){-1!==t.state.openPanels.indexOf(e)?t.setState({openPanels:Object(J.without)(t.state.openPanels,e)}):(t.setState({openPanels:[].concat(Qe()(t.state.openPanels),[e])}),t.props.setTimeout((function(){xe(t.panels[e],t.inserterResults.current,{alignWithTop:!0})})))}}},{key:"filterOpenPanels",value:function(e,t,n,r){if(e===this.state.filterValue)return this.state.openPanels;if(!e)return["suggested"];var o=[];return r.length>0&&o.push("reusable"),n.length>0&&(o=o.concat(Object.keys(t))),o}},{key:"filter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.debouncedSpeak,r=t.items,o=t.rootChildBlocks,a=qt(r,e),i=Object(J.filter)(a,(function(e){var t=e.name;return Object(J.includes)(o,t)})),l=[];if(!e){var s=this.props.maxSuggestedItems||9;l=Object(J.filter)(r,(function(e){return e.utility>0})).slice(0,s)}var u=Object(J.filter)(a,{category:"reusable"}),p=function(e){return Object(J.findIndex)(Object(H.getCategories)(),(function(t){return t.slug===e.category}))},d=Object(J.flow)((function(e){return Object(J.filter)(e,(function(e){return"reusable"!==e.category}))}),(function(e){return Object(J.sortBy)(e,p)}),(function(e){return Object(J.groupBy)(e,"category")}))(a);this.setState({hoveredItem:null,childItems:i,filterValue:e,suggestedItems:l,reusableItems:u,itemsPerCategory:d,openPanels:this.filterOpenPanels(e,d,a,u)});var m=Object.keys(d).reduce((function(e,t){return e+d[t].length}),0),f=Object(c.sprintf)(Object(c._n)("%d result found.","%d results found.",m,"amp"),m);n(f)}},{key:"onKeyDown",value:function(e){Object(J.includes)([V.LEFT,V.DOWN,V.RIGHT,V.UP,V.BACKSPACE,V.ENTER],e.keyCode)&&e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,a=t.onSelect,i=this.state,l=i.hoveredItem,s=i.itemsPerCategory,u=i.openPanels,p=i.reusableItems,d=i.suggestedItems,m=function(e){return-1!==u.indexOf(e)};return Object(r.createElement)("div",{className:"editor-inserter__menu block-editor-inserter__menu amp__block-editor-inserter__menu",onKeyPress:Ut,onKeyDown:this.onKeyDown},Object(r.createElement)("label",{htmlFor:"block-editor-inserter__search-".concat(n),className:"screen-reader-text"},Object(c.__)("Search for an element","amp")),Object(r.createElement)("input",{id:"block-editor-inserter__search-".concat(n),type:"search",placeholder:Object(c.__)("Search for an element","amp"),className:"editor-inserter__search block-editor-inserter__search amp__block-editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),Object(r.createElement)("div",{className:"editor-inserter__results amp__block-editor-inserter__results block-editor-inserter__results",ref:this.inserterResults,tabIndex:"0",role:"region","aria-label":Object(c.__)("Available block types","amp")},Boolean(d.length)&&Object(r.createElement)(o.PanelBody,{title:Object(c._x)("Most Used","blocks","amp"),opened:m("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},Object(r.createElement)(zt,{items:d,onSelect:a,onHover:this.onHover})),Object(J.map)(Object(H.getCategories)(),(function(t){var n=s[t.slug];return n&&n.length?Object(r.createElement)(o.PanelBody,{key:t.slug,title:t.title,icon:t.icon,opened:m(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},Object(r.createElement)(zt,{items:n,onSelect:a,onHover:e.onHover})):null})),Boolean(p.length)&&Object(r.createElement)(o.PanelBody,{className:"editor-inserter__reusable-blocks-panel block-editor-inserter__reusable-blocks-panel",title:Object(c.__)("Reusable","amp"),opened:m("reusable"),onToggle:this.onTogglePanel("reusable"),icon:"controls-repeat",ref:this.bindPanel("reusable")},Object(r.createElement)(zt,{items:p,onSelect:a,onHover:this.onHover}),Object(r.createElement)("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:Object(Ie.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(c.__)("Manage All Reusable Blocks","amp"))),Object(J.isEmpty)(d)&&Object(J.isEmpty)(p)&&Object(J.isEmpty)(s)&&Object(r.createElement)("p",{className:"editor-inserter__no-results block-editor-inserter__no-results"},Object(c.__)("No blocks found.","amp"))),l&&Object(H.isReusableBlock)(l)&&Object(r.createElement)(U,{name:l.name,attributes:l.initialAttributes}))}}]),t}(r.Component),Kt=Object(a.compose)(Object(i.withSelect)((function(e,t){var n=t.clientId,r=t.isAppender,o=t.rootClientId,a=e("core/block-editor"),i=a.getInserterItems,c=a.getBlockName,l=a.getBlockRootClientId,s=a.getBlockSelectionEnd,u=a.canInsertBlockType,d=a.getBlockListSettings,m=e("core/blocks").getChildBlockNames,f=e("amp/story").getCurrentPage,b=o;if(!b&&!n&&!r){var g=s();g&&(b=l(g)||void 0)}b||(b=f());var h=c(b),y=[].concat(Qe()(i()),Qe()(i(b))).filter((function(e){var t=e.name;if(p.d.includes(t))return!0;var n=d(b);return u(t,f())&&n&&n.allowedBlocks.includes(t)}));return{rootChildBlocks:m(h),items:Qe()(new Set(y)),destinationRootClientId:b,currentPage:f()}})),Object(i.withDispatch)((function(e,t,n){var r=n.select;return{showInsertionPoint:function(){},hideInsertionPoint:function(){},onSelect:function(n){var o=e("core/block-editor"),a=o.replaceBlocks,i=o.insertBlock,c=r("core/block-editor").getSelectedBlock,l=t.isAppender,s=n.name,u=n.initialAttributes,d=c(),m=Object(H.createBlock)(s,u);if(!l&&d&&Object(H.isUnmodifiedDefaultBlock)(d))a(d.clientId,m);else{var f=p.d.includes(s)?void 0:t.destinationRootClientId;i(m,function(e){var n=r("core/block-editor"),o=n.getBlockIndex,a=n.getBlockSelectionEnd,i=n.getBlockOrder,c=t.clientId,l=t.destinationRootClientId,s=t.isAppender,u=t.currentPage;if(c)return o(c,l);if(p.d.includes(e))return i().indexOf(u)+1;var d=a();return!s&&d?o(d,l)+1:i(l).length}(s),f)}t.onSelect()}}})),o.withSpokenMessages,a.withInstanceId,a.withSafeTimeout)(Vt),Gt=(n(81),function(e){var t=e.onToggle,n=e.disabled,a=e.isOpen;return Object(r.createElement)(o.IconButton,{icon:"insert",label:Object(c.__)("Add element","amp"),labelPosition:"bottom",onClick:t,className:"editor-inserter__toggle block-editor-inserter__toggle","aria-haspopup":"true","aria-expanded":a,disabled:n})}),$t=function(e){function t(){var e,n;y()(this,t);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=k()(this,(e=_()(t)).call.apply(e,[this].concat(a))),I()(S()(n),"onToggle",(function(e){var t=n.props.onToggle;t&&t(e)})),I()(S()(n),"renderToggle",(function(e){var t=e.onToggle,r=e.isOpen,o=n.props,a=o.disabled,i=o.renderToggle;return(void 0===i?Gt:i)({onToggle:t,isOpen:r,disabled:a})})),I()(S()(n),"renderContent",(function(e){var t=e.onClose,o=n.props,a=o.rootClientId,i=o.clientId,c=o.isAppender;return Object(r.createElement)(Kt,{onSelect:t,rootClientId:a,clientId:i,isAppender:c})})),n}return C()(t,e),O()(t,[{key:"render",value:function(){var e=this.props.position;return Object(r.createElement)(o.Dropdown,{className:"editor-inserter block-editor-inserter",contentClassName:"editor-inserter__popover block-editor-inserter__popover",position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(c.__)("Add element","amp"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),t}(r.Component),Yt=Object(i.withSelect)((function(e){var t=e("amp/story").isReordering,n="visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled;return{isReordering:t(),disabled:!n}})),Qt=Object(a.compose)(Yt,Object(a.ifCondition)((function(e){return!e.isReordering})))($t),Xt={position:"bottom right"},Jt=function(e,t,n){var r,o=wp.media({title:e,button:{text:Object(c.__)("Select","amp")},multiple:!1,library:{type:t}});o.on("select",(function(){r=o.state().get("selection").first().toJSON(),n(r)})),o.open()},Zt=Object(i.withSelect)((function(e){var t=e("amp/story").getCurrentPage,n=e("core/block-editor"),r=n.canInsertBlockType,o=n.getBlockListSettings,a=n.getBlock,i=e("amp/story"),c=i.isReordering,l=i.getSettings,s=t(),u=a(s),p=u&&u.attributes.mediaType?u.attributes.mediaType:"",d=l().allowedVideoMimeTypes;return{isReordering:c(),canInsertBlockType:function(e){var t=o(s);return r(e,s)&&t&&t.allowedBlocks.includes(e)},showInserter:"visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled,mediaType:p,allowedVideoMimeTypes:d}})),en=Object(i.withDispatch)((function(e,t,n){var r=n.select,o=r("amp/story").getCurrentPage,a=r("core/block-editor").getBlockOrder,i=e("core/block-editor").insertBlock;return{insertBlock:function(e){var t=o(),n=a(t).length,r=Object(H.createBlock)(e,{});i(r,n,t)},updateBlock:function(t){var n=o(),r=e("core/block-editor"),a=r.updateBlockAttributes,i=r.selectBlock;n&&(a(n,Object(g.M)(t)),i(n))}}})),tn=Object(a.compose)(Zt,en,Object(a.ifCondition)((function(e){return!e.isReordering})))((function(e){for(var t=e.insertBlock,n=e.updateBlock,a=e.canInsertBlockType,i=e.showInserter,l=e.mediaType,s=e.allowedVideoMimeTypes,u="image"===l?Object(c.__)("Update Background Image","amp"):Object(c.__)("Insert Background Image","amp"),d="video"===l?Object(c.__)("Update Background Video","amp"):Object(c.__)("Insert Background Video","amp"),m=[{title:u,icon:Object(r.createElement)(z.BlockIcon,{icon:"format-image"}),onClick:function(){return Jt(Object(c.__)("Select or Upload Media","amp"),p.m,n)},disabled:!i},{title:d,icon:Object(r.createElement)(z.BlockIcon,{icon:"media-video"}),onClick:function(){return Jt(Object(c.__)("Select or Upload Media","amp"),s,n)},disabled:!i}],f=function(){var e=g[b];if(!a(e))return"continue";var n=Object(H.getBlockType)(e),o={title:Object(c.sprintf)(Object(c.__)("Insert %s","amp"),n.title),onClick:function(){return t(e)},disabled:!i,icon:Object(r.createElement)(z.BlockIcon,{icon:n.icon})};m.unshift(o)},b=0,g=["core/video","core/image"];b<g.length;b++)f();return Object(r.createElement)(o.DropdownMenu,{icon:"admin-media",label:Object(c.__)("Insert Media","amp"),className:"amp-story-media-inserter-dropdown",controls:m,hasArrowIndicator:!0,popoverProps:Xt,toggleProps:{labelPosition:"bottom"}})})),nn=(n(82),function(e){return e*Math.PI/180}),rn=function(e,t,n,r,o){var a=e.clientY-r,i=e.clientX-n,c=function(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))}(i,a),l=Math.atan2(a,i)-nn(t),s=o.toLowerCase().includes("left")||o.toLowerCase().includes("right"),u=o.toLowerCase().includes("top")||o.toLowerCase().includes("bottom"),d=s?c*Math.cos(l):0,m=u?c*Math.sin(l):0;return{deltaW:p.t.includes(o)?-d:d,deltaH:p.s.includes(o)?-m:m}},on=function(e,t,n,r){var o,a,i=-e/2,c=t/2;return"topRight"===r||"bottomLeft"===r?(o=c*-Math.sin(n)+i*Math.cos(n),a=c*Math.cos(n)-i*-Math.sin(n)):(o=c*Math.sin(n)+i*Math.cos(n),a=c*Math.cos(n)-i*Math.sin(n)),{left:o-i,top:a-c}},an=0,cn=0,ln=null,sn=function(e){function t(){var e,n;y()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(n=k()(this,(e=_()(t)).call.apply(e,[this].concat(o)))).state={isResizing:!1},n}return C()(t,e),O()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.angle,a=t.blockName,i=t.ampFitText,c=t.minWidth,l=t.minHeight,u=t.onResizeStart,d=t.onResizeStop,m=t.children,f=lt()(t,["angle","blockName","ampFitText","minWidth","minHeight","onResizeStart","onResizeStop","children"]),b=this.props,h=b.width,y=b.height,v=this.state.isResizing,O="core/image"===a,j="amp/amp-story-text"===a;return Object(r.createElement)(o.ResizableBox,s()({},f,{className:B()("amp-story-resize-container",{"is-resizing":v}),size:{height:y,width:h},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},onResizeStop:function(t,r){var o=rn(t,n,an,cn,r),a=o.deltaW,i=o.deltaH,c=h+a,l=y+i;Lt&&(Lt.style.height="100%"),c=c<Bt?Bt:c,l=l<Tt?Tt:l;var s=parseFloat(ln.style.top),u=parseFloat(ln.style.left),p=Number(s.toFixed(2)),m=Number(u.toFixed(2));e.setState({isResizing:!1}),d({width:parseInt(c),height:parseInt(l),positionTop:p,positionLeft:m})},onResizeStart:function(t,n,r){an=t.clientX,cn=t.clientY,Bt=h,Tt=y,Rt=null,Mt=null,ln=r.closest(".wp-block").parentNode,Nt=ln.style.top,Dt=ln.style.left,O&&(Ft=ln.querySelector("figure .components-resizable-box__container")),Ht=i?null:function(e,t){if(!(p.i.includes(e)||"core/code"===e))return null;switch(e){case"amp/amp-story-text":return t.querySelector(".block-editor-rich-text__editable.editor-rich-text__editable");case"amp/amp-story-post-title":return t.querySelector(".wp-block-amp-amp-story-post-title");case"amp/amp-story-post-author":return t.querySelector(".wp-block-amp-amp-story-post-author");case"amp/amp-story-post-date":return t.querySelector(".wp-block-amp-amp-story-post-date");case"core/code":return t.querySelector(".wp-block-code");default:return null}}(a,ln),Lt=i&&j?ln.querySelector(".with-line-height"):null,e.setState({isResizing:!0}),u()},onResize:function(e,t,r){var o=rn(e,n,an,cn,t),a=o.deltaW,s=o.deltaH;!O||h||y||(h=ln.clientWidth,y=ln.clientHeight);var u=c<=h+a?h+a:c,d=l<=y+s?y+s:l;if(Ht&&(0>a||0>s)){n&&(j?j&&!i&&(Ht.style.width="initial"):(Ht.style.width=u+"px",Ht.style.height=d+"px")),j&&(Ht.style.height="auto");var m=Ht.scrollWidth,f=Ht.scrollHeight;(u<m||d<f)&&(u=Bt,d=Tt),n&&(j?j&&!i&&(Ht.style.width="100%"):(Ht.style.width="initial",Ht.style.height="100%")),j&&(Ht.style.height="")}if(l<d&&(Mt=s),c<u&&(Rt=a),n){var b,v,k=nn(n);j?(b=on(h-2*p.w,y-2*p.w,k,t),v=on(u-2*p.w,d-2*p.w,k,t)):(b=on(h,y,k,t),v=on(u,d,k,t));var w={left:v.left-b.left,top:v.top-b.top},_=function(e,t,n){switch(e){case"topRight":return{left:t.left-n.left,top:t.top-n.top};case"bottomLeft":return{left:t.left+n.left,top:t.top+n.top};case"left":case"topLeft":case"top":return{left:t.left+n.left,top:t.top-n.top};default:return{left:t.left-n.left,top:t.top+n.top}}}(t,function(e,t,n,r,o){var a=Object(g.t)("x",parseFloat(t)),i=Object(g.t)("y",parseFloat(n));switch(e){case"topRight":return{left:a,top:i-o};case"bottomLeft":return{left:a-r,top:i};case"left":case"topLeft":case"top":return{left:a-r,top:i-o};default:return{left:a,top:i}}}(t,Dt,Nt,Rt,Mt),w);ln.style.left=Object(g.s)("x",_.left)+"%",ln.style.top=Object(g.s)("y",_.top)+"%"}else{if(p.t.includes(t)){var E=Object(g.t)("x",parseFloat(Dt));ln.style.left=Object(g.s)("x",E-Rt)+"%"}if(p.s.includes(t)){var S=Object(g.t)("y",parseFloat(Nt));ln.style.top=Object(g.s)("y",S-Mt)+"%"}}r.style.width=u+"px",r.style.height=d+"px",Bt=u,Tt=d,Lt&&(i&&(Lt.style.lineHeight=d+"px"),Lt.style.height=d+"px"),Ft&&O&&(Ft.style.width=u+"px",Ft.style.height=d+"px")}}),m)}}]),t}(r.Component),un=n(13),pn=function(e){function t(){return y()(this,t),k()(this,_()(t).apply(this,arguments))}return C()(t,e),O()(t,[{key:"componentDidMount",value:function(){this.props.isLoading||Object(g.K)(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.attributes,r=t.fontSize,o=t.blockContent,a=n.height,i=n.width,c=n.ampFitText,l=n.ampFontFamily;c&&(e.attributes.ampFitText!==c||e.attributes.ampFontFamily!==l||e.attributes.width!==i||e.attributes.height!==a||e.blockContent!==o)&&!this.props.isLoading&&Object(g.K)(this.props),!(c||Object(J.isEqual)(e.fontSize,r)&&e.attributes.ampFitText===c&&e.attributes.ampFontFamily===l&&e.blockContent===o)&&Object(g.J)(this.props)}},{key:"render",value:function(){var e,t=this.props,n=t.blockContent,o=t.placeholder,a=t.attributes,i=t.setAttributes,c=t.className,l=t.fontSize,s=t.colors,u=t.backgroundColor,p=t.customBackgroundColor,d=t.textColor,m=t.tagName,f=a.align,b=a.opacity,g=a.ampFitText,h=a.autoFontSize,y=l&&l.size&&l.size+"px",v=Object(un.d)(s,u,p,b),O=m;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(z.BlockControls,null,Object(r.createElement)(z.AlignmentToolbar,{value:f,onChange:function(e){return i({align:e})}})),Object(r.createElement)(O,{style:{backgroundColor:v,color:d.color,fontSize:g?h+"px":y,textAlign:f},className:B()(c,(e={"has-text-color":d.color,"has-background":u.color},I()(e,u.class,u.class),I()(e,d.class,d.class),I()(e,l.class,l.class),I()(e,"is-empty",!n),I()(e,"is-amp-fit-text",g),e))},n||o))}}]),t}(r.Component),dn=function(e){var t=e.attribute,n=e.placeholder,o=e.tagName,l=e.isEditable;return Object(a.compose)(Object(i.withSelect)((function(e){var r,o=e("core/editor").getEditedPostAttribute,a=e("core").getAuthors,i=e("core/block-editor").getSettings,l=o(t),s=!1;switch(t){case"date":var u=Object(q.__experimentalGetSettings)().formats.date,p=l||new Date;r=Object(q.dateI18n)(u,p);break;case"author":var d=a().find((function(e){return e.id===l}));r=d?d.name:Object(c.__)("Anonymous","amp"),s=!d;break;default:r=l}var m=i().colors;return{blockContent:r,placeholder:n,colors:m,isLoading:s}})),Object(i.withDispatch)((function(e){var n=e("core/editor").editPost;return{onChange:function(e){return n(I()({},t,e))}}})))((function(e){return Object(r.createElement)(pn,s()({tagName:o,isEditable:l},e))}))},mn=function(e){var t=e.tagName;return function(e){var n=e.attributes,o=n.ampFitText,a=Object(g.n)(n),i=Object(g.v)(n);if(!o)return Object(r.createElement)(z.RichText.Content,{tagName:t,style:i,className:a,value:"{content}"});var c=t;return Object(r.createElement)(c,{style:i,className:a},Object(r.createElement)("amp-fit-text",{layout:"flex-item",className:"amp-text-content"},"{content}"))}},fn=function(e){return Object(r.createElement)("svg",e,Object(r.createElement)("g",{transform:"translate(3 5)"},Object(r.createElement)("path",{d:"M11.2 4h.8a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-.8c0-.11.09-.2.2-.2H10a1 1 0 0 0 1-1V4.2c0-.11.09-.2.2-.2z",opacity:".3"}),Object(r.createElement)("rect",{width:"9",height:"9",rx:"1"})),Object(r.createElement)("path",{d:"M20.808 7.145c1.41 1.74 1.283 4.365-1.165 6.348.44-1.348.575-2.628-1.011-4.586L17 10.229l.517-4.923 4.923.517-1.632 1.322z"}))};fn.defaultProps={width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"};var bn=function(e){return Object(r.createElement)("svg",e,Object(r.createElement)("g",{transform:"translate(7.65 5)"},Object(r.createElement)("path",{d:"M11.2 4h.8a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-.8c0-.11.09-.2.2-.2H10a1 1 0 0 0 1-1V4.2c0-.11.09-.2.2-.2z",opacity:".3"}),Object(r.createElement)("rect",{width:"9",height:"9",rx:"1"})),Object(r.createElement)("path",{d:"M3.632 17.653c-1.41-1.74-1.283-4.365 1.165-6.348-.44 1.348-.575 2.628 1.011 4.586l1.632-1.322-.517 4.923L2 18.975l1.632-1.322z"}))};bn.defaultProps={width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"};var gn=function(e){return Object(r.createElement)("svg",e,Object(r.createElement)("g",{transform:"translate(5.65 5)"},Object(r.createElement)("path",{d:"M11.2 4h.8a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-.8c0-.11.09-.2.2-.2H10a1 1 0 0 0 1-1V4.2c0-.11.09-.2.2-.2z",opacity:".3"}),Object(r.createElement)("rect",{width:"9",height:"9",rx:"1"})))};gn.defaultProps={width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"};var hn=function(e){return Object(r.createElement)("svg",e,Object(r.createElement)("g",{transform:"translate(6 5)"},Object(r.createElement)("path",{d:"M11.2 4h.8a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-.8c0-.11.09-.2.2-.2H10a1 1 0 0 0 1-1V4.2c0-.11.09-.2.2-.2z"}),Object(r.createElement)("rect",{opacity:".3",width:"9",height:"9",rx:"1"})))};hn.defaultProps={width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"};var yn=window,vn=yn.getComputedStyle,On=yn.ampStoriesFonts,jn=Object(o.withFallbackStyles)((function(e,t){var n=t.textColor,r=t.backgroundColor,o=t.fontSize,a=t.customFontSize,i=e.querySelector('[contenteditable="true"]'),c=i?vn(i):null;return{fallbackBackgroundColor:r||!c?void 0:c.backgroundColor,fallbackTextColor:n||!c?void 0:c.color,fallbackFontSize:o||a||!c?void 0:parseInt(c.fontSize)||void 0}})),kn=Object(i.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getSelectedBlockClientId,o=n.getBlockRootClientId,a=n.getBlock,i=n.getBlockOrder,c=n.getBlockIndex,l=e("amp/story"),s=l.getAnimatedBlocks,u=l.isValidAnimationPredecessor,p=r(),d=o(p),m=(s()[d]||[]).find((function(e){return e.id===t.clientId})),f=o(t.clientId),b=i(f),h=c(t.clientId,f);return{currentBlockPosition:b.length-1-h+1,numberOfBlocks:b.length,isFirst:0===h,isLast:Object(g.m)(f)?h===b.length-2:h===b.length-1,parentBlock:a(f),rootClientId:f,animationAfter:m?m.parent:void 0,getAnimatedBlocks:function(){return(s()[d]||[]).filter((function(e){return e.id!==p})).filter((function(e){var t=e.id,n=a(t);return n&&n.attributes.ampAnimationType&&u(d,p,t)})).map((function(e){var t=e.id,n=a(t);return{value:t,label:n.name,block:n,blockType:Object(H.getBlockType)(n.name)}}))}}})),wn=Object(i.withDispatch)((function(e,t,n){var r=t.clientId,o=t.rootClientId,a=t.toggleSelection,i=(0,n.select)("core/block-editor"),c=i.getSelectedBlockClientId,l=i.getBlockRootClientId,s=i.getBlockOrder,u=e("core/block-editor"),p=u.moveBlocksDown,d=u.moveBlocksUp,m=u.moveBlockToPosition,f=u.selectBlock,b=c(),g=l(b),h=e("amp/story"),y=h.addAnimation,v=h.changeAnimationType,O=h.changeAnimationDuration,j=h.changeAnimationDelay;return{onAnimationTypeChange:function(e){v(g,b,e)},onAnimationOrderChange:function(e){y(g,b,e)},onAnimationDurationChange:function(e){O(g,b,e)},onAnimationDelayChange:function(e){j(g,b,e)},startBlockActions:function(){return a(!1)},stopBlockActions:function(){a(!0),f(r)},bringForward:function(){return p(r,o)},sendBackward:function(){return d(r,o)},moveFront:function(){var e=s(o).length-1;m(r,o,o,e)},moveBack:function(){m(r,o,o,0)}}})),_n=Object(a.compose)(Object(z.withColors)("backgroundColor",{textColor:"color"}),Object(z.withFontSizes)("fontSize"),jn,kn,wn),En=Object(a.createHigherOrderComponent)((function(e){return _n((function(t){var n=t.clientId,a=t.rootClientId,i=t.name,l=t.attributes,s=t.isLast,u=t.isFirst,d=t.currentBlockPosition,m=t.numberOfBlocks,f=t.fontSize,h=t.setFontSize,y=t.setAttributes,v=t.backgroundColor,O=t.setBackgroundColor,j=t.textColor,k=t.setTextColor,w=t.fallbackBackgroundColor,_=t.fallbackTextColor,E=t.onAnimationTypeChange,S=t.onAnimationOrderChange,x=t.onAnimationDurationChange,C=t.onAnimationDelayChange,P=t.getAnimatedBlocks,A=t.animationAfter,B=t.startBlockActions,T=t.stopBlockActions,N=t.bringForward,D=t.sendBackward,R=t.moveFront,M=t.moveBack;if(!p.b.includes(i))return Object(r.createElement)(e,t);var F,L=Object(H.getBlockType)(i),U="core/image"===i,q="core/video"===i,W="amp/amp-story-text"===i,V="amp/amp-story-page-attachment"===i,K=p.i.includes(i),G=p.g.includes(i),$=p.h.includes(i),Y=l.ampFontFamily,Q=l.ampFitText,X=l.height,J=l.width,Z=l.opacity,ee=l.type,te=l.ampAnimationType,ne=l.ampAnimationDuration,re=l.ampAnimationDelay,oe=l.rotationAngle,ae=U&&(!l.url||!l.url.length);if("core/table"===i){var ie=l.body.length;l.foot&&l.foot.length&&ie++,l.head&&l.head.length&&ie++,F=45*ie}else F=p.p[i]||p.p.default;var ce=parseInt(String(ne).replace("ms","")),le=parseInt(String(re).replace("ms","")),se=q?"ampShowCaption":"ampShowImageCaption";return Object(r.createElement)(r.Fragment,null,!Object(g.y)(i)&&Object(r.createElement)(e,t),Object(g.y)(i)&&!ae&&$&&Object(r.createElement)(sn,{width:J,height:X,angle:oe,minHeight:F,minWidth:p.q,onResizeStop:function(e){y(e),T()},blockName:i,ampFitText:Q,onResizeStart:function(){B()}},Object(r.createElement)(jt,{blockElementId:"block-".concat(n),initialAngle:oe,className:"amp-story-editor__rotate-container",angle:oe,onRotateStart:function(){B()},onRotateStop:function(e,t){y({rotationAngle:t}),T()},snap:p.j,snapGap:p.k},W&&Object(r.createElement)(e,t),!W&&Object(r.createElement)(dt,{clientId:t.clientId,blockName:i,blockElementId:"block-".concat(t.clientId),isDraggable:!t.isPartOfMultiSelection,isMovable:Object(g.y)(i)},Object(r.createElement)(e,t)))),Object(g.y)(i)&&(!$||ae)&&Object(r.createElement)(jt,{blockElementId:"block-".concat(n),initialAngle:oe,className:"amp-story-editor__rotate-container",angle:oe,onRotateStart:function(){B()},onRotateStop:function(e,t){y({rotationAngle:t}),T()},snap:p.j,snapGap:p.k},Object(r.createElement)(dt,{clientId:t.clientId,blockName:i,blockElementId:"block-".concat(t.clientId),isDraggable:!t.isPartOfMultiSelection,isMovable:Object(g.y)(i)},Object(r.createElement)(e,t))),!(s&&u)&&Object(g.y)(i)&&Object(r.createElement)(z.InspectorControls,null,Object(r.createElement)(o.PanelBody,{className:"amp-story-order-controls",title:Object(c.__)("Block Position","amp")},Object(r.createElement)("div",{className:"amp-story-order-controls-wrap"},Object(r.createElement)(o.IconButton,{className:"amp-story-controls-bring-front",onClick:R,icon:gn({width:24,height:24}),label:Object(c.__)("Send to front","amp"),"aria-describedby":"amp-story-controls-bring-front-description-".concat(n),"aria-disabled":s},Object(c.__)("Front","amp")),Object(r.createElement)(o.IconButton,{className:"amp-story-controls-bring-forward",onClick:N,icon:fn({width:24,height:24}),label:Object(c.__)("Send Forward","amp"),"aria-describedby":"amp-story-controls-bring-forward-description-".concat(n),"aria-disabled":s},Object(c.__)("Forward","amp")),Object(r.createElement)(o.IconButton,{className:"amp-story-controls-send-backwards",onClick:D,icon:bn({width:24,height:24}),label:Object(c.__)("Send Backward","amp"),"aria-describedby":"amp-story-controls-send-backward-description-".concat(n),"aria-disabled":u},Object(c.__)("Backward","amp")),Object(r.createElement)(o.IconButton,{className:"amp-story-controls-send-back",onClick:M,icon:hn({width:24,height:24}),label:Object(c.__)("Send to back","amp"),"aria-describedby":"amp-story-controls-send-back-description-".concat(n),"aria-disabled":u},Object(c.__)("Back","amp"))),Object(r.createElement)("span",{className:"amp-story-controls-description",id:"amp-story-controls-bring-front-description-".concat(n)},Object(g.l)(L&&L.title,d,1,u,s,-1)),Object(r.createElement)("span",{className:"amp-story-controls-description",id:"amp-story-controls-bring-forward-description-".concat(n)},Object(g.l)(L&&L.title,d,d-1,u,s,-1)),Object(r.createElement)("span",{className:"amp-story-controls-description",id:"amp-story-controls-send-backward-description-".concat(n)},Object(g.l)(L&&L.title,d,d+1,u,s,1)),Object(r.createElement)("span",{className:"amp-story-controls-description",id:"amp-story-controls-send-back-description-".concat(n)},Object(g.l)(L&&L.title,d,m,u,s,1)))),K&&Object(r.createElement)(z.InspectorControls,null,Object(r.createElement)(o.PanelBody,{title:Object(c.__)("Text Settings","amp")},Object(r.createElement)(vt,{fonts:On,value:Y,onChange:function(e){e?(Object(g.B)(e.name),y({ampFontFamily:e.name})):y({ampFontFamily:""})}}),Object(r.createElement)(o.ToggleControl,{label:Object(c.__)("Automatically fit text to container","amp"),checked:Q,onChange:function(){y({ampFitText:!Q})}}),!Q&&Object(r.createElement)(z.FontSizePicker,{value:f.size,onChange:h}),W&&Object(r.createElement)(o.SelectControl,{label:Object(c.__)("Select text type","amp"),value:ee,onChange:function(e){return y({type:e})},options:[{value:"auto",label:Object(c.__)("Automatic","amp")},{value:"p",label:Object(c.__)("Paragraph","amp")},{value:"h1",label:Object(c.__)("Heading 1","amp")},{value:"h2",label:Object(c.__)("Heading 2","amp")}]}))),G&&Object(r.createElement)(z.InspectorControls,null,Object(r.createElement)(z.PanelColorSettings,{title:Object(c.__)("Color Settings","amp"),initialOpen:!1,colorSettings:[{value:v.color,onChange:O,label:Object(c.__)("Background Color","amp")},{value:j.color,onChange:k,label:Object(c.__)("Text Color","amp")}]},Object(r.createElement)(z.ContrastChecker,{textColor:j.color,backgroundColor:v.color,fallbackTextColor:_,fallbackBackgroundColor:w,fontSize:f.size}),!V&&Object(r.createElement)(o.RangeControl,{label:Object(c.__)("Opacity","amp"),value:Z,onChange:function(e){return y({opacity:e})},min:5,max:100,step:5}))),Object(g.y)(i)&&Object(r.createElement)(z.InspectorControls,null,Object(r.createElement)(o.PanelBody,{title:Object(c.__)("Animation","amp")},Object(r.createElement)(b,{clientId:n,page:a,animatedBlocks:P,animationType:te,animationDuration:ce,animationDelay:le,animationAfter:A,onAnimationTypeChange:E,onAnimationDurationChange:x,onAnimationDelayChange:C,onAnimationAfterChange:S}))),(U||q)&&Object(r.createElement)(z.InspectorControls,null,Object(r.createElement)(o.PanelBody,{title:Object(c.__)("Story Settings","amp")},Object(r.createElement)(o.ToggleControl,{label:Object(c.__)("Display Caption","amp"),checked:l[se],onChange:function(){t.setAttributes(I()({},se,!l[se])),l[se]||t.setAttributes({caption:""})},help:Object(c.__)("Note: If you turn this off, the current caption text will be removed.","amp")}))))}))}),"withAmpStorySettings"),Sn=Object(a.createHigherOrderComponent)(Object(i.withSelect)((function(e,t){var n,r=e("core/block-editor").getBlockAttributes;return t.block&&t.block.attributes?n=t.block.attributes:r&&(n=r(t.clientId)),{attributes:n}})),"withAttributes"),xn=Object(a.createHigherOrderComponent)(Object(i.withSelect)((function(e,t){return{blockName:(0,e("core/block-editor").getBlockName)(t.clientId)}})),"withBlockName"),Cn=n(35),Pn=window.wp,In=Pn.media.controller.Cropper.extend({doCrop:function(e){var t=e.get("cropDetails"),n=this.imgSelect.getOptions();return Math.abs(t.width-n.minWidth)<10&&(t.width=n.minWidth),Math.abs(t.height-n.minHeight)<10&&(t.height=n.minHeight),t.dst_width=t.width,t.dst_height=t.height,Pn.ajax.post("crop-image",{nonce:e.get("nonces").edit,id:e.get("id"),context:"featured-image",cropDetails:t})}}),An=window.wp,Bn=function(e){Object(i.dispatch)("core/editor").editPost({featured_media:e})},Tn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.width,o=t.height,a=n.width,i=n.height;return function(e){function t(){var e,n;y()(this,t);for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return n=k()(this,(e=_()(t)).call.apply(e,[this].concat(i))),I()(S()(n),"initFeaturedImage",(function(){var e=Object(Cn.c)(Cn.b);n.frame=new e({allowedTypes:n.props.allowedTypes,button:{text:Object(c.__)("Select","amp"),close:!1},states:[new An.media.controller.Library({title:Object(c.__)("Choose image","amp"),library:An.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:r,suggestedHeight:o}),new In({imgSelectOptions:n.calculateImageSelectOptions,control:S()(n)})]}),An.media.frame=n.frame,n.frame.on("select",n.onSelectImage,S()(n)),n.frame.on("cropped",n.onCropped,S()(n)),n.frame.on("skippedcrop",n.onSkippedCrop,S()(n)),n.frame.on("close",(function(){n.initFeaturedImage()}),S()(n))})),"editor-post-featured-image__media-modal"===n.props.modalClass&&n.initFeaturedImage(),n}return C()(t,e),O()(t,[{key:"calculateImageSelectOptions",value:function(e,t){var n=e.get("width"),c=e.get("height"),l=a&&n>=a&&c>=i&&Object(un.c)(n,c)===Object(un.c)(a,i),s=l?parseInt(a):parseInt(r),u=l?parseInt(i):parseInt(o),p=s/u,d=s,m=u;t.set("canSkipCrop",!0),n/c>p?s=(u=c)*p:u=(s=n)/p;var f=(n-s)/2,b=(c-u)/2;return{aspectRatio:s+":"+u,handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:n,imageHeight:c,minWidth:d>s?s:d,minHeight:m>u?u:m,x1:f,y1:b,x2:s+f,y2:u+b}}},{key:"onSelectImage",value:function(){var e=this.frame.state().get("selection").first().toJSON();if(r===e.width&&o===e.height||a&&a===e.width&&i===e.height){var t=e.url,n=e.id,c=e.width,l=e.height,s=this.props.onSelect;Object(un.l)({url:t,id:n,width:c,height:l,onSelect:s,dispatchImage:Bn}),this.frame.close()}else this.frame.setState("cropper")}},{key:"doAllowCrop",value:function(e){return e.width&&e.height&&e.width>=r&&e.height>=o}},{key:"mustBeCropped",value:function(e,t,n,r){return!(e===n&&t===r||n<=e)}},{key:"onCropped",value:function(e){var t=e.url,n=e.id,r=e.width,o=e.height,a=this.props.onSelect;Object(un.l)({url:t,id:n,width:r,height:o,onSelect:a,dispatchImage:Bn})}},{key:"onSkippedCrop",value:function(e){var t=e.get("url"),n=e.get("width"),r=e.get("height"),o=e.id,a=this.props.onSelect;Object(un.l)({url:t,id:o,width:n,height:r,onSelect:a,dispatchImage:Bn})}}]),t}(e)},Nn=Object(a.createHigherOrderComponent)(Object(i.withSelect)((function(e,t){return{hasSelectedInnerBlock:(0,e("core/block-editor").hasSelectedInnerBlock)(t.clientId,!0)}})),"withHasSelectedInnerBlock"),Dn=Object(i.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockOrder;if(""!==(0,n.getBlockRootClientId)(t.clientId))return{pageNumber:void 0};var o=e("amp/story").isReordering;return{pageNumber:r().indexOf(t.clientId)+1,isReordering:o()}})),Rn=Object(a.compose)(Dn,xn),Mn=Object(a.createHigherOrderComponent)((function(e){return Rn((function(t){var n=t.blockName,o=t.pageNumber,a=t.isReordering;return p.d.includes(n)&&o?a?Object(r.createElement)(e,t):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"amp-story-page-number"},
16
  /* translators: %s: Page number */
17
+ Object(c.sprintf)(Object(c.__)("Page %s","amp"),o)),Object(r.createElement)(e,t)):Object(r.createElement)(e,t)}))}),"withPageNumber"),Fn=Object(i.withSelect)((function(e,t){var n=e("amp/story"),o=n.isReordering,a=n.getCopiedMarkup,i=n.getCurrentPage,c=e("core/block-editor"),l=c.getSelectedBlockClientIds,s=c.hasMultiSelection,u=t.name;return{onContextMenu:function(e){var t=l();if(0!==t.length&&("amp/amp-story-page"!==u||a().length)){var n=window.getSelection().toString();if(!s()&&!n.length){var o=document.querySelector(".edit-post-layout");if(!document.getElementById("amp-story-right-click-menu")){var c=document.createElement("div");c.id="amp-story-right-click-menu",o.appendChild(c)}var p=o.getBoundingClientRect(),d=document.querySelector(".edit-post-header"),m=0;d&&(m=d.clientHeight);var f=e.clientX-p.left,b=e.clientY-p.top-m,h=i(),y=0,v=0,O=Object(g.k)(h);if(O){var j=O.getBoundingClientRect(),k=e.clientY-j.top,w=e.clientX-j.left;y=Object(g.s)("y",k),v=Object(g.s)("x",w)}Object(r.render)(Object(r.createElement)(Pt,{clientIds:t,clientX:f,clientY:b,insidePercentageX:v,insidePercentageY:y}),document.getElementById("amp-story-right-click-menu")),e.preventDefault()}}},isReordering:o()}})),Ln=Object(a.createHigherOrderComponent)((function(e){return Fn((function(t){var n=t.name,o=t.onContextMenu,a=t.isReordering;return"amp/amp-story-page"===n||p.b.includes(n)?a?Object(r.createElement)(e,t):Object(r.createElement)("div",{onContextMenu:o},Object(r.createElement)(e,t)):Object(r.createElement)(e,t)}))}),"withRightClickHandler"),Hn=Object(a.createHigherOrderComponent)((function(e){return function(t){var n=t.media,a=Object(un.m)(n,Object(g.q)(),!0);return a?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(o.Notice,{status:"warning",isDismissible:!1},a.map((function(e,t){return Object(r.createElement)("p",{key:"error-".concat(t)},e)}))),Object(r.createElement)(e,t)):Object(r.createElement)(e,t)}}),"withStoryFeaturedImageNotice"),zn=function(e){return Object(i.withSelect)((function(e,t){var n=(0,e("core/editor").getEditedPostAttribute)("featured_media"),r="core/image"===t.name||"amp/amp-story-page"===t.name;if(!n&&r&&t.attributes){var o=e("core/block-editor").getSelectedBlock,a=t.attributes.mediaId||t.attributes.id,c=o();if(a&&c&&c.attributes){var l=c.attributes.mediaId||c.attributes.id;if(l&&l===a){var s=e("core").getMedia,u=Object(i.dispatch)("core/editor").editPost,p=s(a);p&&p.media_details&&Object(un.i)(p.media_details,Object(un.f)())&&Object(un.i)(p.media_details,Object(g.q)())&&u({featured_media:a})}}}}))(e)},Un=function(e){return function(t){return"core/video"===t.name?Object(r.createElement)(Gn,t):Object(r.createElement)(e,t)}},qn=n(33),Wn=n(24),Vn=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)(o.Path,{d:"M4 6.47L5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z"})),Kn=function(e){function t(){var e,n;y()(this,t);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=k()(this,(e=_()(t)).call.apply(e,[this].concat(a))),I()(S()(n),"toggleAttribute",(function(e){return function(t){n.props.setAttributes(I()({},e,t))}})),I()(S()(n),"onSelectURL",(function(e){var t=n.props,r=t.attributes,o=t.setAttributes;e!==r.src&&(o({src:e,id:void 0,poster:void 0}),n.setState({extractingPoster:!0}),Object(g.T)({src:e}).then((function(e){o({poster:Object(g.u)(e)}),n.setState({extractingPoster:!1})})).catch((function(){return n.setState({extractingPoster:!1})}))),n.setState({editing:!1,duration:null,videoSize:null})})),I()(S()(n),"onUploadError",(function(e){var t=n.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)})),I()(S()(n),"onLoadedMetadata",(function(e){var t=Math.round(e.currentTarget.duration);n.setState({duration:t})})),n.state={editing:!n.props.attributes.src,extractingPoster:!1},n.videoPlayer=Object(r.createRef)(),n}return C()(t,e),O()(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,a=t.setAttributes,i=t.allowedVideoMimeTypes,c=n.id,l=n.src,s=void 0===l?"":l;if(!c&&Object(qn.isBlobURL)(s)){var u=Object(qn.getBlobByURL)(s);u&&r({filesList:[u],onFileChange:function(t){var n=wt()(t,1)[0],r=n.id,o=n.url;e.setState({duration:null,videoSize:null}),a({id:r,src:o})},onError:function(t){e.setState({editing:!0}),o.createErrorNotice(t)},allowedTypes:i})}s&&!Object(qn.isBlobURL)(s)&&Object(un.e)(s).then((function(t){e.setState({videoSize:t})}))}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,r=n.attributes,o=n.setAttributes,a=n.videoFeaturedImage,i=n.media,c=r.poster,l=r.src,s=r.id;if(c!==e.attributes.poster&&this.videoPlayer.current&&this.videoPlayer.current.load(),l===e.attributes.src||Object(qn.isBlobURL)(l)||Object(un.e)(l).then((function(e){t.setState({videoSize:e})})),!c){if(i&&i!==e.media&&!r.ampAriaLabel){var u=i.alt_text||i.title&&i.title.raw||"";o({ampAriaLabel:u})}a?o({poster:a.source_url}):!i||i===e.media||i.featured_media||this.state.extractingPoster||(this.setState({extractingPoster:!0}),Object(g.T)({id:s,src:l}).then((function(e){o({poster:Object(g.u)(e)}),t.setState({extractingPoster:!1})})).catch((function(){return t.setState({extractingPoster:!1})})))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,a=t.instanceId,i=t.isSelected,l=t.noticeUI,s=t.attributes,u=t.setAttributes,d=t.allowedVideoMimeTypes,m=s.caption,f=s.loop,b=s.poster,g=s.src,h=s.width,y=s.height,v=s.ampAriaLabel,O=this.state.editing,j=function(){e.setState({editing:!0})};if(O)return Object(r.createElement)(z.MediaPlaceholder,{icon:Object(r.createElement)(z.BlockIcon,{icon:Vn}),className:n,onSelect:function(t){if(!t||!t.url)return u({src:void 0,id:void 0,poster:void 0}),void j();u({src:t.url,id:t.id,poster:void 0}),e.setState({src:t.url,editing:!1,duration:null,videoSize:null})},onSelectURL:this.onSelectURL,accept:d.join(","),allowedTypes:d,value:this.props.attributes,notices:l,onError:this.onUploadError});var k=this.state.duration&&this.state.videoSize?this.state.videoSize/this.state.duration:0,w="video-block__poster-image-".concat(a),_=k?Object(un.j)(k):null;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(z.BlockControls,null,Object(r.createElement)(o.Toolbar,null,Object(r.createElement)(o.IconButton,{className:"components-icon-button components-toolbar__control",label:Object(c.__)("Edit video","amp"),onClick:j,icon:"edit"}))),Object(r.createElement)(z.InspectorControls,null,Object(r.createElement)(o.PanelBody,{title:Object(c.__)("Video Settings","amp")},Object(r.createElement)(o.ToggleControl,{label:Object(c.__)("Loop","amp"),onChange:this.toggleAttribute("loop"),checked:f}),Object(r.createElement)(o.TextControl,{label:Object(c.__)("Assistive Text","amp"),help:Object(c.__)("Used to inform visually impaired users about the video content.","amp"),value:v,onChange:function(e){return u({ampAriaLabel:e})}}),(!this.state.extractingPoster||b)&&Object(r.createElement)(z.MediaUploadCheck,null,Object(r.createElement)(o.BaseControl,{id:w,label:Object(c.__)("Poster Image","amp"),className:"editor-video-poster-control"},!b&&Object(r.createElement)(o.Notice,{status:"error",isDismissible:!1},Object(c.__)("A poster image must be set.","amp")),Object(r.createElement)(z.MediaUpload,{title:Object(c.__)("Select Poster Image","amp"),onSelect:function(e){u({poster:e.url})},allowedTypes:p.r,render:function(e){var t=e.open;return Object(r.createElement)(o.Button,{id:w,className:B()("video-block__poster-image",{"editor-post-featured-image__toggle":!b,"editor-post-featured-image__preview":b}),onClick:t,"aria-label":b?Object(c.__)("Replace Poster Image","amp"):null},b&&Object(r.createElement)(o.ResponsiveWrapper,{naturalWidth:h,naturalHeight:y},Object(r.createElement)("img",{src:b,alt:""})),!b&&Object(c.__)("Set Poster Image","amp"))}}))),_&&Object(r.createElement)(o.Notice,{status:"warning",isDismissible:!1},Object(c.sprintf)(
18
  /* translators: %d: the number of recommended megabytes per second */
19
+ Object(c.__)("A video size of less than %d MB per second is recommended.","amp"),Wn.g)," ",Object(c.sprintf)(
20
  /* translators: %d: the number of actual megabytes per second */
21
+ Object(c.__)("The selected video is %d MB per second.","amp"),Math.round(k/Wn.d))))),Object(r.createElement)("figure",{className:"wp-block-video"},Object(r.createElement)("video",{autoPlay:!0,muted:!0,"aria-label":v,loop:f,controls:!f,poster:b,ref:this.videoPlayer,src:g,onLoadedMetadata:this.onLoadedMetadata}),(!z.RichText.isEmpty(m)||i)&&Object(r.createElement)(z.RichText,{tagName:"figcaption",placeholder:Object(c.__)("Write caption…","amp"),value:m,onChange:function(e){return u({caption:e})},inlineToolbar:!0})))}}]),t}(r.Component),Gn=Object(a.compose)([Object(i.withSelect)((function(e,t){var n,r=t.attributes,o=e("core").getMedia,a=e("amp/story").getSettings,i=r.id,c=r.poster,l=i?o(i):void 0;return l&&l.featured_media&&!c&&(n=o(l.featured_media)),{media:l,videoFeaturedImage:n,allowedVideoMimeTypes:a().allowedVideoMimeTypes}})),o.withNotices,a.withInstanceId])(Kn),$n=Object(a.createHigherOrderComponent)(Object(i.withSelect)((function(e){return{isReordering:(0,e("amp/story").isReordering)()}})),"withIsReordering"),Yn=Object(a.createHigherOrderComponent)(Object(i.withSelect)((function(e){return{selectedBlock:(0,e("core/block-editor").getSelectedBlock)()}})),"withSelectedBlock");function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qn(n,!0).forEach((function(t){I()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jn=Object(a.compose)(Sn,xn,Nn),Zn=function(e){return Jn((function(t){var n,o=t.clientId,a=t.blockName,i=t.hasSelectedInnerBlock,c=t.attributes;if(-1===p.a.indexOf(a))return Object(r.createElement)(e,t);if(i&&"amp/amp-story-page"===a)return n=Xn({},t.wrapperProps,{"data-amp-selected":"parent"}),Object(r.createElement)(e,s()({},t,{wrapperProps:n}));var l="core/image"===a&&!c.ampShowImageCaption||"core/video"===a&&!c.ampShowCaption;if(n=Xn({},t.wrapperProps,{"data-amp-caption":l?"noCaption":void 0,"data-font-family":c.ampFontFamily||void 0}),p.b.includes(a)){var u={transform:"scale(var(--preview-scale)) translateX(var(--preview-translateX)) translateY(var(--preview-translateY)) rotate(".concat(c.rotationAngle||0,"deg)")};"amp/amp-story-cta"===a&&(u.transform="scale(var(--preview-scale))"),n=Xn({},n,{style:Xn({},n.style,{},u)});var d={top:"".concat(c.positionTop,"%"),left:"".concat(c.positionLeft,"%")};return Object(r.createElement)("div",{className:"amp-page-child-block","data-block":o,"data-type":a,style:d},Object(r.createElement)(e,s()({},t,{wrapperProps:n,enableAnimation:!1})))}return Object(r.createElement)(e,s()({},t,{wrapperProps:n,enableAnimation:!1}))}))};function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(n,!0).forEach((function(t){I()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nr=function(e){return Object(i.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlockRootClientId,o=e("amp/story"),a=o.getCurrentPage,i=o.isPlayingAnimation,c=a()===n;return{isActivePage:c,isTopLevelBlock:""===r(n),isPlayingAnimation:c&&i()}}))((function(t){var n=t.isTopLevelBlock,o=t.isActivePage,a=t.isPlayingAnimation;if(!n)return Object(r.createElement)(e,t);var c=tr({},t,{className:tr({},t.className,{"amp-page-active":n&&o,"amp-page-inactive":n&&!o,"amp-page-is-animating":a}),isLocked:!o}),l=Object(i.dispatch)("amp/story").setCurrentPage,u=Object(i.dispatch)("core/block-editor").selectBlock;return o?Object(r.createElement)(e,c):Object(r.createElement)(e,s()({},c,{onSelect:function(){l(t.clientId),u(t.clientId)}}))}))},rr=Object(a.compose)(xn,Nn,Yn,$n),or=function(){return rr((function(e){var t=e.blockName,n=e.hasSelectedInnerBlock,o=e.isReordering,a=e.selectedBlock;return o?null:"amp/amp-story-page"===t&&n&&a?Object(r.createElement)($e,{srcClientId:a.clientId,srcBlockName:a.name}):null}))},ar=Object(a.compose)(Object(i.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockRootClientId,o=n.getBlock,a=n.getBlockOrder,i=n.getBlocksByClientId;if("amp/amp-story-cta"!==t.name)return{};var c=o(r(t.clientId));if(!c)return{};var l=0===a().indexOf(c.clientId),s=i(a(c.clientId)).find((function(e){return e.name===t.name})),u=s&&s.clientId!==t.clientId;return{isInvalid:l||u,originalBlockClientId:u&&s.clientId}})),Object(i.withDispatch)((function(e,t){var n=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(n)}}}))),ir=Object(a.createHigherOrderComponent)((function(e){return ar((function(t){var n=t.isInvalid,a=t.originalBlockClientId,i=t.selectFirst,l=lt()(t,["isInvalid","originalBlockClientId","selectFirst"]);if(!n||"amp/amp-story-cta"!==l.name)return Object(r.createElement)(e,l);var s=Object(H.getBlockType)(l.name),u=[Object(r.createElement)(o.Button,{key:"remove",isLarge:!0,onClick:function(){return l.onReplace([])}},Object(c.__)("Remove","amp"))];return a&&u.unshift(Object(r.createElement)(o.Button,{key:"find-original",isLarge:!0,onClick:i},Object(c.__)("Find original","amp"))),Object(r.createElement)(z.Warning,{actions:u},Object(r.createElement)("strong",null,s.title,": "),a?Object(c.__)("This block can only be used once per page.","amp"):Object(c.__)("This block can not be used on the first page.","amp"))}))}),"withCallToActionValidation");n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return L})),n.d(t,"d",(function(){return U})),n.d(t,"e",(function(){return W})),n.d(t,"g",(function(){return K})),n.d(t,"h",(function(){return X})),n.d(t,"m",(function(){return Ne})),n.d(t,"o",(function(){return He})),n.d(t,"v",(function(){return Ue})),n.d(t,"s",(function(){return Ve})),n.d(t,"t",(function(){return $e})),n.d(t,"u",(function(){return dt})),n.d(t,"l",(function(){return ft})),n.d(t,"b",(function(){return yt})),n.d(t,"i",(function(){return vt})),n.d(t,"r",(function(){return jt})),n.d(t,"q",(function(){return Pt})),n.d(t,"n",(function(){return It})),n.d(t,"j",(function(){return Qt})),n.d(t,"k",(function(){return tn})),n.d(t,"p",(function(){return sn})),n.d(t,"G",(function(){return dn})),n.d(t,"H",(function(){return mn})),n.d(t,"x",(function(){return En})),n.d(t,"y",(function(){return Sn})),n.d(t,"z",(function(){return xn})),n.d(t,"B",(function(){return Tn})),n.d(t,"E",(function(){return Nn})),n.d(t,"I",(function(){return Mn})),n.d(t,"J",(function(){return Ln})),n.d(t,"M",(function(){return Hn})),n.d(t,"D",(function(){return zn})),n.d(t,"C",(function(){return Un})),n.d(t,"f",(function(){return Gn})),n.d(t,"F",(function(){return $n})),n.d(t,"K",(function(){return Yn})),n.d(t,"N",(function(){return Zn})),n.d(t,"w",(function(){return nr})),n.d(t,"L",(function(){return or})),n.d(t,"A",(function(){return ir}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4),o=n.n(r);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var i=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{deprecated:"migrated"})}},function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"g",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return s}));var r=6,o=72,a=1200,i=1e6,c=1,l="select-file-type-error",s="select-file-size-error"},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=this.React}()},function(e,t,n){var r=n(41),o=n(56),a=n(42);e.exports=function(e,t){return r(e)||o(e,t)||a()}},function(e,t){!function(){e.exports=this.wp.richText}()},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t){!function(){e.exports=this.wp.editPost}()},function(e,t,n){var r=n(72);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t){!function(){e.exports=this.wp.blob}()},function(e,t){function n(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function c(e){n(i,o,a,c,l,"next",e)}function l(e){n(i,o,a,c,l,"throw",e)}c(void 0)}))}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return g}));var r=n(4),o=n.n(r),a=n(10),i=n(1),c=n(13);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var s,u=window.wp,p=u.media.View.extend({className:"notice notice-warning notice-alt inline",template:(s=Object(i.sprintf)(
22
  /* translators: 1: image width in pixels. 2: image height in pixels. 3: required minimum width in pixels. 4: required minimum height in pixels. */
23
+ Object(i.__)("The selected image is too small (%1$s by %2$s pixels). It should have a size of at least %3$s by %4$s pixels.","amp"),"{{width}}","{{height}}","{{minWidth}}","{{minHeight}}"),Object(c.g)(s))}),d=u.media.View.extend({className:"notice notice-warning notice-alt inline",template:function(){var e=Object(i.sprintf)(
24
  /* translators: 1: the selected file type. */
25
+ Object(i.__)("The selected file mime type, %1$s, is not allowed.","amp"),"{{mimeType}}");return Object(c.g)(e)}()}),m=u.media.View.extend({className:"notice notice-warning notice-alt inline",template:function(){var e=Object(i.sprintf)(
26
  /* translators: 1: the recommended max MB per second for videos. 2: the actual MB per second of the video. */
27
+ Object(i.__)("A video size of less than %1$s MB per second is recommended. The selected video is %2$s MB per second.","amp"),"{{maxVideoMegabytesPerSecond}}","{{actualVideoMegabytesPerSecond}}");return Object(c.g)(e)}()}),f=u.media.view.Toolbar.Select.extend({refresh:function(){u.media.view.Toolbar.Select.prototype.refresh.call(this);var e=this.controller.state(),t=e.get("selection").models[0],n=e.collection.get("library").get("suggestedWidth"),r=e.collection.get("library").get("suggestedHeight");!t||"image"!==t.get("type")||!t.get("width")||t.get("width")>=n&&t.get("height")>=r?this.secondary.unset("select-error"):this.secondary.set("select-error",new p({minWidth:n,minHeight:r,width:t.get("width"),height:t.get("height")})),c.b.call(this,t,d)}}),b=u.media.view.Toolbar.Select.extend({refresh:function(){u.media.view.Toolbar.Select.prototype.refresh.call(this);var e=this.controller.state().get("selection").models[0];c.b.call(this,e,d),c.a.call(this,e,m);var t=this.$el.parents(".media-frame");t&&t.toggleClass("has-two-notices",c.k.call(this))}}),g=function(e){return u.media.view.MediaFrame.Select.extend({createSelectToolbar:function(t,n){(n=n||this.options.button||{}).controller=this,n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(n,!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{allowedTypes:Object(a.get)(this,["options","allowedTypes"],null)}),t.view=new e(n)}})}},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t,n){"use strict";var r=n(0),o=(n(9),n(2)),a=n(31),i=n(5),c=n(1),l=n(13),s=Object(i.withSelect)((function(e){var t=e("core/editor").getCurrentPost(),n=e("core/editor").getEditedPostAttribute("featured_media"),r=t.featured_media||n;return{featuredMedia:r?e("core").getMedia(r):null}}))((function(e){var t=e.featuredMedia,n=e.dimensions,i=e.required,s=Object(l.m)(t,n,i);return s?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(a.PluginPrePublishPanel,{title:Object(c.__)("Featured Image","amp"),initialOpen:"true"},Object(r.createElement)(o.Notice,{status:i?"warning":"notice",isDismissible:!1},s.map((function(e,t){return Object(r.createElement)("p",{key:"error-".concat(t)},e)}))))):null})),u=n(8),p=(Object(u.createHigherOrderComponent)((function(e){return function(t){var n=t.media,a=Object(l.m)(n,Object(l.f)(),!1);return a?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(o.Notice,{status:"notice",isDismissible:!1},a.map((function(e,t){return Object(r.createElement)("p",{key:"error-".concat(t)},e)}))),Object(r.createElement)(e,t)):Object(r.createElement)(e,t)}}),"withFeaturedImageNotice"),n(14)),d=n.n(p),m=n(15),f=n.n(m),b=n(16),g=n.n(b),h=n(12),y=n.n(h),v=n(17),O=n.n(v),j=n(4),k=n.n(j),w=n(10),_=n(35),E=window.wp,S=function(e){return function(e){function t(){var e,n;d()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=f()(this,(e=g()(t)).call.apply(e,[this].concat(o))),k()(y()(n),"initFileTypeMedia",(function(){var e=Object(_.c)(_.a),t=n.onSelect,r=Object(w.isEqual)(["video"],n.props.allowedTypes)?"video/mp4":n.props.allowedTypes;n.frame=new e({allowedTypes:n.props.allowedTypes,button:{text:Object(c.__)("Select","amp"),close:!1},states:[new E.media.controller.Library({title:Object(c.__)("Select or Upload Media","amp"),library:E.media.query({type:r}),multiple:!1,date:!1,priority:20})]}),E.media.frame=n.frame,n.frame.on("close",(function(){n.initFileTypeMedia()}),y()(n)),n.frame.on("select",(function(){t&&t(),n.frame.close()}),y()(n))})),("story-background-media"===n.props.id||Object(w.isEqual)(["video/mp4"],n.props.allowedTypes))&&n.initFileTypeMedia(),n}return O()(t,e),t}(e)};n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return S}))},function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"getAnimatedBlocks",(function(){return p})),n.d(r,"getAnimatedBlocksPerPage",(function(){return d})),n.d(r,"getAnimationEntry",(function(){return m})),n.d(r,"getAnimationSuccessors",(function(){return f})),n.d(r,"isPlayingAnimation",(function(){return b})),n.d(r,"isValidAnimationPredecessor",(function(){return g})),n.d(r,"getCurrentPage",(function(){return h})),n.d(r,"getBlockOrder",(function(){return y})),n.d(r,"getBlockIndex",(function(){return v})),n.d(r,"isReordering",(function(){return O})),n.d(r,"getCopiedMarkup",(function(){return j})),n.d(r,"getSettings",(function(){return k}));var o={};n.r(o),n.d(o,"addAnimation",(function(){return S})),n.d(o,"changeAnimationType",(function(){return x})),n.d(o,"changeAnimationDuration",(function(){return C})),n.d(o,"changeAnimationDelay",(function(){return P})),n.d(o,"playAnimation",(function(){return I})),n.d(o,"finishAnimation",(function(){return A})),n.d(o,"stopAnimation",(function(){return B})),n.d(o,"setCurrentPage",(function(){return T})),n.d(o,"startReordering",(function(){return N})),n.d(o,"movePageToPosition",(function(){return D})),n.d(o,"saveOrder",(function(){return R})),n.d(o,"resetOrder",(function(){return M})),n.d(o,"setCopiedMarkup",(function(){return F})),n.d(o,"clearCopiedMarkup",(function(){return L}));var a=n(4),i=n.n(a),c=n(5),l=n(20),s=n.n(l),u=Object.freeze({stopped:1,prepared:2,playing:3,finished:4});function p(e){return e.animations&&e.animations.animationOrder?e.animations.animationOrder:{}}function d(e,t){return p(e)&&p(e)[t]?e.animations.animationOrder[t]:[]}function m(e,t,n){return d(e,t).find((function(e){return e.id===n}))}function f(e,t,n){return d(e,t).filter((function(e){return e.parent===n}))}function b(e,t,n){if(t&&n){var r=m(e,t,n);return!(!r||!r.status)&&r.status!==u.stopped}if(t)return Boolean(d(e,t).find((function(e){var t=e.status;return t&&t!==u.stopped})));for(var o=0,a=Object.keys(p(e));o<a.length;o++){if(b(e,a[o]))return!0}return!1}function g(e,t,n,r){if(e.animations=e.animations||{},e.animations.animationOrder=e.animations.animationOrder||{},void 0===r)return!0;var o=e.animations.animationOrder[t]||[],a=function(e){return o.find((function(t){return t.id===e}))};if(!a(r))return!1;return!function(e,t){for(var n=t;void 0!==n;){if(n===e)return!0;var r=a(n);n=r?r.parent:void 0}return!1}(n,r)}function h(e){return e.currentPage}function y(e){return e.blocks.order||[]}function v(e,t){return e.blocks.order?e.blocks.order.indexOf(t):null}function O(e){return e.blocks.isReordering||!1}function j(e){return e.copiedMarkup||""}function k(e){return e.editorSettings||window.ampStoriesEditorSettings||{}}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(n,!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=Object(c.combineReducers)({animations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ANIMATION":return function(e,t){var n=_({},e.animationOrder),r=t.page,o=t.item,a=t.predecessor,c=n[r]||[],l=function(e){return c.findIndex((function(t){return t.id===e}))},s=g({animations:e},r,o,a)?a:void 0;return-1!==l(o)?c[l(o)].parent=s:c.push({id:o,parent:s}),_({},e,{animationOrder:_({},n,i()({},r,c))})}(e,t);case"CHANGE_ANIMATION_TYPE":return function(e,t){var n=_({},e.animationOrder),r=t.page,o=t.item,a=t.animationType,c=n[r]||[],l=function(e){return c.findIndex((function(t){return t.id===e}))};if(-1!==l(o)){if(c[l(o)].animationType=a,!a){var s=c[l(o)].parent,u=c.filter((function(e){return e.parent===o}));for(var p in u)-1!==l(p)&&(c[l(p)].parent=s.parent)}}else c.push({id:o,animationType:a});return _({},e,{animationOrder:_({},n,i()({},r,c))})}(e,t);case"CHANGE_ANIMATION_DURATION":return function(e,t){var n=_({},e.animationOrder),r=t.page,o=t.item,a=t.duration,c=n[r]||[],l=function(e){return c.findIndex((function(t){return t.id===e}))};return-1!==l(o)&&(c[l(o)].duration=a),_({},e,{animationOrder:_({},n,i()({},r,c))})}(e,t);case"CHANGE_ANIMATION_DELAY":return function(e,t){var n=_({},e.animationOrder),r=t.page,o=t.item,a=t.delay,c=n[r]||[],l=function(e){return c.findIndex((function(t){return t.id===e}))};return-1!==l(o)&&(c[l(o)].delay=a),_({},e,{animationOrder:_({},n,i()({},r,c))})}(e,t);case"PLAY_ANIMATION":return function(e,t){var n=_({},e.animationOrder),r=t.page,o=t.item,a=n[r]||[],c=function(e){return a.findIndex((function(t){return t.id===e}))};return o?-1!==c(o)&&(a[c(o)].status=u.playing):a.forEach((function(e,t){a[t]=_({},e,{status:void 0===e.parent?u.playing:u.prepared})})),_({},e,{animationOrder:_({},n,i()({},r,a))})}(e,t);case"FINISH_ANIMATION":return function(e,t){var n=_({},e.animationOrder),r=t.page,o=t.item,a=n[r]||[],c=function(e){return a.findIndex((function(t){return t.id===e}))};return-1!==c(o)&&(a[c(o)].status=u.finished),_({},e,{animationOrder:_({},n,i()({},r,a))})}(e,t);case"STOP_ANIMATION":return function(e,t){var n=_({},e.animationOrder),r=t.page,o=t.item,a=n[r]||[],c=function(e){return a.findIndex((function(t){return t.id===e}))};return o?-1!==c(o)&&(a[c(o)].status=u.stopped):a.forEach((function(e,t){a[t]=_({},e,{status:u.stopped})})),_({},e,{animationOrder:_({},n,i()({},r,a))})}(e,t);default:return e}},currentPage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0,n=t.page;switch(t.type){case"SET_CURRENT_PAGE":return n;default:return e}},blocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.order;switch(t.type){case"START_REORDERING":return _({},e,{order:n,isReordering:!0});case"STOP_REORDERING":return _({},e,{isReordering:!1});case"MOVE_PAGE":var r=t.page,o=t.index,a=e.order.indexOf(r),i=s()(e.order);return i.splice.apply(i,[o,0].concat(s()(i.splice(a,1)))),_({},e,{order:i});case"RESET_ORDER":return _({},e,{order:n,isReordering:!1});default:return e}},copiedMarkup:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_COPIED_MARKUP":var n=t.markup;return"string"==typeof n?n:e;case"CLEAR_COPIED_MARKUP":return""===e?e:"";default:return e}}});function S(e,t,n){return{type:"ADD_ANIMATION",page:e,item:t,predecessor:n}}function x(e,t,n){return{type:"CHANGE_ANIMATION_TYPE",page:e,item:t,animationType:n}}function C(e,t,n){return{type:"CHANGE_ANIMATION_DURATION",page:e,item:t,duration:n}}function P(e,t,n){return{type:"CHANGE_ANIMATION_DELAY",page:e,item:t,delay:n}}function I(e,t){return{type:"PLAY_ANIMATION",page:e,item:t}}function A(e,t){return{type:"FINISH_ANIMATION",page:e,item:t}}function B(e,t){return{type:"STOP_ANIMATION",page:e,item:t}}function T(e){return{type:"SET_CURRENT_PAGE",page:e}}function N(e){return{type:"START_REORDERING",order:e}}function D(e,t){return{type:"MOVE_PAGE",page:e,index:t}}function R(){return{type:"STOP_REORDERING"}}function M(e){return{type:"RESET_ORDER",order:e}}function F(e){return{type:"SET_COPIED_MARKUP",markup:e}}function L(){return{type:"CLEAR_COPIED_MARKUP"}}var H=n(50),z=n.n(H),U=n(51),q=n.n(U),W=n(10),V=n(3),K={PLAY_ANIMATION:function(e,t){var n=t.getState,r=t.dispatch,o=Object(c.select)("core/block-editor").getBlock,a=n(),i=e.page,l=e.item;if(l){var s=m(a,i,l),u=s.id,p=s.animationType,b=o(u);Object(V.P)(b,p)}else d(a,i).forEach((function(e){var t=e.id,n=e.animationType,r=o(t);Object(V.P)(r,n)}));(l?[m(a,i,l)]:f(a,i,void 0)).forEach((function(e){var t=e.id,n=e.animationType,a=e.duration,c=e.delay,l=o(t);Object(V.S)(l,n,a?parseInt(a):0,c?parseInt(c):0,(function(){return r(A(i,t))}))}))},STOP_ANIMATION:function(e,t){var n=t.getState,r=Object(c.select)("core/block-editor").getBlock,o=n(),a=e.page,i=e.item;(i?[m(o,a,i)]:d(o,a)).forEach((function(e){var t=e.id,n=e.animationType,o=r(t);o&&n&&Object(V.O)(o,n)}))},FINISH_ANIMATION:function(e,t){var n=t.getState,r=t.dispatch,o=n(),a=e.page,i=e.item;(f(o,a,i).filter((function(e){var t=e.status;return t&&t===u.prepared})).forEach((function(e){r(I(a,e.id))})),d(o,a).find((function(e){var t=e.status;return t&&(t===u.prepared||t===u.playing)})))||d(o,a).forEach((function(e){var t=e.id;r(B(a,t))}))},SET_CURRENT_PAGE:function(e,t){var n=t.getState,r=t.dispatch,o=n();Object.keys(p(o)).forEach((function(e){r(B(e))}))}};var G=function(e){var t,n=[z()(K),q.a],r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}};return t=n.map((function(e){return e(o)})),r=W.flowRight.apply(void 0,s()(t))(e.dispatch),e.dispatch=r,e};function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Y=Object(c.registerStore)("amp/story",{reducer:E,selectors:r,actions:o,initialState:{animations:{animationOrder:{}},editorSettings:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(n,!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},window.ampStoriesEditorSettings),blocks:{order:[],isReordering:!1},copiedMarkup:""}});G(Y);t.a=Y},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){!function(){e.exports=this.wp.domReady}()},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t,n){var r=n(41),o=n(43),a=n(42);e.exports=function(e){return r(e)||o(e)||a()}},function(e,t,n){var r=n(64),o=n(65);e.exports=function(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var c=0;c<16;++c)t[a+c]=i[c];return t||o(i)}},function(e,t,n){e.exports=function(e,t){var n,r,o,a=0;function i(){var t,i,c=r,l=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(i=0;i<l;i++)if(c.args[i]!==arguments[i]){c=c.next;continue e}return c!==r&&(c===o&&(o=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=r,c.prev=null,r.prev=c,r=c),c.val}c=c.next}for(t=new Array(l),i=0;i<l;i++)t[i]=arguments[i];return c={args:t,val:e.apply(null,t)},r?(r.prev=c,c.next=r):o=c,a===n?(o=o.prev).next=null:a++,r=c,c.val}return t&&t.maxSize&&(n=t.maxSize),i.clear=function(){r=null,o=null,a=0},i}},function(e,t){!function(){e.exports=this.wp.wordcount}()},function(e,t,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)e(t,n[r]);else for(r in n)t[r]=(t[r]||[]).concat(n[r])}(n,e),(t=function(e){return function(t){return function(r){var o,a,i=n[r.type],c=t(r);if(i)for(o=0;o<i.length;o++)(a=i[o](r,e))&&e.dispatch(a);return c}}}).effects=n,t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.dispatch;return function(e){return function(n){return Array.isArray(n)?n.filter(Boolean).map(t):e(n)}}}},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t,n){e.exports=n(75)},function(e,t){!function(){e.exports=this.wp.dom}()},function(e,t,n){"use strict";n.r(t);var r=n(28),o=n.n(r),a=n(30),i=n.n(a),c=n(34),l=n.n(c),s=n(10),u=n(25),p=n(1),d=n(44),m=n.n(d),f=n(5),b=n(45),g=n(29),h=n(11),y=(n(57),n(39)),v=n(22),O=n(3),j=n(6),k=n(40),w=Object(f.select)("core/block-editor"),_=w.getSelectedBlock,E=w.getBlocksByClientId,S=w.getClientIdsWithDescendants,x=w.getBlockRootClientId,C=w.getBlockOrder,P=w.getBlock,I=w.getBlocks,A=w.getBlockAttributes,B=Object(f.dispatch)("core/block-editor"),T=B.moveBlockToPosition,N=B.updateBlockAttributes,D=Object(f.select)("core/edit-post"),R=D.getEditorMode,M=D.isFeatureActive,F=Object(f.dispatch)("core/edit-post").toggleFeature,L=Object(f.select)("amp/story"),H=L.isReordering,z=L.getBlockOrder,U=L.getCurrentPage,q=L.getAnimatedBlocks,W=Object(f.dispatch)("amp/story").setCurrentPage;m()((function(){Object(h.setDefaultBlockName)("amp/amp-story-page");var e=Object(h.getBlockTypes)().filter((function(e){var t=e.name;return!j.a.includes(t)})),t=!0,n=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;Object(h.unregisterBlockType)(i.name)}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}var c=E(S()),l=c.find((function(e){return"amp/amp-story-page"===e.name}));W(l?l.clientId:void 0);var s=!0,u=!1,d=void 0;try{for(var m,f=c[Symbol.iterator]();!(s=(m=f.next()).done);s=!0){var b=m.value;b.attributes.ampFontFamily&&Object(O.B)(b.attributes.ampFontFamily),Object(O.D)(b)}}catch(e){u=!0,d=e}finally{try{s||null==f.return||f.return()}finally{if(u)throw d}}M("fixedToolbar")||F("fixedToolbar"),Object(O.N)();for(var g=0,y=["amp/amp-story-text","amp/amp-story-post-author","amp/amp-story-post-date","amp/amp-story-post-title"];g<y.length;g++){var v=y[g];Object(h.registerBlockStyle)(v,{name:"rounded",label:Object(p.__)("Rounded","amp")})}Object(h.registerBlockStyle)("amp/amp-story-text",{name:"half-rounded",label:Object(p.__)("Half Rounded","amp")}),Object(h.registerBlockStyle)("core/image",{name:"rounded",label:Object(p.__)("Rounded","amp")}),Object(h.registerBlockStyle)("core/quote",{name:"white",label:Object(p.__)("White","amp")}),Object(h.unregisterBlockStyle)("core/quote","large")}));var V,K=C(),G=S(),$=R();Object(f.subscribe)(l()(i.a.mark((function e(){var t,n,r,o,a,c,l,s,u,p,d,m,f;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(Object(O.C)(),t=Object(h.getDefaultBlockName)(),(n=_())?"amp/amp-story-page"===n.name&&"amp/amp-story-page"!==t?Object(h.setDefaultBlockName)("amp/amp-story-page"):"amp/amp-story-page"!==n.name&&"amp/amp-story-text"!==t&&Object(h.setDefaultBlockName)("amp/amp-story-text"):"amp/amp-story-page"!==t&&Object(h.setDefaultBlockName)("amp/amp-story-page"),V!==n&&(r=document.querySelector(".edit-post-layout"))&&r.setAttribute("data-block-name",n?n.name:""),V=n,o=C(),a=o.find((function(e){return!K.includes(e)})),K.filter((function(e){return!o.includes(e)})).includes(U())&&(c=Math.max(0,K.indexOf(U())-1),W((K=o)[c])),K=o,a&&W(a),l=!0,s=!1,u=void 0,e.prev=15,p=G[Symbol.iterator]();!(l=(d=p.next()).done);l=!0)m=d.value,Object(O.F)(m),Object(O.E)(m),Object(O.I)(m),Object(O.H)(m),Object(O.G)(m);e.next=23;break;case 19:e.prev=19,e.t0=e.catch(15),s=!0,u=e.t0;case 23:e.prev=23,e.prev=24,l||null==p.return||p.return();case 26:if(e.prev=26,!s){e.next=29;break}throw u;case 29:return e.finish(26);case 30:return e.finish(23);case 31:if(G=S(),"visual"!==(f=R())||f===$){e.next=40;break}case 34:if(document.querySelector(".editor-block-list__layout")){e.next=39;break}return e.next=37,new Promise((function(e){return setTimeout(e,200)}));case 37:e.next=34;break;case 39:Object(O.N)();case 40:$=f;case 41:case"end":return e.stop()}}),e,null,[[15,19,23,31],[24,,26,30]])})))),k.a.subscribe((function(){var e=C(),t=z();if(!H()&&t.length>0&&e!==t){var n=!0,r=!1,a=void 0;try{for(var i,c=t.entries()[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var l=o()(i.value,2),u=l[0],p=l[1];T(p,"","",u)}}catch(e){r=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw a}}}var d=q(),m=function(e){if(!d.hasOwnProperty(e)||!P(e))return"continue";var t=A(e),n=d[e].filter((function(t){var n=t.id;return e===x(n)})),r=Object(O.w)(n),o=Math.ceil(r/1e3);"time"===t.autoAdvanceAfter?o>t.autoAdvanceAfterDuration&&N(e,{autoAdvanceAfterDuration:o}):N(e,{autoAdvanceAfterDuration:o});var a=!0,i=!1,c=void 0;try{for(var l,s=n[Symbol.iterator]();!(a=(l=s.next()).done);a=!0){var u=l.value,p=u.id,m=u.parent,f=u.animationType,b=u.duration,g=u.delay;Object(O.A)(m);var h=m?P(m):void 0;N(p,{ampAnimationAfter:h?h.attributes.anchor:void 0,ampAnimationType:f,ampAnimationDuration:b?"".concat(b,"ms"):void 0,ampAnimationDelay:g?"".concat(g,"ms"):void 0})}}catch(e){i=!0,c=e}finally{try{a||null==s.return||s.return()}finally{if(i)throw c}}};for(var p in d)m(p);var f,b=I(),g=!0,h=!1,y=void 0;try{for(var v,j=b[Symbol.iterator]();!(g=(v=j.next()).done);g=!0){var k=v.value;f=k,Object(s.has)(f,["attributes","anchor"])&&f.attributes.anchor!==f.clientId&&N(f.clientId,{anchor:f.clientId})}}catch(e){h=!0,y=e}finally{try{g||null==j.return||j.return()}finally{if(h)throw y}}}));var Y=n(83);Y.keys().forEach((function(e){var t=Y(e),n=t.name,r=t.render,o=t.icon,a=t.isActive;(void 0===a||a)&&Object(b.registerPlugin)(n,{render:r,icon:o})})),Object(u.addFilter)("blocks.registerBlockType","ampStoryEditorBlocks/setBlockParent",O.Q),Object(u.addFilter)("blocks.registerBlockType","ampStoryEditorBlocks/addAttributes",O.a),Object(u.addFilter)("blocks.registerBlockType","ampStoryEditorBlocks/filterBlockTransforms",O.i),Object(u.addFilter)("blocks.registerBlockType","ampStoryEditorBlocks/deprecateCoreBlocks",O.f),Object(u.addFilter)("editor.BlockEdit","ampStoryEditorBlocks/addStorySettings",v.x),Object(u.addFilter)("editor.BlockEdit","ampStoryEditorBlocks/addPageNumber",v.I),Object(u.addFilter)("editor.BlockEdit","ampStoryEditorBlocks/rightClickHandler",v.J),Object(u.addFilter)("editor.BlockEdit","ampStoryEditorBlocks/addEditFeaturedImage",v.D),Object(u.addFilter)("editor.BlockEdit","ampEditorBlocks/addVideoBlockPreview",v.C,9),Object(u.addFilter)("editor.PostFeaturedImage","ampStoryEditorBlocks/addFeaturedImageNotice",v.M),Object(u.addFilter)("editor.BlockListBlock","ampStoryEditorBlocks/withActivePageState",v.w),Object(u.addFilter)("editor.BlockListBlock","ampStoryEditorBlocks/addWrapperProps",v.N),Object(u.addFilter)("editor.MediaUpload","ampStoryEditorBlocks/addEnforcedFileType",(function(e){return Object(y.b)(e)})),Object(u.addFilter)("editor.MediaUpload","ampStoryEditorBlocks/addCroppedFeaturedImage",(function(e){return Object(v.B)(e,Object(O.q)())})),Object(u.addFilter)("blocks.getSaveContent.extraProps","ampStoryEditorBlocks/addExtraAttributes",O.b),Object(u.addFilter)("blocks.getSaveElement","ampStoryEditorBlocks/wrapBlocksInGridLayer",O.U),Object(u.addFilter)("blocks.getSaveElement","ampStoryEditorBlocks/addVideoAriaLabel",O.d),Object(u.addFilter)("editor.BlockDropZone","ampStoryEditorBlocks/withStoryBlockDropZone",v.L),Object(u.addFilter)("editor.BlockEdit","ampStoryEditorBlocks/withCallToActionValidation",v.A),Object(u.addFilter)("blocks.getBlockAttributes","ampStoryEditorBlocks/filterBlockAttributes",O.h);var Q=n(88);Q.keys().forEach((function(e){var t=Q(e),n=t.name,r=t.settings;Object(h.registerBlockType)(n,r)}));var X=n(99);X.keys().sort((function(e,t){return e.priority>t.priority?1:-1})).forEach((function(e){var t=X(e),n=t.name,r=t.settings;Object(g.registerFormatType)(n,r)}))},function(e,t){e.exports=function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}},function(e,t,n){},function(e,t,n){"use strict";var r=n(59);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},function(e,t){!function(){e.exports=this.wp.coreData}()},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){},function(e,t,n){},function(e,t,n){var r;window,r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=31)}([function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(0),o=n(5),a=n(6),i=n(14),c=n(16),l="prototype",s=function(e,t,n){var u,p,d,m,f=e&s.F,b=e&s.G,g=e&s.S,h=e&s.P,y=e&s.B,v=b?r:g?r[t]||(r[t]={}):(r[t]||{})[l],O=b?o:o[t]||(o[t]={}),j=O[l]||(O[l]={});for(u in b&&(n=t),n)d=((p=!f&&v&&void 0!==v[u])?v:n)[u],m=y&&p?c(d,r):h&&"function"==typeof d?c(Function.call,d):d,v&&i(v,u,d,e&s.U),O[u]!=d&&a(O,u,m),h&&j[u]!=d&&(j[u]=d)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(7),o=n(35);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(8),o=n(33),a=n(34),i=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(20);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(t,n){t.exports=e},function(e,t,n){var r=n(2),o=n(0).document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(0),o=n(6),a=n(15),i=n(9)("src"),c="toString",l=Function[c],s=(""+l).split(c);n(5).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,c){var l="function"==typeof n;l&&(a(n,"name")||o(n,"name",t)),e[t]!==n&&(l&&(a(n,i)||o(n,i,e[t]?""+e[t]:s.join(String(t)))),e===r?e[t]=n:c?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[i]||l.call(this)}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(17);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(37),o=n(26);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(10),o=n(11);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(19),o=n(22),a=n(38);e.exports=function(e){return function(t,n,i){var c,l=r(t),s=o(l.length),u=a(i,s);if(e&&n!=n){for(;u<s;)if((c=l[u++])!=c)return!0}else for(;u<s;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(23),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(25)("keys"),o=n(9);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(5),o=n(0),a="__core-js_shared__",i=o[a]||(o[a]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(39)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(11);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(1);r(r.S,"Object",{create:n(42)})},function(e,t,n){var r=n(25)("wks"),o=n(9),a=n(0).Symbol,i="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(32),n(28),n(45),n(50),n(51),n(52),n(55);var r=n(12),o=i(n(57)),a=i(n(58));function i(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var s,u={13:"enter",27:"escape",32:"space",38:"up",40:"down"},p=((s=document.createElement("x")).style.cssText="pointer-events:auto","auto"===s.style.pointerEvents);function d(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var m=function(e){function t(t){var n;return(n=e.call(this,t)||this).elementReferences={},n.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,selected:null},n.handleComponentBlur=n.handleComponentBlur.bind(l(l(n))),n.handleKeyDown=n.handleKeyDown.bind(l(l(n))),n.handleUpArrow=n.handleUpArrow.bind(l(l(n))),n.handleDownArrow=n.handleDownArrow.bind(l(l(n))),n.handleEnter=n.handleEnter.bind(l(l(n))),n.handlePrintableKey=n.handlePrintableKey.bind(l(l(n))),n.handleListMouseLeave=n.handleListMouseLeave.bind(l(l(n))),n.handleOptionBlur=n.handleOptionBlur.bind(l(l(n))),n.handleOptionClick=n.handleOptionClick.bind(l(l(n))),n.handleOptionFocus=n.handleOptionFocus.bind(l(l(n))),n.handleOptionMouseEnter=n.handleOptionMouseEnter.bind(l(l(n))),n.handleInputBlur=n.handleInputBlur.bind(l(l(n))),n.handleInputChange=n.handleInputChange.bind(l(l(n))),n.handleInputFocus=n.handleInputFocus.bind(l(l(n))),n.pollInputElement=n.pollInputElement.bind(l(l(n))),n.getDirectInputChanges=n.getDirectInputChanges.bind(l(l(n))),n}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.componentDidMount=function(){this.pollInputElement()},n.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},n.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout((function(){e.pollInputElement()}),100)},n.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},n.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,a=null===r,i=t.focused!==r;(i&&!a||null!==o)&&this.elementReferences[r].focus();var c=-1===r,l=i&&null===t.focused;if(c&&l){var s=this.elementReferences[r];s.setSelectionRange(0,s.value.length)}},n.hasAutoselect=function(){return!d()&&this.props.autoselect},n.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},n.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},n.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,a=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[a])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null})},n.handleListMouseLeave=function(e){this.setState({hovered:null})},n.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,a=n.menuOpen,i=n.options,c=n.selected,l=null===e.relatedTarget&&null===o,s=e.relatedTarget===this.elementReferences[-1],u=r!==t&&-1!==r;if(!u&&l||!u&&!s){var p=a&&d();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(i[c])})}},n.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,a=n.options,i=n.query,c=n.selected,l=-1!==r;if(clearTimeout(this.$blurInput),!l){var s=o&&d(),u=d()?i:this.templateInputValue(a[c]);this.$blurInput=setTimeout((function(){return t.handleComponentBlur({menuOpen:s,query:u})}),200)}},n.handleInputChange=function(e){var t=this,n=this.props,r=n.minLength,o=n.source,a=n.showAllValues,i=this.hasAutoselect(),c=e.target.value,l=0===c.length,s=this.state.query.length!==c.length,u=c.length>=r;this.setState({query:c}),a||!l&&s&&u?o(c,(function(e){var n=0<e.length;t.setState({menuOpen:n,options:e,selected:i&&n?0:-1})})):!l&&u||this.setState({menuOpen:!1,options:[]})},n.handleInputClick=function(e){this.handleInputChange(e)},n.handleInputFocus=function(e){this.setState({focused:-1})},n.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},n.handleOptionMouseEnter=function(e,t){d()||this.setState({hovered:t})},n.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.forceUpdate()},n.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},n.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",(function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})}));else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,a=n.selected;a!==o.length-1&&r&&this.handleOptionFocus(a+1)}},n.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",(function(e){t.setState({menuOpen:!0,options:e})}))),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},n.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},n.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},n.handleKeyDown=function(e){switch(u[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},n.render=function(){var e,t=this,n=this.props,a=n.cssNamespace,i=n.displayMenu,l=n.id,s=n.minLength,u=n.name,d=n.placeholder,m=n.required,f=n.showAllValues,b=n.tNoResults,g=n.tStatusQueryTooShort,h=n.tStatusNoResults,y=n.tStatusSelectedOption,v=n.tStatusResults,O=n.dropdownArrow,j=this.state,k=j.focused,w=j.hovered,_=j.menuOpen,E=j.options,S=j.query,x=j.selected,C=this.hasAutoselect(),P=-1===k,I=0===E.length,A=0!==S.length,B=S.length>=s,T=this.props.showNoOptionsFound&&P&&I&&A&&B,N=a+"__wrapper",D=a+"__input",R=null!==k?" "+D+"--focused":"",M=this.props.showAllValues?" "+D+"--show-all-values":" "+D+"--default",F=a+"__dropdown-arrow-down",L=-1!==k&&null!==k,H=a+"__menu",z=H+"--"+i,U=H+"--"+(_||T?"visible":"hidden"),q=a+"__option",W=a+"__hint",V=this.templateInputValue(E[x]),K=V&&0===V.toLowerCase().indexOf(S.toLowerCase())&&C?S+V.substr(S.length):"",G=p&&K;return f&&"string"==typeof(e=O({className:F}))&&(e=(0,r.createElement)("div",{className:a+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,r.createElement)("div",{className:N,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":_?"true":"false"},(0,r.createElement)(o.default,{length:E.length,queryLength:S.length,minQueryLength:s,selectedOption:this.templateInputValue(E[x]),selectedOptionIndex:x,tQueryTooShort:g,tNoResults:h,tSelectedOption:y,tResults:v}),G&&(0,r.createElement)("span",null,(0,r.createElement)("input",{className:W,readonly:!0,tabIndex:"-1",value:K})),(0,r.createElement)("input",c({"aria-activedescendant":!!L&&l+"__option--"+k,"aria-owns":l+"__listbox",autoComplete:"off",className:""+D+R+M,id:l,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onChange:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:u,placeholder:d,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"textbox",required:m,value:S})),e,(0,r.createElement)("ul",{className:H+" "+z+" "+U,onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:l+"__listbox",role:"listbox"},E.map((function(e,n){var o=(-1===k?x===n:k===n)&&null===w?" "+q+"--focused":"",a=n%2?" "+q+"--odd":"";return(0,r.createElement)("li",{"aria-selected":k===n,className:""+q+o+a,dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)},id:l+"__option--"+n,key:n,onBlur:function(e){return t.handleOptionBlur(e,n)},onClick:function(e){return t.handleOptionClick(e,n)},onMouseEnter:function(e){return t.handleOptionMouseEnter(e,n)},ref:function(e){t.elementReferences[n]=e},role:"option",tabIndex:"-1"})})),T&&(0,r.createElement)("li",{className:q+" "+q+"--no-results"},b())))},t}(r.Component);(t.default=m).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},dropdownArrow:a.default}},function(e,t,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(36)})},function(e,t,n){e.exports=!n(3)&&!n(4)((function(){return 7!=Object.defineProperty(n(13)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(2);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r=n(18),o=n(40),a=n(41),i=n(27),c=n(10),l=Object.assign;e.exports=!l||n(4)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r}))?function(e,t){for(var n=i(e),l=arguments.length,s=1,u=o.f,p=a.f;s<l;)for(var d,m=c(arguments[s++]),f=u?r(m).concat(u(m)):r(m),b=f.length,g=0;g<b;)p.call(m,d=f[g++])&&(n[d]=m[d]);return n}:l},function(e,t,n){var r=n(15),o=n(19),a=n(21)(!1),i=n(24)("IE_PROTO");e.exports=function(e,t){var n,c=o(e),l=0,s=[];for(n in c)n!=i&&r(c,n)&&s.push(n);for(;t.length>l;)r(c,n=t[l++])&&(~a(s,n)||s.push(n));return s}},function(e,t,n){var r=n(23),o=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):a(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(8),o=n(43),a=n(26),i=n(24)("IE_PROTO"),c=function(){},l="prototype",s=function(){var e,t=n(13)("iframe"),r=a.length;for(t.style.display="none",n(44).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s[l][a[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(c[l]=r(e),n=new c,c[l]=null,n[i]=e):n=s(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(7),o=n(8),a=n(18);e.exports=n(3)?Object.defineProperties:function(e,t){o(e);for(var n,i=a(t),c=i.length,l=0;l<c;)r.f(e,n=i[l++],t[n]);return e}},function(e,t,n){var r=n(0).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(1),o=n(46)(1);r(r.P+r.F*!n(30)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(16),o=n(10),a=n(27),i=n(22),c=n(47);e.exports=function(e,t){var n=1==e,l=2==e,s=3==e,u=4==e,p=6==e,d=5==e||p,m=t||c;return function(t,c,f){for(var b,g,h=a(t),y=o(h),v=r(c,f,3),O=i(y.length),j=0,k=n?m(t,O):l?m(t,0):void 0;j<O;j++)if((d||j in y)&&(g=v(b=y[j],j,h),e))if(n)k[j]=g;else if(g)switch(e){case 3:return!0;case 5:return b;case 6:return j;case 2:k.push(b)}else if(u)return!1;return p?-1:s||u?u:k}}},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(49),a=n(29)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(20);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(1),o=n(21)(!1),a=[].indexOf,i=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n(30)(a)),"Array",{indexOf:function(e){return i?a.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(7).f,o=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(e){return""}}})},function(e,t,n){var r=n(1);r(r.P,"Function",{bind:n(53)})},function(e,t,n){"use strict";var r=n(17),o=n(2),a=n(54),i=[].slice,c={};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),l=function(){var r=n.concat(i.call(arguments));return this instanceof l?function(e,t,n){if(!(t in c)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";c[t]=Function("F,a","return new F("+r.join(",")+")")}return c[t](e,n)}(t,r.length,r):a(t,r,e)};return o(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(56)("match",1,(function(e,t,n){return[function(n){"use strict";var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},n]}))},function(e,t,n){"use strict";var r=n(6),o=n(14),a=n(4),i=n(11),c=n(29);e.exports=function(e,t,n){var l=c(e),s=n(i,l,""[e]),u=s[0],p=s[1];a((function(){var t={};return t[l]=function(){return 7},7!=""[e](t)}))&&(o(String.prototype,e,u),r(RegExp.prototype,l,2==t?function(e,t){return p.call(e,this,t)}:function(e){return p.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(28);var r=n(12),o=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={bump:!1},t}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState((function(e){return{bump:!e.bump}}))},n.render=function(){var e,t=this.props,n=t.length,o=t.queryLength,a=t.minQueryLength,i=t.selectedOption,c=t.selectedOptionIndex,l=t.tQueryTooShort,s=t.tNoResults,u=t.tSelectedOption,p=t.tResults,d=this.state.bump,m=o<a,f=0===n,b=i?u(i,n,c):"";return e=m?l(a):f?s():p(n,b),(0,r.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},e,(0,r.createElement)("span",null,d?",":",,"))},t}(r.Component);(t.default=o).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(12);t.default=function(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}])},e.exports=r(n(27))},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){},function(e,t,n){var r={"./export.js":84,"./pre-publish-panel.js":85,"./story-settings-panel.js":86,"./template-menu-item.js":87};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=83},function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return f})),n.d(t,"icon",(function(){return b})),n.d(t,"render",(function(){return g}));var r=n(0),o=(n(9),n(10)),a=n(31),i=n(8),c=n(5),l=n(1),s=window,u=s.ampStoriesExport,p=s.fetch,d=s.FormData,m=s.URL,f="amp-story-export",b="media-archive",g=Object(i.compose)([Object(c.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostId;return{hasPublishAction:Object(o.get)(n(),["_links","wp:action-publish"],!1),postId:r()}})),Object(c.withDispatch)((function(e){var t=e("core/notices");return{createErrorNotice:t.createErrorNotice,createSuccessNotice:t.createSuccessNotice,removeNotice:t.removeNotice}})),Object(i.ifCondition)((function(e){return e.hasPublishAction}))])((function(e){var t=e.postId,n=e.createErrorNotice,o=e.createSuccessNotice,i=e.removeNotice;return Object(r.createElement)(a.PluginMoreMenuItem,{onClick:function(){!function(e){var t=e.postId,n=e.createErrorNotice,r=e.createSuccessNotice,o=e.removeNotice,a=new d,i=Object(l.__)("Could not generate story archive.","amp");a.append("action",u.action),a.append("_wpnonce",u.nonce),a.append("post_ID",t);var c="amp-story-export__success-snackbar",s="amp-story-export__error-notice";o(s),r(Object(l.__)("Generating story archive…","amp"),{id:c,type:"snackbar"});var f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;o(c),n(e?e.message:i,{id:s})};p(u.ajaxUrl,{method:"POST",body:a}).then((function(e){e.ok?e.blob().then((function(t){var n=(e.headers.get("Content-Disposition")||"").match(/"(.*?)"/);if(n){o(c);var r=document.createElement("a"),a=m.createObjectURL(t);r.addEventListener("click",(function e(){setTimeout((function(){m.revokeObjectURL(a),r.removeEventListener("click",e)}),150)}),!1),r.href=a,r.download=n[1],r.click()}else f()})).catch(f):e.json().then((function(e){f(e.data&&e.data.errorMessage?new Error(e.data.errorMessage):null)})).catch(f)})).catch(f)}({postId:t,createErrorNotice:n,createSuccessNotice:o,removeNotice:i})}},Object(l.__)("Export Story","amp"))}))},function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return i})),n.d(t,"render",(function(){return c}));var r=n(0),o=n(39),a=n(3),i="amp-story-pre-publish-panel",c=function(){return Object(r.createElement)(o.a,{dimensions:Object(a.q)(),required:!0})}},function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return b})),n.d(t,"icon",(function(){return g})),n.d(t,"render",(function(){return h}));var r=n(4),o=n.n(r),a=n(0),i=(n(9),n(3)),c=n(31),l=n(1),s=n(8),u=n(5),p=n(2);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(n,!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=Object(s.compose)(Object(u.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,n=((0,e("amp/story").getSettings)().storySettings||{}).autoAdvanceAfterOptions;return{meta:t("meta"),autoAdvanceAfterOptions:n}})),Object(u.withDispatch)((function(e,t){var n=t.meta,r=e("core/editor").editPost;return{updateMeta:function(e){r({meta:m({},n,{},e)})}}})))((function(e){var t=e.meta,n=e.autoAdvanceAfterOptions,r=e.updateMeta,o=Object(i.L)(t),c=o.autoAdvanceAfter,s=o.autoAdvanceAfterDuration,u=n.find((function(e){return e.value===c}))||{};return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("p",null,Object(l.__)("These settings are applied to new pages.","amp")),Object(a.createElement)(p.SelectControl,{label:Object(l.__)("Advance to next page","amp"),help:u.description||"",value:c,options:n,onChange:function(e){return r({amp_story_auto_advance_after:e})},className:"amp-story-settings-advance-after"}),"time"===c&&Object(a.createElement)(p.RangeControl,{label:Object(l.__)("Time in seconds","amp"),value:s?parseInt(s):0,onChange:function(e){return r({amp_story_auto_advance_after_duration:e})},min:0,max:100,className:"amp-story-settings-advance-after-duration"}))})),b="amp-story-settings-panel",g="book",h=function(){return Object(a.createElement)(c.PluginDocumentSettingPanel,{name:b,className:b,title:Object(l.__)("Story Settings","amp")},Object(a.createElement)(f,null))}},function(e,t,n){"use strict";n.r(t),n.d(t,"isActive",(function(){return u})),n.d(t,"name",(function(){return p})),n.d(t,"render",(function(){return d}));var r=n(0),o=n(31),a=n(1),i=n(5),c=n(11),l=n(10),s=function(){var e=Object(i.select)("core/block-editor"),t=e.getSelectedBlockClientId,n=e.getBlock,r=Object(i.dispatch)("core/block-editor"),o=r.__experimentalReceiveReusableBlocks,s=r.__experimentalSaveReusableBlock,u=n(t());if("amp/amp-story-page"===u.name){var p=Object(c.cloneBlock)(u),d={id:Object(l.uniqueId)("reusable"),clientId:p.clientId,title:Object(a.__)("Template","amp")};o([{reusableBlock:d,parsedBlock:p}]),s(d.id)}},u=!1,p="amp-story",d=function(){return Object(r.createElement)(o.PluginBlockSettingsMenuItem,{allowedBlocks:["amp/amp-story-page"],icon:"welcome-add-page",label:Object(a.__)("Save as Template","amp"),role:"menuitem",onClick:s})}},function(e,t,n){var r={"./amp-story-cta/index.js":104,"./amp-story-page-attachment/index.js":103,"./amp-story-page/index.js":102,"./amp-story-post-author/index.js":92,"./amp-story-post-date/index.js":94,"./amp-story-post-title/index.js":96,"./amp-story-text/index.js":105};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=88},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return l})),n.d(t,"settings",(function(){return s}));var r=n(4),o=n.n(r),a=n(1),i=n(3);n(93);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var l="amp/amp-story-post-author",s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(n,!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({title:Object(a.__)("Story Author","amp"),description:Object(a.__)("Display the name of the story’s author. Modify by changing the author in the document settings.","amp"),category:"common",icon:"admin-users",keywords:[Object(a.__)("post","amp"),Object(a.__)("author","amp"),Object(a.__)("name","amp"),Object(a.__)("byline","amp")]},Object(i.p)({tagName:"div",attribute:"author",isEditable:!1}))},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return l})),n.d(t,"settings",(function(){return s}));var r=n(4),o=n.n(r),a=n(1),i=n(3);n(95);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var l="amp/amp-story-post-date",s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(n,!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({title:Object(a.__)("Story Date","amp"),description:Object(a.__)("Display the publish date of the story. Modify by changing the date in the document settings.","amp"),category:"common",icon:"clock",keywords:[Object(a.__)("publish date","amp")]},Object(i.p)({tagName:"div",attribute:"date",isEditable:!1}))},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"name",(function(){return s})),n.d(t,"settings",(function(){return u}));var r=n(4),o=n.n(r),a=n(0),i=n(1),c=n(3);n(97);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var s="amp/amp-story-post-title",u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(n,!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({title:Object(i.__)("Story Title","amp"),description:Object(i.__)("Display the story title. Modify by changing the overall title of the document.","amp"),category:"common",icon:Object(a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)("path",{d:"M5 4v3h5.5v12h3V7H19V4z"}),Object(a.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"})),keywords:[Object(i.__)("post","amp"),Object(i.__)("title","amp")]},Object(c.p)({tagName:"h1",attribute:"title",placeholder:Object(i.__)("Add story title…","amp"),isEditable:!0}))},function(e,t,n){},function(e,t,n){},function(e,t,n){var r={"./background-color/index.js":106,"./text-color/index.js":107};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=99},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(0),o=(n(27),n(1)),a=n(11),i=n(4),c=n.n(i),l=(n(9),n(7)),s=n(3),u=n(6);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var d=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(n,!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{anchor:{source:"attribute",selector:"amp-story-page",attribute:"id"},mediaAlt:{type:"string"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:'amp-story-grid-layer[template="fill"] > amp-img, amp-story-grid-layer[template="fill"] > amp-video',attribute:"src"},mediaType:{type:"string"},poster:{type:"string"},focalPoint:{type:"object"},autoAdvanceAfter:{type:"string"},autoAdvanceAfterDuration:{type:"number"},autoAdvanceAfterMedia:{type:"string"},backgroundColors:{default:"[]"},overlayOpacity:{default:100}},{deprecated:{default:"1.2.0"}}),save:function(e){var t,n=e.attributes,o=n.anchor,a=n.focalPoint,i=n.overlayOpacity,c=n.mediaUrl,p=n.mediaType,d=n.poster,m=n.autoAdvanceAfter,f=n.autoAdvanceAfterDuration,b=n.autoAdvanceAfterMedia,g=JSON.parse(n.backgroundColors);["auto","time"].includes(m)&&f?t=parseInt(f)+"s":"media"===m&&(t=b);var h={};0<g.length&&((h=Object(s.c)(h,g)).opacity=i/100);var y={objectPosition:u.m===p&&a?"".concat(100*a.x,"% ").concat(100*a.y,"%"):"initial"};return Object(r.createElement)("amp-story-page",{style:{backgroundColor:"#ffffff"},id:o,"auto-advance-after":t},c&&Object(r.createElement)("amp-story-grid-layer",{template:"fill"},u.m===p&&Object(r.createElement)("amp-img",{layout:"fill",src:c,style:y}),u.x===p&&Object(r.createElement)("amp-video",{layout:"fill",src:c,poster:d,muted:!0,autoplay:!0,loop:!0})),Object(r.createElement)("amp-story-grid-layer",{template:"fill",style:h}),Object(r.createElement)(l.InnerBlocks.Content,null))}}],m=n(20),f=n.n(m),b=n(28),g=n.n(b),h=n(14),y=n.n(h),v=n(15),O=n.n(v),j=n(16),k=n.n(j),w=n(19),_=n.n(w),E=n(17),S=n.n(E),x=n(5),C=n(8),P=n(54);var I=Object(x.withDispatch)((function(e,t,n){var r=n.select,o=r("core/block-editor"),i=o.getBlocksByClientId,c=o.getSelectedBlockClientIds,l=o.hasMultiSelection,u=r("amp/story").getCurrentPage,p=e("amp/story"),d=p.clearCopiedMarkup,m=p.setCopiedMarkup,f=e("core/block-editor"),b=f.removeBlock,g=f.selectBlock;return{onCopy:function(e){var t=c();if(0!==t.length)if(l()||!Object(P.documentHasSelection)()){var n=!0,r=!1,o=void 0;try{for(var p,f=t[Symbol.iterator]();!(n=(p=f.next()).done);n=!0){var h=p.value;if(Object(s.z)(h))return void d()}}catch(e){r=!0,o=e}finally{try{n||null==f.return||f.return()}finally{if(r)throw o}}var y=i(t),v=Object(a.serialize)(y),O="cut"===e.type;m(v).then((function(){if(Object(s.e)(v),O){var e=u(),n=!0,r=!1,o=void 0;try{for(var a,i=t[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var c=a.value;g(e),b(c)}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}}}))}else d();else d()}}}))((function(e){var t=e.children,n=e.onCopy,o=e.clientId,i=e.isSelected,c=Object(x.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockOrder,r=(0,t.getSettings)().__experimentalCanUserUseUnfilteredHTML,a=e("amp/story").getCopiedMarkup;return{isFirstPage:0===n().indexOf(o),canUserUseUnfilteredHTML:r,getCopiedMarkupState:a}}),[o]),l=c.isFirstPage,u=c.canUserUseUnfilteredHTML,p=c.getCopiedMarkupState,d=Object(x.useDispatch)("core/block-editor").insertBlocks;return Object(r.createElement)("div",{onCopy:n,onPaste:function(e){if(i){var t=e.clipboardData,n="",r="";try{n=t.getData("text/plain"),r=t.getData("text/html")}catch(e){try{r=t.getData("Text")}catch(e){n=p(),r=p()}}e.preventDefault();var c=Object(a.pasteHandler)({HTML:r,plainText:n,mode:"BLOCKS",canUserUseUnfilteredHTML:u});c.length>0&&d(Object(s.g)(c,o,l),null,o)}},onCut:n},t)})),A=(n(91),n(2)),B=function(e){var t=e.backgroundColors,n=e.setAttributes,a=e.overlayOpacity,i=function(e,r){t[r]={color:e},n({backgroundColors:JSON.stringify(t)})};return Object(r.createElement)(l.PanelColorSettings,{title:Object(o.__)("Background Color","amp"),colorSettings:function(){if(!t.length)return[{value:void 0,onChange:function(e){i(e,0)},label:Object(o.__)("Color","amp")}];var e=[],n=t.length>1;return t.forEach((function(t,r){e[r]={value:t?t.color:void 0,onChange:function(e){i(e,r)},
28
  /* translators: %s: color number */
29
+ label:n?Object(o.sprintf)(Object(o.__)("Color %s","amp"),r+1):Object(o.__)("Color","amp")}})),e}()},Object(r.createElement)("p",null,t.length<2&&Object(r.createElement)(A.Button,{onClick:function(){return i(null,1)},isSmall:!0},Object(o.__)("Add Gradient","amp")),t.length>1&&Object(r.createElement)(A.Button,{onClick:function(){return e=t.length-1,t.splice(e,1),void n({backgroundColors:JSON.stringify(t)});var e},isLink:!0,isDestructive:!0},Object(o.__)("Remove Gradient","amp"))),Object(r.createElement)(A.RangeControl,{label:Object(o.__)("Opacity","amp"),value:a,onChange:function(e){return n({overlayOpacity:e})},min:0,max:100,step:5,required:!0}))},T=function(e){var t=e.autoAdvanceAfter,n=e.autoAdvanceAfterDuration,a=e.autoAdvanceAfterOptions,i=e.setAttributes,c=e.clientId,l=Object(x.useSelect)((function(e){var t=e("core/block-editor").getBlockRootClientId,n=((0,e("amp/story").getAnimatedBlocks)()[c]||[]).filter((function(e){var n=e.id;return c===t(n)})),r=Object(s.w)(n);return Math.ceil(r/1e3)})),u=a.find((function(e){return e.value===t}))||{};return Object(r.createElement)(A.PanelBody,{title:Object(o.__)("Page Settings","amp")},Object(r.createElement)(A.SelectControl,{label:Object(o.__)("Advance to next page","amp"),help:u.description||"",value:t,options:a,onChange:function(e){i({autoAdvanceAfter:e}),"auto"===e&&i({autoAdvanceAfterDuration:l})}}),"time"===t&&Object(r.createElement)(A.RangeControl,{label:Object(o.__)("Time in seconds","amp"),value:n?parseInt(n):0,onChange:function(e){return i({autoAdvanceAfterDuration:e})},min:Math.max(l,1),initialPosition:l,help:l>1?Object(o.__)("A minimum time is enforced because there are animated blocks on this page.","amp"):void 0}))},N=n(10),D=n(18),R=n.n(D),M=n(13),F=n(24),L=function(e){var t=e.allowedBackgroundMediaTypes,n=e.media,a=e.mediaId,i=e.mediaType,c=e.mediaAlt,p=e.mediaUrl,d=e.poster,m=e.focalPoint,f=e.videoFeaturedImage,b=e.setAttributes,h=Object(r.createElement)("p",null,Object(o.__)("To edit the background image or video, you need permission to upload media.","amp")),y=u.x===i&&Object(M.j)(Object(M.h)(n)),v=u.x===i?Object(M.h)(n):null,O=Object(r.useState)(!1),j=g()(O,2),k=j[0],w=j[1];return Object(r.useEffect)((function(){u.x===i&&(d||(f?b({poster:f.source_url}):!n||n.featured_media||k||(w(!0),Object(s.T)({id:a,src:p}).then((function(e){b({poster:Object(s.u)(e)}),w(!1)})).catch((function(){return w(!1)})))))}),[n,i,f]),Object(r.createElement)(A.PanelBody,{title:Object(o.__)("Background Media","amp")},Object(r.createElement)(r.Fragment,null,y&&Object(r.createElement)(A.Notice,{status:"warning",isDismissible:!1},Object(o.sprintf)(
30
  /* translators: %d: the number of recommended megabytes per second */
31
+ Object(o.__)("A video size of less than %d MB per second is recommended.","amp"),F.g),v&&" "+Object(o.sprintf)(
32
  /* translators: %d: the number of actual megabytes per second */
33
+ Object(o.__)("The selected video is %d MB per second.","amp"),Math.round(v/F.d))),Object(r.createElement)(A.BaseControl,null,Object(r.createElement)(l.MediaUploadCheck,{fallback:h},Object(r.createElement)(l.MediaUpload,{onSelect:function(e){var t=Object(s.M)(e);b(t)},allowedTypes:t,value:a,render:function(e){var t=e.open;return Object(r.createElement)(A.Button,{isDefault:!0,isLarge:!0,onClick:t,className:"editor-amp-story-page-background"},p?Object(o.__)("Change Media","amp"):Object(o.__)("Select Media","amp"))},id:"story-background-media"}),p&&Object(r.createElement)(A.Button,{onClick:function(){return b({mediaUrl:void 0,mediaId:void 0,mediaType:void 0})},isLink:!0,isDestructive:!0},Object(o._x)("Remove","background media","amp")))),u.x===i&&(!k||d)&&Object(r.createElement)(l.MediaUploadCheck,null,Object(r.createElement)(A.BaseControl,{id:"editor-amp-story-page-poster",label:Object(o.__)("Poster Image","amp"),help:Object(o.sprintf)(
34
  /* translators: 1: 720p. 2: 720w. 3: 1280h */
35
+ Object(o.__)("The recommended dimensions for a poster image are: %1$s (%2$s x %3$s)","amp"),"720p","720w","1080h")},!d&&Object(r.createElement)(A.Notice,{status:"error",isDismissible:!1},Object(o.__)("A poster image must be set.","amp")),Object(r.createElement)(l.MediaUpload,{title:Object(o.__)("Select Poster Image","amp"),onSelect:function(e){var t=Object(N.has)(e,["sizes",u.n,"url"])?e.sizes[u.n].url:e.url;b({poster:t})},allowedTypes:u.r,modalClass:"editor-amp-story-background-video-poster__media-modal",render:function(e){var t=e.open;return Object(r.createElement)(A.Button,{id:"editor-amp-story-page-poster",className:R()("editor-amp-story-page-background",{"editor-post-featured-image__toggle":!d,"editor-post-featured-image__preview":d}),onClick:t,"aria-label":d?Object(o.__)("Replace Poster Image","amp"):null},d&&Object(r.createElement)(A.ResponsiveWrapper,{naturalWidth:960,naturalHeight:1280},Object(r.createElement)("img",{src:d,alt:""})),!d&&Object(o.__)("Set Poster Image","amp"))}}))),u.m===i&&p&&A.FocalPointPicker&&Object(r.createElement)(A.FocalPointPicker,{label:Object(o.__)("Focal Point Picker","amp"),url:p,value:m,onChange:function(e){return b({focalPoint:e})}}),i&&Object(r.createElement)(A.TextControl,{label:Object(o.__)("Assistive Text","amp"),help:Object(o.__)("This text is used to inform visually impaired users about the background content.","amp"),value:c,onChange:function(e){return b({mediaAlt:e})}})))},H=function(e){return Object(r.createElement)("svg",e,Object(r.createElement)("path",{d:"M15 15H5V5h10v10z"}))};H.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20"};var z=function(e){var t=e.clientId,n=Object(x.useDispatch)("amp/story"),a=n.playAnimation,i=n.stopAnimation,c=Object(x.useSelect)((function(e){return(0,e("amp/story").isPlayingAnimation)(t)})),l=Object(x.useSelect)((function(e){var n=e("core/block-editor").getBlock;return(0,e("amp/story").getAnimatedBlocksPerPage)(t).filter((function(e){var t=e.id;return e.animationType&&n(t)}))}));if(!l.length)return null;var s=c?Object(o.__)("Stop All Animations","amp"):Object(o.sprintf)(Object(o._n)("Play %s Animation","Play %s Animations",l.length,"amp"),l.length);return Object(r.createElement)(A.PanelBody,{title:Object(o.__)("Animation","amp")},Object(r.createElement)(A.IconButton,{icon:c?H({width:20,height:20}):"controls-play",className:"is-button is-default",onClick:c?function(){return i(t)}:function(){return a(t)}},s))},U=function(e){function t(e){var n;return y()(this,t),n=O()(this,k()(t).call(this,e)),e.attributes.anchor||n.props.setAttributes({anchor:Object(s.x)()}),e.storySettingsAttributes&&Object.entries(e.storySettingsAttributes).forEach((function(t){var r=g()(t,2),o=r[0],a=r[1];e.attributes.hasOwnProperty(o)||n.props.setAttributes(c()({},o,a))})),n.state={extractingPoster:!1},n.videoPlayer=Object(r.createRef)(),n}return S()(t,e),_()(t,[{key:"shouldComponentUpdate",value:function(){return this.ensureCorrectBlockOrder(),!0}}]),_()(t,[{key:"componentDidUpdate",value:function(e){var t=this.props.attributes,n=t.mediaType,r=t.mediaUrl;u.x===n&&e.attributes.mediaUrl!==r&&this.videoPlayer.current&&this.videoPlayer.current.load()}},{key:"ensureCorrectBlockOrder",value:function(){var e=this.props,t=e.getBlockOrder,n=e.moveBlockToPosition,r=e.clientId,o=t(r);if(!(1>=o.length)){var a=Object(s.m)(r),i=Object(s.r)(r),c=null;a?c=a:i&&(c=i),c&&o[o.length-1]!==c.clientId&&n(c.clientId,r,r,o.length-1)}}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.autoAdvanceAfterOptions,o=e.clientId,a=e.isSelected,i=e.media,c=e.setAttributes,p=e.allowedBlocks,d=e.allowedBackgroundMediaTypes,m=e.videoFeaturedImage,f=t.mediaId,b=t.mediaType,g=t.mediaUrl,h=t.mediaAlt,y=t.focalPoint,v=void 0===y?{x:.5,y:.5}:y,O=t.overlayOpacity,j=t.poster,k=t.autoAdvanceAfter,w=t.autoAdvanceAfterDuration,_={backgroundImage:u.m===b&&g?"url(".concat(g,")"):void 0,backgroundPosition:u.m===b?"".concat(100*v.x,"% ").concat(100*v.y,"%"):void 0,backgroundRepeat:"no-repeat",backgroundSize:"cover"};u.x===b&&j&&(_.backgroundImage="url(".concat(j,")"));var E={width:"100%",height:"100%",position:"absolute"},S=JSON.parse(t.backgroundColors);return(E=Object(s.c)(E,S)).opacity=O/100,Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.InspectorControls,null,Object(r.createElement)(B,{backgroundColors:JSON.parse(t.backgroundColors),setAttributes:c,overlayOpacity:O}),Object(r.createElement)(L,{allowedBackgroundMediaTypes:d,media:i,mediaId:f,mediaType:b,mediaAlt:h,mediaUrl:g,poster:j,focalPoint:v,videoFeaturedImage:m,setAttributes:c}),Object(r.createElement)(T,{autoAdvanceAfter:k,autoAdvanceAfterDuration:w,autoAdvanceAfterOptions:n,clientId:o,setAttributes:c}),Object(r.createElement)(z,{clientId:o})),Object(r.createElement)(I,{clientId:o,isSelected:a},Object(r.createElement)("div",{style:_},u.x===b&&i&&Object(r.createElement)("div",{className:"editor-amp-story-page-video-wrap"},Object(r.createElement)("video",{autoPlay:!0,muted:!0,loop:!0,className:"editor-amp-story-page-video",poster:j,ref:this.videoPlayer},Object(r.createElement)("source",{src:g,type:i.mime_type}))),S.length>0&&Object(r.createElement)("div",{style:E}),Object(r.createElement)(l.InnerBlocks,{allowedBlocks:p}))))}}]),t}(r.Component),q=Object(C.compose)(Object(x.withDispatch)((function(e){return{moveBlockToPosition:e("core/block-editor").moveBlockToPosition}})),Object(x.withSelect)((function(e,t){var n,r=t.clientId,o=t.attributes,a=e("core").getMedia,i=e("core/block-editor").getBlockOrder,c=e("amp/story").getSettings,l=!(0===i().indexOf(r))&&!Object(s.m)(r)&&!Object(s.r)(r),p=!Object(s.m)(r)&&!Object(s.r)(r),d=o.mediaType,m=o.mediaId,b=o.poster,g=m?a(m):void 0;u.x===d&&g&&g.featured_media&&!b&&(n=a(g.featured_media));var h=u.c;l&&(h=[].concat(f()(h),["amp/amp-story-cta"])),p&&(h=[].concat(f()(h),["amp/amp-story-page-attachment"]));var y=(0,e("core/editor").getEditedPostAttribute)("meta")||{},v=Object(s.L)(y),O=c(),j=O.allowedVideoMimeTypes;return{media:g,videoFeaturedImage:n,allowedBlocks:h,getBlockOrder:i,storySettingsAttributes:v,autoAdvanceAfterOptions:(O.storySettings||{}).autoAdvanceAfterOptions,allowedBackgroundMediaTypes:[u.m].concat(f()(j))}})))(U),W=function(e){var t,n=e.attributes,o=n.anchor,a=n.focalPoint,i=n.overlayOpacity,c=n.mediaId,p=n.mediaUrl,d=n.mediaType,m=n.mediaAlt,f=n.poster,b=n.autoAdvanceAfter,g=n.autoAdvanceAfterDuration,h=n.autoAdvanceAfterMedia,y=JSON.parse(n.backgroundColors);["auto","time"].includes(b)&&g?t=parseInt(g)+"s":"media"===b&&(t=h);var v={};0<y.length&&((v=Object(s.c)(v,y)).opacity=i/100);var O=u.m===d&&a?"".concat(100*a.x,"% ").concat(100*a.y,"%"):"initial";return Object(r.createElement)("amp-story-page",{style:{backgroundColor:"#ffffff"},id:o,"auto-advance-after":t},p&&Object(r.createElement)("amp-story-grid-layer",{template:"fill"},u.m===d&&Object(r.createElement)("img",{layout:"fill",src:p,alt:m,className:c?"wp-image-".concat(c):null,"object-position":O}),u.x===d&&Object(r.createElement)("amp-video",{layout:"fill","aria-label":m,src:p,poster:f,muted:!0,autoplay:!0,loop:!0})),Object(r.createElement)("amp-story-grid-layer",{template:"fill",style:v}),Object(r.createElement)(l.InnerBlocks.Content,null))};n.d(t,"name",(function(){return K})),n.d(t,"settings",(function(){return G}));var V=function(e){return Object(r.createElement)("svg",e,Object(r.createElement)("g",{fill:"#181D21"},Object(r.createElement)("path",{d:"M18.4 21H5.6V3h7.8l5 4.9V21zM7.1 19.5h9.8V8.6l-4-4.1H7.1v15z"}),Object(r.createElement)("path",{d:"M11.5 5.4v4.3h4.4"})))};V.defaultProps={viewBox:"0 0 24 24"};var K="amp/amp-story-page",G={title:Object(o.__)("Page","amp"),category:"layout",icon:V({width:24,height:24}),attributes:{anchor:{source:"attribute",selector:"amp-story-page",attribute:"id"},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:'amp-story-grid-layer[template="fill"] > img, amp-story-grid-layer[template="fill"] > amp-img, amp-story-grid-layer[template="fill"] > amp-video',attribute:"src"},mediaType:{type:"string"},mediaAlt:{type:"string"},poster:{type:"string"},focalPoint:{type:"object"},autoAdvanceAfter:{type:"string"},autoAdvanceAfterDuration:{type:"number"},autoAdvanceAfterMedia:{type:"string"},backgroundColors:{default:"[]"},overlayOpacity:{default:100}},supports:{reusable:!0},edit:q,save:W,deprecated:d,transforms:{from:[{type:"raw",priority:20,selector:"amp-story-page",transform:function(e){var t=e.outerHTML,n=Object(a.getBlockAttributes)(K,t);return Object(a.createBlock)(K,n)}}]}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(4),a=n.n(o),i=n(14),c=n.n(i),l=n(19),s=n.n(l),u=n(15),p=n.n(u),d=n(16),m=n.n(d),f=n(12),b=n.n(f),g=n(17),h=n.n(g),y=n(0),v=(n(9),n(18)),O=n.n(v),j=n(5),k=(n(90),n(13)),w=(n(27),n(7)),_=n(21),E=function(e){var t=e.setAttributes,n=e.toggleAttachment,o=e.openText;return Object(y.createElement)("div",{className:"open-attachment-wrapper"},Object(y.createElement)("span",{role:"button",tabIndex:"0",onClick:function(){n(!0)},onKeyDown:function(e){_.ENTER!==e.keyCode&&_.SPACE!==e.keyCode||(n(!0),e.stopPropagation())},className:"amp-story-page-open-attachment-icon"},Object(y.createElement)("span",{className:"amp-story-page-open-attachment-bar amp-story-page-open-attachment-bar-left"}),Object(y.createElement)("span",{className:"amp-story-page-open-attachment-bar amp-story-page-open-attachment-bar-right"})),Object(y.createElement)(w.RichText,{value:o,tagName:"div",wrapperClassName:"amp-story-page-attachment__text",onChange:function(e){return t({openText:e})},placeholder:Object(r.__)("Swipe Up","amp")}))},S=n(28),x=n.n(S),C=n(37),P=n.n(C),I=n(2),A=n(22),B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];function r(r){e.current&&e.current.contains(r.target)&&(t&&t(),n&&e.current.click())}Object(y.useEffect)((function(){return e.current&&document.addEventListener("mousedown",r),function(){document.removeEventListener("mousedown",r)}}))},T=function(e){var t,n,o=Object(y.useState)(null),a=x()(o,2),i=a[0],c=a[1],l=Object(y.useState)(!1),s=x()(l,2),u=s[0],p=s[1],d=Object(y.useState)(""),m=x()(d,2),f=m[0],b=m[1],g=Object(y.useState)(!1),h=x()(g,2),v=h[0],O=h[1],k=e.attributes,E=e.setAttributes,S=e.toggleAttachment,C=k.attachmentClass,T=k.postId,N=k.postType,D=k.title,R=k.wrapperStyle,M=Object(j.useSelect)((function(e){return(0,e("amp/story").getSettings)().allowedPageAttachmentPostTypes})),F=function(){var e=M[N]||"".concat(N,"s");if(n=!0,T){O(!0);var r=t=P()({path:"/wp/v2/".concat(e,"/").concat(T)}).then((function(e){n&&t===r&&(c(e),p(!1),O(!1))})).catch((function(){n&&t===r&&(c(null),p(!0),O(!1))}))}};Object(y.useEffect)((function(){return function(){n=!1}}),[]),Object(y.useEffect)((function(){F()}),[T]);var L=Object(y.useRef)(null),H=Object(y.useRef)(null);return B(H,(function(){S(!1)})),B(L,null,!0),Object(y.createElement)("div",{className:"attachment-container"},Object(y.createElement)("div",{className:"attachment-wrapper"},Object(y.createElement)("div",{className:"attachment-header"},Object(y.createElement)("span",{tabIndex:"0",className:"amp-story-page-attachment-close-button",role:"button",onKeyDown:function(e){_.ENTER!==e.keyCode&&_.SPACE!==e.keyCode||(S(!1),e.stopPropagation())},ref:H}),Object(y.createElement)(w.RichText,{value:D,tagName:"div",wrapperClassName:"amp-story-page-attachment-title",onChange:function(e){return E({title:e})},placeholder:Object(r.__)("Write Title","amp"),onClick:function(e){return e.stopPropagation()}}),T&&Object(y.createElement)(I.Button,{className:"remove-attachment-post",onClick:function(e){e.stopPropagation(),p(!1),E({postId:null}),c(null)},isLink:!0,isDestructive:!0,ref:L},Object(r.__)("Remove Post","amp"))),Object(y.createElement)("div",{className:C,style:R},v&&Object(y.createElement)(I.Spinner,null),!v&&i&&i.content&&Object(y.createElement)(y.RawHTML,null,"<h2>".concat(i.title.rendered,"</h2>").concat(i.content.rendered)),!v&&(!T||u)&&Object(y.createElement)(y.Fragment,null,u&&Object(y.createElement)("div",null,Object(y.createElement)("p",{className:"failed-message"},Object(r.__)("The selected post failed to load, please select a new post or try loading again.","amp"),Object(y.createElement)(I.Button,{className:"refetch-attachment-post",onClick:function(e){e.stopPropagation(),F()},isLink:!0},Object(r.__)(" Try again","amp")))),Object(y.createElement)(A.m,{labelText:Object(r.__)("Attachment Content","amp"),placeholder:Object(r.__)("Search for content ...","amp"),value:f,onSelect:function(e,t){E({postId:e,postType:t}),b("")},onChange:function(e){return b(e)},searchablePostTypes:Object.keys(M)})))))},N=function(e){function t(e){var n;return c()(this,t),(n=p()(this,m()(t).call(this,e))).state={isOpen:!1},n.toggleAttachment=n.toggleAttachment.bind(b()(n)),n}return h()(t,e),s()(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.backgroundColor,r=t.customBackgroundColor,o=t.textColor,a=t.setAttributes;if(n!==e.backgroundColor||r!==e.customBackgroundColor||o!==e.textColor){var i=this.getWrapperAttributes(),c=i.style,l=i.attachmentClass,s={wrapperStyle:c};o!==e.textColor&&(s.attachmentClass=l),a(s)}}},{key:"toggleAttachment",value:function(e){e!==this.state.isOpen&&this.setState({isOpen:e})}},{key:"getWrapperAttributes",value:function(){var e=this.props,t=e.attributes,n=e.backgroundColor,r=e.customBackgroundColor,o=e.textColor,i=t.opacity,c=Object(j.select)("core/block-editor").getSettings().colors,l=Object(k.d)(c,n,r,i),s=O()("amp-page-attachment-content",a()({"has-text-color":o.color},o.class,o.class));return{style:{color:o.color,backgroundColor:l},attachmentClass:s}}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=t.openText;return Object(y.createElement)(y.Fragment,null,this.state.isOpen&&Object(y.createElement)(T,{setAttributes:n,attributes:t,toggleAttachment:this.toggleAttachment}),!this.state.isOpen&&Object(y.createElement)(E,{setAttributes:n,toggleAttachment:this.toggleAttachment,openText:r}))}}]),t}(y.Component);n.d(t,"name",(function(){return R})),n.d(t,"settings",(function(){return M}));var D={postId:{type:"number"},postType:{type:"string",default:"post"},title:{type:"string"},openText:{type:"string",default:Object(r.__)("Swipe Up","amp")},wrapperStyle:{default:{}},attachmentClass:{type:"string",default:"amp-page-attachment-content"}},R="amp/amp-story-page-attachment",M={title:Object(r.__)("Page Attachment","amp"),description:Object(r.__)("Attach additional content to a story page.","amp"),icon:"media-document",category:"layout",keywords:[Object(r.__)("attachment","amp"),Object(r.__)("content","amp"),Object(r.__)("embed","amp")],attributes:D,edit:N,save:function(){return null}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=(n(27),n(1)),a=n(11),i=n(14),c=n.n(i),l=n(19),s=n.n(l),u=n(15),p=n.n(u),d=n(16),m=n.n(d),f=n(12),b=n.n(f),g=n(17),h=n.n(g),y=n(4),v=n.n(y),O=n(18),j=n.n(O),k=(n(9),n(2)),w=n(7),_=(n(89),n(5)),E=n(3),S=n(13),x=n(22),C=function(e){function t(e){var n;return c()(this,t),n=p()(this,m()(t).call(this,e)),v()(b()(n),"bindRef",(function(e){e&&(n.nodeRef=e)})),v()(b()(n),"toggleIsEditing",(function(e){e!==n.state.isEditing&&n.setState({isEditing:!n.state.isEditing})})),v()(b()(n),"toggleOverlay",(function(e){e!==n.state.hasOverlay&&n.setState({hasOverlay:!n.state.hasOverlay})})),e.attributes.anchor||n.props.setAttributes({anchor:Object(E.x)()}),n.state={isEditing:!1,hasOverlay:!0},n.nodeRef=null,n}return h()(t,e),s()(t,[{key:"componentDidUpdate",value:function(e,t){!this.props.isSelected&&e.isSelected&&(this.toggleIsEditing(!1),this.toggleOverlay(!0)),this.state.isEditing&&!t.isEditing&&Object(E.R)(".is-selected .amp-block-story-cta__link")}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.backgroundColor,a=e.className,i=e.clientId,c=e.fontSize,l=e.isSelected,s=e.name,u=e.setAttributes,p=e.textColor,d=t.text,m=t.url,f=t.customBackgroundColor,b=t.opacity,g=t.btnPositionTop,h=t.btnPositionLeft,y=this.state,O=y.isEditing,E=y.hasOverlay,C=Object(_.select)("core/block-editor").getSettings().colors,P=Object(S.d)(C,n,f,b),I=Object(o.__)("Add text…","amp"),A=j()("amp-block-story-cta__link",v()({"has-background":n.color,"has-text-color":p.color},p.class,p.class)),B={color:p.color,fontSize:c.size?c.size+"px":void 0};return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"amp-story-cta-button",id:"amp-story-cta-button-".concat(i),style:{top:"".concat(g,"%"),left:"".concat(h,"%")}},Object(r.createElement)("div",{className:a,ref:this.bindRef,style:{backgroundColor:P}},O&&Object(r.createElement)(w.RichText,{placeholder:I,value:d,onChange:function(e){return u({text:e})},className:A,style:B}),!O&&Object(r.createElement)(x.g,{blockElementId:"amp-story-cta-button-".concat(i),clientId:i,name:s,isDraggable:!0,isEditing:O,isSelected:l,hasOverlay:E,toggleIsEditing:this.toggleIsEditing,toggleOverlay:this.toggleOverlay,text:d,textStyle:B,textWrapperClass:A,placeholder:I})),l&&O&&Object(r.createElement)("form",{className:"amp-block-story-cta__inline-link",onSubmit:function(e){return e.preventDefault()}},Object(r.createElement)(k.Dashicon,{icon:"admin-links"}),Object(r.createElement)(w.URLInput,{value:m,onChange:function(e){return u({url:e})},autoFocus:!1}),Object(r.createElement)(k.IconButton,{icon:"editor-break",label:Object(o.__)("Apply","amp"),type:"submit"}))))}}]),t}(r.Component);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var I=function(e){var t=e.attributes,n=t.anchor,o=t.btnPositionLeft,a=t.btnPositionTop,i=t.text,c=t.url,l=Object(E.n)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(n,!0).forEach((function(t){v()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{className:"amp-block-story-cta__link"})),s=Object(E.v)(t);return s.top=a?"".concat(a,"%"):void 0,s.left=o?"".concat(o,"%"):void 0,Object(r.createElement)("amp-story-cta-layer",{id:n||Object(E.x)()},Object(r.createElement)(w.RichText.Content,{tagName:"a",className:l,href:c,style:s,value:i}))},A=n(10);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(n,!0).forEach((function(t){v()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N=[{attributes:T({align:{type:"string",default:"center"}},{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},text:{type:"string",source:"html",selector:"a"},customTextColor:{type:"string",default:"#ffffff"},customBackgroundColor:{type:"string",default:"#32373c"}}),supports:{align:!0,alignWide:!1},save:function(e){var t=e.attributes,n=t.anchor,o=t.url,a=t.text,i=Object(E.n)(T({},t,{className:"amp-block-story-cta__link"})),c=Object(E.v)(t);return Object(r.createElement)("amp-story-cta-layer",{id:n},Object(r.createElement)(w.RichText.Content,{tagName:"a",className:i,href:o,style:c,value:a}))},migrate:function(e){return T({},Object(A.omit)(e,"align"),{btnPositionTop:0,btnPositionLeft:30})}}];n.d(t,"name",(function(){return R})),n.d(t,"settings",(function(){return M}));var D=function(e){return Object(r.createElement)("svg",e,Object(r.createElement)("path",{d:"M7 14v2H5a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v5a3.001 3.001 0 0 1-2 2.83V8a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h2z"}),Object(r.createElement)("path",{d:"M18.31 15.442a.563.563 0 0 0-.202-.636l-6.631-4.808a.562.562 0 0 0-.891.415l-.58 8.17a.564.564 0 0 0 .359.565c.236.1.49.018.644-.175l1.646-2.074 1.632 3.5a.561.561 0 0 0 .748.273L16.477 20a.562.562 0 0 0 .272-.748l-1.633-3.5 2.647.072a.563.563 0 0 0 .548-.382z"}))};D.defaultProps={width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"};var R="amp/amp-story-cta",M={title:Object(o.__)("Call to Action","amp"),description:Object(o.__)("Prompt visitors to take action with a button-style link.","amp"),icon:D,category:"layout",keywords:[Object(o.__)("cta","amp"),Object(o.__)("button","amp")],attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},text:{type:"string",source:"html",selector:"a"},customTextColor:{type:"string",default:"#ffffff"},customBackgroundColor:{type:"string",default:"#32373c"},btnPositionTop:{type:"number",default:0},btnPositionLeft:{type:"number",default:30}},edit:C,save:I,deprecated:N,transforms:{from:[{type:"raw",priority:20,selector:"amp-story-cta-layer",transform:function(e){var t=e.outerHTML,n=Object(a.getBlockAttributes)(R,t);return Object(a.createBlock)(R,n)}}]}}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1),a=n(11),i=n(14),c=n.n(i),l=n(19),s=n.n(l),u=n(15),p=n.n(u),d=n(16),m=n.n(d),f=n(12),b=n.n(f),g=n(17),h=n.n(g),y=n(4),v=n.n(y),O=n(18),j=n.n(O),k=(n(9),n(10)),w=n(7),_=n(5),E=n(3),S=n(13),x=(n(98),n(22));function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(n,!0).forEach((function(t){v()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I=function(e){function t(){var e,n;c()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=p()(this,(e=m()(t)).call.apply(e,[this].concat(o))),v()(b()(n),"onReplace",(function(e){var t=n.props,r=t.attributes,o=t.onReplace,a=t.name;(e=e.filter((function(e){return void 0!==e}))).length&&o(e.map((function(e,t){return 0===t&&e.name===a?P({},e,{attributes:P({},r,{},e.attributes)}):e})))})),v()(b()(n),"toggleIsEditing",(function(e){e!==n.state.isEditing&&n.setState({isEditing:!n.state.isEditing})})),v()(b()(n),"toggleOverlay",(function(e){e!==n.state.hasOverlay&&n.setState({hasOverlay:!n.state.hasOverlay})})),n.state={isEditing:!1,hasOverlay:!0},n}return h()(t,e),s()(t,[{key:"componentDidMount",value:function(){Object(E.K)(this.props)}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.attributes,o=n.fontSize,a=n.isSelected,i=r.height,c=r.width,l=r.content,s=r.ampFitText,u=r.ampFontFamily;!a&&e.isSelected&&(this.toggleIsEditing(!1),this.toggleOverlay(!0)),s&&(e.attributes.ampFitText!==s||e.attributes.ampFontFamily!==u||e.attributes.width!==c||e.attributes.height!==i||e.attributes.content!==l)&&Object(E.K)(this.props),!(s||Object(k.isEqual)(e.fontSize,o)&&e.attributes.ampFitText===s&&e.attributes.ampFontFamily===u&&e.attributes.content===l)&&Object(E.J)(this.props),this.state.isEditing&&!t.isEditing&&Object(E.R)(".is-selected .wp-block-amp-amp-story-text")}},{key:"render",value:function(){var e,t=this.state,n=t.isEditing,a=t.hasOverlay,i=this.props,c=i.attributes,l=i.setAttributes,s=i.className,u=i.clientId,p=i.fontSize,d=i.isPartOfMultiSelection,m=i.isSelected,f=i.backgroundColor,b=i.customBackgroundColor,g=i.textColor,h=i.name,y=c.placeholder,O=c.content,k=c.align,E=c.ampFitText,C=c.autoFontSize,P=c.height,I=c.opacity,A=p&&p.size?p.size+"px":void 0,B=Object(_.select)("core/block-editor").getSettings().colors,T={backgroundColor:Object(S.d)(B,f,b,I)};E&&O.length&&(T.lineHeight=P+"px");var N=[],D="wp-block-amp-story-text-wrapper";c.className&&c.className.length&&c.className.split(" ").forEach((function(e){e.includes("is-style")&&N.push(e)}));N.length&&(D+=" "+N.join(" "));var R=(e={"has-text-color":g.color},v()(e,g.class,g.class),v()(e,p.class,E?void 0:p.class),v()(e,"is-amp-fit-text",E),e),M={color:g.color,fontSize:E?C+"px":A,textAlign:k,position:E&&O.length?"static":void 0};return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(w.BlockControls,null,Object(r.createElement)(w.AlignmentToolbar,{value:k,onChange:function(e){return l({align:e})}})),Object(r.createElement)("div",{className:j()(D,{"with-line-height":E,"is-empty-draggable-text":!n&&!O.length}),style:T},n&&Object(r.createElement)(w.RichText,{wrapperClassName:"wp-block-amp-story-text",tagName:"p",value:O,onChange:function(e){return l({content:e})},onReplace:this.onReplace,onSplit:function(){},style:M,className:j()(s,R),placeholder:y||Object(o.__)("Write text…","amp")}),!n&&Object(r.createElement)(x.g,{blockClass:"wp-block-amp-story-text",blockElementId:"block-".concat(u),clientId:u,name:h,isEditing:n,isDraggable:!d,isSelected:m,hasOverlay:a,toggleIsEditing:this.toggleIsEditing,toggleOverlay:this.toggleOverlay,text:O,textStyle:M,textWrapperClass:j()(s+" block-editor-rich-text__editable editor-rich-text__editable",R),placeholder:y||Object(o.__)("Write text…","amp")})))}}]),t}(r.Component),A=function(e){var t=e.attributes,n=t.content,o=t.ampFitText,a=t.tagName,i=Object(E.n)(t),c=Object(E.v)(t);if(!o)return Object(r.createElement)(w.RichText.Content,{tagName:a,style:c,className:i,value:n,format:"string"});var l=a;return c.display="flex",Object(r.createElement)(l,{style:c,className:i},Object(r.createElement)("amp-fit-text",{layout:"flex-item",className:"amp-text-content"},Object(r.createElement)(r.RawHTML,null,n)))},B=n(23);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var N=[{attributes:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(n,!0).forEach((function(t){v()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{placeholder:{type:"string"},content:{type:"string",source:"html",selector:".amp-text-content",default:""},type:{type:"string",default:"auto"},tagName:{type:"string",default:"p"},align:{type:"string"}},{deprecated:{default:"1.2.0"}}),save:function(e){var t=e.attributes,n=t.content,o=t.ampFitText,a=t.tagName,i=Object(E.n)(t),c=Object(E.v)(t);if(!o)return Object(r.createElement)(w.RichText.Content,{tagName:a,style:c,className:i,value:n,format:"string"});var l=a;return c.display="flex",Object(r.createElement)(l,{style:c,className:i},Object(r.createElement)("amp-fit-text",{layout:"flex-item",className:"amp-text-content"},Object(r.createElement)(r.RawHTML,null,n)))},migrate:B.a}];n.d(t,"name",(function(){return D})),n.d(t,"settings",(function(){return R}));var D="amp/amp-story-text",R={title:Object(o.__)("Text","amp"),description:Object(o.__)("Add free-form text to your story.","amp"),icon:Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)("path",{d:"M11 5v7H9.5C7.6 12 6 10.4 6 8.5S7.6 5 9.5 5H11m8-2H9.5C6.5 3 4 5.5 4 8.5S6.5 14 9.5 14H11v7h2V5h2v16h2V5h2V3z"})),category:"common",keywords:[Object(o.__)("title","amp"),Object(o.__)("heading","amp"),Object(o.__)("paragraph","amp")],supports:{anchor:!0,reusable:!0,className:!0},attributes:{placeholder:{type:"string"},content:{type:"string",source:"html",selector:".amp-text-content",default:""},type:{type:"string",default:"auto"},tagName:{type:"string",default:"p"},align:{type:"string"}},edit:I,save:A,deprecated:N,transforms:{from:[{type:"raw",priority:20,selector:"p,h1,h2",transform:function(e){var t=e.outerHTML,n=Object(a.getBlockAttributes)(D,t);return n.content||(n.content=e.textContent,n.tagName=e.nodeName,n.ampFitText=!1),Object(a.createBlock)(D,n)}}]}}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=(n(27),n(9),n(7)),i=n(2),c=n(29),l=(n(100),function(e){return Object(o.createElement)("svg",e,Object(o.createElement)("path",{d:"M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"}))});